Omyyyy/pycom: A Python compiler, down to native code, using C++

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • pycom

    Discontinued A Python compiler, down to native code, using C++

  • py2many

    Transpiler of Python to many other languages

  • Cython doesn't consume python3 type hints and needs special type hints of its own. But it's certainly more mature than other players in the field.

    What we need is a rpython suitable for app programming and a stdlib written in that dialect.

    https://github.com/py2many/py2many/blob/main/doc/langspec.md

  • 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.

    InfluxDB logo
  • 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.

  • If you're looking for a version of this which actually does what it promises including for multithreaded code and code that uses complex extensions, check out Nuitka. It is actively incredible.

    https://nuitka.net/

  • mypy

    Optional static typing for Python

  • > doesn't consume python3 type hints

    Mypyc ships with mypy and does this. Mypy itself and Black are compiled with it, among other things.

    https://github.com/python/mypy/tree/master/mypyc

  • pythran

    Ahead of Time compiler for numeric kernels

  • The only project that compares 1:1 is Pythran: https://github.com/serge-sans-paille/pythran

    Pythran is fairly nice, and it really does work. I tried it last year and it compiles down to modifiable templated C++. I was able to use it to build Python for a highly specialized environment.

    All the others compile down to dynamically linked binaries, and that just puts them in the "other" box.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts