Build Your Own Async
Channel:David Beazley · Length:2:12:41 · Published:2019-10-17 · Views:59946
Summary
David Beazley's workshop screencast builds asynchronous programming in Python from scratch, starting from callbacks and continuations and replacing threads to show how concurrency works underneath.
Why HN recommends it
HN people recommend it as the best way to understand what async machinery actually does under the covers.
an amazing resource to understand async at a deep level — HN, 2020
Python, Ruby & scripting languages · Software practice, open source & careers
Subtitles (excerpt)
is David Beasley here the screencast you're about to watch is from workshop that originally presented at the PyCon india conference in october 2009 the original workshop had some audio-visual technicalities that actually made recording sort of very difficult I mean there's a lot of sort of distortion and artifacts and other things that didn't lead to a sort of a very good sort of very good artifact for sort of later viewing so what I've decided to do is actually rerecord kind of the session do a little bit of live coding and cover the same material here and and hopefully kind of clean it up make it a little bit easier to watch that's what that's what you're gonna watch here it's a little bit of background what the the goal of this workshop is is to kind of understand the inner working and thinking that goes on in these async frameworks you know like async IO curio trio things things like that but it's very much focused on I'm kind of the underlined kind of programming model as opposed to a lot of sort of technical details concerning you know like IO libraries and other things so so really the goal is its kind of to just explore the basic programming model and also just to kind of get an awareness of why these libraries
On Hacker News
Yes, something like that. Like here's David's "Build Your Own Async" [1], which I prefer over Philip's (still extremely good) "What the heck is the event loop anyway?" [2]. It's one thing to tell how something works, but to successfully show what the hell its actually doing under the covers, just conveys much more information. [1] [VIDEO] [2] [LINK] — devxpy, 2020-05
I've found this [1] screencast on the low-level principles of async in Python an amazing resource to understand async at a deep level. [1] [VIDEO] — migueloller, 2020-05
> I talk about generators as if they were the coroutine system in Python, but in fact, they’re one of two: Python also has a completely different kind of thing that it actually uses the name ‘coroutine’ for, in which function definitions start with async def and suspend with await . The async and await system of coroutines in Python is in fact layered on top of the yield system, via an intermedia… — mananaysiempre, 2023-09
I highly recommend Victor Skvortsov's exhaustive, 12-part series, "Python Behind the Scenes," a deep dive into the implementation details of just about every Python language feature one could possibly take for granted. There isn't a single one I haven't learned something from, but some of my personal favorites include: * Part 2, How the CPython compiler works: [LINK] * Part 6, How Python's object… — neoncontrails, 2022-03
Related videos
- Jake Archibald on the web browser event loop, setTimeout, micro tasks, requestAnimationFrame, ... · JSConf · 35:12
- But what is the Fourier Transform? A visual introduction. · 3Blue1Brown · 19:41
- What the heck is the event loop anyway? | Philip Roberts | JSConf EU · JSConf · 26:52
- Understanding the Python GIL · David Beazley · 46:09
- 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
- 🚀 TDD, Where Did It All Go Wrong (Ian Cooper) · DevTernity Conference · 1:03:55
- How To Design A Good API and Why it Matters · Google TechTalks · 1:00:19
- The Problem with Time & Timezones - Computerphile · Computerphile · 10:12
- Bret Victor The Future of Programming · Joey Reid · 32:55
- RailsConf 2016 - Turbolinks 5: I Can’t Believe It’s Not Native! by Sam Stephenson · Confreaks · 37:37
- "Uncle" Bob Martin - "The Future of Programming" · Paul Stringer's Mobile Tech · 1:18:21
- Brian Goetz - Stewardship: the Sobering Parts · ClojureTV · 1:03:30
- Ruby Midwest 2011 - Keynote: Architecture the Lost Years by Robert Martin · Confreaks · 1:06:38