Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
borgel
on June 6, 2019
|
parent
|
context
|
favorite
| on:
Writing a game engine in pure C: The Graphic Initi...
Ha, I was just thinking about where to find some STL-style collections earlier today and was lamenting not knowing having a great lib in mind.
Thanks for the suggestion! Seems like a good place to start.
flukus
on June 6, 2019
[–]
Glib (
https://developer.gnome.org/glib/2.60/glib-Miscellaneous-Mac...
) is a great STL like library for C. It's got the basic data structures, a good API and plenty of utilities. My favorite is g_autoptr (
https://developer.gnome.org/glib/stable/glib-Miscellaneous-M...
) for deterministic cleanup. There's enough to make C a reasonably pleasant scripting language.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Thanks for the suggestion! Seems like a good place to start.