Advanced Rust Programming Techniques
summary
Covers how Rust uses ownership and borrowing as contracts for resource lifetimes, shows three concrete API patterns for writing a string to a file (take ownership, borrow data, borrow both file and data) and argues when each fits. Builds a mutex from UnsafeCell plus a guard whose Drop unlocks; lock uses a blocking pthread-style call and an unsafe block to dereference raw pointers. Claims unsafety works if it’s tightly encapsulated and reviewed.
AI-written summary · about
chapters (17)
- 0:00Intro
- 1:47What is Rust?
- 4:19What problems does Rust want to tackle?
- 7:05Ownership
- 11:22Borrowing
- 15:56Summary
- 16:22Concurrency
- 21:13Fighting the borrow checker?
- 22:12Rust: Ownership & borrowing & strong encapsulation
- 23:04Encapsulation
- 24:48Mutex usage
- 29:14What does Mutex do?
- 30:49Functions & their implementations
- 32:26The unsafe sublanguage
- 37:17What we covered
- 38:26Conclusions
- 39:21Outro
related talks
35mLet’s Talk About Rust
45mRust: safe and concurrent. But how does it do it?
28mYou Don't Own Me
54mMemory Safety with Rust
01h 05mKeynote - Rust: confident, productive systems programming
01h 14mRust: A Friendly Introduction
01h 04mRust-ifying Your C# Codebase: A Tale of Adventure and Transformation
59mRust for C++ developers - What you need to know to get rolling with crates
