Get the latest tech news

LPython: Novel, Fast, Retargetable Python Compiler (2023)


About LPython is a Python compiler that can compile type-annotated Python code to optimized machine code. LPython offers several backends such as LLVM, C, C++, WASM, Julia and x86. LPython features quick compilation and runtime performance, as we show in the benchmarks in this blog. LPython also offers Just-In-Time (JIT) compilation and seamless interoperability with CPython. We are releasing an alpha version of LPython, meaning it is expected you encounter bugs when you use it (please report them!

Based on the novel Abstract Semantic Representation (ASR) shared with LFortran, LPython’s intermediate optimizations are independent of the backends and frontends. By default, if no backend is provided it compiles type-annotated user input code to LLVM, which generates binary final output. Users love Python because of its many productivity advantages: great tooling, easy syntax, and rich data structures like lists, dicts, sets, and arrays.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of lpython

lpython

Related news:

News photo

LPython 0.22 Released For Ahead-Of-Time Compiler For Python

News photo

LPython 0.21 Released For Alpha-Stage Python AOT Compiler