~/talk

Back to the Stdlib: Making the Most of Kotlin’s Standard Library

Talkat IntelliJ IDEA Conf 2024 · 2024-03-06..03-07· [kotlin]
slides:none on file

Quick tour of Kotlin stdlib showing concrete techniques and tradeoffs: using the List(size) constructor and joinToString with prefix/postfix/limit/transform instead of manual loops, chunked/windowed for sliding averages, associate/associateBy/groupBy to turn lists into maps without intermediate allocations, set union/intersect as infix ops, and ArrayDeque (pronounced deck) for O(1) addFirst/addLast versus copying ArrayList. Covers scope functions (let/apply/run/also/with) with exact return/receiver differences, buildString/buildList producing immutable results, and delegates lazy (thread‑safe single compute), observable and vetoable (prevent decreasing stock price).

AI-written summary · about

  1. 0:00Kotlin Standard Library intro
  2. 4:44Transforming collections
  3. 16:02Lists to maps efficiently
  4. 19:35Sets and operations
  5. 22:43Discovering ArrayDeque data structure
  6. 25:10Scope functions explained
  7. 37:36Builders simplified
  8. 40:05Delegated properties
  9. 45:49Advanced stdlib features
  10. 47:53Q&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.