3 ms·
> What are the advantages of writing code in Fortran? Why not just allow the ports to C++ to happen? A physicist or engineer, already being familiar with Matla
by sampo 8y ago
> What are the advantages of writing code in Fortran? Why not just allow the ports to C++ to happen?
A physicist or engineer, already being familiar with Matlab or Python, can pretty much pick up Fortran in about 2 days to 1 week, get to be productive, and the compiler will generally generate fast code. Try to teach C++ to a domain specialist, who doesn't have too much extra time to study programming language syntax and quirks, because their main motivation is working in their domain?
If the scientific code was in C++, some scientists would probably never become fluent enough, and the workflow would probably deviate towards a division where scientists prototype their ideas in Matlab or Python, and separate technical programmer personnel implement it in the production code. The turnaround time from ideas to seeing results would be days instead of hours.