~/talk

Production Unsafe Rust

Talkat EuroRust 2025 · 2025-10-09..10-10· [rust]
slides:none on file

Describes when unsafe Rust is justified and how to do it safely: use PEB framework—profile to find real bottlenecks, exhaust safe alternatives, benchmark for order‑of‑magnitude wins—and isolate unsafe to the smallest scope behind safe APIs. Shows Apache Arrow’s scaler buffer that implements zero-copy slicing with alignment checks and ABI encapsulation, deployed in Polars/DataFusion and yielding measured 10–50× speedups; shows Crossbeam’s epoch-based lock‑free memory with formal proofs. Recommends tools: flame graphs, proptest/quickcheck, cargo-fuzz and Miri, heavy testing and code review.

AI-written summary · about

  1. 0:00Introduction
  2. 0:49Unsafe Rust in production
  3. 2:55PEB framework explained
  4. 4:21Apache Arrow zero-copy slicing
  5. 5:47Safety guarantees in Arrow
  6. 7:54Lessons from Apache Arrow
  7. 8:39Crossbeam lock-free structures
  8. 10:03Memory reclamation in Crossbeam
  9. 11:28Text editor performance needs
  10. 12:12Why unsafe in text editors
  11. 13:39Zero-copy buffer operations
  12. 14:23Isolation pattern for safety
  13. 15:06Building trust in unsafe code
  14. 16:32Team knowledge transfer risks
  15. 17:38Red flags in unsafe code
  16. 18:40Conclusion and Q&A
~/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.