Crust of Rust: Lifetime Annotations

Channel:Jon Gjengset · Length:1:33:23 · Published:2020-04-22 · Views:301585

Watch on YouTube

Summary

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.

Why HN recommends it

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

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

Programming language design · C, C++, Rust, Go & systems languages

Subtitles (excerpt)

Hello everyone. I saw the Arrest Survey 2019 results. And while reading through, I came across this little bit. People are asking for more learning material about Rust, specifically intermediate level material. And a lot of it is asking for video content specifically. And if you're watching this, maybe you already know, I have a YouTube channel where I do live intermediate and uploaded intermediate Rust content. So I was like, yeah, this sounds like my wheelhouse. And so I tweeted out like, What would you like to see? If I were to do some of this that's like a little less advanced than the stuff I normally do and a little shorter and a little more self-contained than what I usually do, like what do you want to see? And I got a ton of responses to this. And that was pretty cool to see all the ideas that people had. The suggestions were sort of all over the place. And basically what I got from it is people are confused about lifetimes and they don't want to see another explanation of lifetimes. They want to... want to see code that actually uses them in order to try to understand what's going on And so I figured maybe that's something I could do. Um, I have, I only have one video that's like more beginner friendly than the normal ones I do,

On Hacker News

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 worki… — tialaramex, 2022-09
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] [VIDEO] really helped me understand it. — ashish01, 2020-09
Anecdotal - One of favorite YouTube live-streaming personalities, Jon Gjengset[1] is a Ph.D student at MIT CSAIL. His talks are very detailed[4] and captivating[3] [1] [LINK] Talks [2] [LINK] [3] [LINK] Rust Details(my favorites) [4] [VIDEO] — harikb, 2020-06
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 r… — ly3xqhl8g9, 2023-02

Related videos