~/talk

Kotlin/Native Concurrency Model

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

Kotlin/Native implements a runtime-level concurrency model that prevents shared mutable state by default, using freeze to mark an object and its reachable graph immutable and throwing on mutation, a local reference-counting collector plus cycle detection, and ownership transfer via worker.execute with safe/unsafe transfer modes. It supplies detached object graph wrappers, arenas and permanent/concurrent containers, atomic primitives, and C/Objective‑C interop via stableRef and pinning. Examples include 4‑core factorization and ping‑pong between main and workers that run correctly under these rules.

AI-written summary · about

  1. 0:00Intro
  2. 1:06WHAT DO WE WANT FROM CONCURRENCY?
  3. 2:11CONCURRENCY IN KOTLIN
  4. 3:59SHARED HEAP ON JVM
  5. 4:32THE CURSE OF SHARED OBJECT HEAP
  6. 8:15DO WE REALLY NEED OBJECT SHARING?
  7. 10:01KOTLIN/NATIVE AT LARGE
  8. 12:37KOTLIN/NATIVE MEMORY MANAGER
  9. 20:04FREEZING
  10. 22:51OBJECT GRAPHS CONDENSATION
  11. 24:49CONCURRENT EXECUTORS - WORKERS
  12. 26:07OBJECT TRANSFER
  13. 27:34WORKER.EXECUTE
  14. 30:14OBJECT PING-PONG EXAMPLE
  15. 32:41WHY OBJECT GRAPH DETACHMENT?
  16. 34:17GLOBAL VARIABLES
  17. 34:57IMPORTANT CASES
  18. 35:44SHARED CACHE EXAMPLE
  19. 36:57CONCURRENCY AND INTEROP
  20. 38:24CONCLUSIONS
~/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.