~/talk

Translating C to Safer Rust

Talkat OOPSLA 2021 · 2021-10-17..10-22· [rust, compilers-and-language-design]
links:none on file
links:none on file
links:none on file
links:none on file
slides:none on file

Paper presents an automated C→Rust translation that infers lifetimes and ownership, rewrites function and struct signatures, and iteratively uses Rust compiler errors to promote pointers through a lattice up to ownership or raw pointers. Evaluation on 17 open-source C programs fixes 76% of lifetime-unsafe pointers and 89% of their references, but overall only 8% of all pointers because many are unsafe for multiple reasons. Tool finishes most benchmarks in under two minutes; libxml2 requires 125 minutes. Process guarantees termination and can fall back to the original program.

AI-written summary · about

  1. 0:00Intro
  2. 0:13Outline
  3. 1:04Rust: an alternative
  4. 2:04The big picture
  5. 4:27Quantitative results
  6. 5:48Focus: Unsafe pointers
  7. 9:29Deriving lifetime information
  8. 10:08Figuring out lifetimes: Struct fields
  9. 10:47Figuring out lifetimes: Function signatures
  10. 11:48Configurations
  11. 12:56Qualitative results
  12. 14:07Performance results
~/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.