5 ms·
Good stuff. void* in itself is great for generics. C does support a templating system, like C++, with a little (reasonable) preprocessor abuse. It gives great c
by glouwbug 4y ago
Good stuff. void* in itself is great for generics. C does support a templating system, like C++, with a little (reasonable) preprocessor abuse. It gives great cache contiguous results: https://www.github.com/glouw/ctl https://www.github.com/glouw/ctl
- metadat 4y agoProbably best to disclose you're pitching your own baby to us. What do you feel this content adds in context of the article? I can't tell.
- gnufied 4y agoYou mean why would anyone link another useful C library in a thread about C libraries - you can't tell?
- metadat 4y agoWithout any explanation it's probably not useful to most of us.
- synergy20 4y agothey're kind in the same category to me, good to know both and compare them.
- cestith 4y agoI thought "glouw" in the username here and in the username in the link was pretty obvious myself.
- glouwbug 4y agoI mean, it’s not like I’m plugging retail source ;)
- quickthrower2 4y agoYeah like I’m not gonna complain to my ad blocker :-)
- deleted 4y ago[deleted]
- deleted 4y ago[deleted]
- xigoi 4y agoI'm confused. It's easy to emulate a set using a map, but how do you emulate a map using a set?
- travisgriggs 4y agoYou model the key->value relationship, call it an association, and place associations in the set, where the equality/hash functions are performed on the association key.