HPy: A Better C API for Python

Published: 05 December 2022
on channel: Code Geek
185
9

Learn about HPy, a better C API for Python. It's a new C API designed from the ground
CPython: The Python Programming Language
☞ https://morioh.com/p/d1fa99129fd9
18 Python scripts that help you write code faster
☞ https://morioh.com/p/4f4b74ba17cc
APIs Tutorial for Beginners - What, Why and How to Use an API?
☞ https://morioh.com/p/422b616d71a2

Learn about HPy, a better C API for Python. It's a new C API designed from the ground


The official Python C API is specific to the current implementation of CPython. It has served us well and forms the basis upon which our entire extension ecosystem rests.
However, it exposes a lot of internal details which makes it hard to implement it for other Python implementations (e.g. PyPy, GraalPython, Jython, IronPython, etc.), and prevents major evolutions of CPython itself, such as using a GC instead of refcounting, or removing the GIL.

This is where HPy comes in. It's a new C API designed from the ground up according to the following goals:
running much faster on alternate implementations, and at native speed on CPython
making it possible to compile a single binary which runs unmodified on all supported Python implementations and versions
being simpler and more manageable than the Python/C API
providing an improved debugging experience.

We'll discuss its current status and show how existing extensions can be gradually ported to it.

#HPy #Python #Morioh

Original video at    • HPy: a better C API for Python - pres...  

Note: If you have any copyright issue with the content used in our channel or you find something that belongs to you, before you claim it to Youtube, SEND US A MESSAGE and the respective content will be DELETED right away. Thanks for understanding.

◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️
👕 Merchandise: https://www.moteefe.com/store/developer?cp...
🌎 Social Network for Developers: https://morioh.com/
📱 Twitter: https://twitter.com/moriohdotcom


On this page of the site you can watch the video online HPy: A Better C API for Python with a duration of hours minute second in good quality, which was uploaded by the user Code Geek 05 December 2022, share the link with friends and acquaintances, this video has already been watched 185 times on youtube and it was liked by 9 viewers. Enjoy your viewing!