• Home
  • Insight
  • Blog
  • Business
  • Entertainment
  • Health
  • Politics
  • Shop
    • Gift Shop
    • Value Shop
    • Store
    • Bargain Shop
    • Discount
  • Sports
  • Tech
  • Travel
  • USA
  • Video
  • World
    • Asia
    • Africa
    • South America
    • North America
    • Europe
    • Oceania
Friday, November 20, 2026
No Result
View All Result
Subscribe Now
  • Home
  • Insight
  • Blog
  • Business
  • Entertainment
  • Health
  • Politics
  • Shop
    • Gift Shop
    • Value Shop
    • Store
    • Bargain Shop
    • Discount
  • Sports
  • Tech
  • Travel
  • USA
    Texas Execution Prolonged As Staff Encounter Difficulties Finding Vein, Inmate Reinaldo Dennes Reports Pain

    Texas Execution Prolonged As Staff Encounter Difficulties Finding Vein, Inmate Reinaldo Dennes Reports Pain

    Trump’s Deal Turns Sour as Voters Withdraw Support

    Trump’s Deal Turns Sour as Voters Withdraw Support

    FAA Administrator Takes Responsibility as Mullin Faces Tough Questions Over Nationwide Ground Stop

    FAA Administrator Takes Responsibility as Mullin Faces Tough Questions Over Nationwide Ground Stop

    Mary Peltola Emerges Victorious in Alaska Senate Race, Making History for Democrats

    Mary Peltola Emerges Victorious in Alaska Senate Race, Making History for Democrats

    Stranded in Conflict: Palestinians Navigate the Tenuous Balance of War and Peace Amid Ceasefire Efforts

    Stranded in Conflict: Palestinians Navigate the Tenuous Balance of War and Peace Amid Ceasefire Efforts

    Trump Administration Revokes Pay Increase for Head Start Educators

    Trump Administration Revokes Pay Increase for Head Start Educators

    Unexpected Triumph: Gay Candidates Achieve Unforeseen Victories in Challenging Races

    Unexpected Triumph: Gay Candidates Achieve Unforeseen Victories in Challenging Races

    Microsoft Outlook Experiences Prolonged Outage Affecting Users Nationwide

    Microsoft Outlook Experiences Prolonged Outage Affecting Users Nationwide

    Gunfire Erupts in D.C.: Authorities Search for Suspect Amid Rising Concerns Over Public Safety

    Gunfire Erupts in D.C.: Authorities Search for Suspect Amid Rising Concerns Over Public Safety

  • Video
  • World
    • Asia
    • Africa
    • South America
    • North America
    • Europe
    • Oceania
The Insight Post
  • Home
  • Insight
  • Blog
  • Business
  • Entertainment
  • Health
  • Politics
  • Shop
    • Gift Shop
    • Value Shop
    • Store
    • Bargain Shop
    • Discount
  • Sports
  • Tech
  • Travel
  • USA
    Texas Execution Prolonged As Staff Encounter Difficulties Finding Vein, Inmate Reinaldo Dennes Reports Pain

    Texas Execution Prolonged As Staff Encounter Difficulties Finding Vein, Inmate Reinaldo Dennes Reports Pain

    Trump’s Deal Turns Sour as Voters Withdraw Support

    Trump’s Deal Turns Sour as Voters Withdraw Support

    FAA Administrator Takes Responsibility as Mullin Faces Tough Questions Over Nationwide Ground Stop

    FAA Administrator Takes Responsibility as Mullin Faces Tough Questions Over Nationwide Ground Stop

    Mary Peltola Emerges Victorious in Alaska Senate Race, Making History for Democrats

    Mary Peltola Emerges Victorious in Alaska Senate Race, Making History for Democrats

    Stranded in Conflict: Palestinians Navigate the Tenuous Balance of War and Peace Amid Ceasefire Efforts

    Stranded in Conflict: Palestinians Navigate the Tenuous Balance of War and Peace Amid Ceasefire Efforts

    Trump Administration Revokes Pay Increase for Head Start Educators

    Trump Administration Revokes Pay Increase for Head Start Educators

    Unexpected Triumph: Gay Candidates Achieve Unforeseen Victories in Challenging Races

    Unexpected Triumph: Gay Candidates Achieve Unforeseen Victories in Challenging Races

    Microsoft Outlook Experiences Prolonged Outage Affecting Users Nationwide

    Microsoft Outlook Experiences Prolonged Outage Affecting Users Nationwide

    Gunfire Erupts in D.C.: Authorities Search for Suspect Amid Rising Concerns Over Public Safety

    Gunfire Erupts in D.C.: Authorities Search for Suspect Amid Rising Concerns Over Public Safety

  • Video
  • World
    • Asia
    • Africa
    • South America
    • North America
    • Europe
    • Oceania
No Result
View All Result
No Result
View All Result
Home Tech

Python compiler takes scripts to C/C++ speeds • The Register

by Theinsightpost
March 11, 2023
in Tech
0 0
0
Python compiler takes scripts to C/C++ speeds • The Register


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++.”

There’s a hitch, of course. Codon implements most but not all of the Python language. Some Python modules have not been incorporated into Codon. And it omits features such as dynamic type manipulation and runtime reflection that make code more difficult to analyze and optimize. In doing so, it can rely on a statically-typing compiler engine that – in conjunction with other innovations such as a more optimizable and flexible intermediate representation (IR) [PDF] – generates faster code.

Codon was originally developed as a framework for creating high-performance domain specific languages (DSLs) in Python. DSLs are languages focused on a specific purpose, as opposed to a general purpose programming language like Python or C. Examples of DSLs include CSS, SQL, and the ancient runes make understands.

Derived from Seq, a DSL for bioinformatics and genetics, Codon has grown into a language compiler that’s largely compatible with Python 3. As described in a paper [PDF] provided to The Register in advance of its planned March 16 release, “Codon: A Compiler for High-Performance Pythonic Applications and DSLs,” the toolchain “enables the development of DSLs that share Python’s syntax and semantics together with added domain-specific features and IR optimizations.”

The authors of the paper – Ariya Shajii (Exaloop), Gabriel Ramirez (MIT CSAIL), Haris Smajlović (University of Victoria, Canada), Jessica Ray (MIT CSAIL), Bonnie Berger (MIT CSAIL) Saman Amarasinghe (MIT CSAIL), and Ibrahim Numanagić (University of Victoria) – say that because Codon can output native machine code without any Python runtime overhead, they’re able to achieve C-like performance with Python scripts.

“Unlike other performance-oriented Python implementations (such as PyPy or Numba), Codon is built from the ground up as a standalone system that compiles ahead-of-time to a static executable and is not tied to an existing Python runtime (e.g., CPython or RPython) for execution,” the paper says. “As a result, Codon can achieve better performance and overcome runtime-specific issues such as the global interpreter lock.”

Instead of needing to … totally rewrite in a language like C, Codon can use the same Python implementation and give the same performance you’ll get by rewriting in C

The authors discuss various Codon-based, high-performance DSLs designed for bioinformatics, data compression, and parallel programming that take advantage of Codon’s compiler infrastructure. But Codon can also accelerate standard Python programs substantially, though those that rely on external libraries such as Django or DocUtils have to rely on a CPython bridge which limits performance to that of CPython. For example, on the Codon forum, some enterprising developer reports that a simple Codon-compiled Fibonacci script ran more than 70x faster than the CPython version.

MIT Professor and CSAIL Principal Investigator Saman Amarasinghe told the MIT News service in a release provided to The Register that Python is often used by domain experts who are not programming experts and haven’t optimized their applications for performance.

“Instead of needing to rewrite the program using a C-implemented library like numpy or totally rewrite in a language like C, Codon can use the same Python implementation and give the same performance you’ll get by rewriting in C,” explained Amarasinghe. “Thus, I believe Codon is the easiest path forward for successful Python applications that have hit a limit due to lack of performance.”

Codon, we’re told, is already being used commercially in fields from quantitative finance and bioinformatics to deep learning. And in the months ahead, expect Codon’s developers to implement some missing Python features. ®



Source link

ShareTweetSend
Previous Post

Bomb kills 1, wounds 8 at press award event in Afghanistan

Next Post

MLB player rankings ahead of 2023 season: Left fielders

Related News

Uber Launches Pilot Program for Safe Children’s Rides with Trusted Drivers
Tech

Uber Launches Pilot Program for Safe Children’s Rides with Trusted Drivers

November 20, 2026
Exploring Innovations: A Breakthrough in Living Liver Technology, a Lucrative Battery Partnership, and the Surge of AI Excitement
Tech

Exploring Innovations: A Breakthrough in Living Liver Technology, a Lucrative Battery Partnership, and the Surge of AI Excitement

November 19, 2026
Microsoft’s Satya Nadella Reveals Strategic Rationale Behind Layoff of 60,000 Employees
Tech

Microsoft’s Satya Nadella Reveals Strategic Rationale Behind Layoff of 60,000 Employees

November 19, 2026
Cybercriminals Embrace Innovative AI Tool for Streamlined Hacking Operations
Tech

Cybercriminals Embrace Innovative AI Tool for Streamlined Hacking Operations

November 18, 2026
Next Post
MLB player rankings ahead of 2023 season: Left fielders

MLB player rankings ahead of 2023 season: Left fielders

Discussion about this post

Subscribe To Our Newsletters

    Customer Support


    1251 Wilcrest Drive
    Houston, Texas
    77042 USA
    Call-832.795.1420
    e-mail – news@theinsightpost.com

    Subscribe To Our Newsletters

      Categories

      • Africa
      • Africa-East
      • African Sports
      • American Sports
      • Arts
      • Asia
      • Australia
      • Business
      • Business Asia
      • Business- Africa
      • Canada
      • Defense
      • Education
      • Egypt
      • Energy
      • Entertainment
      • Europe
      • European Soccer
      • Finance
      • Germany
      • Ghana
      • Health
      • Insight
      • International
      • Investing
      • Japan
      • Latest Headlines
      • Life & Living
      • Markets
      • Mobile
      • Movies
      • New Zealand
      • Nigeria
      • Politics
      • Scholarships
      • Science
      • South Africa
      • South America
      • Sports
      • Tech
      • Travel
      • Travel-Africa
      • UK
      • USA
      • Weather
      • World
      No Result
      View All Result

      Recent News

      High Costs of MRI Scans Leave Brain Tumour Patients in Limbo, Experts Warn of Alarming Underdiagnosis

      High Costs of MRI Scans Leave Brain Tumour Patients in Limbo, Experts Warn of Alarming Underdiagnosis

      November 20, 2026
      Liverpool’s Nyoni Declares Odegaard His Most Challenging Rival Yet

      Liverpool’s Nyoni Declares Odegaard His Most Challenging Rival Yet

      November 20, 2026
      Uber Launches Pilot Program for Safe Children’s Rides with Trusted Drivers

      Uber Launches Pilot Program for Safe Children’s Rides with Trusted Drivers

      November 20, 2026
      Bavuma Sets Sights on Expanding Test Captaincy Victory Streak in Upcoming England Series

      Bavuma Sets Sights on Expanding Test Captaincy Victory Streak in Upcoming England Series

      November 20, 2026
      • Home
      • Advertise With Us
      • About Us
      • Corporate
      • Consumer Rewards
      • Forum
      • Privacy Policy
      • Social Trends

      Theinsightpost ©2026 | All Rights Reserved. Theinsightpost is an Elnegy LLC company, registered in Texas, USA

      Welcome Back!

      Login to your account below

      Forgotten Password?

      Retrieve your password

      Please enter your username or email address to reset your password.

      Log In

      Add New Playlist

      We are using cookies to give you the best experience on our website.

      You can find out more about which cookies we are using or switch them off in .

      No Result
      View All Result
      • Home
      • Insight
      • Blog
      • Business
      • Entertainment
      • Health
      • Politics
      • Shop
        • Gift Shop
        • Value Shop
        • Store
        • Bargain Shop
        • Discount
      • Sports
      • Tech
      • Travel
      • USA
      • Video
      • World
        • Asia
        • Africa
        • South America
        • North America
        • Europe
        • Oceania

      Theinsightpost ©2026 | All Rights Reserved. Theinsightpost is an Elnegy LLC company, registered in Texas, USA

      The Insight Post
      Powered by  GDPR Cookie Compliance
      Privacy Overview

      This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

      Strictly Necessary Cookies

      Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

      Cookie Policy

      More information about our Cookie Policy