Live data from Hacker News

Common libraries and data structures for C

github.com

1–10 of 148 posts

Re: Common libraries and data structures for C

#2
Interesting project. We have a similar set of various cross-platform helpers for various C structures and tasks during all these years within Rizin - RzUtil[1][2]. They are more tightly coupled with each other though and is LGPLv3-licensed.

[1] https://github.com/rizinorg/rizin/tree/dev/librz/util

[2] https://github.com/rizinorg/rizin/tree/dev/librz/include/rz_...

Re: Common libraries and data structures for C

#4

Why not use GObject?

I think writing your own portable C functions is something every programmer wants to own at some point in their young career. Then you grow up and realize there are entire organizations that have spend tens of thousands of man-hours providing the same code, but done correctly and with intent (and consistent philosophy). GObject is that philosophy, but lots of people never hear about it until someone says "Why not use GObject?" :)

Re: Common libraries and data structures for C

#5
Good stuff. I may make use of the .ini parser as my current one doesn't handle sections.

There are a growing number of stand alone support modules in my projects that I need to publish as a collection some day. Here's a couple links to some of them:

- https://github.com/WickedSmoke/faun/tree/master/support

- https://github.com/xu4-engine/u4/tree/master/src/support

These include more exotic stuff like a grid based field-of-view calculation and a version of the sfxr synthesizer.

Re: Common libraries and data structures for C

#10
post #7

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

Probably 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.

Post reply on HN