Nathaniel J. Smith - Trio: Async concurrency for mere mortals - PyCon 2018
Channel:PyCon 2018 · Length:32:00 · Published:2018-05-13 · Views:29987
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
- Perhaps the weakest link in the US electrical system · Technology Connections · 25:47
- The Chinese Student Crisis · PolyMatter · 21:43
- The True Nature of Matter and Mass | Space Time | PBS Digital Studios · PBS Space Time · 10:47
- Control Bootcamp: Overview · Steve Brunton · 19:31
- "Performance Matters" by Emery Berger · Strange Loop Conference · 42:15
- Ruby Conf 12 - Y Not- Adventures in Functional Programming by Jim Weirich · Confreaks · 53:21
- The spelled-out intro to neural networks and backpropagation: building micrograd · Andrej Karpathy · 2:25:52
- How Python was Shaped by leaky Internals, Armin Ronacher, Flask framework · Видео с мероприятий {speach! · 49:55
- RailsConf 2014 - All the Little Things by Sandi Metz · Confreaks · 38:47
- "Simple Made Easy" - Rich Hickey (2011) · Strange Loop Conference · 1:01:38
- What the heck is the event loop anyway? | Philip Roberts | JSConf EU · JSConf · 26:52
- "Making Impossible States Impossible" by Richard Feldman · elm-conf · 25:06
- How To Design A Good API and Why it Matters · Google TechTalks · 1:00:19
- The Problem with Time & Timezones - Computerphile · Computerphile · 10:12
- The Value of Values with Rich Hickey · InfoQ · 31:43
- Overwatch Gameplay Architecture and Netcode · GDC Festival of Gaming · 1:04:03