~/talk

Type Theory for the Working Rustacean

Talkat Rust Belt Rust 2019 · 2019-10-18..10-19· [rust]
slides:none on file

Shows exactly how Rust’s type system is used to mimic dependent types: defines a type-level natural via a gnat trait, implements a size-proof Vec that carries its length in the type, and replaces copy_from_slice with a copy_from_proven_slice that uses a less_or_equal trait (associated type result = true) so mismatched lengths fail at compile time. Demonstrates push that increments the type-level length and claims this pattern avoids runtime crashes that once cost a day and a half of debugging.

AI-written summary · about

  1. 0:00Start
  2. 0:52Type Theory for the Working Rustacean
  3. 5:48fn f(x: u8) - String
  4. 8:03Dependent Types
~/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.