~/talk

Deep Dive into the Compose Compiler

Talkat droidcon New York 2024 · 2024-09-19..09-20· [android]
speakerdeck:heyitsmohit
slides:none on file

Explains how the Compose compiler actually builds a slot table (pages of 64 slots, gap buffer today, new linked‑page PR in progress) and how the compiler plugin generates IR that injects a composer into each restartable composable; shows primitive and reference slot pages, group addresses and packed bit metadata, the recomposer → applier flow, and the update path that produces a changes list (about 35 operation kinds) applied in batch to update UI nodes.

AI-written summary · about

  1. 0:00Compose Compiler intro
  2. 1:10Compose architecture
  3. 2:13Compose for business logic
  4. 6:54Subway app analogy
  5. 8:21Slot table purpose
  6. 11:55Slot table structure
  7. 15:48Group metadata relationships
  8. 17:57State tracking with slots
  9. 20:45Composer engine
  10. 22:11Initial composition setup
  11. 25:50IR code restart groups
  12. 30:47Recomposition scope
  13. 34:01Updating slot table
  14. 38:14UI tree changes
  15. 39:19Live Compose source walkthrough
  16. 45:43Kotlin compiler repos
~/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.