News for hackers. Stuff that matters.
Re:An intro to Zig's integer casting for C programmers by vlovich123 on Tuesday May 11, 2021 @10:41AM (#27118652)
That’s not an alternative to memory safety. That’s just a basic security measure even if you write everything in a safe language like Rust or Zig (let alone the fact that you have enormous C/C++ legacy codebases that are likely still seeing ongoing development due to switching costs). The reason is you will always have some amount of unsafe code when dealing with the hardware and this is a hardening measure to protect against slipups.

There are no comments on this comment yet.