Tracing np.add, all the way down (blog.veitheller.de)
56 pointsby luu5 days ago3 comments
aadyachinubhai 2 hours ago
The `.c.src` files with the @arch@ like dispatching logic is specific to numpy. Also, they are currently making efforst to shift to C++ templates using Google's Highway project. I worked on porting `np.negative` to it!
bobmarleybiceps 10 hours ago
I sort of wish they used c++ for some of the template stuff, especially since the code base already seems to have some C++ iirc.
I also contributed a tiny bit in the past, and their C template system was a surprise. (but this is cool and I love numpy anyway lol)
tonnydourado 12 hours ago
That was some lovely spelunking XD