News for hackers. Stuff that matters.
Re:Fortran Web Framework by lmkg on Monday September 13, 2021 @01:00PM (#28513829)
It could allow C to close the gap in the future, but it's not there yet. Fortran is fundamentally and pervasively noalias, and its compilers have decades of experience operating under that assumption. C/C++ doesn't use it nearly as much, and as a result the parts of the compilers that use it aren't very mature.

Rust is also pervasively noalias, but it's taken years for it to actually enable "noalias" on LLVM. Rust code uses that feature more than it's ever been used before, which keeps exposing codegen bugs that no one noticed before. Once those get flushed out, I still expect it will take a while for the resulting optimizations to reach the quality & maturity that Fortran has had.

Re:Fortran Web Framework by zozbot234 on Monday September 13, 2021 @01:13PM (#28513997)
That's exactly why it matters that LLVM is officially getting a Fortran frontend. This will make it possible to leverage these optimization strategies and bug fixes across languages and projects.
Re:Fortran Web Framework by leephillips on Monday September 13, 2021 @01:23PM (#28514133)
It also allows the existence of a Fortran REPL, something I never thought I would see: https://lfortran.org/
Re:Fortran Web Framework by tobmlt on Tuesday September 14, 2021 @12:47AM (#28520337)
This whole conversation has been very insightful.

From the noalias = no panacea

To the Fortran repl

Thank you. This was inspiring.

Maybe it’s time I learn me some llvm too. Cheers.