[Numpy-discussion] A bite of C++

2021-08-25 Thread Serge Guelton
Hi folks, https://github.com/numpy/numpy/pull/19713 showcases what *could* be a first step toward getting rid of generated C code within numpy, in favor of some C++ code, coupled with a single macro trick. Basically, templated code is an easy and robust way to replace generated code (the C++ comp

Re: [Numpy-discussion] A bite of C++

2021-08-26 Thread Serge Guelton
On Wed, Aug 25, 2021 at 05:50:49PM -0500, Sebastian Berg wrote: > On Wed, 2021-08-25 at 17:48 +0200, Serge Guelton wrote: > > Hi folks, > > > > https://github.com/numpy/numpy/pull/19713 showcases what *could* be a > > first step > > toward getting rid of generated

[Numpy-discussion] Small update on conversion of %.c.src to %.cpp

2022-02-02 Thread Serge Guelton
Hi Folks, As already discussed a few months ago [1], I've started to move some *.src files to C++, based on the idea that the custom template engine of Numpy is very similar to C++ templates. This is a short update on the on-going translation. I've already converted the following sources: - sele

[Numpy-discussion] Re: Team Summit at SciPy 2022

2022-07-19 Thread Serge Guelton
On Tue, Jul 19, 2022 at 12:29:40PM -0700, Sebastian Berg wrote: > Hi all, > > Last week we had a team meeting at the SciPy conference with part of > the team calling in remotely. The main discussions were about SIMD and > updating our Roadmap. > > Most discussion should simply lead to an updated

[Numpy-discussion] Re: Adding bit_count ufunc

2022-11-25 Thread Serge Guelton
On Fri, Nov 25, 2022 at 08:09:02PM +0100, Sebastian Berg wrote: > Thanks for bringing this up again. The Python method exists and it > seems like relatively basic functionality. > > Overall, I am slightly in favor of adding the ufunc. So if nobody > voices an opinion that it doesn't seem a good