Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3 support #135

Open
alanjds opened this issue Mar 16, 2019 · 7 comments
Open

Python 3 support #135

alanjds opened this issue Mar 16, 2019 · 7 comments

Comments

@alanjds
Copy link

alanjds commented Mar 16, 2019

As Python 2.7 EOL is due in less than 10 months, Grumpy needs to be ported from Python 2.7 to 3.X

  • At least the Python that runs Grumpy. Lets call it host
  • Preferable the Python that Grumpy runs too. Lets call it target

History:

As far as I can say, Grumpy born on Youtube as a way to not translate a huge Python 2 codebase to Golang by hand.

However, the starting authors seems to have stopped pursuing this effort and had not contributed to Grumpy for some years.

In my experience on this project:

  1. is hard to get people interested in a transpiler targeting Python 2
  2. is even harder to get people willing to install Python 2 just to contribute to this project.
@alanjds alanjds pinned this issue Mar 16, 2019
@scottbecker
Copy link

Could you provide an update on this effort?

@ns-cweber
Copy link

ns-cweber commented Jun 11, 2020

Is there a roadmap for this work? I'm interested in helping out here if it's a serious initiative. How can we get involved?

@alanjds
Copy link
Author

alanjds commented Jun 12, 2020

Thanks @ns-cweber for the interest.

The head of the branch https://github.com/alanjds/grumpy/compare/master...grumpyhome:py37?expand=1 can run on a Python 3.7 host but cannot receive Py3+ code, only 2.7

To be honest with you (and the whole community), I am providing only code review and guidance from a while. Right now, I do not believe anymore on Golang being the future (or the present). This flushed my willingness to work on Grumpy features.

That said, the actual code state of Grumpy is kinda solid. Major drawtback being the Py2.7 target. The CI have a test for Python 3 albeit failing.

One big issue to have more contributors is exactly the lack of Python 3 support both host and target. I was trying to fix host support when lost faith in Golang.

This does not mean that you should not contribute or even build a community around this. Just that will not be a "just code it!" quest.

This was referenced Oct 29, 2020
@nagayev
Copy link

nagayev commented Oct 29, 2020

@alanjds I've already started working on it.

@jkugler
Copy link

jkugler commented Dec 16, 2020

@alanjds

Right now, I do not believe anymore on Golang being the future (or the present). This flushed my willingness to work on Grumpy features.

Can you expound on that? Do you have a blog post somewhere (as to not pollute this ticket). :)

@alanjds
Copy link
Author

alanjds commented Dec 17, 2020

Can you expound on that? Do you have a blog post somewhere (as to not pollute this ticket). :)

I really need to white such blog post :/, but there is already the "Go is Google's language, not ours" from Chris Siebenmann:

In general, it's extremely clear that the community's voice doesn't matter very much for Go's development, and those of us working with Go outside Google's walls just have to live with that. If we're very lucky, our priorities match up with Google's;

☝️ Right now, Google's priorities are clearly far from my priorities. Or the whole Python community priorities imho, if I can stretch on this.

For example lets take Grumpy original code: after digging fixing and improving Grumpy, it is clearly made originally by and for Go lovers, not Python lovers (like me). And the original owners are not being helpful after abandoning the project. Are they mad of who sponsored the development? Or see it as a blunder? Or are not willing to code OSS? Am just speculating here, there is no way to know from their void.

Although possible, I do not see a Gopher coming here to help on the parts that we (I ?) Pythonista can take 10x more effort to develop or fix. There are good people everywhere for sure. Yet I could not find Gopher ones willing to push Grumpy to be "A Better CPython 3" instead of "A Bridge to Goland out of Python 2".

In meantime, I found Rust community waaay more aligned with my personal beliefs as how to govern a community & where and how a low-level language should run, then I shifted my limited effort into RustPython for now.

Again, not saying that y'all should abandon Golang and follow my bandwagon. Just that for me is time to thank what Grumpy and the last "founder" developer gave me, and move on.

@jkugler
Copy link

jkugler commented Dec 17, 2020

@alanjds Thank you for taking time to respond! That all makes a lot of sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants