3 ms·
> Numpy and Scipy are, I'm going to bet, mostly C. You'd be surprised; About 25% of SciPy (much of the numerical computing portions) are in FORTRAN. It turns o
by tylerhou 7y ago
> Numpy and Scipy are, I'm going to bet, mostly C.
You'd be surprised; About 25% of SciPy (much of the numerical computing portions) are in FORTRAN. It turns out that decades of compiler/numerical computing research has made the FORTRAN compiler generate numerical code which runs faster than GCC/Clang today.
https://github.com/scipy/scipy https://github.com/scipy/scipy
- cyphar 7y agoMost people use the GCC Fortran front-end. I think the main reason you get speed from Fortran is because it provides more hints to the compiler, but also because generations of PhD students have been optimising compilers for Fortran-specific performance gains.
- pjmlp 7y agoPeople that care about Fortran performance use Intel, PGI, IBM compilers.
- Waterluvian 7y agoWow. That's a really cool thing to see. Thanks for sharing. So Python bindings around Fortran. Cool.
- deleted 7y ago[deleted]