~/talk

Meta-programming with K2 compiler plugins

slides:none on file

Builds several K2 compiler plugins: a declaration checker that enforces lowercase class names (reports warnings), an assignment transformer that rewrites assignments into MutableStateFlow .value writes (works at compile time), an AutoFactory generator that creates nested factory classes (needs FIR+IR and mostly works), and an autoclosure emulation that wraps string args into lambdas for conditional logging. Shows IntelliJ setup (enable in-process compiler, toggle K2 registry flags), uses kotlinc-compile-testing for tests, and warns about unstable APIs, poor docs and partial K2/IDE support.

AI-written summary · about

  1. 0:00Meta-programming with K2
  2. 4:59Kotlin compiler plugin challenges
  3. 7:33K2 plugin development setup
  4. 12:53Class name validation with FIR
  5. 14:41Assignments to StateFlow
  6. 17:56AutoFactory plugin with FIR and IR
  7. 24:29Autoclosure for Kotlin
  8. 29:10Debugging K2 plugins
  9. 34:30Lessons from K2 plugins
  10. 38:01Should you build a plugin?
  11. 40:29Future of K2 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.