~/talk

A Friendly Introduction to Rust for C++ Developers

Talkat ACCU 2022 · 2022-04-06..04-09· [rust, c-and-cpp]
slides:none on file

Rust enforces ownership and borrowing so the compiler rejects dangling or simultaneous mutable/immutable references with clear error messages; examples compile on Compiler Explorer and the Rust Playground. Cargo plus crates.io provide an integrated build, test and package workflow. Examples show move-by-default semantics (use derive Copy/Clone to opt into copying), explicit lifetime annotations when returning borrowed refs, traits and generics working like C++ concepts, enums with exhaustive match checks, and Box for dynamic dispatch; runtime speed targets C++ and compile times sit near LLVM-based C++.

AI-written summary · about

  1. 0:00Introduction
  2. 2:18Questions
  3. 3:19Disclaimer
  4. 4:14How to learn Rust
  5. 7:07Tooling
  6. 8:58Safety
  7. 10:37Error Messages
  8. 12:03Learning Curve
  9. 13:23What is Rust
  10. 14:44References
  11. 15:46Free Resources
  12. 17:26Paid Resources
  13. 18:26Syntax
  14. 22:26Const
  15. 24:36Values and References
  16. 26:44Examples
  17. 27:51Reordering code
  18. 30:10Valid references
  19. 31:57Lifetimes
  20. 33:28Get Bigger Value
  21. 36:56Example
  22. 41:30Compile Times
  23. 44:05Copy Move Semantics
  24. 48:41Expressions
  25. 51:55Immutable
  26. 57:03methods
~/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.