The correct phrase is like “it is possible to implement language A to be faster with some programs than language B on the given hardware”, not “language A is faster than language B”.
Anyway, that’s not entirely true. Fortran is faster than C. The reason is that in C there is a **restrict** keyword, which is rarely used, while in Fortran all libraries are “restrict” by default. Also the typical implementation of printf and other functions with variable number of arguments are slow. Fortran avoids this by making i/o part of the language itself, not standard library.
However, Fortran can be 1% faster, but is more difficult for a programmer.
Latest Answers