Rust for the C++ Programmer
summary
Compares concrete Rust features to C++ equivalents and shows how they catch real bugs: an Option prevents calling stats after shutdown, the borrow checker flags use-after-move and forces ownership fixes, a threaded counter that nondeterministically miscounts in C++ fails to compile until rewritten with Arc + Mutex and clone, and Result plus the ? operator propagates errors without exceptions. Demonstrates derive macros (Clone Debug) and cargo plus serde for JSON; many examples compile and the Rust versions prevent classes of runtime errors.
AI-written summary · about
chapters (28)
- 0:00Introduction
- 1:50Overview
- 2:17Is Rust good enough
- 2:46What is Rust
- 3:42Rust Example 1
- 4:26Rust Example 2
- 13:19If
- 14:59Optional behavior
- 15:14Rust example
- 17:57Rust type system
- 18:31Stockholm syndrome
- 22:04CBs example
- 24:08Immutability
- 26:58Box
- 28:26Behavior
- 29:22Parent
- 29:56enum types
- 30:13Unions
- 30:58IP Addresses
- 33:24Explicit types
- 34:25Overload
- 40:18Result
- 44:13Question mark
- 47:36StandedExpected
- 52:03Fearless concurrency
- 52:26C concurrency
- 54:30Questions
- 57:10Whats Good
related talks
59mRust for C++ developers - What you need to know to get rolling with crates
58mRust for The Curious C++ Developers
01h 29mA Friendly Introduction to Rust for C++ Developers
25mRust and C++
36mRust as a High-Level Langage
35mLet’s Talk About Rust
47mWhat's unique about Rust?
27mHow Rust taught me to think about systems
