~/talk

Rust for the C++ Programmer

Talkat ACCU 2023 · 2023-04-19..04-22· [rust, c-and-cpp]
name:CB Bailey
links:none on file
slides:none on file

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

  1. 0:00Introduction
  2. 1:50Overview
  3. 2:17Is Rust good enough
  4. 2:46What is Rust
  5. 3:42Rust Example 1
  6. 4:26Rust Example 2
  7. 13:19If
  8. 14:59Optional behavior
  9. 15:14Rust example
  10. 17:57Rust type system
  11. 18:31Stockholm syndrome
  12. 22:04CBs example
  13. 24:08Immutability
  14. 26:58Box
  15. 28:26Behavior
  16. 29:22Parent
  17. 29:56enum types
  18. 30:13Unions
  19. 30:58IP Addresses
  20. 33:24Explicit types
  21. 34:25Overload
  22. 40:18Result
  23. 44:13Question mark
  24. 47:36StandedExpected
  25. 52:03Fearless concurrency
  26. 52:26C concurrency
  27. 54:30Questions
  28. 57:10Whats Good
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.