Skip to content

dev call 20221103

Florian Angerer edited this page Dec 1, 2022 · 2 revisions

Dev Call: 3 November 2022

Present

Stepan, Florian, Antonio, Tim, Mohaned, Matti, Petr V., Du Toit, Simon, Ronan

Agenda

  • Status updates
  • Next release: 0.9

Release 0.9

  • Antonio proposed that we switch to a date-based version scheme to avoid confusion with the ABI version.

Misc

  • Antonio opened an issue for setuptools
  • Last answer on discourse: it's fine to extend command build_ext and create a stub.
  • Petr thinks that we don't need to worry about other build systems too much.
  • Currently, the native ext is preferred over the stub. Side effect: HPY_DEBUG is ignored.
  • Petr is also thinking about some new kind of argument clinic like HPy (he plans to reuse .pyi file syntax).

Numpy/HPy

  • Mohaned continued migration of Numpy/HPy; removed legacy API usages and finally can do import numpy (so far, we could just do import _multiarray_umath.
  • We noticed that importing _multiarray_umath is much slower on HPy than compared to the C API version.
  • Numpy is using PyThreadState_GetDict(); what to do about in in HPy? Petr said that this dict is not really thread-local. So, we could just use HPyGlobal or module state.
  • HPyGlobal is very convenient in the incremental migration story but Petr noticed that it may be problematic in cases of multi-phase init where you create multiple module objects (of the same module) in the same interpreter. So, we should probably make HPyGlobal just optional.
  • There will be a flag (multiple-GIL flag) on CPython to enable (see PEP 684).
Clone this wiki locally