Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
AlgoRythm5092071d@retoor fixed size stack allocated, you can only have exactly one at a time, inserting is achieved using the “search” function (and passing INSERT flag). It’s basically as bare bones and confusing as a simple data structure gets
-
retoor1202971d@AlgoRythm yh, the inserting is weird indeed. The predefined size is a performance thingy I guess. Allocate once. Regarding one at a time, just create pointer to the value in result if you need more at once.
Prefer to use my own. Benchmarked it against the c++ std::map and it wins
Have seen no one using this implementation. Everyone writes themselves. -
djsumdog669471dI tried Wayland out again for a few months, this time using Hyprland. It was a way better experience than Sway. I want to love it, but I still ran into some really frustrating issues:
https://battlepenguin.com/tech/... -
12bitfloat930870dOh man, reminds me of this critique of an offical blog post for the hare language (anyone remember hare?) about how to implement hashmaps
https://ayende.com/blog/197185-B/...
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
elgringo41Student - Teacher renaming .c to .exe make the program executable ? Teacher - Yes A group of people stand up...
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
The C Standard Library has a Hash Table implementation, and it's a man-made horror beyond comprehension:
https://youtube.com/watch/...
rant
codinghorror
c++
stdlib
c