IBM stock falls after Anthropic says AI can now modernize old software

https://www.fastcompany.com/91497326/ibm-stock-falls-anthropic-says-ai-can-cobol-ai-coding

I have been using Claude specifically to modernise some codebases and although good, it hits some limitations rather quickly which, without deep Fortran experience, they would be very difficult to resolve.

However, they provide a very nice and stable avenue to develop tools to help modernise a specific codebase.

1 Like

My approach in Pure-Fortran is to tell Codex to write a Python script to change Fortran code in some way, for example add intent, indent, wrap long lines, or group declarations. Then when the script produces code I don’t like I tell it what changes I want, and it modifies the Python code. With this approach you teach LLM how to modernize Fortran code through the medium of code in Python (or some other language), and you get replicable results, since the Python scripts are deterministic.

7 Likes

Yeah! that’s the way, then one ends up with a bunch of very nice scripts that are super helpful in general. Then you can also unit test the python to make sure everything always works!