5 ms·
Microsoft demoed a version of their GraphRAG that translated C code to (I believe) mostly idiomatic Rust, and it ran without errors. I tried to find reference
by nevi-me 2y ago
Microsoft demoed a version of their GraphRAG that translated C code to (I believe) mostly idiomatic Rust, and it ran without errors.
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.
- npalli 2y ago[flagged]
- vlovich123 2y agoOr 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.
- nevi-me 2y agoI 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.
- npalli 2y agoMy bad. Sorry. Didn't read the full comment and you didn't deserve the accusations from me.
- vlovich123 2y agoFrom the looks of [1] they have a graph DB storing the code structure and acting as the RAG for an LLM. [1] https://microsoft.github.io/graphrag/ https://microsoft.github.io/graphrag/
- vrighter 2y agoI do not believe it ran without errors on all cases.
- reve893 1y agoIn my experience such methods work really well for small/simple code snippets. Attempting large code snippets is not functional.