View Single Post
  #1   (View Single Post)  
Old 12th March 2023
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,132
Default Codon: A Python compiler if you have a need for C/C++ speed

From https://www.theregister.com/2023/03/...odon_compiler/:
Quote:
Python is among the one of the most popular programming languages, yet it's generally not the first choice when speed is required.

While it can be optimized for better performance, Python is prized for qualities other than speed, such as readability, a manageable learning curve, an expansive ecosystem, and utility in both academia and business.

MIT computer scientists and their colleagues, however, believe they've found a way to have it all the approachability of a high-level language with the speed of a low-level language. They've developed a Python compiler called Codon that turns Python code into native machine code without a runtime performance hit.

"Typical speedups over Python are on the order of 10-100x or more, on a single thread," the Codon repo declares. "Codon's performance is typically on par with (and sometimes better than) that of C/C++."
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote