Ask HN: Is anyone using PyPy for real work?
121–130 of 185 posts
Re: Ask HN: Is anyone using PyPy for real work?
#122Earlier quoted context omitted.
You can try pip install pillow for a good example of how it works. I suspect there's a strong survivorship bias here, as you'd only notice the packages that don't ship with wheels.
Yeah, perhaps. One I remember from last year is the cryptography and numpy package, for instance. Now they do seem to ship with binary wheels, at least for my current Python and Linux version. Kerberos and Hadoop stuff obviously still doesn't, though. I guess the joke's on me for being stuck in this stack...
numpy-1.25.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
This specifies cpython 3.9, linux, glibc 2.17 or higher, and x86_64 cpu. Looking through the list you will see that the oldest cpython supported is 3.9. So if you are running with an older version of python you will have to build from source.
I just learned a bit more about this recently because I could not figure out why PyQt6 would not install on my computer. It turned out my glibc was too old. Finally upgraded from Ubuntu 18.04.
Re: Ask HN: Is anyone using PyPy for real work?
#123Earlier quoted context omitted.
One should really consider using containers in this situation.
Can you describe what in this situation warrants it? I'm very curious about where the line is/should be.
Re: Ask HN: Is anyone using PyPy for real work?
#124My biggest issue is that DataDog doesn’t support PyPy. Out of curiosity, I made a new branch of our app and took out DataDog and observed a significant improvement in performance when using PyPy vs CPython on the same branch (but can’t remember how much).
Do you mean the Python tracing library does not work out-of-the-box? disclaimer: I work there but not on the APM team
Re: Ask HN: Is anyone using PyPy for real work?
#125Nowadays, to be honest, everything that I need to be fast in Python is largely around numerical code which either calls out to C/C++ (via numpy or some ML library) or I use numba for. And these are either slower w/ PyPi or won't work.
HTTP web servers are notoriously slow in Python (even the fastest ones like falcon) but I found they either didn't play nicely with Pypi or weren't any faster. In large part because if the API does any kind of "heavy lifting" they can't be truly concurrent.
Re: Ask HN: Is anyone using PyPy for real work?
#126Earlier quoted context omitted.
Yep, I screw things up all the time with packages in homebrew that are written in python, when I forget to switch into a virtual env before doing stuff with pip. Debian's solution seems very sensible. And it is the same solution as homebrew, I suppose, as long as you don't interact with any of the homebrew-installed packages via pip. But I find it quite easy to accidentally do that.
export PIP_REQUIRE_VIRTUALENV=1 has been quite helpful in the past as pip then refuses to just install things directly.
Re: Ask HN: Is anyone using PyPy for real work?
#127Re: Ask HN: Is anyone using PyPy for real work?
#128Earlier quoted context omitted.
Yep, I screw things up all the time with packages in homebrew that are written in python, when I forget to switch into a virtual env before doing stuff with pip. Debian's solution seems very sensible. And it is the same solution as homebrew, I suppose, as long as you don't interact with any of the homebrew-installed packages via pip. But I find it quite easy to accidentally do that.
export PIP_REQUIRE_VIRTUALENV=1 has been quite helpful in the past as pip then refuses to just install things directly.
Re: Ask HN: Is anyone using PyPy for real work?
#129Can you tell us the obstacles for incorporating learnings from or even backporting the work from PyPi back into CPython?
Re: Ask HN: Is anyone using PyPy for real work?
#130SQL Alchemy actually points to PyPy in its recommendations of things to try in ORM performance. https://docs.sqlalchemy.org/en/20/faq/performance.html#resul...