~/talk

ScalaClean: Adventures in Static Code Analysis

linkedin:roryjgraves
slides:none on file

Whole-program static analysis runs as a compiler plugin that captures elements, call relationships and annotations, writes positional metadata (requires -Yrangepos), builds a bidirectional call graph and uses graph coloring (mark-and-sweep) to find unreachable code. Running on an 8M-line Scala monorepo finds large removals (around 15–30% in experiments), speeds compilation, and tightens visibility, but breaks on macros, reflection and test-only entry points; current default behavior can delete code so overrides, annotations and an interactive HTML viewer are planned.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 1:29Human limitations in code
  3. 4:36Programmatic code improvement
  4. 8:50Speaker introduction
  5. 11:00Static code analysis defined
  6. 16:17ScalaClean project origins
  7. 18:47How ScalaClean works
  8. 23:43Capturing code metadata
  9. 27:17Complexities in liveness analysis
  10. 30:24Results and codebase impact
  11. 33:53Running ScalaClean at scale
  12. 37:48Test code and edge cases
  13. 40:16Debugging challenges
  14. 42:02Future development plans
  15. 44:12Multi-language potential
  16. 46:42Conclusion and call to action
  17. 47:22Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.