3 ms·
I don’t think anyone is claiming that Julia is uniformly faster than well-written Fortran. But you can get comparable performance with code using a style that m
by leephillips 5y ago
I don’t think anyone is claiming that Julia is uniformly faster than well-written Fortran. But you can get comparable performance with code using a style that many people find easier to read, write, and reason about; and it’s interesting that sometimes this code does outperform optimized C or Fortran code.
Startup time is much improved in recent Julia versions¹, but is certainly not negligible for short calculations.
[1]https://lwn.net/Articles/856819/ https://lwn.net/Articles/856819/
- jvanderbot 5y agoYes, also the mentioned example's speedup (from TFA) was likely at least partially from the accessibility of Julia, making some ancillary optimization easier or almost accidental. You don't need to beat Fortran "at fortran'ing" (the innermost column oriented processing) to be overall faster. I am imagining without evidence.
- eigenspace 5y agoWhile it certainly won’t always win, there are many documented cases where Julia beats Fortran at Fortranning, e.g. https://fortran-lang.discourse.group/t/simple-summation-8x-slower-than-in-julia/1171 https://fortran-lang.discourse.group/t/simple-summation-8x-s... https://discourse.julialang.org/t/i-just-decided-to-migrate-from-python-fortran-to-julia-as-julia-was-faster-in-my-test/61188 https://discourse.julialang.org/t/i-just-decided-to-migrate-...