~/talk

Kotlin Native Concurrency Explained

Talkat droidcon Toronto 2019 · on Wednesday, 2019-11-13· [kotlin, concurrency]
slides:none on file

Explains Kotlin Native’s concrete runtime rules: mutable state visible to one thread, worker queues with execute/producer/transfer-mode API, and the freeze API that makes an object graph immutable and shareable. Shows patterns used in a real Droidcon app: Atomics and a frozen-delegate wrapper, a background-worker library, and why detached object graphs are rare. Notes a multi-threaded coroutines PR landed days before the talk, relaxed mode exists as an experimental compiler option, and recommends the Stately library and KaMP-Kit for practical examples.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:34Kotlin multi-platform overview
  3. 3:01Why concurrency is hard
  4. 5:25Kotlin Native concurrency model
  5. 7:08Core rules of mutable state
  6. 9:36Worker concurrency primitive
  7. 13:08Freezing and thread safety
  8. 17:49Debugging frozen state issues
  9. 21:44Global state and thread confinement
  10. 24:13Atomics and mutable frozen state
  11. 26:16Detached object graph
  12. 28:00Thread confined state tips
  13. 30:05Multi-platform state handling
  14. 31:27Architecture changes in apps
  15. 33:15Next steps and resources
  16. 35:04Relaxed mode and future
  17. 36:27What to do today
  18. 37:50Resources and contact
~/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.