4 ms·
What is interesting to me is that Fortran is still relevant 62 years later. It's changed, dramatically. I taught myself Fortran 77, then Fortran 90 in grad s
by hpcjoe 8y ago
What is interesting to me is that Fortran is still relevant 62 years later. It's changed, dramatically.
I taught myself Fortran 77, then Fortran 90 in grad school. F2008 looks quite good. If it had a REPL, it could be a very interesting environment.
Honestly, I am using Julia more and more, but I've got 30 year old Fortran code that still compiles/runs nicely on my linux boxen, that started out on Vaxen and Cray supers.
- certik 8y agoI 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!