hpy icon indicating copy to clipboard operation
hpy copied to clipboard

HPy: a better API for Python

Results 69 hpy issues
Sort by recently updated
recently updated
newest added

Another subject related to #419 (with more explanation). See [my whole text](http://legi.grenoble-inp.fr/people/Pierre.Augier/python-numerical-ecosystem-deep-technical-issues-soon-fixed-through-the-hpy-project.html) to understand why I raise these questions about funding. ### Increase HPy funding? The Faster CPython project is...

In [February 2023's dev call](https://github.com/hpyproject/hpy/wiki/dev-call-20230202#decisions-for-release), we had some discussion about if we should have `HPyDict_GetItem` (similar to `PyDict_GetItem`). `PyDict_GetItem` has following semantic differences compared to the generic `PyObject_GetItem`: * It...

API design
HPy update in PyPy
HPy update in GraalPy

--- The current state in CPython and its issues: * user sets `m_size` in `PyModuleDef`, runtime allocates the state for the user when creating the module * getting the module...

Protocols can help remove abstraction overhead when possible. For example, consider the case of iterating over a sequence (list, tuple, array.array, etc.) that happens to contain integers. **Design goals** *...

API design
HPy update in PyPy
HPy update in GraalPy

We need to design an API to build `str` and `bytes` object. Before reading this issue, it is strongly suggested to read the [document](https://docs.hpyproject.org/en/latest/misc/str-builder-api.html) which summarizes the current CPython API...

API design

This is related to issue #169 . Although it is possible for pure types to extend any legacy type (in the sense that at the time of type creation, HPy...

#127 and #179 made it official that we can't create "half-ready" strings which are supposed to be filled after creation. However, there are cases in which this is a legitimate...

API design

These are the microbenchmarks: https://github.com/hpyproject/hpy/blob/6fcb15e13611f111cfb638573e84e9604458abf3/microbench/test_microbench.py#L103-L112 https://github.com/hpyproject/hpy/blob/99bf0425168e2c22902e2f8ff01b1bf9f59bd913/microbench/test_microbench.py#L165-L174 Here, I am comparing: - the version of `Foo` and `HTFoo` written using the *old Python/C API* - the version of `Foo` and `HTFoo`...

Adds support for specifying and using module state including the traverse and destroy slots. Module state can contain any plain C data and `HPyField`s. There is one thing missing: ability...

IMO, we should be using names derived from the the name of the class, not from the legacy C-API implementation. There may be other cases, but the obvious examples are:...

enhancement