Re:The computers are fast, but you don't know it
by gilbetron on Thursday June 16, 2022 @08:48PM
(#31772797)
Aren't the fast parts of numpy written in C?
[ Parent
| on HN ]
Re:The computers are fast, but you don't know it
by gpm on Thursday June 16, 2022 @09:06PM
(#31772918)
And fortran. Which really doesn't matter that much as long as that doesn't leak to the users of numpy, and it doesn't really. The only issue is that it means if you're doing something that doesn't fit the APIs exposed by the native code (in a way where the hot loops are in native code) it's roughly as slow as normal python.
Re:The computers are fast, but you don't know it
by gilbetron on Friday June 17, 2022 @08:18AM
(#31777010)
But it does for the argument of a language being fast, which is what we are talking about here. I don't think it is an appropriate argument to say "Python is fast, look at numpy", when the core pieces are written in C/Fortran. It is disingenuous, at least to me.