thautwarm / restrain-jit

The first and yet the only CPython compatible Python JIT, over the world.(julia backend: https://github.com/thautwarm/RestrainJIT.jl)
MIT License
107 stars 6 forks source link

corresponding python C-APIs to intrinsics #1

Open thautwarm opened 5 years ago

thautwarm commented 5 years ago

All intrinsics are listed here: https://github.com/thautwarm/restrain-jit/blob/master/restrain_jit/abs_compiler/py_apis.py

As for the Julia backend, each of those instrinsics should be implemented here: https://github.com/thautwarm/RestrainJIT.jl/blob/master/src/py_apis.jl

thautwarm commented 5 years ago

Also, this could be done as fast as CPython if we keep calling python level functions away and use low level C-APIs instead. EDIT: https://github.com/python/cpython/blob/master/Python/ceval.c