SaaSHub helps you find the best software and product alternatives Learn more →
Top 23 Python Compiler Projects
-
Nuitka
Nuitka is a Python compiler written in Python. It's fully compatible with Python 2.6, 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, and 3.11. You feed it your Python app, it does a lot of clever things, and spits out an executable or extension module.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
cinder
Cinder is Meta's internal performance-oriented production version of CPython. (by facebookincubator)
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
shedskin
Shed Skin is a restricted-Python-to-C++ compiler. Read the introduction below to learn about the restrictions.
-
rickroll-lang
The Rick Roll programming language is a rickroll based, process oriented, dynamic, strong, esoteric programming language. All of the keywords/statements are from Rick Astley's lyrics. Check our tutorial site, https://rick-lang.github.io/programming-language-explainer/
-
prometeo
An experimental Python-to-C transpiler and domain specific language for embedded high-performance computing
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Project mention: Show HN: I built a free in-browser Llama 3 chatbot powered by WebGPU | news.ycombinator.com | 2024-05-03Yes. Web-llm is a wrapper of tvmjs: https://github.com/apache/tvm
Just wrappers all the way down
Thanks for the feedback! I'm Syrus, main author of the work on py2wasm.
We already opened a PR into Nuitka to bring the relevant changes upstream: https://github.com/Nuitka/Nuitka/pull/2814
We envision py2wasm being a thin layer on top of Nuitka, as also commented in the article.
From what we gathered, we believe that there's usefulness on having py2wasm as a separate package, as py2wasm would also need to ship the precompiled Python distribution (3.11) for WASI (which will not be needed for the other Nuitka use cases), apart of also shipping other tools that are not directly relevant for Nuitka
Around the same time, I discovered Numba and was fascinated by how easily it could bring huge performance improvements to Python code.
Only tangentially related, but for anyone interested in the idea of a simple, quick Python-like scripting Lisp, there are two Clojure-style languages to look at:
1) Hy (https://hylang.org/, compiles to Python bytecode, usually slower than Python but compatible with all Python libraries)
2) Janet (https://janet-lang.org/, very light Lua-style embeddable VM ~1 Mb, roughly twice as fast as Python for similar ops, very easy C interop)
Project mention: Coconut: Simple, elegant, Pythonic functional programming | news.ycombinator.com | 2023-11-27
Project mention: Meta Used Monolithic Architecture to Ship Threads in Only Five Months | news.ycombinator.com | 2024-04-10Meta is actually contributing directly to upstream cpython. If you really wanted to, the internal fork is also open source: https://github.com/facebookincubator/cinder
Project mention: Ask HN: Why don't browsers just build a non-JS interpreter? | news.ycombinator.com | 2024-01-10
Project mention: Portable Efficient Assembly Code-Generator in Higher-Level Python (PeachPy) | news.ycombinator.com | 2024-01-05
Project mention: Hi, What could be the best HLS tool for implementing neural networks on FPGA | /r/FPGA | 2023-06-13FINN - https://github.com/Xilinx/finn
Check out Hidet [1]. Not as well funded, but delivers Python based ML acceleration with GPU support (unlike Mojo).
[1] https://github.com/hidet-org/hidet
Project mention: Borgo is a statically typed language that compiles to Go | news.ycombinator.com | 2024-04-30Not impossible but I guess you might end up with an extra runtime layer and some more dynamic operations will not be very fast. Or you restrict it to a subset of Python like this project does: https://github.com/zanellia/prometeo
You could of course write a bytecode VM in Golang but I guess that defeats the purpose.
Project mention: Cwerg: C-like language that can be implemented in 10kLOC | news.ycombinator.com | 2024-03-21Perhaps these have already been dealt with and I'm missing critical information. If so, my apologies. Great work, in any case.
[1] https://github.com/robertmuth/Cwerg/tree/master/FrontEnd#dis...
Python Compiler related posts
-
Pylyzer – A fast static code analyzer and language server for Python
-
Meta Used Monolithic Architecture to Ship Threads in Only Five Months
-
We are under DDoS attack and we do nothing
-
C++ Safety, in Context
-
The rust project has a burnout problem
-
SIMD in Pure Python
-
Hissp
-
A note from our sponsor - SaaSHub
www.saashub.com | 20 May 2024
Index
What are some of the best open-source Compiler projects in Python? This list will help you:
Project | Stars | |
---|---|---|
1 | tvm | 11,272 |
2 | Nuitka | 10,953 |
3 | Numba | 9,512 |
4 | hy | 4,789 |
5 | Coconut | 3,964 |
6 | cinder | 3,386 |
7 | alpa | 2,989 |
8 | Transcrypt | 2,813 |
9 | PeachPy | 1,951 |
10 | Cantonese | 1,146 |
11 | ModiScript | 1,034 |
12 | ShivyC | 1,019 |
13 | nimporter | 815 |
14 | shedskin | 786 |
15 | rickroll-lang | 735 |
16 | finn | 672 |
17 | hidet | 623 |
18 | prometeo | 617 |
19 | Pyverilog | 575 |
20 | devito | 527 |
21 | artiq | 405 |
22 | Cwerg | 410 |
23 | pytago | 371 |
Sponsored