Hi everyone,
At Codee, we recently shared two comparative analyses exploring how current AI coding assistants perform on Fortran code, compared to Codee’s compiler-based tools.
1 - Code Formatting
We assessed how the Codee Formatter and AI assistants like ChatGPT, Claude, and Gemini handle the modernization of legacy Fortran 77 code, focusing on improving formatting and readability:
- AI assistants often struggled with large source files, sometimes introducing unintended semantic changes or breaking compilation.
- In contrast, the Codee Formatter processed Fortran files almost instantly, ensuring the original logic and structure were preserved by relying on its compiler-based technology.
Read the full article for more details: “Codee Formatter vs. AI Coding Assistants: A Focus on Fortran Modernization”.
2 - Performance Optimization
We also reviewed findings from the paper “Comprehensive Evaluation of LLMs in HPC Code Performance Optimization” by B. Cui, T. Ramesh, and K. Zhou (George Mason University) and O. Hernandez (Oak Ridge National Laboratory). The authors compared the Codee Analyzer with AI assistants such as ChatGPT, Claude, and Llama in HPC code optimization:
- AI assistants were able to suggest meaningful optimizations and achieve performance speedups. However, they also failed in several benchmarks, producing code that failed to compile, crashed, or even generated incorrect results.
- On the other hand, the deterministic static analysis of the Codee Analyzer consistently generated correct and compilable optimizations.
Read the full article for more details: “Codee Analyzer vs. AI Coding Assistants: A Focus on Correctness in Fortran/C/C++”.
As a general takeaway, AI assistants are valuable for creative and exploratory tasks, such as prototyping new code. However, when code correctness and reproducibility are essential, such as in scientific computing, they can pose risks if not carefully supervised by experienced developers. That’s where deterministic, compiler-grade tools remain a reliable foundation for development workflows.
We’d be interested to hear your thoughts:
- How do you see AI assistants fitting into Fortran development?
- Have you tried using AI tools for Fortran development?
— The Codee Team