Proposed by: Kaustubh Maske Patil
Concurrency in a single thread: building asyncio in Python from scratch
Concurrency is the buzzword for high performance applications these days. It is not very well understood because it's obscure. In this talk, we will use generators in Python, a relatively well-known construct, to see if we can understand concurrency by building asyncio (Python's way of running tasks concurrently without creating multiple threads).
Similar ideas that also make use of multiple OS threads are popular and present in other languages such as Go and now OCaml and C++.
In this talk, we will go over:
- Concurrency without parallelism
- Understanding I/O, and asynchronous I/O
- Pausing and resuming generators -- we get a coroutine
- A simple event loop
Source code/Reference: https://kaustubh.page/posts/build-your-own-asyncio/
Talk duration: