Codon is an open-source project that leverages the LLVM compiler infrastructure and
. Released this week was Codon 0.17 as the newest step forward for this alternative Python implementation.
Codon compiles Python code to native machine code to avoid runtime overhead. The Codon project promotes "10-100x or more" speedups over upstream Python and that the performance can be comparable to that of traditional C/C++ code. Codon also allows for native multi-threading to tap even greater performance.
With Codon 0.17 the project has re-based to upstream LLVM 17 compiler use, adds new floating point type support for float16 / bfloat16 / float128, updates to various existing functions, added input() function handling, property setters are now supported, and there have been improvements to the dynamic polymorphism handling to better match CPython.
Codon 0.17 also adds a "-disable-exceptions" flag to disable exceptions, among other fixes and refinements.
Downloads and more details on the Codon 0.17 compiler release for Python via
Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via
Twitter
,
LinkedIn
, or contacted via
MichaelLarabel.com
.