Visualizing memory layout of Rust's data types

  Рет қаралды 29,718

Sreekanth

Sreekanth

Күн бұрын

Пікірлер: 62
@JaLikon65
@JaLikon65 Жыл бұрын
I genuinely think this video should be included in The Rust Book. It is an absolutely incredible resource. Thank you Sreekanth!!! This is amazing.
@Andy01010
@Andy01010 7 ай бұрын
Agree 100%
@yogeshshahi
@yogeshshahi 7 күн бұрын
one more aggreement
@arlaxia
@arlaxia 6 күн бұрын
This video was exactly what I needed to understand Rust's memory layout better! One thing that was specially helpful was the trait objects part. I had never understood at all what was happening behind the scenes with that, but now I have a better idea.
@0runny
@0runny Жыл бұрын
This is an excellent video! It really helps you understand the WHY's of different memory management techniques in Rust. Many Rust videos explain how to do things, but very few explain why to do things. This video is a must watch if you really want to understand Rust under the covers. Well done!
@turun_ambartanen
@turun_ambartanen Жыл бұрын
Thank you for uploading with better audio. I could not stand the voice of the other version, but this one is alright to listen to. Great video!
@psychechip
@psychechip 10 ай бұрын
Thank you for your work. This video clarified many questions I had about memory alignment and helped me to understand how Rust is able to perform some optimizations, such as using a single usize for storing an Optional RC and Box. Keep up the good work!
@PrinceKumar-u4k4y
@PrinceKumar-u4k4y 4 ай бұрын
This video should be part of "The Rust Book". This really explains why rust has so many data types. We need more rust videos. Thank You Sreekanth 👏👏
@aimericsorindev253
@aimericsorindev253 11 ай бұрын
Thank you for your work, this is I think the best video I've seen about this subject and the first time I clearly understand the memory management in Rust. Clearly a video all people learning rust should watch. Really nice explanations on why things work like this and not just how. If you could do a video about async rust / Tokio that would be awesome !
@laplacedoge
@laplacedoge 9 ай бұрын
This video should be seen by more people!
@zubiarfan
@zubiarfan Жыл бұрын
Thank you so much for reuploading
@Gruby7C1h
@Gruby7C1h Жыл бұрын
Thanks for updating the audio!
@returncode0000
@returncode0000 8 ай бұрын
This is the best rust explanation video in the world. I would give anything if there also is an in-depth look at the concepts of functional programming in rust explained like in this video because those concepts are crucial to understand rust and I'm still struggling to understand them.
@denjiuzumaki4309
@denjiuzumaki4309 6 ай бұрын
this video is just amazing!!!
@korigamik
@korigamik Жыл бұрын
This is cool. Can you tell us what you used for animating these graphics and the text? Also what audio generator is used here?
@sreekanthpr
@sreekanthpr Жыл бұрын
- For this one, I used powerpoint to generate the video. For all other videos in this channel, I use github.com/ManimCommunity/manim. - Audio is generated with TTS service in Azure. Combined both with Davinci Resolve. - Subtitles with timings can be generated with github.com/m1guelpf/auto-subtitle (minor corrections will be needed).
@jcollins519
@jcollins519 7 ай бұрын
Fantastic content. Nothing fancy, just straight to the point.
@clintondannolfo714
@clintondannolfo714 9 ай бұрын
Incredible video, thank you very much!!
@kaansouth8789
@kaansouth8789 8 ай бұрын
This was INSANELY helpful. Thank you so much! 🙏🙏🙏
@muizzsiddique
@muizzsiddique 11 ай бұрын
Better yet, do you have a written version of this with embedded images of the diagrams in this video? -This is quite informative, but the generated voice's intonation is making it difficult to pay attention or process the information given.-
@sreekanthpr
@sreekanthpr 11 ай бұрын
Most of this is covered in the book "Programming Rust"
@muizzsiddique
@muizzsiddique 11 ай бұрын
@@sreekanthpr Thank you!
@HereIsZane
@HereIsZane 5 ай бұрын
Amazing content, please do more rust themed deep dives
@xgallomx
@xgallomx 3 ай бұрын
Please do this extended explanation also for containers such as deque hashmap btreemap etc. Thank you for effort put in this video.
@pmmeurcatpics
@pmmeurcatpics Ай бұрын
I can recommend Jon Gjengset's Crust of Rust about collections for that. It's available here on KZbin
@crftr-com
@crftr-com 7 ай бұрын
The first 20 minutes is valuable to anyone who writes software in any language. Love this!
@VikramBhaskaran
@VikramBhaskaran 5 ай бұрын
Personally I find this video extremely valuable @Sreekanth not just for Rust for compiled languages internals. Question I have what is the font used ? It looks like Jetbrains Mono but with some font ligatures turned on. Not sure what are the values
@sreekanthpr
@sreekanthpr 5 ай бұрын
I use github.com/be5invis/Iosevka
@juliansteden2980
@juliansteden2980 Жыл бұрын
Wow, thanks a lot! This is very well done! Great visualizations and explanations 😊
@ItsMorze
@ItsMorze Жыл бұрын
very good video! first time I really understood how stuff works behind the scenes! especially with rust enums - I didn't know it's like a union maybe do a follow up video on interior mutability, that'll be really interesting!
@mrshodz
@mrshodz 3 ай бұрын
Great explanation.
@sdbg
@sdbg 2 ай бұрын
An amazing video....
@sdbg
@sdbg 2 ай бұрын
What a genius this man is...Where did you learn so much thing?
@NimaqAlizadeh
@NimaqAlizadeh 8 ай бұрын
very very helped me. thanks a lot🎉🎉
@jubiaj2672
@jubiaj2672 3 ай бұрын
This was great
@OzWannabe
@OzWannabe 5 ай бұрын
Excellent video. I just wish animation of the stack to show chunks of memory allocated like a stack (one on top of the other) and freed the same way. I find it more intuitive.
@longpos222
@longpos222 10 ай бұрын
Thank you so much bro.
@matthewdillingham4941
@matthewdillingham4941 Жыл бұрын
Reupload with different automated voice?
@sreekanthpr
@sreekanthpr Жыл бұрын
Yea. I feel this audio is better compared to the one in the first video.
@MrHirenP
@MrHirenP Жыл бұрын
What’s the reason you don’t narrate it yourself?
@emionyt
@emionyt Жыл бұрын
@@sreekanthpr I agree, this voice is way less noisy and more natural
@chriswilliamson4693
@chriswilliamson4693 Жыл бұрын
@@MrHirenP I would also like to know
@ChainOfCommand12
@ChainOfCommand12 Жыл бұрын
@@MrHirenP maybe he has health issues, maybe he's insecure, maybe his english pronunciation isn't good. doesn't matter, he's posting excellent content
@p0n-pompf
@p0n-pompf 25 күн бұрын
sbrk is not a syscall
@jkjoker777
@jkjoker777 5 ай бұрын
i love this video so much do you have sources for this material?
@Илья-п4м3щ
@Илья-п4м3щ Жыл бұрын
35:10 probably not true, because the same example not compiles, if use something meaningful like println, not drop upd. i mistaken, seems like thats because of using println
@MuscleTeamOfficial
@MuscleTeamOfficial 5 ай бұрын
subbed 4 this 1
@dagoberttrump9290
@dagoberttrump9290 8 ай бұрын
i don't understand why can't slices be allocated on the stack? in c++ they do and i think it's the same in rust also are sou sure that enums store index for each element? in c++ variants only the index of the alternative is stored which is enough to denote the type of the underlying union.
@focker0000
@focker0000 4 ай бұрын
around 11:00 isn't it a move instead of copy?
@sdbg
@sdbg 2 ай бұрын
it’s a copy in memory level. Move is a compile level thing.
@sandrokavlashvili8617
@sandrokavlashvili8617 5 ай бұрын
Is this presentation available anywhere?
@yapayzeka
@yapayzeka 10 ай бұрын
autoread got just promoted to the next level lol
@yapayzeka
@yapayzeka 4 ай бұрын
26:00 very important gotcha!
@rsalmei
@rsalmei 8 ай бұрын
Actually, at 19:10 you've made an incorrect amend. Trait objects are in fact DSTs, that was correct. Remember you can't create an array or slice of trait objects - [dyn Trait] - or receive one as a parameter - fn func(x: dyn Trait) - or use `self` in a Trait method, because each Trait implementation will have a different size. What do have known sizes are owned trait objects - e.g. Box and other smart fat pointers - and references to trait objects - &dyn Trait.
@michah3956
@michah3956 Жыл бұрын
Rust 💟
@prashlovessamosa
@prashlovessamosa Жыл бұрын
Your are goat.
@iamworstgamer
@iamworstgamer 6 ай бұрын
terminator is teaching us rust.
@ajithmaster1234
@ajithmaster1234 Жыл бұрын
Very useful, could you do a video on zig allocators?
@immanuel5513
@immanuel5513 2 ай бұрын
but , what's going on, what's your next video about rust ?
@Singh54321
@Singh54321 Ай бұрын
Wow
@normalhumanbeing6066
@normalhumanbeing6066 2 ай бұрын
how is this gonna fix my divorce
You Should Really Know These Traits in Rust
18:36
Oliver Jumpertz
Рет қаралды 18 М.
Rust Functions Are Weird (But Be Glad)
19:52
Logan Smith
Рет қаралды 158 М.
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН
Ozoda - Alamlar (Official Video 2023)
6:22
Ozoda Official
Рет қаралды 10 МЛН
I'VE MADE A CUTE FLYING LOLLIPOP FOR MY KID #SHORTS
0:48
A Plus School
Рет қаралды 20 МЛН
but what is 'a lifetime?
12:20
leddoo
Рет қаралды 89 М.
Arc instead of Vec? | Prime Reacts
37:18
ThePrimeTime
Рет қаралды 71 М.
How variables works in Python | Explained with Animations
18:39
All Rust string types explained
22:13
Let's Get Rusty
Рет қаралды 198 М.
Choose the Right Option
18:14
Logan Smith
Рет қаралды 80 М.
Rust's Alien Data Types 👽 Box, Rc, Arc
11:54
Code to the Moon
Рет қаралды 158 М.
"Type-Driven API Design in Rust" by Will Crichton
40:57
Strange Loop Conference
Рет қаралды 127 М.
When Optimisations Work, But for the Wrong Reasons
22:19
SimonDev
Рет қаралды 1,2 МЛН
Rust Data Modelling Without Classes
11:25
No Boilerplate
Рет қаралды 187 М.
Every team from the Bracket Buster! Who ya got? 😏
0:53
FailArmy Shorts
Рет қаралды 13 МЛН