Project: Coding a

Sdílet
Vložit
  • čas přidán 29. 08. 2024
  • In this episode I'll explain and code our own #ash table implementation. We write it from scratch in C without any external dependencies. This is a perfect way to learn about this amazing technology, when it comes to database performance.

Komentáře • 19

  • @friedrichmyers
    @friedrichmyers Před měsícem +5

    I love these videos. I'm creating my own data structures library so that I can focus more on solving problems. Dr. Birch's videos always makes me find a more elegant way of solving problems in general. Hope this channel keeps uploading these masterpieces.

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Před měsícem

      Oh, beautifully written, thank you so much Fred for those kind words. Hope your lib turns out great. Take care, JB

    • @Brad_Script
      @Brad_Script Před měsícem

      I wrote a hashtable, arraylist and queue in C as templates, similar to C++. It was challenging because I had to abuse the preprocessor a lot lol.

    • @friedrichmyers
      @friedrichmyers Před měsícem

      @@Brad_Script Debugging preprocessor macros is hard bro. I don't abuse it a lot because I don't want another C++, I just want simplicity. So, I'm writing it like the standard C library, although it does get pointer heavy when we introduce generics.

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Před měsícem

      @fred, Generics as in void* or as in the (relatively) new _Generic() macro? JB

    • @friedrichmyers
      @friedrichmyers Před měsícem

      @@dr-Jonas-Birch I really don't know the new stuff. I have only read K&R and I'm relatively new to low level programming. I use a lot of void pointers. Is there any way I can know about the new updates in C?

  • @Brad_Script
    @Brad_Script Před měsícem +3

    37:35 you can return a struct in C99

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Před měsícem +1

      Brad that is exactly what I do, right? I assume you mean return a struct as a value. The Hash type is not a pointer. JB

  • @Programeris
    @Programeris Před měsícem

    this is just beautiful and really fun to watch, (4me, obviously) 😍😋

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Před měsícem

      programeris i am happy to entertain. by the way, would you've coded anything differently thus far? JB

    • @Programeris
      @Programeris Před měsícem

      @@dr-Jonas-Birch 😅 i wish... (in practical terms) I am at the "Hello World" Stage. in theory, still wondering why 1000 milliseconds is 1 sec. (is this a processing time error? should it not be 6000😗?)

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Před měsícem

      I think you misinterpreted what I said. What I was actually considering was if usec meant milli or micro or whatever. How often does one work with time? Its not easy to always remember everything at a moment's notice while performing. Try recording a coding video, you'll see. It's kinda like being on the theater stage. JB

    • @Programeris
      @Programeris Před měsícem

      @@dr-Jonas-Birch, you doing great!!! I am waiting on a 2nd part, while consuming more theory from all the other content so far.... I see all your stuff is on a server I take it, its a VM server, as I am kinda scared to break my PC doing C on it :)

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Před měsícem

      @@Programeris Is this your very subtle way of threatening to hack my server? Or perhaps ddos is more your style, you and all script kiddies alike. JB

  • @biohazardouszxellium
    @biohazardouszxellium Před měsícem +1

    Came across your channel, and i'm loving it!
    Have you ever worked on embedded systems?

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  Před měsícem +1

      Thank you, hazard, It's kind of hard to totally steer off of embedded when one has been doing C for like, forever :) But I don't know much about it, no. Take care, JB