~/talk

From C++ APIs to Idiomatic Rust: Wrapper Design Patterns

links:none on file
slides:none on file

Google presents an incremental migration recipe: use KUIT to generate raw bindings then layer a five-step interop process—scope and analyze, audit bindings, write FFI shims, design idiomatic Rust wrappers, and run differential tests—to turn unsafe C++ edges into safe Rust APIs. The talk quantifies risk (70% of severe vulnerabilities), lists five recurring friction patterns (movability, thread safety, strings, templates, lifetimes), shows concrete fixes (pinning, UnsafeCell/thread annotations, byte-slice UTF‑8 validation, boundary shims) and cites differential fuzzing as the high-value verifier.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 4:48Five-step interop framework
  3. 6:26Core interop patterns overview
  4. 7:10Pattern one movability
  5. 13:17Pattern two concurrency
  6. 16:48Pattern three strings and UTF8
  7. 18:33Pattern four error handling
  8. 21:38Pattern five lifetimes
  9. 25:48Six principles for safe interop
  10. 30:32Conclusion 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.