hpy
hpy copied to clipboard
HPy: a better API for Python
There are some very fast `Py_Check` functions in CPython that just do masking on the type flags (see https://github.com/python/cpython/blob/d460c8ec52716a37080d31fdc0f673edcc98bee8/Include/object.h#L433). HPy has a hard time to compete with that if we...
I just noticed it by chance when trying something else: ``` $ cd /path/to/hpy/ $ pip wheel . $ unzip -l hpy-0.0.5.dev231+gd126697-cp38-cp38d-linux_x86_64.whl | grep hpy/debug 315 2022-06-02 22:29 hpy/debug/__init__.py 1065...
As described below, the current HPy/setuptools integration is a mess and could/should be vastly improved. And in general, we should try to engage more with the broader setuptools/pypa/packaging community. This...
One of our goals is to get numpy to use HPy. We expect this to become the "killer feature" of HPy from the user point of view: a version of...
Follow-up of https://github.com/hpyproject/hpy/issues/319
In the debug mode `HPyType_FromSpec` should extend the user provided structure with a header containing magic number to check consistency (and possibly some additional debug info if there is any...
This is an attempt to start a discussion on how to implement function calls and function definitions. In the following, "functions" and "methods" are used interchangeably. First, we need to...
We discussed having a stack-allocated context some time ago but never really made a decision nor summarized everything. I wrote a document about that. Since that seemed to be a...
We have two options: * only support `HPy_VISIT` with explicit arguments. `tp_traverse` and co. are one of the few slots, which will require bit more work when migrating to HPy...
Cpython recently added support for it ans it generally give free performance gains https://github.com/python/cpython/commit/214eb2cce5caa99f476ae8abd406077e2c293a3c