A Hitchhiker's Guide to Compose Compiler: Composers, Compiler Plugins, and Snapshots
summary
Explains how Jetpack Compose injects a compiler plugin that transforms Kotlin into augmented IR to generate restartable, movable, and replaceable groups, how the snapshot system tracks reads and writes to detect diffs, and how groups are stored in a runtime slot table that drives selective recomposition. Shows the IR phase doing the heavy lifting, the applier building an Android layout node tree, and how positional memoization skips work so UI updates stay efficient.
AI-written summary · about
chapters (10)
- 0:00Introduction to Compose
- 1:58Declarative UI frameworks
- 4:05State in Jetpack Compose
- 7:53Snapshot system explained
- 12:29Kotlin compiler phases
- 17:26IR transformations in Compose
- 19:54Slot table and groups
- 23:05Composition to UI tree
- 26:55Rendering and drawing UI
- 27:58Acknowledgments and Q&A
related talks
28mA Hitchhiker's Guide to Compose Compiler: Composers, Compiler Plugins, and Snapshots
39mA Hitchhiker's Guide to Compose Compiler: Composers, Compiler Plugins, and Snapshots
28mExplained: Compose Compiler and Runtime
45mCompiler plugins: modifying and analyzing Compose
40mThe Compose Runtime, Demystified
59mDecomposing Compose
19mJumping into Jetpack Compose way too early to see what's inside
37mBuilding a Kotlin Compiler Plugin for Compose Insights
