Dear all,
From time to time I hear about attempts to make Fortran interactive one way or another, or to create some interpreter version of the language. Do you know what’s the status of these efforts? Is LFortran something to bet on in the future?
I am doing visualization and postprocessing in IDL (Interactive Data Language, proprietary language/program by Harris Geospatial, https://www.l3harrisgeospatial.com/Software-Technology/IDL) that has its opensource clone GDL (https://github.com/gnudatalanguage/gdl). The biggest issue is the price of the license for IDL that turns away more and more scientific institutes pushing the researchers and mainly the students towards alternatives (“alternatives” actually == python).
The syntax of IDL is fairly similar to Fortran making it almost trivial to translate relatively simple codes (both are are strongly array-oriented, actually I believe that IDL was in the early days very much inspired by Fortran). Does anyone here has experience with it? Would it be possible to think of some hybrid between Fortran and IDL/GDL? What I mean is “an IDL/GDL version that follows fortran syntax even more closely”? Is there a contact between the GDL and LFortran communities?
Partly unrelated: Elements (tags) of a structure in IDL are defined in a similar way as in Fortran, using “.” instead of “%”. If I have array of structures, then I can assign values to an element of array as
a[i] = {var1 : 0, var2 : “whatever”, tag3 : 0.D0}
Is there a way to do this in similar way in Fortran or one needs to do lengthy:
a(i)%var1 = 0
a(i)%var2 = “whatever”
a(i)%tag3 = 0.D0
Best,
Niko