~/talk

A Tale of Teaching Rust

Talkat RustConf 2017 · on Saturday, 2017-08-19· [rust]
slides:none on file

A quarter‑length class teaches Rust to 26 undergraduates over three weeks, focusing on ownership/borrowing/lifetimes, Send/Sync and rustlings exercises. Assignments include a partially completed dining‑philosophers that reveals about one third of submissions compile but break the problem, and a CVE analysis showing where Rust would prevent memory bugs. Students report the compiler is picky, syntax feels odd, yet most become more confident and many want to continue using Rust.

AI-written summary · about

  1. 0:00Intro
  2. 2:03The Pitch
  3. 2:56Week 3: Explain why it matters
  4. 3:32What's the approach?
  5. 4:27Suggestions: 1. Do examples beforehand 2. Treat rustc as a teacher 3. Don't fake it
  6. 5:19Rust Playground The (New) Rust Book Rustlings Godbolt
  7. 6:13The Class
  8. 7:01Aliasing XOR Mutability
  9. 7:12Emphasize the rules Give lots of examples Show some complex cases
  10. 8:55Sometimes you need code that's generic over lifetimes
  11. 9:37Assignment: do the move semantics Rustlings exercises
  12. 10:05Threads w/out data races
  13. 11:11Introduce the key stdlib types: Arc, Rc, Mutex, RwLock
  14. 11:33Make clear that Rust stops data races, not race conditions
  15. 12:23Assignment: solve the Dining Philosophers problem
  16. 14:04Safety & Security
  17. 14:18Explain Safe Rust & Unsafe Rust
  18. 15:18Unsafe Rust can't trust Safe Rust
  19. 15:54Safety lies at the module boundary
  20. 16:38Assignment: find a CVE that could have been stopped by Rust
  21. 18:06The Results
  22. 18:44And the syntax was weird
  23. 19:38Students felt Rust was really powerful
  24. 20:07Students felt more confident than they did with C++
  25. 20:21The ergonomics initiative will help new Rustaceans!
  26. 21:14Conclusion
~/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.