Live data from Hacker News

Article claims hand rolled C code can perform dot product faster than Numpy

medium.com

1–6 of 6 posts

Re: Article claims hand rolled C code can perform dot product faster than Numpy

#3
I don’t know how the inner-workings of NumPy work...but this article seems quite plausible because it’s making use of parallel computation in order to achieve a faster result.

The title just seems to imply skepticism over what looks to be a legit approach.

Re: Article claims hand rolled C code can perform dot product faster than Numpy

#4
> Have you ever wondered how does NumPy perform its complex computations so fast? The secret is that it uses lower level programming language — C.

I thought NumPy used the LAPACK libraries at its core, which are written in Fortran:

https://en.wikipedia.org/wiki/LAPACK?wprov=sfla1

Re: Article claims hand rolled C code can perform dot product faster than Numpy

#5
post #4

> Have you ever wondered how does NumPy perform its complex computations so fast? The secret is that it uses lower level programming language — C. I thought NumPy used the LAPACK libraries at its core, which are written in Fortran: https://en.wikipedia.org/wiki/LAPACK?wprov=sfla1

Same. Which is why this confuses me.

Re: Article claims hand rolled C code can perform dot product faster than Numpy

#6
post #3

I don’t know how the inner-workings of NumPy work...but this article seems quite plausible because it’s making use of parallel computation in order to achieve a faster result. The title just seems to imply skepticism over what looks to be a legit approach.

Ya. The article seems plausible, but NumPy uses Blas/Lapack which can do parallel computation, so thats what is confusing about it to me.