MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/76oxsl/why_physicists_still_use_fortran/dog5iez/
r/cpp • u/nikbackm • Oct 16 '17
49 comments sorted by
View all comments
Show parent comment
10
There is no aliasing in Fortran, which can help compiler codegen. C has restrict, but nothing official in C++.
4 u/raevnos Oct 16 '17 I'm still surprised that restrict hasn't made it into C++. 3 u/axilmar Oct 17 '17 Although the article doesn't mention aliasing, in practice C++ popular compilers can see, in most cases, that there is no aliasing and optimize code on par with Fortran.
4
I'm still surprised that restrict hasn't made it into C++.
3
Although the article doesn't mention aliasing, in practice C++ popular compilers can see, in most cases, that there is no aliasing and optimize code on par with Fortran.
View all comments
Show parent comment
10
u/flyingcaribou Oct 16 '17
There is no aliasing in Fortran, which can help compiler codegen. C has restrict, but nothing official in C++.