DaemonForums  

Go Back   DaemonForums > DaemonForums.org > News

News News regarding BSD and related.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 12th March 2023
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,128
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
  #2   (View Single Post)  
Old 12th March 2023
bsd-keith bsd-keith is offline
Real Name: Keith
Open Source Software user
 
Join Date: Jun 2014
Location: Surrey/Hants Border, England
Posts: 344
Default

Wow! You will be able to run python code on old machines, without a lot of lag - I wonder if present python programs will be converted by their maintainers, or if we will have to do it as end users(?).
__________________
Linux since 1999, & also a BSD user.
Reply With Quote
  #3   (View Single Post)  
Old 12th March 2023
yeti's Avatar
yeti yeti is offline
White-Furred Supervillain
 
Join Date: Jul 2020
Posts: 23
Default

Quote:
Originally Posted by bsd-keith View Post
Wow! You will be able to run python code on old machines
LLVM based, that means it'll probably be a monster to build. That will disqualify it on some "older" machines, but who cares about that in the age where we daily expect the EOL message about 32bitters being supported at all?!?!?!

#complexityBlues #complexityWall
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
checking whether the C compiler works... no {HELP!} RJPugh FreeBSD Installation and Upgrading 1 6th April 2017 02:33 PM
Facebook's PHP compiler J65nko News 9 5th February 2010 02:09 PM
java compiler bsdnewbie999 OpenBSD Packages and Ports 8 9th August 2008 12:18 PM
pkg_chk c++ compiler not available fenrisW0lf NetBSD Package System (pkgsrc) 15 30th June 2008 10:48 AM
pcc compiler question ChineseBroccoli FreeBSD General 1 11th June 2008 11:29 PM


All times are GMT. The time now is 07:37 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick