| ▲ | mike_hearn 5 hours ago | |||||||||||||
A sad day for CPython but it doesn't have to be a sad day for Python. There is a fully maintained implementation of Python 3.13 that has an advanced JIT compiler. Once your Python warms up it can be 4x faster or higher (depending on what your program is doing). That implementation is called GraalPy and it builds on the JVM: A bit like Chrome there's a fully open source version and a proprietary version with a few extra bells and whistles, but the latter is entirely free for both open and commercial usage (you can't redistribute it for a fee). So you may as well use it. It has other interesting features • Scalable pauseless GC • Single binary distribution of Python programs (like Go) • Fancy and optimized interop with other languages including Java, JavaScript, Kotlin, Ruby and any other Truffle language. • Supports native extensions. Tested and works with common libs like SciPy, NumPy, PyTorch, Pandas etc: https://graalpy.org/python-developers/compatibility/ • They're working on a GIL-free mode In recent weeks there has been a release of a new web framework for Python that only runs on GraalPy, called Pyronaut (https://pyronaut.io/). It takes advantage of JVM interop to expose the Micronaut framework, which is similar to Spring for those who know it. Thanks to the JIT and well optimized base libraries it runs extremely fast, being about 3x faster than FastAPI+Granian, or 7x faster than Flask+Gunicorn and having many more features. https://www.youtube.com/watch?v=zo6L7bxn4OY (that was presented at Devoxx but the Pyronaut devs will start touring Python specific conferences soon) So although CPython may not have made it past the JIT milestone, that doesn't mean Python as a language or community has to fail it. It does require openness to alternative implementations, but historically Pythonistas have been fairly good about that (e.g. Pypy was embraced back when it was more active). This stuff does require you to accept that it's made by Oracle, but as it's open source, that should be OK. Disclosure: I sit next to some of the people who work on this stuff. | ||||||||||||||
| ▲ | pjmlp 2 hours ago | parent | next [-] | |||||||||||||
GraalPy and PyPy are great technology achievements, the problem is that the Python community at large rather prefers their C bindings or nowadays Rust, sprinkle a bit of Python FFI on top, and call them "Python" libraries. | ||||||||||||||
| ||||||||||||||
| ▲ | titzer 5 hours ago | parent | prev [-] | |||||||||||||
> Once your Python warms up How long does that take? | ||||||||||||||
| ||||||||||||||