~/talk

Dissecting the stdlib

Talkat KotlinConf 2018 · 2018-10-03..10-05· [kotlin]
slides:none on file

Walks through stdlib source and decompiled bytecode to show exactly how features work: lambdas compile into inner classes and use a single instance until they capture variables, captured variables force new allocations, inline functions copy lambda bodies to call sites eliminating those allocations and enabling non‑local returns and reified generics. Covers extension functions, lambdas with receiver for "execute‑around" patterns, infix and operator conventions, and experimental contracts that let the compiler perform smart casts based on function behavior.

AI-written summary · about

  1. 0:00Start
  2. 1:43The Collections Api
  3. 2:07Collections Api Is a Functional Api
  4. 2:28Functional Style Functional Programming
  5. 5:39Filter
  6. 6:01Higher-Order Functions
  7. 6:41Function Literals
  8. 7:27Lambdas
  9. 9:34Non-Local Return
  10. 12:28Functions as Parameters
  11. 12:50Event Tracking
  12. 15:08Anonymous Functions
  13. 15:40Anonymous Function
  14. 16:40Standard Extensions
  15. 18:17Source of the Standard Extensions
  16. 19:40Extension Functions
  17. 27:39Design Patterns
  18. 27:49Execute around Method
  19. 29:43Closures and Captures
  20. 29:59What Are Closures and Captures
  21. 31:08Efficient Lambdas
  22. 31:48Trade-Offs with Lambdas
  23. 33:36Penalties of Lambda through Inlining
  24. 33:52Inline Higher-Order Functions
  25. 35:14Bytecode
  26. 36:17Inline Function
  27. 37:52No Inline Keyword
  28. 39:30Reification
  29. 42:15Conventions
  30. 42:55Operator Overloading
  31. 43:47Contracts
~/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.