
On Mon, Feb 1, 2021 at 2:16 PM Simon Cross <hodgestar@gmail.com> wrote:
HPy and PEP 620 are largely unrelated. They are inspired by some of the same issues, but are completely different things. HPy can (and in the case of CPython is being) implemented on top of the existing C API, and so doesn't require a PEP.
In my opinion, the main advantage of HPy over the existing C API is that it's faster on PyPy. It doesn't provide advantage for CPython or for existing extensions using the C API.
The PEP 620 prepares CPython code base for future optimizations. It has a different scope.
HPy and PEP 620 projects can evolve in parallel, they are not incompatible ;-) But maybe if the PEP 620 can be fully implemented, it might become easier to port extension modules to HPy. But right now, it's not the case.
Victor
Night gathers, and now my watch begins. It shall not end until my death.