~/talk

Building a Kotlin Compiler Plugin for Compose Insights

links:none on file
slides:none on file

Builds two plugins — a front-end plugin that inspects FIR function calls and enforces a restricted scope annotation on slot lambdas, emitting compiler errors when a composable is not a member of the receiver; and a backend plugin that injects a call to a runtime composition tracker into composable block bodies via IR transformation. Project includes Gradle + CLI plumbing, a runtime library with a CompositionLocal, and UI tests that assert exact recomposition counts (demo shows asserting two recompositions).

AI-written summary · about

  1. 0:00Compiler plugins intro
  2. 2:28Plugins for large teams
  3. 5:13Tool for code analysis
  4. 9:03Front-end vs backend plugins
  5. 10:06Front-end plugin for Compose slots
  6. 18:07Project setup with Gradle
  7. 20:11FIR checker for restricted composables
  8. 26:31Backend plugin for composition tracking
  9. 31:11IR transformer for code injection
  10. 36:24Testing and validating plugins
~/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.