zlacker

[return to "“Rust is safe” is not some kind of absolute guarantee of code safety"]
1. Pulcin+H4[view] [source] 2022-10-02 14:54:33
>>rvz+(OP)
Not all that familiar with the specifics of Rust, but I assume it’s “safety” is somewhat similar to Swift’s “safety,” so type safety and memory safety, which does not mean no crashes, just that you will e.g. crash on an array OOB error rather than start writing or reading to random bits of memory.
◧◩
2. static+95[view] [source] 2022-10-02 14:57:15
>>Pulcin+H4
Rust's "safety" is memory safety. It's relatively well defined for a technical term: https://en.wikipedia.org/wiki/Memory_safety

edit:

> Yeah I was just trying to provide a clear definition, I didn't think you were implying it was BS.

(would have replied but I'm rate limited on HN - thanks dang!)

◧◩◪
3. Pulcin+h6[view] [source] 2022-10-02 15:03:51
>>static+95
Sorry didn’t mean to imply that it was BS or anything with the scare quotes. More that there is a more specific meaning behind it than some laymen’s interpretation of the word safe.

I know I was a little surprised when I was learning Swift after hearing it was called safe only to experience crashes with array OOB. Took some explanation and thinking to understand what was meant by safe.

[go to top]