Jul-19-2020, 08:56 PM
(This post was last modified: Jul-19-2020, 08:58 PM by jimy_byerley.)
Hello everyone !
It's been a years now that I'm using numpy and thinking about it, my opinion is that it IS good, but it can be BETTER !
I open this thread to discuss my conclusions with you and get your feelings :)
I don't feel satisfied by the current API, I recently published a proposal of a new API that would be better than the current numpy (as far as I see it).
That manifest explains all the reasons I think we need a better numpy, but just to give some points:
Be careful, my manifest is short, hence is written only for experienced python/numpy users
Anyway, what are, folks your feelings about this ?
It's been a years now that I'm using numpy and thinking about it, my opinion is that it IS good, but it can be BETTER !
I open this thread to discuss my conclusions with you and get your feelings :)
I don't feel satisfied by the current API, I recently published a proposal of a new API that would be better than the current numpy (as far as I see it).
That manifest explains all the reasons I think we need a better numpy, but just to give some points:
- Not polymorphic, not dynamic
We can't subclass the numpy array to have specialized versions of it, for instance there is no dynamically extendable array (like lists with append method), because it's impossible to do so in numpy.
- Difficult to extend
It's very difficult to add custom dtypes. So the interest of a numpy array as a storage is limited because we need to convert back any retreived data when we need it, and we can't use it inplace.
- Inefficient for python data access
That's the cost of the great flexibility of the array type: accessing a np.array element by element from python is less efficient than using a list or even a dict containing the same data (performance is lost in checks).
Be careful, my manifest is short, hence is written only for experienced python/numpy users

Anyway, what are, folks your feelings about this ?