# Scientists are using artificial intelligence and large language models to rewrite old code in modern languages

**URL:** <https://fortran-lang.discourse.group/t/scientists-are-using-artificial-intelligence-and-large-language-models-to-rewrite-old-code-in-modern-languages/9598>\
**Category:** Uncategorized\
**Created:** [April 20, 2025, 5:35am UTC](https://fortran-lang.discourse.group/t/scientists-are-using-artificial-intelligence-and-large-language-models-to-rewrite-old-code-in-modern-languages/9598 "2025-04-20T05:35:46Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![R\_cubed](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/r_cubed/32/263_2.png) [@R\_cubed](https://fortran-lang.discourse.group/u/R_cubed)\
**Post date:** [April 20, 2025, 11:46am UTC](https://fortran-lang.discourse.group/t/scientists-are-using-artificial-intelligence-and-large-language-models-to-rewrite-old-code-in-modern-languages/9598/5 "2025-04-20T11:46:18Z")

</div>

I don’t see why this is so surprising; I see this as a downgrade from what would be possible with source to source translators and stepwise refinement as developed in the formal methods community.

Now, if you train the model yourself, perhaps much of the problems can be avoided. I remember a section in the CS classic [Structure and Interpretation of Computer Programs](https://web.mit.edu/6.001/6.037/sicp.pdf) (AKA SICP p. 161 in footnote) that most old Fortran programs had a pattern of map, filter and accumulate, which I suspect hasn’t changed that much.

But adding randomness via the LLM to this code conversion process can’t be a good thing.

> **[E.W.Dijkstra Archive: On the foolishness of "natural language programming"....](https://www.cs.utexas.edu/~EWD/transcriptions/EWD06xx/EWD667.html)**

---

_[View the full topic](https://fortran-lang.discourse.group/t/scientists-are-using-artificial-intelligence-and-large-language-models-to-rewrite-old-code-in-modern-languages/9598)._
