~/talk

Crash Course on the Kotlin Compiler

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

Step‑by‑step tour of how Kotlin code becomes JVM bytecode, with concrete examples: reverse engineering compiler plugins (the Sam‑with‑receiver plugin source and Gradle/CLI registration), K1 vs fir front end data formats and resolver stages, and the Compose back‑end that injects a synthetic composer via IR transformations showing the exact IR edits, generated bitmask logic, and where tests and PSI/descriptor mappings are needed. Builds run locally (note: compiler and compose required different Java versions) and inspected code actually compiles.

AI-written summary · about

  1. 0:00Introduction to Kotlin
  2. 1:42Compiler oversimplification
  3. 3:35K1 front end internals
  4. 6:57K2 front end and FIR
  5. 10:38Compiler back end IR
  6. 13:00Front end plugin example
  7. 19:53Jetpack Compose plugin
  8. 27:49Compiler resources
  9. 29:40Q&A and 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.