Demystifying the Kotlin Compiler
summary
Explains how to go from meta programming as gateway to real compiler work by showing AST parsing, writing a compiler plugin and lifting the Compose hood; clarifies the K1/K2 naming and K2 FIR and IR changes and why they matter. Gives concrete tooling notes (IntelliJ, compiler plugins, Compose) and measurable effects like noticeably faster IDE behavior and changed codegen. Advises starting tiny and learning socially, and references the book Programming Android with Kotlin: Achieving Structured Concurrency with Coroutines.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:08Amanda’s Kotlin journey
- 3:36Compiler and metaprogramming
- 5:41Metaprogramming and compilers
- 8:10Compiler work feasibility
- 9:53Learning metaprogramming
- 11:41Kotlin compiler explorers
- 12:23Recent Kotlin compiler changes
- 14:48Kotlin and Android
- 15:55Amanda’s Kotlin book
- 17:43Amanda online and in Chicago
related talks
45mCompiler plugins: modifying and analyzing Compose
36mKotlin Native Compiler Under the Hood
33mMeta-programming with KSP and Kotlin compiler plugins
01h 13mThe Magic of Kotlin Compiler Extensions
01h 12mKotlin Compiler: Past, 1.4 and Beyond
38mHow Kotlin 2.0 Will Evolve Android Development
26mBuild your own compiler with KSP
34mKotlin: Uncovered
