~/talk

Kotlin: Dissecting the stdlib

Talkat GOTO Chicago 2019 · 2019-04-29..04-30· [kotlin]
slides:none on file

Walks the stdlib source and shows Java bytecode and decompiled Java to prove how lambdas become a singleton lambda instance when they capture nothing and how capturing outer variables forces capture=>per-call allocation, which can hurt hot paths. Demonstrates inline, noinline and crossinline behavior — inline copies body so non‑local returns work, crossinline forbids them in callbacks — and shows reified generics enabling reified type checks and how contracts (Kotlin 1.3) let the compiler trust a lambda runs once for safe val initialization.

AI-written summary · about

  1. 0:00Intro
  2. 1:53Collections API
  3. 6:34Function literals
  4. 13:15Kotlin bytecode
  5. 15:15Kotlin vs Java
  6. 19:33Higherorder functions
  7. 24:10Kotlin extensions
  8. 28:20lambdas with receivers
  9. 36:11closures and captures
  10. 40:30inlining
  11. 43:19return
  12. 49:23conventions
~/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.