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.

9 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!

Does anyone use PlusFORT anymore? It’s free for personal use and works very well for me. TONS of old F77 code here from early 80’s up to 90’s written to be compiled with MSFORT, then updated to PGI (which has a lot of non-standard fortran stuff in it) and PlusFORT does a really good job at spagging it up to F90 standard. Plus it runs natively in LINUX and WINDOWS. plusFORT - Get Free Licence Here! - Fortran UK I try to avoid AI or any tools that do things that I couldn’t do myself (given enough time).

1 Like