|
|
|
|
|
by flohofwoe
284 days ago
|
|
Have there been any successful attempts yet of translating 'idiomatic' C++ to 'idiomatic' Rust for a large codebase that has been developed over 30 years? What does the output look like? Does the code look maintainable (because mechanical solutions to translate from other languages into Rust exist, the result is just not what a human would write or ever want to work on). Are the prompts to guide the LLM shorter than the actual code base to be translated? Etc etc... eg the idea to use LLMs for migration is quite 'obvious', but the devil must be in the details, otherwise everybody would be doing it by now. |
|
https://www.phoronix.com/news/Google-Linux-Binder-In-Rust
https://arxiv.org/abs/2503.23791v1
https://www.darpa.mil/research/programs/translating-all-c-to...
https://link.springer.com/content/pdf/10.1007/s10664-024-105...
> Everybody would be doing it by now
Models and agents have progressed significantly in the last few months. Migrating projects to rust can definitely be a thing in the coming years if there is sufficient motivation. But oftentimes c/c++ devs have aversions to the rust language itself, so the biggest challenge can be an issue of motivation in general.