Project: Coding a
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.
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.
Oh, beautifully written, thank you so much Fred for those kind words. Hope your lib turns out great. Take care, JB
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.
@@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.
@fred, Generics as in void* or as in the (relatively) new _Generic() macro? JB
@@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?
37:35 you can return a struct in C99
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
this is just beautiful and really fun to watch, (4me, obviously) 😍😋
programeris i am happy to entertain. by the way, would you've coded anything differently thus far? JB
@@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😗?)
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
@@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 :)
@@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
Came across your channel, and i'm loving it!
Have you ever worked on embedded systems?
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