Correctness, performance, and productivity tradeoffs
Why Rust chose ownership over GC
Reading time
25 min
+ 10 min exercises
Mental Model Illustration
Aliasing XOR Mutation
This is the deepest visual in Chapter 2 because it compresses a large part of Rust’s philosophy into one rule. If you preserve “many readers or one writer,” several later safety guarantees fall out of it.
Principles Map
Six Design Principles Around a Rust Core
These are not independent slogans. They reinforce one another. Ownership makes resource responsibility explicit; explicitness gives the compiler something to check; zero-cost abstractions keep those checks compatible with systems-level performance.
Zero Cost Proof
High-Level Rust vs Runtime-Heavy Alternatives
“Zero-cost” is not magic language marketing. It is a demand that expressive, generic code should still compile to machine behavior competitive with the hand-written low-level equivalent.