News for hackers. Stuff that matters.
Re:Doctor Fortran in “The Future of Fortran” by yiyus on Saturday March 28, 2015 @08:00PM (#9283277)
The main reason Fortran is so extensively used today is not because of the merits of its new features but the incredible amount of (intrinsically complicated, but even more because it is highly optimized) legacy code. I guess that most of that 50% running in HPC is FORTRAN77 written many, many years ago, with a bit of Fortran90/95 and only an insignificant fraction of Fortran 20xx.
Re:Doctor Fortran in “The Future of Fortran” by rootbear on Sunday March 29, 2015 @09:46AM (#9284783)
At NASA Goddard, they run climate models on our supercomputer and they are mostly in Fortran. I asked one of the developers once and he said the bulk of it was in Fortran 90/95. But there is still a lot of Fortran 77 code around, particularly in well-debugged libraries. This developer wanted to use a more modern dialect and take advantage of some of the new features, like object orientation, but it was hard to get the scientists to learn the new features. That's a big part of why Fortran endures, it's simple inertia.

During development of the original ANSI standard for C, the Cray rep and others wanted to add features that would enable C to kill Fortran. This meant adding complex numbers (which happened in C99 and was made optional in C11), and doing something about unrestricted pointers. The latter lead to the noalias fiasco, but ultimately we got strict, which accomplishes the same goal.

Re:Doctor Fortran in “The Future of Fortran” by cbd1984 on Sunday March 29, 2015 @02:30AM (#9284087)
Assuming the FORTRAN77 was optimized for hardware circa a period when FORTRAN77 wasn't considered an ancient language, is it still optimized on modern hardware? Because it seems the vast increase in the relative importance of cache alone, not to mention the great changes in cache sizes, would make some optimizations fairly pessimal these days. (For example, loop unrolling blowing out I-cache.)
Re:Doctor Fortran in “The Future of Fortran” by colechristensen on Sunday March 29, 2015 @03:03AM (#9284122)
Languages aren't optimized, compilers are, and fortran compilers commercial and free are released regularly.
Re:Doctor Fortran in “The Future of Fortran” by cbd1984 on Sunday March 29, 2015 @03:11AM (#9284129)
> Languages aren't optimized, compilers are

Actually, specific pieces of code get optimized, and compilers that can "undo" optimizations put in to the source code by hand are so rare I daresay they don't exist.

Re:Doctor Fortran in “The Future of Fortran” by brorfred on Sunday March 29, 2015 @02:33PM (#9285907)
The intel compiler is considered to generate runtimes that runs about twice as fast as runtimes from gfortran. Haven't seen any recent tests of CLANG/LLVM yet. The statement that compilers, not languages, are optimized generally holds true for Fortran.
Re:Doctor Fortran in “The Future of Fortran” by gnufx on Sunday March 29, 2015 @07:16PM (#9286872)
"Considered" maybe, but not measured in practice. Of course you need equivalent optimizations to generate similar code -- Intel even defaults to incorrect optimizations. GCC is also substantially more reliable in my experience watching users who insist on using Intel on HPC systems without actually measuring anything.

Of course compilers are relevant, but Fortran has long presented optimization possibilities that aren't typically available in other languages, like not passing by reference.

Re:Doctor Fortran in “The Future of Fortran” by colechristensen on Sunday March 29, 2015 @02:58AM (#9284119)
It's also that for many HPC science things; the programming effort isn't anywhere near the main effort. The science behind the code takes years and the code execution can take hours, days, or months. The people writing the code are scientists, not programmers, and aren't all that interested in the languages they use being 'nice'.
Re:Doctor Fortran in “The Future of Fortran” by brorfred on Sunday March 29, 2015 @02:36PM (#9285915)
This is my experience. It is so much easier to get a Post Doc up to speed in Fortran, than pretty much any other language. The best case scenario is that professional programmers write the frameworks and infrastructure, and that non-programers produce subroutines and other functional parts of the code. The worst case scenario is when the entire code base is produced by non-programmers...
Re:Doctor Fortran in “The Future of Fortran” by drjesusphd on Sunday March 29, 2015 @12:46AM (#9283918)
No, Fortran is just plain fast. It's not just institutional inertia.

Luckily there are things like Julia now that may eventually change the landscape.

Re:Doctor Fortran in “The Future of Fortran” by IndianAstronaut on Sunday March 29, 2015 @01:15AM (#9283978)
Can Julia compete with Fortran and C? I still thought Julia still uses BLAS.
Re:Doctor Fortran in “The Future of Fortran” by KenoFischer on Sunday March 29, 2015 @01:23AM (#9284000)
So do Fortran and C. BLAS is written in assembly.
Re:Doctor Fortran in “The Future of Fortran” by drjesusphd on Sunday March 29, 2015 @12:50AM (#9283929)
> I guess that most of that 50% running in HPC is FORTRAN77 written many, many years ago

Is this blind speculation?

Re:Doctor Fortran in “The Future of Fortran” by yiyus on Tuesday April 07, 2015 @07:49PM (#9337939)
It's a guess based on my limited experience.