Nathaniel J. Smith - Trio: Async concurrency for mere mortals - PyCon 2018

Channel:PyCon 2018 · Length:32:00 · Published:2018-05-13 · Views:29987

Watch on YouTube

Summary

Nathaniel J. Smith's PyCon 2018 talk introducing Trio, a Python concurrency library designed around usability and structured concurrency. He live-codes a problem and analyzes pitfalls in other async libraries.

Why HN recommends it

Recommended as a clear introduction to structured concurrency and as an explanation of subtle asyncio bugs that Trio avoids.

one of the best explanations I've seen about what subtle bugs are easy to make with asyncio — HN, 2021

Python, Ruby & scripting languages · Software architecture & design

Subtitles (excerpt)

hello hi yeah so I'm sure everyone who was running to the problem that wants to try to do anything meaningful retest in Chi oh yeah things get really messy we have here today Nathaniel who's gonna try to give us a better solution to this mess that we can create for ourselves can y'all hear me be okay in the back good all right cool so before I get started for real uh two quick things I want to mention one is my gratitude to them many people whose you know shoulders I'm standing on here there's I can now done this without a lot a lot of work by other people come before I also want to shout out to all of trio's fabulous contributors you all are awesome the other thing is I'm gonna be moving pretty fast covering a lot of ground hopefully it all generally make sense but if you want to get more details follow up later I'll have my slides links articles the chatroom where you can ask questions if you want at this link and this will also be on the last slide in case you miss it now alright so let's get started so I'm talking about concurrency today which is the art of writing programs that can walk and chew gum at the same time right doing two things at once is pretty useful normally in Python our code is sequential right so we might walk for a while and

On Hacker News

The video (or blog post) below is one of the best explanations I've seen about what subtle bugs are easy to make with asyncio, why it's easy to make them, and how the trio library addresses them. But yes, consider alternatives before you pick asyncio as your approach! Talk: [VIDEO] Blog post: [LINK] — acidbaseextract, 2021-10
A useful introduction to the ideas is in Nathaniel's PyCon 2018 talk on trio [1], where he live-codes a solution to a concurrency-spaghetti problem. [1] [VIDEO] — kzuberi, 2023-02
Great list. That last suggestion (Multiple requests) can be tough to implement correctly, I think it's usually called Happy Eyeballs: [VIDEO] — ric2b, 2020-08

Related videos