~/talk

"Rust Interop: Memory Safety Across Foreign Function Boundaries"

Talkat RustConf 2024 · 2024-09-10..09-13· [security, rust]
slides:none on file

Describes concrete pain points from integrating Python's garbage collector with Rust via mmtk integration, showing that automated bindings often fail: bindgen mis‑handles unions and macro expansion, and build‑time generation causes inconsistencies. Explains mismatched semantics—aliasing, destructor delegation, integer conversions—and practical workarounds: prefer primitives or pointers, use containers/allocator tables for pointer stability, and document FFI safety requirements. Calls for tooling to track lifetimes across boundaries and empirical study of how unsafe code is actually used.

AI-written summary · about

  1. 0:00Intro
  2. 1:12Memory Safety in Rust
  3. 7:08Rust Hypothesis
  4. 9:15Use Cases
  5. 10:18Technical Challenges
  6. 11:03Generation of bindings
  7. 14:02Memory model
  8. 16:10Data conversion
  9. 17:41Documentation
  10. 19:11Passing Data
  11. 19:54Passing struct
  12. 20:27Tracking references
  13. 22:11Lifetimes
~/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.