5 ms·
Why is fortran so much more efficient (or easier to optimize)?
by cudder 5y ago
Why is fortran so much more efficient (or easier to optimize)?
- pjmlp 5y agoBecause it was designed for mathematics from the ground up. So the language has built-in optimization for linear algebra kind of math since decades, doesn't rely on pointers for basic data structures and type system prevents aliasing by default.
- gnufx 5y agoThe language doesn't specify optimization, though it has features for optimizers to take advantage of, and the classic loop optimizations were introduced in Fortran H if I remember correctly. The storage association rules aren't in the type system; you can write code that violates them, and many people did, but perhaps fewer now.
- jejones3141 5y agoSee the section of Coders at Work where the author interviews Frances Allen.