~/talk

Rust Without Tears: A Guide to Avoiding Common Traps

Talkat Rustikon 2025 · on Wednesday, 2025-03-26· [rust]
slides:none on file

Rust avoids classical OOP by preferring composition over inheritance, showing a boxed dyn Trait example that uses heap allocation and virtual calls while an enum version is twice as fast in a criterion benchmark and a generic version is three times faster via monomorphisation (at the cost of larger binaries). Lifetimes act as documentation to prevent excessive cloning; use COW, Arc/RC or smart pointers instead. Error handling shows unwrap is fastest, match is quick, and the ? operator with propagation is slowest. Async requires understanding futures as self-referential and Pin, plus choosing a runtime like Tokyo.

AI-written summary · about

  1. 0:00Rust’s philosophy
  2. 2:16Rust avoids classical OOP
  3. 5:54Composition over inheritance
  4. 7:20Memory management vs OOP
  5. 8:25Understanding lifetimes
  6. 10:11Avoid excessive cloning
  7. 12:01Zero-cost abstractions
  8. 13:06Error handling vs Java
  9. 15:38Async in Rust
  10. 18:38Key takeaways
~/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.