dev call 20211202
Stepan Sindelar edited this page Dec 3, 2021
·
2 revisions
Tim, Florian, Stepan, Antonio, Ronan, Matti
- Ronan managed to port some of the members of ndarary to HPy
- There were problems with stack-allocated dummy objects. Ronan fixed that upstream (?).
- Still one of the main problems: getting an HPyContext to call HPy functions from legacy C code. This is in particular required for Numpy's C API (which is aligend with the Python C API). We would now need to overlay every function with an HPy version (there are about 150 of them).
- Antonio suggested: if we introduce an API to get an HPyContext (out of thin air), it should only be possible in legacy mode.
- Ronan changed his mind on the discussed callback approach (discussed in the previous HPy dev call); he thinks its not feasible for Numpy.
- Matti suggested to go the way via PyBind11 (probably less effort).
- Issue for further discussion regarding API for getting the context: https://github.com/hpyproject/hpy/issues/268
Plans for HPy 0.0.4 -----------------
- Since PyPy is currently low on dev resources, we aim for a release in March 2022.
- We will include everything on master.
- We were discussing the problem of passing generic data across the boundary in a binary compatible. This should be a replacement for fromat string + varargs. One idea is to have sevaral primitve arrays (one for int64, double, and pointer etc).
- Ronan thinks that HPyField is not very nice to use. While in CPython, one usually just uses PyObject * (and can therefore also directly use it for anything else), HPyField always requires a separate load operation. Maybe we can reduce the pain by providing macros that generate accessors.
- We were also discussing if HPyLoad and HPyStore may fail. The conclusions was that it can but only with fatal errors. So, no need for error checking.
- Stepan: PR #253; extracts code examples to snippets that are actually tested in the CI and referenced from the docs.
- Stepan: PR #256, #259, #264: Debug mode improvements.
- Stepan: PR #256; Added CI job that runs main tests with a Python debug build.
- Ronan: PR #257; Don't clobber legacy tp_dealloc unnecessarily.
- Florian: PR #261; Fix: do not trave uninitialized HPyField.
- Florian: PR #262; Refactor HPyModuleDef; also migrate piconumpy-hpy
- Florian: PR #265; Re-enabled cppcheck in the CI but this is using the version from Ubuntu which is currently 1.90.
- Florian: PR #251; making progress on the call API.
- Florian: PR #8 (ujson-hpy); Migrate to changed HPyModuleDef, fix tests and add GH Actions for tests.
- Florian: Ongoing work on Cython/HPy; publishing PR in the next days.
- Florian is continuing work on Cython/HPy.
- Florian will create a micro benchmark for HPyField.
- Someone of the Graal team will probably help to make progress with Numpy.
- Stepan will finish PRs in progress/review.
- 4 April 2024
- 7 March 2024
- 1 February 2024
- 11 January 2024
- 7 December 2023
- 9 November 2023
- 5 October 2023
- 14 September 2023
- 3 August 2023
- 6 July 2023
- 1 June 2023
- 4 May 2023
- 13 April 2023
- 2 March 2023
- 2 February 2023
- 12 January 2023
- 1 December 2022
- 3 November 2022
- 6 October 2022
- 8 September 2022
- 4 August 2022
- 7 July 2022
- 2 June 2022
- 5 May 2022
- 7 April 2022
- 3 March 2022
- 3 February 2022
- 13 January 2022
- 2 December 2021
- 4 November 2021
- 7 October 2021
- 2 September 2021
- 12 August 2021
- 8 July 2021
- 6 May 2021
- 4 March 2021
- 7 January 2021
- 3 December 2020
- 5 November 2020