~/talk

"Eternal Sunshine of the Rustfmt'ed Mind"

Talkat RustConf 2024 · 2024-09-10..09-13· [rust, software-architecture]
slides:none on file

Explains how Rust format 1.0 shipped using the compiler parser (referred to as Rosy), why that AST-based approach makes macros and maintenance hard, and why a custom IR between tokens and an AST plus far fewer options would be faster and easier to maintain. Gives concrete tradeoffs: shipped successfully in 2018, handles almost all crates but is slow on large files, struggles with macro source vs expanded AST, and the prototype approach accepts occasional line overflow to gain performance.

AI-written summary · about

  1. 0:00Introduction
  2. 0:30Why do we need a formatting tool
  3. 2:10Function declarations
  4. 6:54Comments
  5. 7:23Success
  6. 8:06RFC Process
  7. 11:23Design Space
  8. 18:44Conclusion
~/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.