Home

Awesome

tpythonpp

A tiny GIL-less python implementation (based on TinyPy), written in Pythonic++ (a dialect of C++). TPython++ is used by Panjea.com to translate Pythonic++ to WASM. http://www.panjea.com

Benchmarks

alt text

alt text

Ahead of Time Compiled Python

alt text

AOTPY

Ahead of time compiled Python must follow strict rules inorder to be conformant for automatic translation to C++. These rules include:

aotpy.py

Front end build script aotpy.py will try to ahead of time compile your python script, otherwise it will fallback to compiling just bytecode.

example:

cd tpythonpp
./aotpy.py benchmarks/recursive_fib.py 

History

TinyPy is the smallest Python implementation ever, just 64K, created by Phil Hassey in 2008. TPython++ is based on RainWoodMans fork of TinyPy. https://github.com/rainwoodman/tinypy The AOT translator is based on a higher level form of Pythonic++ syntax. The TPython interpreter itself is written in low level Pythonic++

New Articles

https://medium.com/@judge_raptor/2x-faster-than-python-7c15ab0a9286

https://medium.com/@judge_raptor/77x-faster-than-rustpython-f8331c46aea1

https://medium.com/@judge_raptor/aotpy-52x-faster-than-python-2bda98ab5e57

https://medium.com/@judge_raptor/escaping-the-interpreter-5675dfda15d3

https://dev.to/djraptor11/blender-destructive-physics-19o4

https://dev.to/djraptor11/zero-hardcoded-values-2c9j