Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Are there any researches/works/agents into use LLM to auto covert some/all C code to Rust?

Ask LLM to generate rust code from chat, usb, i2c, GPU drivers - build and test it automatically? Possible?

Or start with other "smaller" projects such as sqlite, apache, nginx, etc - possible?



There's non-LLM research towards doing this which has a few success stories: https://github.com/immunant/c2rust

LLMs seem generally unsuited for the task, because they're fundamentally approximators that won't always get things right, and as a result will introduce subtle bugs. Perhaps if you paired them with some sort of formal methods... I'm not aware of anyone doing that. Tests aren't sufficient - lots of subtle bugs will not be caught by existing test suites.

Your idea of "smaller" projects is not... smaller enough. See the actual success stories for example: https://github.com/immunant/c2rust?tab=readme-ov-file#uses-o...


Darpa is interested in funding such an effort, but as far as I know that's the stage it's at, they haven't released any results.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: