5 ms·
From the details on https://pypi.org/project/pyjion/ https://pypi.org/project/pyjion/ > Goal #1 is explicitly to add a C API to CPython to support JIT compiler
by Twirrim 5y ago
From the details on https://pypi.org/project/pyjion/ https://pypi.org/project/pyjion/
> Goal #1 is explicitly to add a C API to CPython to support JIT compilers.
Given the plural compilers, hopefully this means it's going to support multiple JITs, which would be interesting. Choose the right JIT for your particular workload.
- int_19h 5y agoThat particular statement was written several years ago. In practice, the API in question boils down to letting you plug in your own implementation of PyEval_EvalFrameEx. This has already been added in Python 3.9: https://www.python.org/dev/peps/pep-0523/ https://www.python.org/dev/peps/pep-0523/ As the PEP notes, this is useful for a lot more than just JIT. In particular, modern Python debuggers use it to dynamically patch bytecode to make breakpoints more efficient.