~/talk

Building on an unsafe foundation

Talkat Rust Belt Rust 2017 · 2017-10-26..10-27· [rust]
speakerdeck:jorendorff
slides:none on file

Claims that unsafe is necessary and explains exactly how: shows real standard‑library code where Vec::push uses raw pointers and pointer arithmetic to write into uninitialized space and where capacity doubling and a single unsafe write plus a length bump must be proven correct. Explains tools used — unsafe blocks as explicit "trust me" gaps checked by contracts, invariants, types and the borrow checker — and demonstrates how a safe API is built on small, audited unsafe pieces.

AI-written summary · about

  1. 0:00Start
  2. 5:52Unsafe operations in C++, 1/n
  3. 9:53Undefined behavior: consequences
  4. 12:44THE RUST HAIKU
  5. 13:14What dangers?
  6. 24:33How to write unsafe Rust
  7. 25:51Safe or unsafe?
  8. 30:23Build safe code from unsafe parts by enforcing the contract yourself
~/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.