Compile-time computation example now works with LFortran

Over 2 years ago I created code to test compile time computation of Fortran: Computing at compile time. We are super excited to announce that LFortran can now compile the example too, and is very fast at the speed of compilation:

Big thanks to @HarshitaKalani and @Pranavchiku for implementing the missing compile time features.

19 Likes

I remember getting into trouble with several compiler vendors when I tried to report ‘bugs’ in their compilers when trying to initialise a 143,000+ word dictionary by initialisation at compile time, i.e. with 143,000+ source statements doing the initalisation.

3 Likes

Very happy to be helpful as you embark on it. Glad to see LFortran progressing at this wonderful pace. Looking forward to reach beta soon

3 Likes