~/talk

Ruff: An Extremely Fast Python Linter and Code Formatter, Written in Rust

Talkat PyCon US 2024 · 2024-05-15..05-23· [python]
slides:none on file

Ruff is a Rust linter and formatter that claims 10x–1000x faster than alternatives and records millions of downloads per month, and the talk gives concrete reasons why: single-tokenize/parse/semantic model to avoid duplicated work, a handwritten parser that doubles parser speed and yields a 2x parser / 20–40% whole-tool speedup, byte‑offset indexing that cuts runtime by about 10%, small integer stack optimization saving 2–8% in lexing, and replacing a suppression regex with a hand lexer for 3–10× comment parsing.

AI-written summary · about

  1. 0:00Ruff introduction
  2. 10:41Speed principles
  3. 22:48Optimization examples
  4. 37:44Parser rewrite gains
  5. 43:02Rust's role
  6. 57:13Funding and future
  7. 1:00:03Benchmarking strategy
~/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.