~/talk

Kotlin Native Compiler Under the Hood

Talkat droidcon New York 2025 · 2025-06-25..06-26· [kotlin]
speakerdeck:heyitsmohit
slides:none on file

Walks through the Kotlin compiler stack from PSI to IR to codegen, shows how the K2 analysis API emits symbols, how IR is visited and mutated by the Compose compiler plugin, and how Kotlin/Native runs a phase engine to produce kexe binaries via Kotlin bindings to LLVM and dumped LLVM bitcode. Demonstrates the new Kotlin Swift export (beta) pipeline that maps IR to SIR then to Swift (not all features supported), shows performance timing per phase, and points to test data and a live code walkthrough for reproduction.

AI-written summary · about

  1. 0:00Kotlin Native compiler intro
  2. 1:07Repository and entry points
  3. 5:45Compiler architecture and K2 API
  4. 10:01Phase engine in Kotlin Native
  5. 12:06Kotlin to macOS executable
  6. 16:38Complex codebases like Kotlin
  7. 20:28LLVM bindings and IR conversion
  8. 23:01Performance metrics
  9. 23:43Kotlin to Swift export
  10. 27:26Swift Intermediate Representation
  11. 28:28Exploring with test data
  12. 29:12Q&A
~/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.