3 ms·
Restrict is used where it matters. Just because Fortran does the equivalent of implicitly using restrict everywhere does not mean the compiler actually statica
by necheffa 5y ago
Restrict is used where it matters.
Just because Fortran does the equivalent of implicitly using restrict everywhere does not mean the compiler actually statically checks for abuse. You can just as easily write bad pointer aliasing code in Fortran and depending on what optimization level you built with you may or may not experience memory corruption and/or segmentation fault at run time.
- zozbot234 5y agoAIUI, the only language in common use that has comprehensive static checks for their equivalent to 'restrict' is Rust. Not coincidentally, there's quite a bit of interest in Rust adoption for numerics-heavy and scientific codes, the traditional preserve of FORTRAN.