News for hackers. Stuff that matters.
Re:HPy – A better C API for Python by trkannr on Sunday October 06, 2024 @07:14AM (#41756333)
After cpyext and cffi, this is the third attempt, largely driven by PyPy people, to get a C-API that people want to use.

If they succeed and keep the CPython "leaders" who ruined the development experience and social structure of CPython out of PyPy, PyPy might get interesting. If they don't keep them out, those "leaders" will merrily sink yet another project.

Re:HPy – A better C API for Python by filmor on Sunday October 06, 2024 @07:47AM (#41756454)
cffi replaces ctypes, which is a completely different thing. cpyext is a reimplementation of the Python C-API, so no attempt at improving the API.

HPy on CPython uses the existing C-API under the hood, so there is zero need to build up some keep someone out...

Re:HPy – A better C API for Python by kagerl on Sunday October 06, 2024 @08:04AM (#41756536)
cffi is used to wrap c libraries. Only a masochist would use ctypes to wrap a whole library. While both are technically FFIs, it does not make sense to compare them. From a conceptual perspective, cffi was written to replace the C-API for C modules.
Re:HPy – A better C API for Python by VagabundoP on Sunday October 06, 2024 @02:31PM (#41759054)
Expand here on your use of double quotes and the subtext of your comment if you please.