Re:Tracing JITs in the Real World CPython Core Dev Sprint
by vovavili on Friday September 26, 2025 @09:56AM
(#45386573)
Interesting. If PyPy is this capable, wonder whether an effort to make non-CPython implementations of Python compatible with C extensions would have been preferred compared to taking time and effort into implementing JIT into CPython.
[ Parent
| on HN ]
Re:Tracing JITs in the Real World CPython Core Dev Sprint
by antocuni on Friday September 26, 2025 @10:48AM
(#45387150)
pypy IS compatible with C extensions, via what we call "cpyext":
https://doc.pypy.org/en/latest/faq.html#do-c-extension-modul...
The problem of cpyext is that it's super slow, for good reasons: https://pypy.org/posts/2018/09/inside-cpyext-why-emulating-c...
There are efforts to create a new C API which is more friendly to alternative implementations (including CPython itself, when they want to change how they do things internally): https://hpyproject.org/ https://github.com/py-ni