~/talk

A Rust Crate that also quacks like a modern C++ Library

Talkat RustFest Paris 2018 · 2018-05-26..05-27· [rust]
slides:none on file

encoding_rs is the real example: its Rust API is mapped to a C ABI and an almost‑exact modern C++ surface used in Firefox 56, replacing the old 1999 library. Practical techniques include exposing Rust statics as C pointers, using gsl::span for slices, translating Box to std::unique_ptr and using operator delete routing to free with Rust's allocator, and avoiding vtables so C++ has no inheritance over Rust objects. Variant enums and Cow lifetimes require workarounds.

AI-written summary · about

  1. 0:00Introduction and context
  2. 2:03Analyzing the Rust API
  3. 5:38Modernizing the C++ API
  4. 9:32Memory management and FFI
  5. 14:12Method calls and limitations
  6. 17:00Type mapping and containers
  7. 21:32Advanced API implementation
  8. 25:25Summary and conclusions
~/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.