3 ms·
I'd kill for AOT compiled Python. 3.13 ships with a basic JIT compiler.
by heavyset_go 2y ago
I'd kill for AOT compiled Python. 3.13 ships with a basic JIT compiler.
- pjmlp 2y agoIn 3.13 you need to compile Python yourself if you want to test the preview JIT.
- LoganDark 2y agomypyc can compile a strictly-typed subset of Python AOT to native code, and as a bonus it can still interop with native Python libraries whose code wasn't compiled. It's slightly difficult to set up but I've used it in the past and it is a decent speedup. (plus mypy's strict type checking is sooo good)
- zelphirkalt 2y agoWhy is it named after a type checking library?
- LoganDark 2y agoBecause it uses that library for type checking?
- heavyset_go 2y agoIt's part of the Mypy project: https://github.com/python/mypy/tree/master/mypyc https://github.com/python/mypy/tree/master/mypyc