News for hackers. Stuff that matters.
Re:PyPy v5.8 released by robocaptain on Friday June 09, 2017 @08:15AM (#14520828)
Coming from someone who uses python but doesn't really follow alternative compilers, PyPy sounds great. What are some of the downsides, if any? Are you sacrificing library compatibility for faster core+standard libs?
Re:PyPy v5.8 released by bdarnell on Friday June 09, 2017 @08:56AM (#14521004)
In addition to being incompatible with (some) third-party libraries, pypy tends to use significantly more memory than cpython. It's also slower than cpython for scripts that don't run long enough to warm up the JIT, so you probably wouldn't want to use it by default. (Disclaimer: I'm basing this on experience with older versions of pypy and haven't verified it recently)
Re:PyPy v5.8 released by lanstin on Friday June 09, 2017 @11:00AM (#14521853)
He memory thing is still an issue. I had to go thru. Lot of tuning on max GC size to keep it runnable for long times. Too low and it is slow and too high and it kills the box.
Re:PyPy v5.8 released by gdulli on Friday June 09, 2017 @09:52AM (#14521343)
For workloads heavy on JSON operations PyPy has been slower than CPython for me in the past. Because it didn't benefit from the C implementation of simplejson.
Re:PyPy v5.8 released by lanstin on Friday June 09, 2017 @10:57AM (#14521823)
In addition to the missing libraries, which has gotten a lot better in the last few years, it crashes a bit more.

I have a syslog proxy that has one huge incoming stream like 50k msgs/second. CPU Could not keep up with CPython but PyPy runs fine and crashes on some low level JIT assertion every so often. I have it setup to use PyPy on the high volume instances and CPython on the low volume instances.

Re:PyPy v5.8 released by ipmb on Friday June 09, 2017 @11:49AM (#14522207)
JIT warm-up time can be problematic. Often (usually?), the code starts slower than CPython, but improves as the code paths are executed.
Re:PyPy v5.8 released by ant6n on Friday June 09, 2017 @08:58AM (#14521016)
Numpy support is iffy. How is the Python 3 support these days?
Re:PyPy v5.8 released by mattbillenstein on Friday June 09, 2017 @08:19AM (#14520845)
Your favorite C-extension may not support it.