~/talk

K2 Compiler plugins

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

Lists K2 changes versus K1 with concrete effects: K2 plugin API exposes explicit extension points, predicates, and transforms so plugins can add members, change modifiers, register new diagnostics, or extend type checks; it distinguishes front-end vs back-end plugins (front-end can affect analysis and diagnostics, back-end edits IR but cannot change earlier analysis), shows migration pitfalls and Gradle/IDE wiring, compares KSP and annotation processors, gives examples (no‑arg, all‑open, serialization, reflect, Compose) and reports that K2 improves IDE support and performance though API stabilization is ongoing.

AI-written summary · about

  1. 0:00Intro
  2. 2:52No source code generation!
  3. 3:13Make classes & members open
  4. 4:13Improve your DSL
  5. 6:11Standard compiler plugins
  6. 6:55Extend type system
  7. 8:20Black box compiler level
  8. 8:58Frontend-backend compiler level
  9. 9:37K2 Frontend structure
  10. 12:15Approaches to extending compiler
  11. 13:19Kotlin Annotation Processing (KAPT)
  12. 15:10Kotlin Symbol Processing (KSP)
  13. 17:48Kotlin Compiler plugins
  14. 20:21Backend VS Frontend plugins
  15. 23:06Backend plugins
  16. 23:30IR backend plugin: API
  17. 25:38Frontend compiler plugins
  18. 26:39Frontend: kotlinx.serialization
  19. 30:18K2 plugin API. Capabilities
  20. 31:27K2 plugin API. Extension example
  21. 33:51K2 plugin API. Other predicates
  22. 34:37K2 frontend plugin creation
  23. 35:48K1 plugin usage (Gradle)
  24. 36:39K2 plugin usage PLANNED DSL
~/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.