List of Python compilers
Does Python require a compiler?
Py2wasm: A Python to Wasm compiler 3x faster than pyiodide : Python
FireDucks - Compiler Accelerated DataFrame Library for Python with fully-compatible pandas API : Python
Videos
Saw a post about Codon over on Hacker News and put together a list of similar Python compilers. Others added more. Here's the list so far, feel free to add another, or to give experiences with any of these.
Codon "is a high-performance Python compiler that compiles Python code to native machine code... Typical speedups over Python are on the order of 10-100x or more, on a single thread... supports native multithreading, which can lead to speedups many times higher still."
Nuitka "is a Python compiler written in Python. It's fully compatible with Python 2.6, 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, and 3.11."
Pypy "is a replacement for CPython... implements Python 2.7.18, 3.9.15, and 3.8.15... is really fast in running most benchmarks..."
Cython "is an optimising static compiler for both the Python programming language and the extended Cython programming language... makes writing C extensions for Python as easy as Python itself."
Numba "translates Python functions to optimized machine code at runtime using the industry-standard LLVM compiler library... Just apply one of the Numba decorators to your Python function, and Numba does the rest."
Pyston "is a performance-optimizing JIT for Python, and is drop-in compatible with the standard Python interpreter."
mypyc "compiles Python modules to C extensions. It uses standard Python type hints to generate fast code."
Mojo "Mojo combines the usability of Python with the performance of C, unlocking unparalleled programmability of AI hardware and extensibility of AI models."
Taichi "translates the compute-intensive Python code into fast machine code at runtime with a just-in-time compiler, accelerating your Python code."
A guy who teaches Python reacted when I told him I use Spyder to write and compile my python codes. He told me that Python doesnโt require a compiler, that Python is โdirectly run in machine codeโ which sets it apart from languages like C and many others.
What does this mean? And is it true? I use the word โto compileโ as synonymous to โto run the codeโ, didI misunderstand the meaning of that word when used in a programming context?
I became very confused on his comment but didnโt have chance to ask for clarification at the time. Grateful for anyone who can shed some light on this!