Re: [Numpy-discussion] Proposal: NEP 41 -- First step towards a new Datatype System

2020-03-23 Thread Travis Oliphant
On Sun, Mar 22, 2020 at 1:33 PM Sebastian Berg wrote: > Hi, > > thanks for the feedback! > > On Sat, 2020-03-21 at 15:58 -0500, Travis Oliphant wrote: > > Thanks for publicizing this and all the work that has gone into > > getting > > this far. > > > > I'm extremely supportive of the foundational

Re: [Numpy-discussion] Proposal: NEP 41 -- First step towards a new Datatype System

2020-03-23 Thread Francesc Alted
On Sun, Mar 22, 2020 at 7:33 PM Sebastian Berg wrote: > Hi, > > thanks for the feedback! > > On Sat, 2020-03-21 at 15:58 -0500, Travis Oliphant wrote: > > Thanks for publicizing this and all the work that has gone into > > getting > > this far. > > > > I'm extremely supportive of the foundational

Re: [Numpy-discussion] New DTypes: Are scalars a central concept in NumPy or not?

2020-03-23 Thread Chris Barker
I've always found the duality of zero-d arrays an scalars confusing, and I'm sure I'm not alone. Having both is just plain weird. But, backward compatibility aside, could we have ONLY Scalars? When we index into an array, the dimensionality is reduced by one, so indexing into a 1D array has to g

Re: [Numpy-discussion] Good use of __dunder__ methods in numpy

2020-03-23 Thread Chris Barker
On Thu, Mar 5, 2020 at 2:15 PM Gregory Lee wrote: > If i can get a link to a file that shows how dunder methods help with >> having cool coding APIs that would be great! >> >> > You may want to take a look at PEP 465 as an example, then. If I recall > correctly, the __matmul__ method described in

Re: [Numpy-discussion] New DTypes: Are scalars a central concept in NumPy or not?

2020-03-23 Thread Sebastian Berg
On Mon, 2020-03-23 at 11:45 -0700, Chris Barker wrote: > I've always found the duality of zero-d arrays an scalars confusing, > and > I'm sure I'm not alone. > > Having both is just plain weird. I guess so, it is a tricky situation, and I do not really have an answer. > > But, backward compatib

Re: [Numpy-discussion] Proposal: NEP 41 -- First step towards a new Datatype System

2020-03-23 Thread Sebastian Berg
On Mon, 2020-03-23 at 18:23 +0100, Francesc Alted wrote: > > If we were designing a new programming language around array > > computing > > principles, I do think that would be the approach I would want to > > take/consider. But I simply lack the vision of how marrying the > > idea > > with the sc