Sunday, November 7, 2021

Pythran

Pythran is an ahead of time compiler for a subset of the Python language, with a focus on scientific computing. It takes a Python module annotated with a few interface descriptions and turns it into a native Python module with the same interface, but (hopefully) faster.

It is meant to efficiently compile scientific programs, and takes advantage of multi-cores and SIMD instruction units.

Pythran is a Python-to-c++ translator that turns Python modules into native c++11 modules. Pythran is not a full Python-to-c++ converter, as is shedskin. Instead it takes a subset of the Python language and turns it into heavily templatized c++ code instantiated for your particular types.

https://pythran.readthedocs.io/en/latest/ 

https://www.youtube.com/watch?v=6a9D9WL6ZjQ 

No comments:

Post a Comment