Hacker News new | ask | show | jobs
by nevi-me 426 days 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.

3 comments

From 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/

In my experience such methods work really well for small/simple code snippets. Attempting large code snippets is not functional.
I do not believe it ran without errors on all cases.