News for hackers. Stuff that matters.
Re:What it feels like when Rust saves your bacon by 3a2d29 on Friday June 24, 2022 @01:14PM (#31865942)
> High quality teams like the Linux kernel team and PostgreSQL, do periodically have serious security bugs that are things Rust would have caught.

Safe rust would have caught. If you had to drop into unsafe to do what they did, the serious security bugs would still have happened.

Re:What it feels like when Rust saves your bacon by jackmott42 on Friday June 24, 2022 @02:21PM (#31867072)
A fair point, though the few security issues in recent years I've looked at were not the kind of thing you would turn to unsafe rust for. But I've certainly not done a broad enough sampling to say what % of cases are like that.
Re:What it feels like when Rust saves your bacon by 3a2d29 on Friday June 24, 2022 @02:51PM (#31867600)
To be fair, I am sure Rust catches a fair amount (compared to C++ which would catch 0). I just think that phrasing rust has having 0 memory errors can be a tad inaccurate.
Re:What it feels like when Rust saves your bacon by ttfkam on Saturday June 25, 2022 @10:25AM (#31875552)
Except when something goes wrong, you can typically focus all your attention on the unsafe blocks, which should be a very small portion of your codebase, if it exists at all. (Contrary to popular belief, unsafe Rust code is neither mandatory nor widespread.)

By contrast and comparing apples to apples, your entire C or C++ codebase is the equivalent of one giant unsafe block. You can bring in 3rd party tools to perform some of the static analysis the Rust compiler does for you, but call it for what it is.

By default, Rust is safe while C & C++ are not.