On 9/10/21 12:31 am, Werner Heisenberg wrote:
Hi everyone
I read the pypy FAQ and some blog posts, which leaves me puzzled and
this is why I'm asking here:
I'm doing data science and use numpy as only library in the code
I'm talking about.
A few years ago I used pypy to great success to speed up an algorithm
of mine without much development effort.
I had to rewrite the code a bit so numpypy was digesting it but it
worked great.
Now I am trying to do the same thing and numpypy seems to have been
dropped in favor of complete support of numpy. In theory this is great
- however now my algorithm is at least 4x slower with pypy. Is numpypy
is no longer around or is there a way to install it and try the code
with it?
Is the numpy support by support of the c extension which the JIT
cannot optimise? Does this make pypy slower than Cpython? There have
been some blog posts about progress to make it faster from 2017 but
then nothing.
So is there anything I can do?
I do not want to write all the numpy stuff I need in plain python as
this would take a lot of time and then I would be so close to C, that
I could implement everything in C straight away.
Best regards
Nikolai
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev
It turns out the approach in numpypy was not sustainable with the
current level of resources available to PyPy. We have a hard enough time
trying to catch up with CPython, and are only now releasing a PyPy3.8,
when CPython has recently released 3.10. Keeping up with NumPy, with
their twice-early release schedule, in addition to the other maintenance
tasks for PyPy, was too much, given our very limited budget for ongoing
maintenance. We ended up disabling the numpypy extension for python3+
since the code no longer translated. As Dan Stromberg mentioned,
currently we view HPy as the way forward: we predict it will allow the
calls to C code to be closer to the speed of CPython. Note this is a
more modest goal than numpypy, since numpypy could have provided
Numba-like performance.
I guess the answer to "what can you do" could be anything from
- help up move HPy forward
- run an effort to revive numpypy (this will have to be a long-term
commitment)
- get involved in ongoing maintenance of PyPy which would free up other
resources.
Matti
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev