News for hackers. Stuff that matters.
Re:LFortran Compiles Prima by anta40 on Sunday March 09, 2025 @06:35AM (#43307851)
The lang is still under development, the most current in in Fortran 2023: https://global.oup.com/academic/product/modern-fortran-expla...
Re:LFortran Compiles Prima by pjmlp on Sunday March 09, 2025 @07:41AM (#43308187)
I am fully aware of it, however most recent revisions tend not to be adopted by all compilers, and honestly the large majority only cares about keeping existing code running.

A bit like C23 and C++23 are here, and the large majority is a mix of C89, C99, C++11, and C++17, as what folks in the trenches care about.

Or Java 8 versus Java 24, and so on.

Fortran is in a similar position.

Re:LFortran Compiles Prima by rbanffy on Sunday March 09, 2025 @08:54AM (#43308702)
How many different platforms out there run Fortran code these days? I’m aware of it being very important in scientific computing (and compiling existing code is critical) but I don’t know many other use cases and different platforms requiring different compilers.
Re:LFortran Compiles Prima by pjmlp on Sunday March 09, 2025 @09:05AM (#43308776)
In many HPC cases you are using the platform tools, not gfortran.

Also we have one use case that is responsible for OpenCL losing mindshare for scientific community, running Fortran on GPU.

Thus I bet at least Intel, NVidia, AMD, Cray, IBM, being relevant ones.

Yes, some of them are planning to eventually adopt LFortran to replace their own, like they did with clang, or at least are using LLVM nowadays.

Re:LFortran Compiles Prima by pklausler on Monday March 10, 2025 @11:04AM (#43321453)
I think that you're conflating LFortran with LLVM Flang.
Re:LFortran Compiles Prima by ok123456 on Sunday March 09, 2025 @12:41PM (#43310840)
Everyone using numpy.
Re:LFortran Compiles Prima by rbanffy on Sunday March 09, 2025 @03:23PM (#43312709)
What compilers are used to build it might be relevant.
Re:LFortran Compiles Prima by ok123456 on Sunday March 09, 2025 @03:50PM (#43313014)
Typically gfortran and intel fortran.
Re:LFortran Compiles Prima by ggraphilia on Sunday March 09, 2025 @05:59PM (#43314340)
It may not be that simple on Windows : https://labs.quansight.org/blog/building-scipy-with-flang
Re:LFortran Compiles Prima by jamesfinlayson on Sunday March 09, 2025 @09:00PM (#43315735)
At a previous job there were two fairly old Fortran code bases running on emulated hardware. I think one was using an old proprietary compiler (I want to say from IBM) while the other was almost certainly using some ancient compiler given the emulated hardware that it was running on.