hackertube.io

Crust of Rust: Lifetime Annotations

Jon Gjengset · tutorial · Watch on YouTube

What it is

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 Hacker News recommends it

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

  • 3 people recommended it
  • 3 different months
  • 0 strong recommendations
  • first 2020, last 2023

What HN commenters said

  1. “His talks are very detailed[4] and captivating[3]”

    Detailed Rust live-coding walkthrough on lifetimes

    harikb, 2020-06 · Recommendation · in “There’s plenty of room at the Top: computer performance after Moore’s law”

  2. “listening to [0]Crust of Rust: Lifetime Annotations by Jon Gjengset helped me understand its need.”

    Explains why Rust lifetime annotations are needed

    ashish01, 2020-09 · Recommendation · in “My Favorite Rust Function Signature”

  3. “each one is actually writing carefully chosen code that runs and talking through what's going on”

    Slow-paced live coding that clarifies specific Rust topics once past basics

    tialaramex, 2022-09 · Recommendation · in “Next steps for Rust in the kernel”

Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.

Topics: rust, lifetimes, live coding, strings, generics

Also recommended by the same people