~/talk

Rust/C++ Interop: Carcinization or Intelligent Design?

Talkat NDC TechTown 2025 · 2025-09-22..09-25· [rust]
slides:none on file

Claim: general-purpose high‑fidelity interop has not yet been achieved. Survey covers C as the duct‑tape route and tools: bindgen/cbindgen (source‑gen C FFI, limited types), cxx requires pinning and boxes everything — no pass‑by‑value, Zengar (IDL with size/alignment so you can pass by value), and Cubit (deep Clang integration aiming for full C++ surface; Google backing). Notes ABI surprises: tail padding, non‑relocatable C++ objects, C++26 “trivial relocatable” fixes, and a MoveIt crate workaround; compiler metadata is essential for performant boundaries.

AI-written summary · about

  1. 0:00Rust/C++ interop challenges
  2. 7:18C as interop lingua franca
  3. 11:40CFFI and FFI limitations
  4. 16:37CXX interop solution
  5. 19:29Zengar layout-aware interop
  6. 23:20Cubit compiler-integrated interop
  7. 28:42Why interop remains difficult
  8. 33:45API stability in interop
  9. 39:05Resilience boundaries for performance
  10. 39:27Tail padding pitfalls
  11. 44:51C++26 trivial relocation
  12. 50:12Compiler integration needs
  13. 53:18Industry interop standardization
  14. 57:14Interop resources and future
  15. 57:59Q&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.