~/talk

Testable Compiler Plugin Development in Scala 3

links:none on file
slides:none on file

Shows how to build a working Scala 3 compiler plugin and a test harness that actually runs the Dotty compiler phases, using SBT, the Scala 3 compiler internals and munit. Provides a giter8 template, an sbt-munit-compiler-toolkit plugin, a library of munit fixtures and a snapshot test gadget (munit-snap) that captures compiler output. Demonstrates hooking into nearly 90 compiler phases, handling ~60 typed tree variants, creating contexts, running checkCompile-based tests, and validating that generated-transformations and snapshot regressions pass in CI.

AI-written summary · about

  1. 0:00Intro
  2. 1:15Programs are Data
  3. 3:03What is a Compiler Plugin?
  4. 3:52Creating a compiler plugin
  5. 11:01The scala phases
  6. 12:41Testing a compiler plugin.
  7. 15:13Attribution for technique
  8. 21:29Implementing a transform.
  9. 28:39Snapshot Testing
~/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.