PyPy vs CPython
The cluster centers on debates about Python implementations like PyPy and CPython, particularly PyPy's compatibility issues with CPython's C API and extensions, performance trade-offs, and why CPython remains dominant.
Activity Over Time
Top Contributors
Keywords
Sample Comments
PyPy doesn't support Python's C API. It's more of an exercise in tracing JIT compilation (and crowdfunding various experiments) rather than a CPython replacement.
I curious why you would think so, since CPython is already written in C
Why is this yet another implementation of Python? If C is supported why not use CPython itself?
Even with PyPy, or Python libraries that are themselves written in C?
Citation needed? It is common for a large Python project to use some modules with C extensions. There are many examples of people able to write more sophisticated programs in Python than C. Comparing PyPy with CPython, the choice of Python enabled writing a JIT compiler.
Is there any chance that a project like RustPython could supplant CPython?
Write CPython with an emphasis on C. Then get the speed gains you need.
No need to be afraid. The Python C extension API makes it very hard to make a JIT work well because of how it is implemented. C extensions are also part of why Python is so popular in the first place. If everybody wrote pure Python (like they write pure JavaScript), then the reference implementation would probably look like Pypy.
the userbase of pypy is a tiny fraction of cpython, likely not worth it
PyPy breaks CPython APIs. Python language stuff is very well supported.