Coroutines Beyond Concurrency

May 04, 2023 40 min Free

Description

This talk by Alex Semin explores Kotlin coroutines beyond their common use case for asynchronous programming. It delves into how coroutines' versatile design can be applied to other tasks, such as sequence builders and deeply recursive functions found in the standard library. The presentation also examines the Parsus parser combinator library, which leverages coroutines for debuggable parsers and handling data of arbitrary depth without stack overflow errors. The talk provides insights into building libraries with similar techniques and avoiding pitfalls when working with low-level coroutine APIs.