# GLib

6 Hacker News commenters recommended GLib and 3 criticized it, November 2025 to November 2026. It was recommended in 4 of 13 months.

**Verdict:** C utility library offering automatic resource management and basic data structures; critics find its design odd and its abstractions unsafe.

## Why people recommend it

- Automatic resource management in C (2 comments): "GLib proves you can have that feature in C, today, with compilers that have been stable for decades" ([source](https://news.ycombinator.com/item?id=46186931)) "remarkably elegant solution to automatic resource management" ([source](https://news.ycombinator.com/item?id=46186930))
- Standard structures and alloc routines (2 comments): "no one should be custom building most basic structures in C these days" ([source](https://news.ycombinator.com/item?id=50034177)) "from glib's or sqlite's alloc and free routines" ([source](https://news.ycombinator.com/item?id=48883295))

## Alternatives hackers recommend

- [musl libc](https://hackerapproved.com/p/musl-libc.md): 34 recommend
- [glibc](https://hackerapproved.com/p/glibc.md): 29 recommend
- [Cosmopolitan libc](https://hackerapproved.com/p/cosmopolitan-libc.md): 29 recommend
- [Sp.h standard library for C](https://hackerapproved.com/p/sp-h.md): 11 recommend
- [Lib0xc](https://hackerapproved.com/p/lib0xc.md): 6 recommend

## Cite as

Hacker Approved, "GLib", https://hackerapproved.com/p/glib/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
