News for hackers. Stuff that matters.
Re:Learn C The Hard Way by irahul on Sunday July 03, 2011 @04:57PM (#2724581)
A bit OT and not sure if you will see this.

Seeing that you are the guy(or onof the guys) behind redis which is written in C, do you have any recommendations for generic data structures and operations on them?

I personally have a trivial vector implementation which resizes when full, and a red-black tree implementation for associative arrays. Both of them work fine for my purpose - does the job, good locality of reference, generic over void*.

I have seen glib but largely neglected it because I only need a very small part of it.

Re:Learn C The Hard Way by burgerbrain on Sunday July 03, 2011 @06:45PM (#2724809)
Git is a good place to rip that kind of stuff out of.