BearPear@lemmy.world to Linux@lemmy.mlEnglish · 3 年前Are there any advantages of using Rust instead of C in the Linux kernel?message-squaremessage-square36fedilinkarrow-up189file-text
arrow-up189message-squareAre there any advantages of using Rust instead of C in the Linux kernel?BearPear@lemmy.world to Linux@lemmy.mlEnglish · 3 年前message-square36fedilinkfile-text
minus-squareJulianRR@lemmy.worldlinkfedilinkarrow-up12·3 年前So. Compile times? I’m willing to have slower compile times for more stable software.
minus-squareJulianRR@lemmy.worldlinkfedilinkarrow-up2·3 年前I think at some level you can’t really get both. The rust compiler is constantly being sped up, but the amount of checking it does simply takes time. It’s the age old adage “The fastest code is the one that doesn’t exist”. The fastest compilation checks are the ones you don’t do.
Then why would you choose zig?
deleted by creator
So. Compile times?
I’m willing to have slower compile times for more stable software.
deleted by creator
I think at some level you can’t really get both. The rust compiler is constantly being sped up, but the amount of checking it does simply takes time.
It’s the age old adage “The fastest code is the one that doesn’t exist”. The fastest compilation checks are the ones you don’t do.
deleted by creator