News for hackers. Stuff that matters.
Re:Fortran 2023 by hardmaru on Wednesday November 22, 2023 @09:47AM (#38379900)
For a summary of changes to the language, see John Reid's slides here: https://fortran.bcs.org/2022/AGM22_Reid.pdf

More info, The Home of Fortran Standards: https://wg5-fortran.org/

Re:Fortran 2023 by thechao on Wednesday November 22, 2023 @12:29PM (#38382184)
Dang 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.
Re:Fortran 2023 by gamache on Wednesday November 22, 2023 @03:31PM (#38384702)
Sounds similar to computed GO TO, as in:

      GO TO (LABEL1, LABEL2, LABEL3, LABEL4) I
https://docs.oracle.com/cd/E19957-01/805-4939/6j4m0vn9l/inde...
Re:Fortran 2023 by smegsicle on Wednesday November 22, 2023 @02:15PM (#38383753)
you want a one-line switch expression??
Re:Fortran 2023 by thechao on Thursday November 30, 2023 @06:11PM (#38480585)
Yes; not often, but, yes.
Re:Fortran 2023 by theodorethomas on Wednesday November 22, 2023 @11:13AM (#38381137)
https://wg5-fortran.org/N2201-N2250/N2212.pdf is John Reid's complete document.
Re:Fortran 2023 by fithisux on Wednesday November 22, 2023 @10:09AM (#38380262)
Which FOSS compilers support it?
Re:Fortran 2023 by rsecora on Wednesday November 22, 2023 @01:21PM (#38382967)
flang [1], it's part of the LLVM project.

[1] https://github.com/llvm/llvm-project/tree/main/flang

Re:Fortran 2023 by certik on Wednesday November 22, 2023 @01:30PM (#38383093)
GFortran, Flang and LFortran are all open-source compilers that support modern Fortran.
Re:Fortran 2023 by pklausler on Wednesday November 22, 2023 @03:35PM (#38384742)
If "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 .

Re:Fortran 2023 by fithisux on Wednesday November 22, 2023 @10:07AM (#38380234)
as a funny note John Reid was the singer of Nightcrawlers in the 90s.
Re:Fortran 2023 by krylon on Wednesday November 22, 2023 @02:29PM (#38383929)
That is funny. Interesting career trajectory.