r/Python • u/temptemptemp13 • May 11 '11
Pypy should be the new python 2.7
Pypy is 2.7.1 compliant with the stdlib working, look at the new speed landing page. What's to stop this from being the new standard python2.7?
This is the future, we should start embracing it.
edit: Once pypy's 3.2 compliant (I dunno if/when), there shouldn't be another cpython download besides for nostalgia etc.
14
6
May 11 '11
Once it supports the numpy/scipy stack (which won't happen via cpyext) I'm fine with this. Those are my current blockers.
But for a lot of stuff outside of the numeric and scientific realms, this would likely be an improvement.
5
u/freeload May 12 '11
Python is the language. CPython and PyPy are both implementations. You are free to choose whatever you'd like.
2
u/Bolitho May 12 '11
He is talking about the reference (=default) implementation I guess. But perhaps you are right and the OP did not know the difference...
4
u/draconian May 11 '11
Does Pypy support all the CPU/OS combos that CPython does?
4
May 11 '11
The only major one we don't support is Windows 64 (because of the
sizeof(long)vssizeof(void *)thing). I'm sure there are obscure platforms that are untested which may or may not work (e.g. I have no idea what Open Indiana is, I know CPython has a buildbot for it).4
u/euphoria May 11 '11
Do you know if there's any work being done on Windows 64, or if there's a good description of what the problem is specifically wrt pypy? My google-fu was failing me, mainly pulling up release notes.
For what it's worth, OpenIndiana is basically Solaris.
2
May 11 '11
I think someone might be working on it, but I'm not sure, I think this thread has many of the details: http://codespeak.net/pipermail/pypy-dev/2011q1/006747.html
1
3
u/Megatron_McLargeHuge May 12 '11
Very impressive. Can you pickle objects between PyPy and CPython?
3
u/Wagnerius flask+pandas+js May 12 '11
That a very interesting question. if it is possible, one could send data from one process in CPython to Pypy and back. the CPYthon process would be the gui stuff and the Pypy, the heavy worker with numpy&co.
1
u/Megatron_McLargeHuge May 12 '11
That's backwards, right? Pypy doesn't support numpy yet I thought.
1
u/Wagnerius flask+pandas+js May 12 '11
No, it isn't. Numpy support seems quite close but gtk or the obscure lib you use may take much longer. I can imagine numpy working in the next months but I don't see how the pypy team could test all the libs in the package index.
1
u/dwf May 15 '11
Numpy support seems quite close
Oh good god no it isn't. And it will always be playing catchup to the reference NumPy implementation.
1
2
u/martinmeba May 11 '11
I was messing around with Tornado - it mostly works but pycurl does not seem to work with pypy 1.5
4
May 11 '11
Use the latest version of Tornado, it no longer has a pycurl dependency (and in benchmarking tornado I've seen it's generally 2x faster under PyPy, and I think we can do better even).
2
u/hobo_cuisine May 13 '11 edited May 13 '11
Guido had a bit to say about that during Google IO. Boiled down to when users start wanting it more than cpython and they're both feature complete, they may focus development on pypy maybe.
7
u/crunk May 11 '11
A few things are not quite compliant yet, ctypes support and the python C api is not complete, so quite a few libraries will not work.