data-apis / array-api-strict

Strict implementation of the Python array API (previously numpy.array_api)
http://data-apis.org/array-api-strict/
Other
7 stars 4 forks source link

Only support NumPy 2.0 as a backend #21

Open asmeurer opened 5 months ago

asmeurer commented 5 months ago

Obviously not just yet, but once NumPy 2.0 is released and stable, we should drop support for NumPy 1.26 as a backend. That would allow us to remove all the compatibility code and only have code related to strictness.

The actual backend in array-api-strict doesn't really matter that much, but this would limit the usability for libraries that use NumPy internally in addition to the array API, so we should only do this once the ecosystem seems generally caught up on NumPy 2.0 support.

asmeurer commented 4 months ago

Also I'm not sure if it's worth trying to implement some of the new dlpack features without direct numpy support for them (I need to do some more investigation), so we may want to just always keep this package pinned to the latest numpy. See #35

asmeurer commented 2 months ago

NumPy 2.0 is out. This is low priority right now since everything works as is, but we definitely could simplify a lot of the code if we required NumPy 2.0.