HPy: a better C API for Python
summary
HPy presents a C API that replaces PyObject pointers with owned handles, exposes a per-interpreter context vtable and supports two CPython backends: a thin wrapper and a slower universal mode that enables a single binary across PyPy, GraalPython and CPython. It claims near-native speed, runtime debug mode switchable at import time, experimental ports live on GitHub, project began 2019 and remains alpha with packaging for universal wheels* unresolved and broader use targeted around 2023.
AI-written summary · about
chapters (6)
- 0:00HPy introduction
- 3:19Python C API problems
- 12:29How HPy solves issues
- 20:00HPy universal mode
- 21:29Porting extensions to HPy
- 22:54HPy future status
related talks
22mPyPy hands-on
22mPyPy hands-on
22mPyPy and the future of the Python ecosystem
58mPython performance Past, Present, Future
42mThe state of PyPy
21mHiPy: Extracting High-Level Semantics From Python Code For Data Processing
16mPyHDL-IF: An Easy-to-Use Python/HDL Cross-Calling Interface
22mPyPy in production
