Ondřej Čertík

@certik
23 Followers
31 Following
6 Posts
Compiler engineer. The original author of SymPy, SymEngine and LFortran, co-founder of the fortran-lang organization.
Personal websitehttps://ondrejcertik.com/
LFortranhttps://lfortran.org/
LPythonhttps://lpython.org/
SymPyhttps://www.sympy.org
LFortran compiles Fortran stdlib

LFortran compiles 85% Fortran stdlib We are happy to announce that LFortran can compile all numerical modules in stdlib. The stdlib library has 32 modules, here are the details of the current status: all 32 modules compile to ASR 27 modules (85%) compile to LLVM; there are 4 hash modules (hash_32bit, hash_64bit, hashmaps, hashmap_wrappers, stringlist_type) and one stringlist_type module that does not compile to LLVM yet 24 modules pass all their tests; 3 modules (sorting, bitsets, stats) do not pass all tests yet, but simple examples that use the modules work This is sixth third-party production-grade code that LFortran can compile after SciPy.

LFortran
LFortran Compiles 60% of Scipy

LFortran Compiles 60% of SciPy With successful compilation of dftatom in October 2023, embarking to the new year with a remarkable stride, we are delighted to announce that LFortran can now successfully compile 9 out of the 15 Fortran packages within the SciPy library without requiring any modifications. This is the fifth third-party production-grade code that LFortran can compile. The progress bar towards beta has thus reached 5/10. LFortran can now compile and pass tests written for scipy.

LFortran

The #fortranlang community was created nearly three years ago by #fortran fans:
- its main site is https://fortran-lang.org/
- 891 users are registered on its https://fortran-lang.discourse.group/
- Its main projects are fpm (the Fortran Package Manager), stdlib (the Fortran Standard Library), etc.

People are also working on the LFortran interactive compiler: https://lfortran.org/

Read the "State of Fortran" paper to know more on modern Fortran and the Fortran-lang community: https://arxiv.org/abs/2203.15110

The Fortran Programming Language — Fortran Programming Language

Fortran : High-performance parallel programming language

#fortranlang continues to evolve, now #lfortran (new LLVM compiler that enables interactive #fortran programming, among other cool things) has a prototype implementation of generics (templates etc) https://fortran-lang.discourse.group/t/prototype-implementation-of-fortran-generics-in-lfortran/4664
Prototype implementation of Fortran generics in LFortran

With the latest LFortran (022dbc29) you can now play with a prototype implementation of the Fortran generics. Here is a demo file that you can try: You can copy & paste that example into https://dev.lfortran.org/ and it will work: You can also test it locally: $ lfortran integration_tests/template_add.f90 The result is 1.22999992e+01 The result is 14 @tom_clune, @everythingfunctional, @gak, @FortranFan and others, can you please test it out and provide feedback? LFortran itself is a...

Fortran Discourse
You can try #Fortran with online #compilers:
- On the Fortran Playground https://play.fortran-lang.org/ you can learn Fortran by compiling (and editing) various examples.
- On Godbolt Compiler Explorer https://godbolt.org/, you can use several versions of #GFortran, Intel #ifort, Intel #ifx and #Flang. And you can read the assembler code.
- On https://dev.lfortran.org/ you can play with the #LFortran compiler (development in progress) and see its intermediate representations.
Playground

LFortran can now compile one example in Minpack and get exactly the same answer as GFortran. A small step for an end user, but a huge step for us, as we got one production code running end to end.

The next steps are to harden everything.

LFortran is still (advanced) alpha.

https://twitter.com/lfortranorg/status/1601253953869844482

#lfortran #fortran

LFortran on Twitter

“Big milestone: LFortran can now get bit to bit exact floating point answers as GFortran for one test program of Minpack. We have it. We have to harden everything, and implement all of Fortran, but Minpack is the first production code that now works! https://t.co/o9HhsYOgmE”

Twitter