cpython
pythran
cpython | pythran | |
---|---|---|
2 | 7 | |
515 | 1,969 | |
0.0% | - | |
0.0 | 8.1 | |
13 days ago | 10 days ago | |
Python | C++ | |
GNU General Public License v3.0 or later | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cpython
-
Codon: Python Compiler
Not to forget CPython's own faster-cpython project which aims at JIT compiling. [0]
Also JAX[1], PyTorch[2] come with JIT compilation specifically aimed at GPU kernels "fusing" multiple higher-level operation
And NumPy/Scipy (also) uses Pythran[3], an AOT compiler not too unsimilar to Numba.
[0] https://github.com/faster-cpython/cpython
-
Faster CPython Ideas – Issue Tracker for Faster CPython Project
Presumably development will be taking place on this organization's fork of cpython?
https://github.com/faster-cpython/cpython
Looks like they've also got a repo with some tools for profiling bytecode:
https://github.com/faster-cpython/tools
pythran
- Codon: Python Compiler
-
How Python virtual environments work
Numpy and Scipy are good reasons. Unfortunately Scipy does not even compile on FreeBSD lately, and I have opened three issues about it against Scipy and Pythran (and the fix was with xsimd).
https://github.com/serge-sans-paille/pythran/issues/2070
-
S6: A standalone JIT compiler library for CPython
In someone lands here seeking a maintained compiler for Python, there's a lot, on top of my head:
- Pythran (https://pythran.readthedocs.io) (ahead of time compiler)
-
Accelerate Python code 100x by import taichi as ti
Yes, I mean Pythran ( https://github.com/serge-sans-paille/pythran ). Thank you.
Was Nuitka better? Pythran is quite simple to install and use in Jupyter.
-
Omyyyy/pycom: A Python compiler, down to native code, using C++
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.
-
OpenAI Codex Python to C++ Code Generator
You might want to contact the author of Pythran [1], maybe something can be learned from what they do.
[1] https://github.com/serge-sans-paille/pythran/commits/master
-
PyO3: Rust Bindings for the Python Interpreter
[1] https://github.com/serge-sans-paille/pythran
What are some alternatives?
pyodide - Pyodide is a Python distribution for the browser and Node.js based on WebAssembly
rust-numpy - PyO3-based Rust bindings of the NumPy C-API
Cython - The most widely used Python to C compiler
setuptools-rust - Setuptools plugin for Rust support
Pyston - A faster and highly-compatible implementation of the Python programming language.
RustPython - A Python Interpreter written in Rust
codex_py2cpp - Converts python code into c++ by using OpenAI CODEX.
shedskin - Shed Skin is a restricted-Python-to-C++ compiler. Read the introduction below to learn about the restrictions.
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.
pybind11 - Seamless operability between C++11 and Python
dtparse - Fast datetime parser for Python written in Rust
pierogis - an image and animation processing framework