# Legacy Modernization with LLMs: is a large translation consistent with itself?

DevFeed: [Legacy Modernization with LLMs: is a large translation consistent with itself?](<https://devfeed.tech/articles/legacy-modernization-with-llms-is-a-large-translation-consistent-with-itself-149393.md>)

Original publisher: [Read original article](<https://tomassetti.me/legacy-modernization-llms-large-translation-consistency/>)

Author: Federico Tomassetti

Published: 2026-11-23T15:44:10Z

Content type: article

Language: en

Sources: [Federico Tomassetti](<https://devfeed.tech/sources/federico-tomassetti.md>)

Topics: [Legacy Modernization](<https://devfeed.tech/topics/legacy-modernization.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Tool](<https://devfeed.tech/topics/tool.md>), [reproducibility](<https://devfeed.tech/topics/reproducibility.md>), [ui-testing](<https://devfeed.tech/topics/ui-testing.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>)

Tags: [1c](<https://devfeed.tech/tags/1c.md>), [2](<https://devfeed.tech/tags/2.md>), [3](<https://devfeed.tech/tags/3.md>), [agent](<https://devfeed.tech/tags/agent.md>), [first](<https://devfeed.tech/tags/first.md>), [generators](<https://devfeed.tech/tags/generators.md>), [half](<https://devfeed.tech/tags/half.md>), [java](<https://devfeed.tech/tags/java.md>), [large](<https://devfeed.tech/tags/large.md>), [legacy](<https://devfeed.tech/tags/legacy.md>), [legacy-modernization](<https://devfeed.tech/tags/legacy-modernization.md>), [llms](<https://devfeed.tech/tags/llms.md>), [modernization](<https://devfeed.tech/tags/modernization.md>), [more](<https://devfeed.tech/tags/more.md>), [post](<https://devfeed.tech/tags/post.md>), [rpg](<https://devfeed.tech/tags/rpg.md>), [separate](<https://devfeed.tech/tags/separate.md>), [sessions](<https://devfeed.tech/tags/sessions.md>), [translation](<https://devfeed.tech/tags/translation.md>), [with](<https://devfeed.tech/tags/with.md>)

## AI overview

Across 49 agent sessions, a translation of 600,000 lines of RPG, DDS and CL into over one million lines of Java looks uniform at first: shared runtime helpers, stable program names, and generated records and screens. Closer measurement finds substantial drift: 97.9% of files were not revisited as the runtime evolved; RPG indicators and operations were translated inconsistently; related programs took three different structural approaches; and hand-translated code had 32% duplication. Seven Python generators made generated code more uniform and converted over 99% of their inputs, but were application-specific, lacked tests, sometimes silently dropped screen keywords, and about 30 of roughly 3,700 generated files behaved differently when regenerated. The article concludes that compilation and passing tests did not reveal these maintenance risks; conventions, reviews and architectural oversight were missing across sessions.

## Source excerpt

A translation of more than half a million lines of RPG, done in 49 separate agent sessions: is the resulting Java consistent with itself, and what happens with the generators the agent wrote along the way? The post Legacy Modernization with LLMs: is a large translation consistent with itself? appeared first on Federico Tomassetti.