Zvyozdochka [she/her, comrade/them]@hexbear.nettotechnology@hexbear.net•DARPA initiates a new program to automate the translation of the world’s highly vulnerable legacy C code to the inherently safer Rust programming languageEnglish
25·
2 days agoThis 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.
Many such cases