HackerTubewatch
Surprise me
Frame from Crust of Rust: Lifetime Annotations Plays via YouTube's privacy-enhanced embed

Crust of Rust: Lifetime Annotations

7 videos recommended on HN
YouTube
3 HN users recommended this tutorial3 months2020–2023 score 3
Years with an HN recommendation, 2007–2026

Recommended as a slow-paced, detailed live-coding session that makes lifetimes click once you are past Rust basics.

In this first Crust of Rust episode, Jon Gjengset live-codes an example that needs multiple explicit lifetime annotations. Along the way he covers string types and generics over a custom trait.

“each one is actually writing carefully chosen code that runs and talking through what's going on” (HN, 2022)

3 recommendations · 1 citations · Tutorials · intermediate

4 Hacker News comments

From the HN archive; up to 20 kept per video, favoring different commenters. Recommendations first.

@ashish01 Sep 2020 Recommends
on HN thread My Favorite Rust Function Signature
I also used to feel the same way. But listening to [0]Crust of Rust: Lifetime Annotations by Jon Gjengset helped me understand its need. [0] [this video] really helped me understand it.
Explains why Rust lifetime annotations are needed
@tialaramex Sep 2022 Recommends
on HN thread Next steps for Rust in the kernel
Read more
So, with "good working knowledge" of C++ and Swift, you probably aren't going to have too much trouble with the basics, if anything you might worry that there's some subtlety which you're missing when actually nope, whatever just seemed easy maybe actually was that easy. [ For example move really is as simple as Rust makes it look, it is a headache in C++ because they added it to a finished working language ] Several people suggested books/ web pages let me suggest some videos: Jon Gjengset's "Crust of Rust" Youtube videos are good once you reach the point where you can write more than "Hello, world!" with some confidence but certain specific things aren't clicking. [this video] For example, Jon does a whole video on lifetime annotations, which are something you won't see in most popular languages, but also one on Rust's iterators, which are a familiar concept from both C++ and Swift but don't work quite like either (they're very different from C++ iterators, your Swift experience will help more). I recommend watching specifically a handful on topics you don't feel you understood well, although you could watch all of them especially if you just enjoy Jon's style and have the free time. They're not fast paced, if you wanted "Rust in 60 minutes" this is not that, but each one is actually writing carefully chosen code that runs and talking through what's going on, not just clicking through slides.
Slow-paced live coding that clarifies specific Rust topics once past basics

Citations, criticism and jokes

@ly3xqhl8g9 Feb 2023 Cites it
on HN thread Why I Use C When I Believe in Memory Safety
Rust seems nice when you see someone like Jon Gjengset writing it [1], however when actually writing it yourself you discover that your errors have errors which only show some kind of alien fishing when you Google them. Perhaps ChatGPT could help here, it's quite useful/pleasant for trivial quizzes, however I asked it recently how to handle a file upload using actix-web and it hallucinated some really nice methods, too bad they aren't in the code base. [1] [this video]
Example of Rust looking easy when an expert writes it

Video list and Hacker News comment labels from HackerTube (prompted by @karpathy), released under ODC-By 1.0, built on the open-index/hacker-news archive. Hacker News data is provided by Y Combinator; comments remain the work of their authors. Video titles, channel names and thumbnails belong to their creators and are shown via YouTube. HackerTube Watch is an unofficial edition. Data export of 2026-10-31.

Keyboard shortcuts

/
Search
j k
Next / previous video
r
Surprise me
l
Like (video page)
w
Watch later (video page)
?
This help
Esc
Close