sabreW4K3@lazysoci.al to Tech@programming.dev · 3 months agoDARPA suggests turning legacy C code automatically into Rust • The Registerwww.theregister.comexternal-linkmessage-square14fedilinkarrow-up152arrow-down12cross-posted to: programming@programming.dev
arrow-up150arrow-down1external-linkDARPA suggests turning legacy C code automatically into Rust • The Registerwww.theregister.comsabreW4K3@lazysoci.al to Tech@programming.dev · 3 months agomessage-square14fedilinkcross-posted to: programming@programming.dev
minus-squarepelya@lemmy.worldlinkfedilinkarrow-up4·3 months agoI guess it will translate the majority of the code which does not contain unsafe parts, and leave the pointer manipulation for manual rewrite.
minus-squareFlorianSimon@sh.itjust.workslinkfedilinkarrow-up2·3 months agoOr maybe it’ll write the unsafe parts in unsafe blocks?
minus-squarepelya@lemmy.worldlinkfedilinkarrow-up2·3 months agoThen there’s no point. Converting the code to Rust as-is will also transfer all the bugs.
minus-squareFlorianSimon@sh.itjust.workslinkfedilinkarrow-up4·3 months agoThere is. It’s a starting point to start converting the code to safe Rust. Some obstacles are removed.
I guess it will translate the majority of the code which does not contain unsafe parts, and leave the pointer manipulation for manual rewrite.
Or maybe it’ll write the unsafe parts in unsafe blocks?
Then there’s no point. Converting the code to Rust as-is will also transfer all the bugs.
There is. It’s a starting point to start converting the code to safe Rust. Some obstacles are removed.