~/talk

Type System Tips for the Real World

Talkat RustConf 2017 · on Saturday, 2017-08-19· [rust]

Explains concrete Rust lessons from Diesel: using zero sized types to guarantee compile‑time elimination, replacing boxed recursive enums with generic struct variants to avoid heap overhead, and how monomorphization versus trait objects affects inlining and binary size. Shows a real benchmark where swapping unit for bool causes a 20% loss and demonstrates query construction that the compiler collapses into flat pushes and a single dynamic bind, enabling preparedstatement cache checks and very low runtime cost.

AI-written summary · about

  1. 0:00Start
  2. 0:06Type System Tips for the Real World
  3. 1:31Programming is full of trade-offs
  4. 10:28This isn't without tradeoffs
  5. 15:19A real world example
~/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.