~/talk

Cpp2Rust: Automatic Translation of C++ to Safe Rust

Talkat PLDI 2026 · 2026-06-15..06-19· [rust]
links:none on file
links:none on file
links:none on file
links:none on file
links:none on file
links:none on file
links:none on file
slides:none on file

Cpp2Rust automatically translates arbitrary C++ into memory-safe Rust by representing locals as Rc<RefCell<T>>-backed values and pointers as weak PTR handles that perform runtime ownership and mutability checks; it then runs source-to-source passes that eliminate RC/RefCell/Option eliminations when safe. The open-source tool translates 13k LOC (WOFF2 and Brunsli) instantaneously and without adding bugs, and after optimizations achieves 2% compression slowdown on WOFF2 and ~6× slowdown on Brunsli versus C++.

AI-written summary · about

  1. 0:00Cpp2Rust project
  2. 1:05Switching from C++ to Rust
  3. 2:50C to Rust translation limits
  4. 3:53Cpp2Rust: value and PTR types
  5. 5:59Performance versus safety
  6. 7:06Mechanical translation
  7. 8:49Source-to-source optimizations
  8. 10:36Benchmarking translated apps
  9. 13:47WOFF2 performance results
  10. 14:29Brotli performance results
  11. 15:31Summary and future work
  12. 15:55Q&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.