~/talk

Meta-programming with KSP and Kotlin compiler plugins

Talkat KotlinConf 2023 · 2023-04-12..04-14· Granbeurszaal· [kotlin]
slides:none on file

Claims that KSP runs noticeably faster than kapt (marketing says ~2×), that it has a stable processor API and Java source support, and that it only generates new Kotlin code (no expression-level edits) are all stated. Actual compiler work hits the IR: kotlin compiler plugins can add synthetic declarations, mutate IR at expression level, and enable things like Swift code generation for KMM (example: Sky) that successfully links into frameworks. Downsides: complex setup, unstable APIs across Kotlin releases, heavy testing burden, and stricter Kotlin/Native requirements.

AI-written summary · about

  1. 0:00Start
  2. 0:54Agenda
  3. 12:33Compiler plugins
  4. 19:46SyntheticResolveExtension
  5. 20:41IrGenerationExtension
  6. 22:17Setting up
  7. 37:10Recap
~/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.