What ChatGPT says about Fortran

I wonder if we can improve ChatGPTs Fortran skills by using them frequently while giving feedback.
E.g. I like to copy questions asked in this forum (example) to ChatGPT and see if it could solve these questions/problems.
In this case, ChatGPT 3.5 didn’t know anything about a third index argument and simply guessed that it may be a flag for toggling case-insensitive search. ChatGPT 4, in turn, knew it is the back argument, but it thought it is an unofficial extension. In both cases I clicked the :-1:-button, and pasted the formal definition of the index-function, hoping that this will somewhen improve the model.
I think it is crucial for Fortran’s future, that LLM know how to program Fortran because this could become an important argument for selecting a new language to learn.

3 Likes