Comment by AlotOfReading

6 hours ago

"Safe" has a very specific definition in Rust. It's not identical to the broader definition used in technical English. You can easily have safe rust code with behaviors any reasonable layperson would call unsafe, like crashing a plane. The original article, comment, and replies were using the word in the Rust sense from my reading, not the English meaning.

Then that's equivocation. Why do we want a very specific form of safety instead of wanting safety in general?

  • Memory safety is:

    1. Foundational for other forms of safety

    2. Has an objective definition, when some other forms of safety are either subjective or inter-subjective.

    That said, I don't understand why your parent brought this up to you, you are talking about memory safety in your original comment here, so that's what Rust's safety is about.

    • I feel that the buzz phrase "memory safety" has been defined by Rust to mean "the safety Rust gives you". Obviously memory usage can be more safe or less safe, and Rust is decidedly on the safe end of the spectrum, but it also has the gaping type system holes demonstrated in cve-rs which completely shatter any claim that safe code is safe, and there are other bugs which occur in Rust while the programmer is distracted by trying to prove their code is memory-safe.

      5 replies →

  • > Why do we want a very specific form of safety instead of wanting safety in general?

    Because a “very specific form of safety” is a useful tool in achieving “safety in general”

    Because a “very specific form of safety” is tractable for a compiler and language runtime to achieve, “safety in general” isn’t

  • > safety in general

    This is impossible. General words like "safe" and "good" are subjective, and useless in a technical context unless you ground the discussion by giving them specific definitions. Otherwise everyone ends up talking past each other.