Great news! Curious - are there any selfhosting Fortran compilers?
If a Fortran compiler were self-hosting, I might think twice before using it... I can't imagine implementing a parser/lexer in Fortran of all languages. Considering that loops and procedures are the main supported models of indirection/abstraction, I expect the defect rate per kLoC would be rather high. Edit: Looks like OOP support arrived in Fortran 2003. Does anyone know how much of a difference it made?
F18 Fortran compiler and runtime project is accepted as part of LLVM project
11–20 of 34 posts
Re: F18 Fortran compiler and runtime project is accepted as part of LLVM project
#12Earlier quoted context omitted.
According to TIOBE, Fortran is more popular than Google's Dart and Mozilla's Rust. Not to mention Kotlin, Lisp, and Erlang.
Fortran used to be more popular. However, TIOBE is a lacking indicator, as stated here: http://pypl.github.io/PYPL.html (do a in-page-search with "Why is PYPL so different from TIOBE ?") Some other indicators such as Redmonk ( https://redmonk.com/sogrady/2019/03/20/language-rankings-1-1... ) show that both Dart and Rust are more popular than Fortran. (Although each of them have their own set of biases.)
Re: F18 Fortran compiler and runtime project is accepted as part of LLVM project
#13Re: F18 Fortran compiler and runtime project is accepted as part of LLVM project
#14Great news! Curious - are there any selfhosting Fortran compilers?
If a Fortran compiler were self-hosting, I might think twice before using it... I can't imagine implementing a parser/lexer in Fortran of all languages. Considering that loops and procedures are the main supported models of indirection/abstraction, I expect the defect rate per kLoC would be rather high. Edit: Looks like OOP support arrived in Fortran 2003. Does anyone know how much of a difference it made?
Re: F18 Fortran compiler and runtime project is accepted as part of LLVM project
#15Great news! Curious - are there any selfhosting Fortran compilers?
If a Fortran compiler were self-hosting, I might think twice before using it... I can't imagine implementing a parser/lexer in Fortran of all languages. Considering that loops and procedures are the main supported models of indirection/abstraction, I expect the defect rate per kLoC would be rather high. Edit: Looks like OOP support arrived in Fortran 2003. Does anyone know how much of a difference it made?
What does this mean, and how is this any different from e.g. C?
Re: F18 Fortran compiler and runtime project is accepted as part of LLVM project
#16Great news! Curious - are there any selfhosting Fortran compilers?
If a Fortran compiler were self-hosting, I might think twice before using it... I can't imagine implementing a parser/lexer in Fortran of all languages. Considering that loops and procedures are the main supported models of indirection/abstraction, I expect the defect rate per kLoC would be rather high. Edit: Looks like OOP support arrived in Fortran 2003. Does anyone know how much of a difference it made?
As for a self-hosting compiler, I'm not aware of one, although it's something I'd be interested in having a go at. I've written a regex engine in Fortran before, I just haven't had the time to sit down with the Fortran standard and a textbook on compiler design (I'm a physicist by trait, so I've not been taught this stuff formally).
Re: F18 Fortran compiler and runtime project is accepted as part of LLVM project
#17'The LLVM compiler infrastructure project is a "collection of modular and reusable compiler and toolchain technologies" used to develop compiler front ends and back ends.
LLVM is written in C++ and is designed for compile-time, link-time, run-time, and "idle-time" optimization of programs written in arbitrary programming languages.'[1]
Re: F18 Fortran compiler and runtime project is accepted as part of LLVM project
#18Modern Fortran looks completely different from the old school FORTRAN77 that most people envision when thinking of Fortran. For reference, I did this past year's Advent of Code contest all in Fortran[0].
[0] https://gitlab.com/bwearley/advent-of-code-2018/tree/master
Re: F18 Fortran compiler and runtime project is accepted as part of LLVM project
#19Earlier quoted context omitted.
If a Fortran compiler were self-hosting, I might think twice before using it... I can't imagine implementing a parser/lexer in Fortran of all languages. Considering that loops and procedures are the main supported models of indirection/abstraction, I expect the defect rate per kLoC would be rather high. Edit: Looks like OOP support arrived in Fortran 2003. Does anyone know how much of a difference it made?
> Considering that loops and procedures are the main supported models of indirection/abstraction What does this mean, and how is this any different from e.g. C?
Re: F18 Fortran compiler and runtime project is accepted as part of LLVM project
#20Earlier quoted context omitted.
Fortran used to be more popular. However, TIOBE is a lacking indicator, as stated here: http://pypl.github.io/PYPL.html (do a in-page-search with "Why is PYPL so different from TIOBE ?") Some other indicators such as Redmonk ( https://redmonk.com/sogrady/2019/03/20/language-rankings-1-1... ) show that both Dart and Rust are more popular than Fortran. (Although each of them have their own set of biases.)
I think you mean lagging indicator.