News for hackers. Stuff that matters.
Re:Flang: LLVM’s Fortran Front End by erichocean on Saturday August 20, 2022 @08:26PM (#32536312)
> Flang is a ground-up implementation of a Fortran front end written in modern C++. It started off as the f18 project with an aim to replace the previous flang project and address its various deficiencies. F18 was subsequently accepted into the LLVM project and rechristened as Flang.

> The high level IR of the Fortran compiler is modeled using MLIR.

Source: https://mlir.llvm.org/users/

Re:Flang: LLVM’s Fortran Front End by kergonath on Saturday August 20, 2022 @11:53PM (#32537269)
So it’s not dependent on an external Fortran compiler anymore? That’s nice, I need to test it. That said, I could not find a Fortran 2003/2008/2018 features implementation matrix, which could be helpful.
Re:Flang: LLVM’s Fortran Front End by brutusborn on Sunday August 21, 2022 @12:11AM (#32537346)
A video from 2020 for anyone interested: https://news.ycombinator.com/item?id=22281619
Re:Flang: LLVM’s Fortran Front End by maartenh on Sunday August 21, 2022 @07:19AM (#32539090)
I remember from my Fortran week in university, that Fortran has strict rules about aliasing that allow the compiler to generate more efficient code C in several cases. And I also have read about aliasing bugs/assumptions being wrong in LLCM and having to be fixed for the rust compiler.

Has Rust's usage of LLVM been helpful for Fortran? And maybe vice versa?

Re:Flang: LLVM’s Fortran Front End by nonlincoder on Saturday August 20, 2022 @10:55PM (#32537013)
I think it's the first Fortran compiler whose name is cool.
Re:Flang: LLVM’s Fortran Front End by eesmith on Sunday August 21, 2022 @01:51AM (#32537747)
They liked it so much they used it twice. (Apologies to Gerard Kenny.)
Re:Flang: LLVM’s Fortran Front End by semi-extrinsic on Sunday August 21, 2022 @03:14AM (#32538046)
What, Lahey and Apogee weren't cool?