Schedule
Login

HPy: the future of Python C extensions

C extensions plays a big role in the Python ecosystem, but the existing Python/C API has become a burden for alternative implementations and for innovation of CPython itself. HPy is a joint project by PyPy, CPython, Cython, Numpy and GraalPython developers to design a new future proof API.

Abstract

HPy provides a new API for extending Python in C. In other words, you use #include <hpy.h> instead of #include <Python.h>. The talk will explain:

  1. Why the current Python/C API is problematic for alternative implementations such as PyPy and for CPython itself
  2. How HPy plans to solve the problem, and what is the migration path for existing extensions
  3. Why HPy is appealing for extension developers: in particular, higher performance on PyPy and GraalPython, and the “debug mode” which automatically catches many mistakes at runtime instead of hitting painful segfaults and/or memory leaks.
SpeakerAntonio Cuni
TrackPython & Friends
Audience LevelAdvanced
LanguageEnglish
Duration30 minutes
Speaker name:
Antonio Cuni
      Powered by Vercel Logo