3 ms·
There is already an AOT compiler for Python: Nuitka[0]. But I don't think it's much faster. And then there is mypyc[1] which uses mypy's static type annotation
by ptx 3y ago
There is already an AOT compiler for Python: Nuitka[0]. But I don't think it's much faster.
And then there is mypyc[1] which uses mypy's static type annotations but is only slightly faster.
And various other compilers like Numba and Cython that work with specialized dialects of Python to achieve better results, but then it's not quite Python anymore.
[0] https://nuitka.net/ https://nuitka.net/
[1] https://github.com/python/mypy/tree/master/mypyc https://github.com/python/mypy/tree/master/mypyc
- kragen 3y agothanks, i'd forgotten about nuitka and didn't know about mypyc!
- actionfromafar 3y agoCheck out: https://shedskin.github.io/ https://shedskin.github.io/ Python to C++ translation