4 ms·
For a summary of changes to the language, see John Reid's slides here: https://fortran.bcs.org/2022/AGM22_Reid.pdf https://fortran.bcs.org/2022/AGM22_Reid.pdf
by hardmaru 3y ago
For a summary of changes to the language, see John Reid's slides here:
https://fortran.bcs.org/2022/AGM22_Reid.pdf https://fortran.bcs.org/2022/AGM22_Reid.pdf
More info, The Home of Fortran Standards:
https://wg5-fortran.org/ https://wg5-fortran.org/
- theodorethomas 3y agohttps://wg5-fortran.org/N2201-N2250/N2212.pdf https://wg5-fortran.org/N2201-N2250/N2212.pdf is John Reid's complete document.
- fithisux 3y agoas a funny note John Reid was the singer of Nightcrawlers in the 90s.
- krylon 3y agoThat is funny. Interesting career trajectory.
- fithisux 3y agoWhich FOSS compilers support it?
- rsecora 3y agoflang [1], it's part of the LLVM project. [1] https://github.com/llvm/llvm-project/tree/main/flang https://github.com/llvm/llvm-project/tree/main/flang
- certik 3y agoGFortran, Flang and LFortran are all open-source compilers that support modern Fortran.
- pklausler 3y agoIf "it" is F'23, then none. GNU Fortran has had the "new" degree-unit trig functions for a while, but no compiler, FOSS or otherwise, has the newly invented features of this revision. Fortran doesn't prototype features with real implementations (or test suites) before standardizing them, which had led to more than one problem over the years as ambiguities, contradictions, and omissions in the standard aren't discovered until years later when compiler developers eventually try to make sense of them, leading to lots of incomplete and incompatible implementations. I've written demonstrations for many examples and published them at https://github.com/klausler/fortran-wringer-tests/tree/main https://github.com/klausler/fortran-wringer-tests/tree/main .
- thechao 3y agoDang ternary operator. I wish ternary was "open": X ? A : B : ... Z; Where the value of each expression counted down from A..Z, ie, of there's 8 limbs, then A is 7, B is 6, ..., Z is 0.
- smegsicle 3y agoyou want a one-line switch expression??
- thechao 3y agoYes; not often, but, yes.
- gamache 3y agoSounds similar to computed GO TO, as in: GO TO (LABEL1, LABEL2, LABEL3, LABEL4) I https://docs.oracle.com/cd/E19957-01/805-4939/6j4m0vn9l/index.html https://docs.oracle.com/cd/E19957-01/805-4939/6j4m0vn9l/inde...