Crust of Rust: async/await
Channel:Jon Gjengset · Length:2:34:01 · Published:2021-08-31 · Views:247558
Summary
Jon Gjengset's long live-coding Crust of Rust episode on async/await, focused on the mental model for using it rather than on Futures, Pin and Wakers internals. Topics include awaiting multiple futures, cancellation, executors and select.
Why HN recommends it
Recommended as a deep, practical dive for learning how Rust async works.
these two videos are also great deep dives into Rust async — HN, 2023
C, C++, Rust, Go & systems languages
Subtitles (excerpt)
Hi, everyone. Welcome back. It's been quite some time since the last stream, and it's because I've been on vacation, which has been really nice. It was an odd vacation, but that's a story for a different time, a Q&A or something. So this is going to be another crust of rust. So it's going to be one of the shorter streams. And in particular, what I wanted to tackle this time around was Async Await. Async await is something that like has, I've been asked about it a lot. I have a stream on Async await. I'll link it like up here in the final video. Um, but, but that goes a lot more into the technical detail of like, how does the machinery work and how did the traits work in the, the like bits underneath, but it doesn't really talk about just like, how should you think about async await? How should you use async await? What does it use look like for you as an end user, uh, or, or as a developer rather? Um, and so I wanted to take a crust of rust as sort of a, a step back in complexity and just look at the. the mechanism, but from like a usability standpoint, and just talk about more sort of the intuition and the mental model that you should have, more so than the nitty gritty details of how it actually functions.
On Hacker News
there is a chapter on async in comprehensive rust and rustbook which ought to bring you up to speed there is the async book but it is largely unfinished you can watch John Gjengset's crust of rust async, decrusting tokio, and why what, and how of pinning in rust then there are tokio-lessons and tokio tutorial which teach how to use tokio runtime and there are also good blogposts by phil-oop and r… — lame_lexem, 2026-05
Impressive! Especially the part on async where they built up the Future trait and runtime from first principles. If it interests you, these two videos are also great deep dives into Rust async [1] [2]. Rust's model is a little different from other languages in a powerful way. [1] [LINK] [2] [VIDEO] — SnowProblem, 2023-08
Very interesting insight from Graydon, in hindsight I too would have loved something more towards ML than C++. I never liked the kitchen sink approach that I see first C++, now Rust moving towards, but I respect what Rust has managed to solidify into. It's a good language. That said, I still hate async with a passion, it makes the language more complex and not very elegant (i.e. function coloring… — sph, 2023-06
Related videos
- Visualising software architecture with the C4 model - Simon Brown, Agile on the Beach 2019 · Agile on the Beach · 35:33
- The Why, What, and How of Pinning in Rust · Jon Gjengset · 3:03:53
- CppCon 2015: Andrei Alexandrescu “std::allocator...” · CppCon · 1:12:27
- Lexical Scanning in Go - Rob Pike · GoogleFOSSSydney · 51:17
- CppCon 2017: Matt Kulukundis “Designing a Fast, Efficient, Cache-friendly Hash Table, Step by Step” · CppCon · 59:33
- RustConf 2018 - Closing Keynote - Using Rust For Game Development by Catherine West · Rust Programming Language · 42:29
- CppCon 2016: Jason Turner “Rich Code for Tiny Computers: A Simple Commodore 64 Game in C++17” · CppCon · 1:19:52
- Ideas about a new programming language for games. · Jonathan Blow · 1:55:24
- CppCon 2014: Mike Acton "Data-Oriented Design and C++" · CppCon · 1:27:46
- How I program C · Eskil Steenberg · 2:11:32
- Google I/O 2012 - Go Concurrency Patterns · Google for Developers · 51:27
- CppCon 2015: Kate Gregory “Stop Teaching C" · CppCon · 1:00:11
- Zig: A programming language designed for robustness, optimality, and clarity – Andrew Kelley · Recurse Center · 54:13
- CppCon 2014: Chandler Carruth "Efficiency with Algorithms, Performance with Data Structures" · CppCon · 1:13:41
- The Road to Zig 1.0 - Andrew Kelley · ChariotSolutions · 59:47
- CppCon 2019: Chandler Carruth “There Are No Zero-cost Abstractions” · CppCon · 59:52