~/talk

The Edge of Safe Rust

Talkat TokioConf 2026 · 2026-04-20..04-22· [rust]
slides:none on file

Claim: Rust can safely host tracing GC for cyclic pointer graphs by combining branding lifetimes with generative arena contexts and index-backed storage. Implementation uses a slot vector with generation checks, projection types to instantiate per-enter lifetimes, and an unsafe Trace trait (usually derived by proc macro) to guarantee reachability. The crate runs in production (Ruffle and a farming sim use it), collects by roots only, and mostly avoids UB while remaining Send/Sync-friendly.

AI-written summary · about

  1. 0:00Introduction
  2. 3:24Cyclic pointers in Rust
  3. 11:10References and bump allocators
  4. 17:48Lifetimes versus garbage collection
  5. 28:30Implementing tracing and collection
  6. 36:55Value of this garbage collector
  7. 40:43Explore the design space
~/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.