Allocators, Explained Simply

Поділитися
Вставка
  • Опубліковано 23 гру 2024

КОМЕНТАРІ • 53

  • @therealpancake7140
    @therealpancake7140 15 годин тому +26

    Super underrated channel for some reason. Came from the clay vid, stayed for the concise and visually pleasing explanations. Great watch

    • @nicbarkeragain
      @nicbarkeragain  15 годин тому +6

      Thanks, glad you enjoyed it! I really like making educational videos so it's great that people are getting some value out of them

  • @ciberman
    @ciberman 18 годин тому +33

    This video is sadly too short. I would happily watch an hour of you talking about allocators.

    • @nicbarkeragain
      @nicbarkeragain  17 годин тому +20

      We'll get there 😁 I'll make some more detailed videos on each of the different allocator types, this is more of a quick overview! Hopefully it gives folks enough of an intuition that if they go and read about different allocators on wikipedia or stack overflow, the concepts will make sense.

  • @TechJolt3d
    @TechJolt3d 18 годин тому +15

    I just found you yesterday, its cool to see a new vid. You are such a good teacher btw.

    • @nicbarkeragain
      @nicbarkeragain  17 годин тому +3

      Thank you, I really enjoy making these videos!

  • @ManochonARG
    @ManochonARG 5 годин тому

    It’s a pleasure to hear you explain such interesting topics in such a simple and understandable way. This kind of content really motivates me to program.

  • @muream
    @muream 6 годин тому

    Oh, I'm super interested if you make more videos about Allocators!
    Recently started learning C and Odin and while I feel like I understand Allocators themselves, I struggle to know when and how to actually use them
    I also love how clearly you explain things, keep up the great work :)

  • @AstrusHD
    @AstrusHD 10 годин тому +1

    Just got this recommended, happy to have found you, awesome video!

  • @HarshKumar-qw5ou
    @HarshKumar-qw5ou 6 годин тому

    Very good explanation, I would be happy to watch a longer more in depth version.

  • @avastmick
    @avastmick 14 годин тому +4

    Man, you should run your own CS course as you'd put the universities to shame. Keep it up please!

    • @nicbarkeragain
      @nicbarkeragain  14 годин тому +4

      You might have guessed something I have planned for the near future 😁

  • @michaweglarz8791
    @michaweglarz8791 7 годин тому

    Such a great explanation! As someone with a high-level web development background learning about this, I find it incredibly useful and interesting. Thank you!

  • @hectormejia499
    @hectormejia499 5 годин тому

    keep them coming! this is becoming one of my favorite channels :D

  • @helsontaveras7961
    @helsontaveras7961 14 годин тому +1

    Incredible storytelling, visuals, and passion! I can’t wait to learn more, and awesome new library BTW!

    • @nicbarkeragain
      @nicbarkeragain  14 годин тому +1

      So glad you enjoyed it! This video is one of many planned 😁

  • @ariefwt2220
    @ariefwt2220 17 годин тому +4

    Such an Underrated Channel, Especially that vector graphics animation. What software did you use to make them?

    • @nicbarkeragain
      @nicbarkeragain  14 годин тому

      I make all my motion / vector graphics using the Canva video product 🙂

  • @godofpro5767
    @godofpro5767 13 годин тому +1

    i think a c tutorial series which implements these concepts or other videos regarding c would be great

  • @ggjkkit324
    @ggjkkit324 12 годин тому

    I must commend your approach at simplifying seemingly intricate subjects, and explaining them in ways that are quite easy to comprehend.

    • @nicbarkeragain
      @nicbarkeragain  10 годин тому +1

      Thanks! I think a lot of the topics around C and similar "low level" programming are prone to a bit of gate keeping and intimidation, whereas a lot of it is just very straightforward, logical and simple 🙂

    • @ggjkkit324
      @ggjkkit324 10 годин тому

      @nicbarkeragain I suppose that explains the "air of intricacy" surrounding C and Low-level programming paradigms and concepts.
      I genuinely look forward to more low-level programming contents from your channel.

  • @odytrice
    @odytrice 15 годин тому +6

    Love your animations, what do you use to make them?

    • @nicbarkeragain
      @nicbarkeragain  15 годин тому +5

      I make all my motion graphics using Canva 🙂 It's pretty limited compared to after effects or motion, but it gets the job done for what I need. I used to work there so I kind of picked up all the tricks haha.

    • @odytrice
      @odytrice 14 годин тому +1

      @OMG, I use Canva all the time for thumbnails and in-video images. I had no idea you could use it for motion graphics. Great Tip, Thanks 🙏

    • @nicbarkeragain
      @nicbarkeragain  14 годин тому +2

      @@odytrice Yeah the video product is quite underrated. You can do slide transitions and pretty decent animations, then export at 4k60fps.

    • @AGI-Bingo
      @AGI-Bingo 14 годин тому

      ​@@nicbarkeragainthanks for the tip! Love canva 💜 and would love to see a canva style ClayDesigner sometime soon to quickly draw up and export clay ui to any platform (as mentioned in another comment)

  • @skaruts
    @skaruts 15 годин тому +2

    This is great stuff. I've previously watched your video on arenas too. Memory management is something I struggle with a whole lot. I learned C some 15 years ago through a book, but I never learned anything about allocation strategies from it. Then I moved on to C++ (until I started hating it) and garbage collected languages (AS2, Haxe, Python, Lua, Nim), so, as crazy as it may sound, I never even knew allocators were a thing until I started using Odin recently. And then I find myself fighting memory leaks all the time (I'm using a tracking allocator to see them).
    I could be wrong, but I've watched many programming videos using C, and it seems to me that allocators is a subject that's been very widely neglected. (I don't like using C myself, but I find it interesting.)

    • @nicbarkeragain
      @nicbarkeragain  14 годин тому +3

      Believe me I totally understand where you're coming from. I did a computer science degree and was exposed to this kind of stuff, but it never really clicked for me until I built some projects that actually used the concepts. I can't how many of those "wait, this is actually simple" moments I've had over the years. I'm hoping I can short circuit some of the pain for others 🙂

    • @nikolabanovic4833
      @nikolabanovic4833 8 годин тому

      There was a move some 25 years ago, along with oop paradigm, that aimed to abstract any memory management away.
      This works fine until performamce issues hit (due to data being scattered around memory and pointer pointing to pointers pointing to pointers.... pointing to data).
      Then, many programmers not versed in how memory works under the hood, literally do not have an idea of what might be slowing the program down.
      As Eskil Steenberg said - initially all you want is convenience, eventually, all you want is control

  • @Daikuro1
    @Daikuro1 11 годин тому

    Armed with this knowledge, Al can never hide from us again.

  • @jorgegimenezperez9398
    @jorgegimenezperez9398 14 годин тому +6

    Votes here for an extended version

    • @nicbarkeragain
      @nicbarkeragain  14 годин тому +2

      Haha I will likely do several more videos on the actual implementation of a couple of allocators that I find very useful.

  • @radadadadee
    @radadadadee 16 годин тому +8

    The government deallocating resources? Must be such a nice country to live in

    • @nicbarkeragain
      @nicbarkeragain  14 годин тому +5

      GREETINGS CITIZEN. PREPARE TO BE DEALLOCATED

    • @AGI-Bingo
      @AGI-Bingo 14 годин тому

      Oh no... 😂

  • @HowlingDeath
    @HowlingDeath 9 годин тому

    Awesome. Plss start series on game programming ❤

  • @LuisHenriqueON
    @LuisHenriqueON 4 години тому

    Sir, thank you very much! Terrific!

  • @JohnSmith-w8r3r
    @JohnSmith-w8r3r 11 годин тому

    Good vidéo 👍
    keep the good work going !!

  • @BitPlease
    @BitPlease 17 годин тому

    Very good content

  • @Pedritox0953
    @Pedritox0953 6 годин тому

    Great video! Peace out

  • @brightshadow9480
    @brightshadow9480 7 годин тому +1

    I've found the Willy Wonka (Gene Wilder) of programming tutorials, "Come with me and you'll see a land of pure allocation ..."

  • @danser_theplayer01
    @danser_theplayer01 4 години тому

    In javascript async is implemented by adding a less prioritized stack called "the microtask queue".
    That way all immediate tasks not dependant on the async tasks are completed, then a microtask is run (will all the implied synchronous tasks like having a for loop inside an async function) and the next one and the next one. The runtime switches to another stack once the currently used one (sync stack or async queue) is completely empty, prioritizing the syncronous code.
    That's a very simplified general overview, I'm not an expert in runtimes. Don't know of any other solutions.

  • @cornjulio4033
    @cornjulio4033 16 годин тому +2

    Nice Channel, Weird Al !!

    • @nicbarkeragain
      @nicbarkeragain  14 годин тому +2

      My name is actually Daniel Radcliffe 😤

    • @cornjulio4033
      @cornjulio4033 13 годин тому +1

      haha, ok :D It was just a joke. Referring to bloke from the 90ies

    • @nicbarkeragain
      @nicbarkeragain  13 годин тому +2

      @@cornjulio4033 I was making a counter joke 😅 I actually love weird al, I listened to him all the time as a kid in the 90s, I memorized the lyrics to living with a hernia and like a surgeon! I was referencing the fact that Daniel Radcliffe plays Weird Al in the mockumentary / movie 🙂

  • @BartKus
    @BartKus 15 годин тому

    5:40 in one place

  • @RealAXork
    @RealAXork 5 годин тому

    military getting only 10% is wild

  • @einzelltuter2847
    @einzelltuter2847 11 годин тому +1

    The analogy to the distribution of taxpayers' money is not well chosen. Or is your RAM secretly 'allocating' into it's "side-RAM"?

    • @julians.2597
      @julians.2597 11 годин тому +5

      Yes. Windows typically embezzles about 2GB of my ram.