How does the performance of PyPy and Jython compare?
The first stable release of PyPy3
41–50 of 92 posts
Re: The first stable release of PyPy3
#42How does the performance of PyPy and Jython compare?
PyPy aims to be (and is in many cases) faster than CPython.
The advantage with Jython isn't a performance one: it's the ability to call Java code directly.
Re: The first stable release of PyPy3
#43Earlier quoted context omitted.
What DO you know or use? Did you think that the GIL was an obvious and stupid oversight made by stupid people for no good reason?
Obviously the GIL was shortsighted, yes. Leave the people out of it. The idea was stupid. There was a reason, but it wasn't a good reason.
Re: The first stable release of PyPy3
#44Minor note: the openbsd support (at least for 2.x) is amd64 only. Building for i386 at some point requires running a bootstrap process that doesn't fit in memory.
> Building for i386 at some point requires running a bootstrap process that doesn't fit in memory. Seriously, it takes more than 4gigs to build PyPy? Is that also necessary for other platforms besides OpenBSD?
When you're compiling PyPy, it basically has to load the entire Python interpreter structure into memory so it can do its various analyses and annotations, so compiling PyPy takes a long time. I think for a while it was excluded from certain Linux distros because their package-build-farm machines wouldn't handle it.
Re: The first stable release of PyPy3
#45Earlier quoted context omitted.
There's a lot of established code built around the C API. It's not like it can just be rewritten using CFFI over a weekend.
Well, I'm not talking about every C extension in the world, I'm talking about thin bindings around C routines which is what numpy has for fft for example, someone wrote a basic equivalent for numpypy in a few hours with no prior numpypy/cffi knowledge.
Re: The first stable release of PyPy3
#46Re: The first stable release of PyPy3
#47Minor note: the openbsd support (at least for 2.x) is amd64 only. Building for i386 at some point requires running a bootstrap process that doesn't fit in memory.
> Building for i386 at some point requires running a bootstrap process that doesn't fit in memory. Seriously, it takes more than 4gigs to build PyPy? Is that also necessary for other platforms besides OpenBSD?
Re: The first stable release of PyPy3
#48I wish the community would just switch entirely to pypy. Being able to just slightly performance sensitive code in python is a huge win.
It makes sense to use pypy if you're writing pure python code. The second you need a C extension, you're pretty much out of luck. This kills a lot of the appeal for people in the scientific/analytics side of things, who make heavy use of legacy C and Fortran routines.
Re: The first stable release of PyPy3
#49Earlier quoted context omitted.
Well, I'm not talking about every C extension in the world, I'm talking about thin bindings around C routines which is what numpy has for fft for example, someone wrote a basic equivalent for numpypy in a few hours with no prior numpypy/cffi knowledge.
Unfortunately, NumPy uses deep knowledge of the CPython API in quite a few places, which is one of the reasons implementing NumPyPy has been so challenging.
Re: The first stable release of PyPy3
#50Earlier quoted context omitted.
Jython is usually slower than CPython I believe, it has no GIL though.
Wonder if it can be faster under higher parallelism conditions. Multiple threads doing some CPU intensive work?