240 points · by sandGorgon · 10y ago · 99 comments
I stopped calling myself a Python programmer sometime ago and started saying I'm a PyPy programmer because this is the future of Python. The underlying basis for PyPy has big implications for a number of dynamic languages though so we should all be cheering it on and contributing.
For those who want better Python3 support, there's only ONE answer so no need to keep begging. Donate more money to the project or donate your talents. Patches welcome!
Edit: For everything I use, I try to find an asyncio version - Slack client [0], SSH [1], etc.
Funnily enough the reason I haven't adopted using PyPy is down to their lack of Python3 support. I think you're underestimating the amount of people using Python3.
Well, this is a catch-22, because folks like me and my team won't touch it unless it's Python 3. We're not a Python shop, but have flirted with Python before. It wouldn't make sense for us to write new code in Python 2.
Also, libraries are slowly going to drop Python 2.x support and go Python 3 only.
All the developers needed was a kick in the butt. If only PSF did that sooner.
Isn't it just a tracing JIT? Aren't these relatively well understood and implemented dozens of different ways?
http://morepypy.blogspot.com/2011/04/tutorial-writing-interp...
Its a JIT compiler run-time. You put a program in the JIT-compiler's run-time. And it was JIT compiled. The program you gave it just so happens to have Turning Complete behavior. It doesn't change anything the JIT compiler is doing.
It's like a compiler boot-strapping itself. It seems really impressive, but really the program is just doing its job on an input. The input just happens to be itself.
Is there a particular reason for this ?
(This isn't an insult to PyPy, btw--it's an amazing project that has accomplished a lot. I'm just explaining why it doesn't get the support one might expect.)
More generally, the Python community really lacks money compared to other ones. GO, PHP and JS all have bigs players spending a lot of cash on it. While some companies does invest in Python, they don't spend nearly the same amount on it, and the PSF has a very tigh budget.
One of the reason is that Python is "good enough", and so people don't invest on it because they don't need more from it. While JS was so slow that Google spent millions to create the V8. It's sad, but being clean and robust and strongly community driven leads to a lack of funding for Python. I wish we had a Mark shuttlework for the language.
Technically, Python 3 is not any harder to implement than Python 2, it's just useless.
I can tell you for 100% certain that, if a project of mine could run on a version of "Python" that was even twice as fast, I would switch immediately, because 6 application servers could become 3. If the gains are even greater, that's tremendous.
It's not just scientific computing that benefits, and in fact, a lot of the scientific / numerical analysis done in Python is really done in C / C ++ anyway (think Numpy, et al which delegate to compiled code for much of their expensive operations).
Anyway, my $0.02: I'm looking forward to test this with Hy (hylang.org) and seeing if some of the module referencing is fixed. Makes for a great JITed LISP already.
Pypy3’s last release was 2.4.0 in 2014. It targets Python 3.2, which is relatively unsupported compared to Python 3.3.
Here is a recent comment by a core member of the team on future Pypy3 work: https://news.ycombinator.com/item?id=11262150.
Odd statement. How can they have any customers who target Python 3 if they don't support it?
In terms of libraries, python 3 is "mostly" ready (though there are still issues with highly popular ones like wxwidgets. Or amazing tools like Pyjamas, which replicated GWT with Python instead of Java. Or Google AppEngine, which still shows no sign of moving to 3.) but large codebases outside of highly worked on web frameworks haven't moved on and there's not enough gain to justify the effort it takes to port them. The Python 3 debacle caused a lot of devs to also look at other languages for new projects. Old python 2 codebases will stay python 2, but new projects might not necessarily be python at all. The anger with Python 3 is real.
See also: https://caremad.io/2015/04/a-year-of-pypi-downloads/ https://www.reddit.com/r/Python/comments/45sm94/what_are_the...
"Looking at these graphs, we can see that in the past year Python 3.x has grown from roughly 2% of the total downloads from PyPI to roughly 5-6%"
I expect things like AppEngine to deprecate Python rather than port to 3, when/if python 2 reaches EOL and not enough people gather to maintain or even evolve that old branch.
Python 3 users are a vocal bunch, but the war they're fighting is a lost one.
There have been a few services/apps I was looking to use but had to turn down after talking to them because they didn't support Linux (Xamarin, Codename One, etc.) They all said they didn't receive as many requests for Linux as they did for Mac or Windows. I guess this would be similar.
(They've largely used up the targeted crowdfunding; the unused money isn't enough to make a large amount of progress)
Does anyone know if there are some milestones in sight regarding packages which use numpy? e.g. "working scipy or sklearn".
EDIT: BTW I forgot to add: tremendous thanks to PyPy team for your continued work on this project. I benefit from it and always look forward to the next release!
[1]: http://morepypy.blogspot.de/2016/04/pypy-enterprise-edition....
But holy crap the binary is enormous. I'm getting 22MB of text, compared with 991kb for CPython.
The web server type stuff works. The scientific computing type stuff mostly doesn't work.
For the vast majority that's still Python2. For those starting new projects that might be Go, Elixir, Python2 or Python3.
Just because some entity like the PSF declares Python3 the future doesn't make it so. Even if some people buy into it and believe it. It has to take over from the bottom up and its been floundering since 3.0 landed in 2008.
Like it or not, the fact of the matter is: for Python programmers, Python 3 is the future. It's really only a matter of time, even if it's much more time than was expected.
Python3 was lazy. Demanding that everyone including PyPy port, is lazy. Let Python3 live or die based on its technical merits like every other piece of technology.
Not to mention I wish the sword you're wielding cut both ways. You aren't entitled to demand someone else's labor any more than your buddies that litter every PyPy post demanding better Python3 support are. I hope you're harassing them for being lazy.
You made your own choice. You should have picked based on technical superiority rather than propaganda. To be honest with you, you should be ignored as you chose VERY poorly. Don't dare tell someone else what to use.
There are so many better choices to build new software in today than Python3. Python2 on PyPy is one of those. Those people can still port to Python3 if it ever does make sense. Even if that idea clearly threatens some of you, that's the smart play.
But the fact of the matter is that Python 3 is being actively developed, whereas Python 2 is in maintenance mode, and for how much longer? One of these days, Python 2 will become unsupported, and at that time you either finally move to Python 3, or you fork -- at which point you're no longer, strictly-speaking, programming in Python.
You're right that it's also lazy for people to simply demand Python 3 support from the PyPy project without being willing to invest in the effort. I have nothing to add to that, really.
I should also add that I'm probably one of the laziest programmers to ever exist, so I'm not trying to demonstrate superiority or anything like that. I'm simply pointing out that refusing to use Python 3 just because it hasn't seen much uptake only perpetuates the problem.
For me Python's strength is the libraries not the language, Python 3 decided to not support all this libraries, so calling it laziness for users to not immediately move to python 3 is a really bad way to put it.
So, what have the library developers been doing for the past 8 years? Probably adding features to the Python 2 version of the library. Why? Because Python 3 has seen low adoption. Why? Because the libraries haven't been updated yet. Why? ...
It's an endless cycle. If people want Python 3 to be adopted more widely, they ought to adopt it themselves (and many programmers have, though clearly not enough).
By now the lack of Python 3 is actually a very good filter when choosing a library: To me it says badly maintained. Many of the libraries which do not support Python 3 are also still hosted on SourceForge.
You are going to start seeing libraries come out that don't test on Python 2.6 and don't work there either.
This is a seriously unhealthy attitude for software engineering. This attitude will create legacy systems and legacy systems that will live on forever.
Look at it this way:
1) I can spend 2 days writing, testing, reviewing and pushing code that works perfectly fine in Python 2, or
2) I can spend a couple of weeks+ porting all the libraries I need for the tool to add python 3 support, maintaining backwards compatibility, fixing tests, reviewing etc. etc. etc., then spend 2 days to write the actual code I started out needing to do.
Which one do you think I'm going to be able to justify, given there is always a backlog of work? Multiple weeks of developer time is a non-trivial expense. There has to be a significant technical advantage to justify the effort and for a lot of things that Python is used for there just isn't enough of one.
I'm not anti-Python 3. I like it, in fact. Where I can use it, I do. It's just a lot of the time I can't because of all of the associated extra work involved.
The success of 2.7 is an amazing thing. Most languages have one great major version, some have zero, Python has two.