News for hackers. Stuff that matters.
Re:Fortran by galangalalgol on Monday August 28, 2023 @07:18AM (#37292377)
BLAS/LAPACK are written in fortran was the point I think. There are eigen and nalgebra certainly, but neither exports as cleanly to python, and neither is significantly (if at all) faster.

CuBLAS on the other hand makes a lot of sense to use from python if you have the right hardware.

Re:Fortran by xmcqdpt2 on Monday August 28, 2023 @07:42AM (#37292565)
The reference implementation of BLAS that you should absolutely not use is written in Fortran. The actual implementations are written in C/C++/ASM.

That's not to say you should use C yourself, memory management is a lot nicer in Fortran, for multidimensional arrays. You can stack allocate arrays inside functions and modern fortran has move semantics. Arrays are contiguous even if they have multiple index. It's generally a nice language for math, has good C API integration (both as caller and callee) and compiles down to small libraries without runtimes.

Re:Fortran by galangalalgol on Monday August 28, 2023 @09:17AM (#37293471)
Thanks! I did not most any of that. Except for that it is good at math.