~/talk

Memory Safety Everywhere with Both Rust and Carbon

Talkat RustConf 2025 · 2025-09-02..09-05· [compilers-and-language-design]
slides:none on file

Compares Rust’s two-state borrow model and trait-based workarounds with Carbon’s design choices aimed at C++ brownfield migration: alias set annotations to model allowed buffer aliasing, a richer mutability lattice including non‑exclusive mutable references, and support for separate compilation with API/impl files and overloads/templates to match C++ APIs. Proposes a borrow‑checker-like verifier, function/file-level strictness for unsafe markings, an optional permissive unsafe mode for legacy behavior, and a goal of one‑to‑one translation‑unit migration for incremental porting. Slides linked in uploader description.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:47Memory safety and ecosystems
  3. 3:12Greenfield vs brownfield definitions
  4. 4:36Maximalist approach to memory safety
  5. 6:23Carbon’s role in brownfield migration
  6. 7:27Language design differences Rust vs Carbon
  7. 8:09Code organization in Rust and Carbon
  8. 13:33Type systems in Rust and Carbon
  9. 14:58Inheritance and complexity
  10. 15:40Function overloading in Carbon
  11. 16:44Generics and templates
  12. 17:26Safety design in Carbon
  13. 18:08Mutability and exclusivity models
  14. 20:13Real-world API migration challenges
  15. 23:45Rust’s structural API constraints
  16. 24:49Exclusivity and pointer invalidation
  17. 28:41Rust’s unsafe migration trade-offs
  18. 31:08Simplicity vs complexity trade-offs
  19. 32:13Collaborative path to memory safety
  20. 32:59Q&A session
~/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.