Tag

memory-safety

3 articles tagged with "memory-safety"

rust

Why Rust Has No NULL (And C Still Does)

C hands you NULL and quietly trusts you to check it. Rust deletes NULL from the language entirely and turns "the value might be missing" into a compile-time error — while still costing zero extra bytes. Tony Hoare’s Billion Dollar Mistake, from the segfault to the match.

rust

Ownership: The Secret of Rust's Power

In C, memory is a shared pizza — anyone can grab a slice, and anyone can throw the whole thing away. Rust replaces the pizza with a relay race: three ownership rules, moves, and borrowing, all enforced by a compiler that slaps your hand before the bug ever ships.