Building Rubyfmt
summary
Rubyfmt is an editor-focused Ruby autoformatter that transforms source to a minimal, consistent subset of Ruby and runs fast enough for format-on-save: 60 ms for 2,500 lines and about 30,000 lines/sec. Implementation moves parsing with ripper in Ruby into a Rust renderer by passing Ruby object pointers for speed. It refuses configurationβno style-related configurationβis distributed via GitHub releases (not a gem), has heavy repo-level tests, and currently drops some comments so itβs not yet recommended for production.
AI-written summary Β· about
chapters (12)
- 0:00Start
- 3:02My slide deck crashed keynote this morning
- 7:00Rubyfmt has no style related configuration
- 7:33Rubyfmt is designed to work like a unix tool
- 8:18Rubyfmt is not a Gem
- 10:07Testing strategy is extreme
- 11:18Penelope, why are you doing this?
- 11:29Hierarchy of nitpicking
- 21:01The goal is a minimal consistent subset of the Ruby language
- 22:03The Ruby standard library includes a Ruby parser called ripper
- 23:49How fast is fast enough?
- 32:49Sweating the details








