Intrepydd compiles Python code with type annotations to optimized C++ code. Check out our paper to learn more: Intrepydd: performance, productivity, and portability for data science application kernels.
A web tool is now available to try Intrepydd online: https://tongzhou80.github.io/intrepydd-web/index.html.
Anaconda (Python3) is required to run Intrepydd. Install intrepydd using pip
:
pip install intrepydd
import intrepydd
from intrepydd import float64
def foo() -> float64:
a = 1.0
b = 2.0
c = (a + b) * 3.0
return c
foo1 = intrepydd.compile(foo)
print(foo1())