[dead]
Re:Translate Fortran to C++ with AI and RAG
by nevi-me on Saturday April 19, 2025 @09:11PM
(#43740795)
I mentioned neither of the things you're shouting at me about.
> I also have some old code that's in Kotlin that I'd like to move to something else.
Something else was left unmentioned because I'm not even talking about Rust. My reference to it was that I've seen the approach before where a RAG is used to aid in translating C code, and it's an interesting thing which with more examples, might be easier to non-experts like me.
Translating languages is of great interest to various communities. I have friends stuck with a Scala codebase written by geniuses who are no longer around, and they want to move it to something else that the team is comfortable with.
Re:Translate Fortran to C++ with AI and RAG
by npalli on Saturday April 19, 2025 @09:36PM
(#43740896)
My bad. Sorry. Didn't read the full comment and you didn't deserve the accusations from me.
Re:Translate Fortran to C++ with AI and RAG
by vlovich123 on Saturday April 19, 2025 @08:35PM
(#43740605)
Or he’s just mentioning the other major transpiler he’s heard of recently that happens to be C to Rust and wondering how it works and if it could be adapted to other language pairs. You’re the one that’s taken the conversation in a super weird direction all by your lonesome.
Re:Translate Fortran to C++ with AI and RAG
by vlovich123 on Saturday April 19, 2025 @08:37PM
(#43740617)
From the looks of [1] they have a graph DB storing the code structure and acting as the RAG for an LLM.
I tried to find reference to how they did it, does anyone know?
It sounds like this approach of translating old code could help speed up teams that are looking at rewrites. I also have some old code that's in Kotlin that I'd like to move to something else. I had a bad NullPointerException take down my application after missing a breaking change in a Kotlin update.