[HN Gopher] LFortran compiles PRIMA
___________________________________________________________________
LFortran compiles PRIMA
Author : genphy1976
Score : 59 points
Date : 2025-03-06 15:00 UTC (3 days ago)
(HTM) web link (lfortran.org)
(TXT) w3m dump (lfortran.org)
| andsoitis wrote:
| LFortran is an alpha-stage modern, interactive LLVM-based Fortran
| compiler.
| froh wrote:
| thanks you've saved me looking it up myself
| pjmlp wrote:
| 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.
| anta40 wrote:
| The lang is still under development, the most current in in
| Fortran 2023: https://global.oup.com/academic/product/modern-
| fortran-expla...
| pjmlp wrote:
| 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.
| rbanffy wrote:
| 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.
| pjmlp wrote:
| 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.
| ok123456 wrote:
| Everyone using numpy.
| rbanffy wrote:
| What compilers are used to build it might be relevant.
| ok123456 wrote:
| Typically gfortran and intel fortran.
| yjftsjthsd-h wrote:
| I was given to believe that a lot of numerical code in python
| _is_ fortran with a little bit of wrapper?
| pjmlp wrote:
| Depends on the library, it is a mix of C, C++, Fortran, and
| using Python as JIT DSLs.
| actinium226 wrote:
| Congrats to Ondrej Certik and the team working on LFortran, this
| is a big milestone!
| genphy1976 wrote:
| 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
| genphy1976 wrote:
| In case you appreciate LFortran and would like to sponsor its
| development, see
|
| - Become a sponsor to LFortran:
| https://github.com/sponsors/lfortran
|
| - Open Collective: https://opencollective.com/lfortran
|
| - NumFOCUS: https://numfocus.org/donate-to-lfortran
| ggraphilia wrote:
| See
|
| https://labs.quansight.org/blog/building-scipy-with-flang
|
| which was once discussed on HN at
|
| https://news.ycombinator.com/item?id=38196412
___________________________________________________________________
(page generated 2025-03-09 22:01 UTC)