“Rust is safe” is not some kind of absolute guarantee of code safety
1–10 of 542 posts
Re: “Rust is safe” is not some kind of absolute guarantee of code safety
#2Re: “Rust is safe” is not some kind of absolute guarantee of code safety
#3Re: “Rust is safe” is not some kind of absolute guarantee of code safety
#4> You need to realize that
> (a) reality trumps fantasy
?
Re: “Rust is safe” is not some kind of absolute guarantee of code safety
#5To put things in context, Linus is being reasonable and wise and well-mannered once again. Wouldn't mind reading a few juicy expletives, to be honest.
Re: “Rust is safe” is not some kind of absolute guarantee of code safety
#6The comment seemed to be making reference to rust's safety guarantees about undefined behaviour like use after free.
Linus' seems to have a completely different definition of "safey" that conflates allocation failures, indexing out of bounds, and division by zero with memory safety. Rust makes no claims about those problems, and the comment clearly refers to undefined behaviour. Obviously, those other problems are real problems, but just not ones that Rust claims to solve.
Edit: Reading the chain further along, it increasingly feels like Linus is aruging against a strawman.
Re: “Rust is safe” is not some kind of absolute guarantee of code safety
#7Wouldn't be that sure about that. Getting the wrong answer can be a serious security problem. Not completing the operation... well, it is not good, but that's it.
Re: “Rust is safe” is not some kind of absolute guarantee of code safety
#8To put things in context, Linus is being reasonable and wise and well-mannered once again. Wouldn't mind reading a few juicy expletives, to be honest.
Linus may view his job as "Saying No" but the way he does it still leaves a little to be desired, because his reasoning is sound here, but it's less "Follow my reasoning" than "You don't want to get yelled at again do you?"
[0]: https://lore.kernel.org/lkml/CAFRnB2VPpLSMqQwFPEjZhde8+-c6LL...