3 ms·
I just opensourced LFortran that provides a REPL for Fortran, among other things: https://gitlab.com/lfortran/lfortran https://gitlab.com/lfortran/lfortran, onl
by certik 8y ago
I just opensourced LFortran that provides a REPL for Fortran, among other things: https://gitlab.com/lfortran/lfortran https://gitlab.com/lfortran/lfortran, only a subset of Fortran is supported for now, but it's a start. Here is a demo in a Jupyter notebook: https://nbviewer.jupyter.org/gist/certik/f1d28a486510810d824869ab0c491b1c https://nbviewer.jupyter.org/gist/certik/f1d28a486510810d824....
The motivation is precisely as you described. In fact, Julia was my initial motivation too: but I didn't want a new language, I wanted the modern interactive environment for Fortran.
In order to get first users and before full Fortran 2018 is supported, I figured out how to parse GFortran's mod files and can interface to GFortran's array descriptors, I am now integrating it in the interactive compiler / REPL. After that is done, for a subset of Fortran, I think this will already be usable (one could use GFortran to compile production code, and use LFortran to use parts of it interactively) and I will announce it more widely. I think this will happen in the next few months.
- hpcjoe 8y agoNice! Will check it out!