The Tale of How We Implemented the Channel Algorithm in Kotlin Coroutines
summary
An exploration of Kotlin coroutines' channel implementation: it compares channel algorithms used in other languages and libraries, explains the Kotlin team's design choices for scalable, high-performance channels, and discusses implementation challenges, lock-free techniques, and results they achieved.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 7:30Kotlin channels
- 12:03Channel implementation issues
- 20:37Performance testing
- 24:58Optimization with new algorithm
- 38:18128-bit counters
- 41:57Buffered channels
- 52:24Select explained
- 54:31Q&A
related talks
38mConcurrency doesn,t have to be hard: Kotlin Coroutines and Channels
49mKotlin Coroutines in Practice
45mCoroutines: Kotlin Versus
42mUnit Testing Kotlin Channels & Flows
47mRediscovering gRPC with Kotlin coroutines
59mKotlin coroutines: new ways to do asynchronous programming
33mVisualising concurrency with Kotlin
28mConcurrency for Imposters
