News for hackers. Stuff that matters.
Re:OpenBSD – pinning all system calls by abound on Monday December 11, 2023 @10:37PM (#38609097)
> One of the more under-appreciated features of Rust is that it traps on integer overflow / underflow by default.

I think this is only true on debug builds, with --release (which most Rust binaries an end-user uses should be compiled with) it just wraps [1] [2]

[1] https://github.com/rust-lang/rfcs/blob/26197104b7bb9a5a35db2... [2] https://stackoverflow.com/a/60238510

There are no comments on this comment yet.