~/talk

From Functions to Inlinable Effects in Kotlin

Talkat Lambda World 2025 · 2025-10-23..10-24· [kotlin, functional-programming]
links:none on file
slides:none on file

Kotlin uses the inline modifier to make higher-order functions accept suspend and other effectful lambdas by inlining their bodies at call sites so continuations aren’t captured; standard-library methods like forEach, map and filter are inlined to avoid allocations, enable non-local returns and support reified generics at compile time. This eliminates many async/exception “coloring” problems without effect handlers, but inlinable lambdas cannot escape (no storing/serialization), so it works well for small utility APIs but imposes practical limits on what can be marked inline.

AI-written summary · about

  1. 0:00Kotlin introduction
  2. 1:05Basic and higher-order functions
  3. 2:49Extension functions use cases
  4. 4:58DSLs with functional types
  5. 5:58Suspend functions and concurrency
  6. 8:07Code coloring in Kotlin
  7. 10:57Suspend functional types challenges
  8. 13:12Code coloring pitfalls
  9. 16:45Functional solutions for code coloring
  10. 19:17Solving code coloring with inline
  11. 23:54Trade-offs of inline functions
  12. 25:02Summary
~/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.