Crust of Rust: Lifetime Annotations
Channel:Jon Gjengset · Length:1:33:23 · Published:2020-04-22 · Views:301585
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
- Rust at speed — building a fast concurrent database · Jon Gjengset · 52:54
- Abseil's Open Source Hashtables: 2 Years In - Matt Kulukundis - CppCon 2019 · CppCon · 54:00
- CppCon 2015: Kate Gregory “Stop Teaching C" · CppCon · 1:00:11
- Diffie-Hellman Key Exchange · Art of the Problem · 8:38
- How Python was Shaped by leaky Internals, Armin Ronacher, Flask framework · Видео с мероприятий {speach! · 49:55
- CppCon 2015: Andrei Alexandrescu “std::allocator...” · CppCon · 1:12:27
- Lexical Scanning in Go - Rob Pike · GoogleFOSSSydney · 51:17
- Why Isn't Functional Programming the Norm? – Richard Feldman · Metosin · 46:09
- Maybe Not - Rich Hickey · ClojureTV · 1:03:28
- Conway's Game Of Life in APL · Dyalog · 7:47
- Lecture 1A | MIT 6.001 Structure and Interpretation, 1986 · MIT OpenCourseWare · 1:12:55
- Crockford on JavaScript - Volume 1: The Early Years · YUI Library · 1:42:08
- Growing a Language, by Guy Steele · Bill Pugh · 53:31
- CppCon 2017: Matt Kulukundis “Designing a Fast, Efficient, Cache-friendly Hash Table, Step by Step” · CppCon · 59:33
- Effective Programs - 10 Years of Clojure - Rich Hickey · ClojureTV · 1:14:51
- Brian Goetz - Stewardship: the Sobering Parts · ClojureTV · 1:03:30