News for hackers. Stuff that matters.

mattip

Re:C++26 Shipped a SIMD Library Nobody Asked For on Sunday May 17, 2026 @12:25AM (#48166042)
NumPy has a whole dispatch mechanism to deal with the tradeoffs. The main problem is code bloat: how many microarchitectures are you going to support with dispatch at runtime?
Re:C++26 Shipped a SIMD Library Nobody Asked For on Sunday May 17, 2026 @12:23AM (#48166026)
There is google’s highway, that provides an abstraction layer. It is used by NumPy.
Re:Pyre: New JIT Python interpreter written in Rust on Wednesday April 01, 2026 @09:22PM (#47608900)
PyPy dev here. Really cool project to convert RPython from python2 to rust. They have a long way to go, but seem to be making progress. Unfortunate name conflict with a typechrcker.
Re:Python 3.15's JIT is now back on track on Wednesday March 18, 2026 @01:32AM (#47421880)
That cleanup can be explicit when needed by using context managers. Mixing resource handling with object lifetime is a bad design choice
Re:"Warn about PyPy being unmaintained" on Sunday March 08, 2026 @10:35AM (#47297681)
The problem is the million small paper cuts. The stdlib changes are not all in pure python, many have implications for compiled modules like _ssl. The interpreter changes, especially compatibility with small interpreter changes that are reflected in the dis module, also require work to figure out
Re:"Warn about PyPy being unmaintained" on Sunday March 08, 2026 @10:30AM (#47297635)
CFFI is fast on PyPy. The JIT still cannot peer into the compiled C/C++ code, but it can generate efficient interface code since there is a dedicated _cffi_backend module built into PyPy. Originally that was the motivation for the PyPy developers to create CFFI.
Re:"Warn about PyPy being unmaintained" on Sunday March 08, 2026 @09:01AM (#47296973)
Benchmarks are tricky. Do you have a specific use case you want sped up?
Re:"Warn about PyPy being unmaintained" on Sunday March 08, 2026 @05:36AM (#47295893)
- The pure python repl started off in PyPy, although a lot of work was done to make it ready for prime time by the COython core devs - The lessons from HPy are slowly making their way into CPython, see https://github.com/py-ni - There were many fruitful interactions in fixing subtle bugs in CPython that stemmed from testing the stdlib on an alternative implementation

And more

Re:"Warn about PyPy being unmaintained" on Sunday March 08, 2026 @05:29AM (#47295865)
Yes. The C API those libraries use is a good fit to CPython, a bad fit to PyPy. Hence CFFI and HPy. Actually, many if the lessons from HPy are making their way into CPython since their JIT and speedups face the same problems as PyPy. See https://github.com/py-ni
Re:"Warn about PyPy being unmaintained" on Sunday March 08, 2026 @04:01AM (#47295489)
Third party libraries like SciPy scikit-learn, pandas, tensorflow and pytorch have been critical to python’s success. Since CPython is written in C and exposes a nice C API, those libraries can leverage it to quickly move from (slow) python to (fast) C/C++, hitting an optimum between speed of development and speed of runtime.

PyPy’s alternative, CFFI, was not attractive enough for the big players to adopt. And HPy, another alternative that would have played better with Cython and friends came too late in the game, by that time PyPy development had lost momentum.

Re:"Warn about PyPy being unmaintained" on Sunday March 08, 2026 @01:17AM (#47295014)
PyPy core dev here. If anyone is interested in helping out, either financially or with coding, we can be reached various ways. See https://pypy.org/contact.html
> Imagine how Open Source Software could improve if a consortium of nations put their money and resources into commissioning bug fixes and enhancements, which would be of collective benefit.

This is the business model of Quansight Labs, whose employees help maintain much of the scientific python stack. Mostly tech companies, not governments, sponsoring the work

Re:Python 3.14 Is Here. How Fast Is It? on Friday October 10, 2025 @01:02AM (#45535506)
There is some information transfer happening. Antonio Cuni was at the latest Coython developer sprint and shared some insights from PyPy https://antocuni.eu/2025/09/24/tracing-jits-in-the-real-worl...
Re:PyPy v7.3.18 Release on Thursday February 06, 2025 @09:57PM (#42968778)
PyPy v7.3.18: release of python 2.7, 3.10 and 3.11 beta
There are portable downloads of PyPy here https://pypy.org/download.html
Re:PyPy v7.3.17 Release on Wednesday August 28, 2024 @05:31PM (#41384622)
That’s my post. Happy to answer any questions
Re:PyCon US 2024 Recap on Sunday June 02, 2024 @12:09PM (#40555208)
Anyone can attend.
Re:Maybe This Is Too Cool on Friday May 31, 2024 @06:33AM (#40533327)
I think part of the point is that it doesn’t matter. You can’t preach “frugality” and @we all need to pitch in” and then use private jets and rock concerts for the few at the top. It is hypocritical.
Re:PyPy v7.3.16 Release on Wednesday April 24, 2024 @06:32PM (#40150661)
We try to keep around useful versions of Python3, based on what wheels packagers make available. NumPy<2 provides PyPy3.9 wheels, and we have PyPy3.10 ready. Now that NumPy has moved to PyPy3.10 wheels, we will probably drop 3.9. Help is needed to move forward to 3.11/3.12.
Re:Python 3.13 Gets a JIT on Wednesday January 10, 2024 @12:13PM (#38940786)
PyPy dev here. A little money could go along way to speeding up the PyPy base interpreter. Right now PyPy has no active income.
Re:NumPy 2 is coming: preventing breakage, updating your code on Tuesday January 09, 2024 @02:32PM (#38930766)
The article is more about how to pin to prevent breakage, but also includes a link to the migration guide. A draft of the complete changeset is https://numpy.org/devdocs/release/2.0.0-notes.html. The changes move NumPy closer to the Python array API standard https://data-apis.org/array-api/latest/ which lays out a common, agreed-upon interfaces for tensor/array processing libraries.
To make it clear: this is only a proposal, not a regulation. It has a very low chance of making it into the books as it goes against the legal framework for free speech.

This minister is trying to destroy Israel’s democracy from within, and is not very well liked even by his neighbours who demonstrated outside his house every week until the war started.

Re:Road to NumPy 2.0 on Wednesday September 13, 2023 @08:02AM (#37495571)
While we are trying to minimize the disruptions, there is one thing project maintainers should do right now: pin the maximum NumPy to <2.0 in their ~`pyproject.toml`~ project dependencies. This will ensure they do not inadvertently upgrade before they are ready to do so. Once numpy2.0 is released, you can check that your code works with it, and then release the pin.
Re:GIL removal and the Faster CPython project on Friday August 18, 2023 @11:43AM (#37177207)
In what way does PyPy break compatibility?
Re:Is anyone using PyPy for real work? on Tuesday August 01, 2023 @04:24PM (#36962223)
What kind of speed up did you get?
Re:Is anyone using PyPy for real work? on Tuesday August 01, 2023 @04:22PM (#36962187)
What kind of speed up do you get?

Older »