Python Compiler

Open-source Python projects categorized as Compiler

Top 23 Python Compiler Projects

  1. codon

    A high-performance, zero-overhead, extensible Python compiler with built-in NumPy support

    Project mention: Common Misconceptions about Compilers | news.ycombinator.com | 2024-12-09

    Well, the truth is there's a lot more to JITing than what I wrote in the article, just because JITing didn't fit the vibe of the rest of the article that well.

    Anyway, yes theoretically you can. Recently folks creating Codon (https://github.com/exaloop/codon) did it for Python using a cool form of type inference.

    That said, I don't think any mainstream JS VMs do it. Most recent work I know in AOT compilation for JS seems to use some profile-guided optimization and not static type inference. For example, look at the architecture at 6:38 and also discussion about types here: https://youtu.be/pVhcyKf3efM?t=469). Something similar seems to be true for the project described here: https://www.youtube.com/watch?v=_T3s6-C38JI

    The story seems to be a bit different for hopc: https://www.youtube.com/watch?v=iY1EXHQ6IeQ

  2. Sevalla

    Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!

    Sevalla logo
  3. Nuitka

    Nuitka is a Python compiler written in Python. It's fully compatible with Python 2.6, 2.7, 3.4-3.13. You feed it your Python app, it does a lot of clever things, and spits out an executable or extension module.

    Project mention: Lisp-stat: Lisp environment for statistical computing | news.ycombinator.com | 2025-06-15

    In my view, the biggest advantages of ahead-of-time compilation is lower binary size, higher performance, and binary portability (in a sense of being able to copy the binary and run it on another system with same architecture and OS, not in the usual sense of being easy to run to a different system architecture or OS).

    It is somewhat unknown that Python itself can be compiled, using Nuitka [0] compiler. It still runs Python code, so the performance increase is not as extreme as one would get from rewriting in a fully statically typed code, but the AOT compiled C code is still faster than the interpreter.

    [0] https://nuitka.net/

  4. tvm

    Open deep learning compiler stack for cpu, gpu and specialized accelerators

    Project mention: Apache TVM | news.ycombinator.com | 2024-09-11
  5. Numba

    NumPy aware dynamic Python compiler using LLVM

    Project mention: I Don't Like NumPy | news.ycombinator.com | 2025-05-15

    Have you heard of JIT libraries like numba (https://github.com/numba/numba)? It doesn't work for all python code, but can be helpful for the type of function you gave as an example. There's no need to rewrite anything, just add a decorator to the function. I don't really know how performance compares to C, for example.

  6. hy

    A dialect of Lisp that's embedded in Python

    Project mention: Embedding Python in Elixir, It's Fine | news.ycombinator.com | 2025-02-25

    Elixir is just Lisp with a facelift[1], and lisps can be built on Python[2]. It stands to reason that an elixir-like can be built on Python too, so you could embed the Python runtime in Elixir but Elixir-likes are used to code for both.

    1: https://wiki.alopex.li/ElixirForCynicalCurmudgeons

    2: https://hylang.org/

  7. Coconut

    Simple, elegant, Pythonic functional programming.

    Project mention: Uncommon Uses of Python in Commonly Used Libraries | news.ycombinator.com | 2025-07-07

    Check out Coconut (https://github.com/evhub/coconut), which implements an entire functional programming language as a Python superset that compiles to Python bytecode.

  8. cinder

    Cinder is Meta's internal performance-oriented production version of CPython. (by facebookincubator)

    Project mention: Project Verona: Fearless Concurrency for Python | news.ycombinator.com | 2025-05-18

    Is anyone familiar with Instagram's cinder?

    https://github.com/facebookincubator/cinder

    cinder includes changes for immutable module objects. I wonder if the implementation is similar? Or is cinder so old that it would be incompatible with the future noGil direction?

  9. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  10. Transcrypt

    Python 3.9 to JavaScript compiler - Lean, fast, open!

  11. xla

    Enabling PyTorch on XLA Devices (e.g. Google TPU)

    Project mention: AI Model Optimization on AWS Inferentia and Trainium | dev.to | 2024-11-03

    As discussed in a previous post, Neuron Cores are treated as XLA devices and the torch-neuronx Python package implements the PyTorch/XLA API. Consequently, any optimization opportunities provided by the OpenXLA framework, and specifically those offered by the PyTorch/XLA API, can be leveraged on AWS Inferentia and Trainium. In this section we consider a few of these opportunities.

  12. PeachPy

    x86-64 assembler embedded in Python

  13. ShivyC

    C compiler created in Python.

  14. ModiScript

    Acche din aa gaye

  15. shedskin

    Shed Skin is a restricted-Python-to-C++ compiler. Read the introduction below to learn about the restrictions.

    Project mention: jank Is C++ | news.ycombinator.com | 2025-07-11

    shedskin isn't actively developed ... or at least it wasn't for like 10 years https://github.com/shedskin/shedskin/graphs/contributors

  16. finn

    Dataflow compiler for QNN inference on FPGAs

  17. nimporter

    Compile Nim Extensions for Python On Import!

  18. 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/

  19. Pyverilog

    Python-based Hardware Design Processing Toolkit for Verilog HDL

  20. hidet

    An open-source efficient deep learning framework/compiler, written in python.

  21. prometeo

    An experimental Python-to-C transpiler and domain specific language for embedded high-performance computing

  22. devito

    DSL and compiler framework for automated finite-differences and stencil computation

  23. artiq

    A leading-edge control system for quantum information experiments

  24. scrapscript

    A functional, content-addressable programming language.

    Project mention: Into CPS, Never to Return | news.ycombinator.com | 2024-12-25

    * https://bernsteinbear.com/blog/row-poly/

    and the repo for the main implementation: https://github.com/tekknolagi/scrapscript

  25. hissp

    It's Python with a Lissp.

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python Compiler discussion

Log in or Post with

Python Compiler related posts

  • Beware of Fast-Math

    2 projects | news.ycombinator.com | 31 May 2025
  • I built a hardware processor that runs Python

    11 projects | news.ycombinator.com | 28 Apr 2025
  • Performance of the Python 3.14 tail-call interpreter

    8 projects | news.ycombinator.com | 10 Mar 2025
  • It is not a compiler error. It is never a compiler error (2017)

    4 projects | news.ycombinator.com | 23 Feb 2025
  • 5 Best Programming Languages to Learn: Decoding the Future

    4 projects | dev.to | 22 Feb 2025
  • Swift's server support powers Things Cloud

    1 project | news.ycombinator.com | 21 Feb 2025
  • ArXiv LaTeX Cleaner: Clean the LaTeX code of your paper to submit to ArXiv

    3 projects | news.ycombinator.com | 31 Jan 2025
  • A note from our sponsor - Sevalla
    sevalla.com | 1 Sep 2025
    Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more! Learn more →

Index

What are some of the best open-source Compiler projects in Python? This list will help you:

# Project Stars
1 codon 15,887
2 Nuitka 13,713
3 tvm 12,573
4 Numba 10,605
5 hy 5,267
6 Coconut 4,245
7 cinder 3,689
8 Transcrypt 2,899
9 xla 2,660
10 PeachPy 2,012
11 ShivyC 1,063
12 ModiScript 1,037
13 shedskin 919
14 finn 859
15 nimporter 845
16 rickroll-lang 764
17 Pyverilog 720
18 hidet 718
19 prometeo 641
20 devito 617
21 artiq 479
22 scrapscript 443
23 hissp 425

Sponsored
Deploy and host your apps and databases, now with $50 credit!
Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!
sevalla.com

Did you know that Python is
the 2nd most popular programming language
based on number of references?