it’s joever for Cniles (I am one of them 😔)
This sounds cool in theory, but would be extremely hard to pull off in any kind of meaningful fashion I think simply because Rust is just too different from C. You can probably make something to very roughly “transpile” C to Rust, but the Rust code that is generated probably wouldn’t be good and will probably be a pain to work with simply because it’d end up being a mess and at that point, if you’re going to have to end up refactoring a ton of generated code, you may as well just rewrite it yourself so it is actually half decent code.
Also considering that a lot of this C code is going to be extremely critical code pathways, like making sure your banks don’t collapse and your energy plants don’t blow up, the major pain paths for migrating to another language are going to be rigorously testing every last path through it, not rewriting it.
unsafe everywhere
us military to run C code through chatGPT to get rust code
recent breakthroughs in machine learning techniques, like large language models (LLMs), have created an environment that may lend itself to a new class of solutions.
DARPA’s Translating All C to Rust (TRACTOR) program wants to seize this opportunity by substantially automating the translation of the world’s legacy C code to Rust.
“You can go to any of the LLM websites, start chatting with one of the AI chatbots, and all you need to say is ‘here’s some C code, please translate it to safe idiomatic Rust code,’ cut, paste, and something comes out, and it’s often very good
Just write everything in java and run the OS on the JVM
Unlimited memory safety vulnerabilities on the first world!