~/talk

Adventure of a Lifetime: Extract Method Refactoring for Rust

Talkat OOPSLA 2023 · 2023-10-23..10-27· [rust]
name:Sewen Thy
links:none on file
slides:none on file

An automated pipeline hoists a candidate function then applies staged repairs to satisfy Rust ownership and lifetimes, implemented as an IntelliJ Rust plugin called REM. A novel static intra-procedural ownership analysis infers borrow vs. move, and lifetimes are resolved by invoking rustc via uses cargo check as lifetime oracle. REM succeeds on 37 of 40 real-world extractions, reproduces developer edits, averages about 1 second per extraction, and outperforms vanilla IntelliJ and rust-analyzer extractions. Extract Method as hoist + repair static intra-procedural ownership analysis

AI-written summary · about

  1. 0:00Introduction
  2. 0:26Extract method refactoring in Rust
  3. 1:31Challenges in Rust extraction
  4. 3:19Refactoring as repair problem
  5. 4:22Step-by-step repair pipeline
  6. 6:27Live tool demo
  7. 7:31REM evaluation with research
  8. 10:42Performance vs existing tools
  9. 11:22REM limitations and future
  10. 12:05Conclusion
  11. 12:28Q&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.