but what is 'a lifetime?

preview_player
Показать описание
how i think about lifetimes.
hope it helps!

Рекомендации по теме
Комментарии
Автор

Love these videos! I'm tired of content talking about this language as if the viewer hasn't heard about it, there really needs to be more higher concept stuff out there.

mikkelens
Автор

This is by far the best understanding of lifetimes I’ve ever heard. So much easier to understand by lifting the hood a little bit

hyper
Автор

Dude you did hella well with this video. The pace at which you speak, the visuals and the way you explain make this perfectly enjoyable and helpful. Please keep doing this

amagicpotato
Автор

Thanks. What I found really helpful about this explanation was being shown lifetimes as compound objects. That there are "atomic" lifetimes only correspond to a single variable and that other lifetimes are compounds of these.

Atheismo
Автор

I thought I understood lifetimes, but this completely reframed my understanding. Well done!

laurenlewis
Автор

I smashed head-first into the lifetime system about a year ago when I was working on some WASM stuff
Tl;Dr I was trying to make a builder pattern struct that carried a reference to a canvas render context for efficiently batching stroke calls
I wound up drowning in <'batch, 'context: 'batch> across dozens of functions, and I came to a similar conclusion about trying to conceptualize them more like regions of memory, which helped me wrangle my deeply nested lifetime nightmare
Great content, love to see more people falling down the lifetime rabbit hole 😁

jm-alan
Автор

This was great. The way lifetimes are usually taught felt like learning some incomplete mental model/abstraction to me. Having to think of "time", aka the temporal aspect of execution, is always hard, whether it's concurrency, event loops, networking, or, as they are taught, lifetimes. Thanks for providing a better mental model that is not as dependent on time.

eldarshamukhamedov
Автор

Watched this a couple of months ago and I'm just coming back to say: "Thank you!" Your explanation makes it really easy to reason with lifetimes in Rust.

ArgoIo
Автор

Wow, this is so much easier to understand than how rust by example explains it. Awesome video!

matthias
Автор

please continue the series, it's good to learn new things based what others discovered through great effort

marcoantonio
Автор

That was the best video about lifetimes I've ever watched! Thank you, leddoo!

arielalon
Автор

I think what’s really missing is the for<'a> HRTB syntax and its usage.

calisti
Автор

I'm currently learning Rust, and to rethink lifetimes as not just time, but memory space makes it so much clearer to what they mean! I like this explanation :)

yosephjeong
Автор

Great video! I think a very important note about ‘static is that it also refers to owned values when used as a trait bound. That tripped me up when first learning, thinking I effectively required leaked resources if adding that bound

andr
Автор

This is one of the most difficult concepts to undestand in the bigginig of learning Rust and you make it easier in this video. I really appreciate that!

SimoDeveloper
Автор

Re-inventing the wheel trying to fix a problem by making the implementation overly obscure.

Leonhart_
Автор

nice explanation! i would recommend closing down your aperture and turning off continuous autofocus and autoexposure during the whiteboard scenes. that way both your face and the drawings can be in focus without any unexpected shifting during the shot

jotch_
Автор

this is probably the best explanation for lifetimes i've seen. its rewiring my brain.

laundmo
Автор

Great video this is probably the clearest explanation of lifetimes I've heard. I think the spatial metaphor is incredibly helpful thank you so much

roscopetracula
Автор

Outstanding! I really like your way of explaining lifetimes - it is FAR clearer than the usual explanations. Thank you!

ccpalmerny