Awesome talk! Not sure if you're familiar with Unity's Entity Component System or game programming in general, but if you do it'd be nice to hear your thoughts and analysis, as it's a system that allows for game developers to not worry about the memory layout as it's already optimized under the hood.
@Nicholas, Thank you!. I've played with Unity a bit but don't feel qualified to talk about it, I'm afraid. There are a lot of optimizations sure, but the programmer always needs to worry about memory :) "There is no free lunch", as we say.
@@Matlus yeah for sure. Data-Oriented Design starts to become a trend in the game development world as the hardware is not getting faster, but it's so different from the traditional OO thinking so that's why Unity created this ECS to make it as simple as possible for game devs. While it looks very promising, I wonder if that's a framework that the software development world could utilize as well, or there are some caveats that we don't know yet.
@@kurnaPunk I haven't spent much time with Unity Nicholas, so your guess is as good as mine. Even in business systems that need super high performance, we tend to do less Object Oriented design, pool/reuse instances...essentially reduce heap allocations and/or reduce garbage collections. In C++ we generally stay far away from OO (primarily virtual methods) and allocations (heap) so as to get the most performance, especially on smaller devices (embedded systems) and phones etc.
Hi sir, I have a question on memory allocation. When we create an instance of a struct type containing some value type and reference types properties. As we know structs get memory allocated on stack, but our struct has reference properties so where they are going to get memory? As value types of reference type get memory on heap, will reference types of value type get memory on stack?
Firoz, in these videos one of the points I was trying to make is that values types are not always allocated on the stack. So when you say, "As we know structs get memory allocated on the stack", I'm not sure how you conclude that. I must be doing something wrong :) To answer you question, Reference types types are ALWAYS allocated on the heap. I thought I had made this point clear too :).
Thanks for the video. Your subscribers count should go up this year as your are posting awesome videos. Shiv, how can I contact you if I want to s get in touch with you?
@@VinuP2023 hey @Vinay, TH-cam has removed the ability to make friends and message between friends. I am no longer able invite folks to a conversation or make friends. They say they are removing the feature on September 18 but I longer see the ability. Contact me on LinkedIn at www.linkedin.com/in/shiv-kumar-698376a0
You are the kind of mentor I missed in my career clear and always on point Thanx a lot 🙏
Thanks for the videos , this kind of talks is very rare and very important for every developer keep up the good work
Thank you Anas! Glad you think so.
Very interesing and valuable time spent right ;) thanls
WOW, Part I is awesome, Cant wait part II
Thank you, and love your reaction! This is Part 2 :). Part 1 can be found here th-cam.com/video/aylUPfOVM90/w-d-xo.html
Hello could you please make video on multi threading applications and how to thread safe application. I really want to go in deep.
I watch at 1.75x and it feels normal talk and when I switch back to 1x it seems awfully slow. Regardsless very insightful video. Thank much!
Awesome talk! Not sure if you're familiar with Unity's Entity Component System or game programming in general, but if you do it'd be nice to hear your thoughts and analysis, as it's a system that allows for game developers to not worry about the memory layout as it's already optimized under the hood.
@Nicholas, Thank you!. I've played with Unity a bit but don't feel qualified to talk about it, I'm afraid. There are a lot of optimizations sure, but the programmer always needs to worry about memory :) "There is no free lunch", as we say.
@@Matlus yeah for sure. Data-Oriented Design starts to become a trend in the game development world as the hardware is not getting faster, but it's so different from the traditional OO thinking so that's why Unity created this ECS to make it as simple as possible for game devs. While it looks very promising, I wonder if that's a framework that the software development world could utilize as well, or there are some caveats that we don't know yet.
@@kurnaPunk I haven't spent much time with Unity Nicholas, so your guess is as good as mine. Even in business systems that need super high performance, we tend to do less Object Oriented design, pool/reuse instances...essentially reduce heap allocations and/or reduce garbage collections. In C++ we generally stay far away from OO (primarily virtual methods) and allocations (heap) so as to get the most performance, especially on smaller devices (embedded systems) and phones etc.
Hi sir,
I have a question on memory allocation.
When we create an instance of a struct type containing some value type and reference types properties.
As we know structs get memory allocated on stack, but our struct has reference properties so where they are going to get memory?
As value types of reference type get memory on heap, will reference types of value type get memory on stack?
Firoz, in these videos one of the points I was trying to make is that values types are not always allocated on the stack. So when you say, "As we know structs get memory allocated on the stack", I'm not sure how you conclude that. I must be doing something wrong :)
To answer you question, Reference types types are ALWAYS allocated on the heap. I thought I had made this point clear too :).
Thanks for the video. Your subscribers count should go up this year as your are posting awesome videos. Shiv, how can I contact you if I want to s
get in touch with you?
I hope so @Vinjay and thank you for your comment. Send me a private message on TH-cam.
Accept this invitation youtu.be/addme/FdUL1c20kUxg2Q6YyA-QX1bq6slhiA
@@Matlus I'm extremely sorry. Somehow missed your invitation. Its expired. Please send me a new one.
@@VinuP2023 hey @Vinay, TH-cam has removed the ability to make friends and message between friends. I am no longer able invite folks to a conversation or make friends. They say they are removing the feature on September 18 but I longer see the ability. Contact me on LinkedIn at www.linkedin.com/in/shiv-kumar-698376a0
You have sweeet vois bro thnx
Thanks for the videos. Though me wife is strong independent woman and doesn’t make me go buy milk.