-
-
Notifications
You must be signed in to change notification settings - Fork 52
dev call 20220113
Antonio, Ronan, Matti, Simon, Tim, Florian, Stepan, Mohaned
-
Ronan considers the core data struct "Numpy array" to be done (except of tp_traverse).
-
The main problem right now in Numpy: there are dtypes that do not have homogeneous types (more likes structures). So, Python objects could be anywhere in the native memory chunk. This makes the deallocation complicated. The root problem then is that we cannot call HPy API functions from tp_traverse (it might be executed by the GC itself). We would need to know the position of the Python objects. Ongoing discussion on: https://github.com/hpyproject/hpy/issues/252#issuecomment-1013224066
-
Antonio suggested to put this information into a C-level list such that we don't need the HPy context.
Let's open an issue for the tp_traverse problem.
- Simon: The string format API should clearly be separated between dealing with C variables or Python objects. PyErr_Format is used a lot. But we should analyze how exactly it is used. Do they mix C variables a lot?
- HPy is missing documentation about: can we memcpy a C-level array that contains HPyField? The answer is: In general, no! But doc doesn't say that.
- We were discussing a lot about if we should introduce an API that allows the programmer to get an HPy context out of nowhere. Let's continue discussion on https://github.com/hpyproject/hpy/issues/268
- Stepan: PR #276; introduced API for acquiring/releasing GIL
- Stepan: PR #279; introduced HPySequence_Contains
- Stepan: PR #281; added HPy_CLEAR macro
- Stepan: looks into adding PyErr_Format
- Stepan: looked at pybind11 but is not longer sure if that is useful.
- Mohaned: Working on porting Matplotlib to HPy Also needs PyErr_Format for that. Main issues: most code base is implemented in C++. HPy has compiling issues.
- 5 September 2024
- 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