Live data from Hacker News

LFortran compiles PRIMA

lfortran.org

11–20 of 31 posts

Re: LFortran compiles PRIMA

#11
post #10
post #5

Earlier quoted context omitted.

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.

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.

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

#12
post #3

Nice milestone. Modern Fortran is no longer the FORTRAN from punch cards, having this compiler push maybe will help folks to write directly blazing performance Fortran code, instead of numerical code in Python.

I was given to believe that a lot of numerical code in python is fortran with a little bit of wrapper?

Re: LFortran compiles PRIMA

#13
post #3

Nice milestone. Modern Fortran is no longer the FORTRAN from punch cards, having this compiler push maybe will help folks to write directly blazing performance Fortran code, instead of numerical code in Python.

I was given to believe that a lot of numerical code in python is fortran with a little bit of wrapper?

Depends on the library, it is a mix of C, C++, Fortran, and using Python as JIT DSLs.

Re: LFortran compiles PRIMA

#15
For more information about LFortran, see

- Wikipedia: https://en.wikipedia.org/wiki/LFortran

- Homepage: https://lfortran.org

- GitHub: https://github.com/lfortran/lfortran

If you like to play with it, see

- LFortran in web browsers using WebAssembly: https://dev.lfortran.org

- LFortran in Compiler Explorer: https://godbolt.org/z/EfWvsY6Kh

Re: LFortran compiles PRIMA

#17
post #10
post #5

Earlier quoted context omitted.

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.

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.

Everyone using numpy.

Re: LFortran compiles PRIMA

#19
post #10

Earlier quoted context omitted.

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.

Everyone using numpy.

What compilers are used to build it might be relevant.
Post reply on HN