<Hodgestar>
Where by "don't call the Python API" I mean "don't call the Python API all over the place and deep in the call stack". Have C code work with things you give that don't require the context.
<Hodgestar>
I think HPy devs and the CPython devs are talking past each other somewhat in Mark's repo, because the CPython devs want to redevelop the C API for the core of CPython, while HPy is focussed on the API for extension development.
<cfbolz>
yeah, I agree with that. I think there are really two different ways to use the C API
<phlebas>
maybe the "real" goal should be that if the API/ABI for Python is broken, they should really move to a world where the internal C API is really just unstable and version specific, and the external API is something else (like HPy)? and then the choice of the extensions is to compile in "CPython mode" oder "Universal mode" (or even "PyPy mode", "GraalPy mode", "Rust mode", if any of those should make sense and the relevant impls provide it)
<phlebas>
which is kind of how we approached hpy, but maybe not how mark is approaching this right now? i am not sure I can infer that from reading the issues on the repo or the current discourse discussion
<Hodgestar>
My assumption is that Mark's immediate need is to break some parts of the C API for performance gains, but that is really just a guess. And on that front I think we all agree / already knew that the current C API hampers performance for implementations other than *past* CPythons.
<cfbolz>
yes
<cfbolz>
but the strategy of saying "let's break the API once, in exactly the right way so that now current CPython is faster" is not very sustainable