-
-
Notifications
You must be signed in to change notification settings - Fork 52
dev call 20230302
Du Toit Spies edited this page Mar 2, 2023
·
4 revisions
Tim, Florian, Antonio, Simon, Petr V., Du Toit, Mohaned
Still working on the release 0.9.
-
Merged PRs:
-
PRs in progress:
-
Numpy/HPy
-
Matti implemented following HPy APIs used in the Numpy/HPy port:
HPy HPyContextVar_New(HPyContext *ctx, const char *name, HPy default_value); int HPyContextVar_Get(HPyContext *ctx, HPy context_var, HPy default_value, HPy *result); HPy HPyContextVar_Set(HPyContext *ctx, HPy context_var, HPy value);
-
Florian implemented (PRs are open or soon to be opened):
int HPyType_IsSubtype(HPyContext *ctx, HPy sub, HPy type); const char *HPyType_GetName(HPyContext *ctx, HPy type); HPy HPyUnicode_FromEncodedObject(HPyContext *ctx, HPy obj, const char *encoding, const char *errors); HPy HPyUnicode_Substring(HPyContext *ctx, HPy obj, HPy_ssize_t start, HPy_ssize_t end); HPy HPyDict_Keys(HPyContext *ctx, HPy h);
-
still open:
HPy HPySeqIter_New(HPyContext *ctx, HPy seq); int HPySlice_Unpack(HPyContext *ctx, HPy slice, HPy_ssize_t *start, HPy_ssize_t *stop, HPy_ssize_t *step);
-
- Petr suggests to have a short HPy intro as well since not everyone will know it.
- Tim points out that we should mentioned/compare/involve Mark's new C API proposal
- Simon thinks that concentrating too much on Mark's proposal could
- Tim: in contrast to Mark's C API, HPy also addresses the problem that the C API is very tangled with CPython implementation.
- Simon argues, the Microsoft team (which tries improve interpreter performance) would have an easier life if HPy would already be the default.
- Simon points out that if CPython ignores HPy, it will be dead in the water.
- Petr thinks that it will be very hard that CPython core devs commit to something concerning HPy (since also a lot of the devs do not really care about the C API); but he thinks that HPy is still in a good position.
- Simon asks: do CPython core devs share the same frustration concerning the C API?
- Petr answers: frustrations are the same among core devs and a few (including Petr) are convinced that HPy (or an approach like this) is the way to go.
- Our (HPy team) intention of the language summit talk is to get information about steps forward.
- Petr doesn't think that a PEP would really help.
- We could aim to get a statement like: "Everyone interested in the C API should support HPy"
- Florian will prepare some numbers for Numpy/HPy game of life for PyCon US
- See also discussion on PR 309
- Let's go for vectorcall calling convention (i.e. C function signature
HPy (*fun)(HPyContext *ctx, const HPy *args, HPy_ssize_t nargs, HPy kwnames)
) as primary calling mechanism and convention (also changeHPyFunc_keywords
to that). - We should provide some helpers for easy migration from
tp_call
. This could be some macro that generates a trampoline or just some helper functions that do conversion to the different calling convention. - We can start without the flag
HPy_VECTORCALL_ARGUMENTS_OFFSET
and maybe add it later if it turns out to be useful.
- Du Toit is preparing work for internship at Oracle and writing up proposals for his Masters degree. Currently doing background research on potential topics like Cython or CPython's subinterpreters. The current state of the HPy Cython port was discussed, as well as some basics on subinterpreters.
- 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