# Cosmopolitan libc

29 Hacker News commenters recommended Cosmopolitan libc and 6 criticized it, November 2025 to November 2026. It was recommended in 10 of 13 months. It meets the Hacker Approved badge rule.

**Verdict:** Builds single binaries that run across Linux, Windows and Mac on amd64 and arm64, with a portable C library. Caveat: critics note limited adoption and lowest-common-denominator platform support issues.

## Why people recommend it

- Runs across operating systems (6 comments): "being able to write quick little utilities and then pass them around without worrying about what operating system" ([source](https://news.ycombinator.com/item?id=48539015)) "It combines a polyglot format and a polymorphic libc that works in all major OSes under both amd64 and arm64." ([source](https://news.ycombinator.com/item?id=46706926)) "you can compile a single native binary that targets Linux, Windows & Mac OS" ([source](https://news.ycombinator.com/item?id=46763544))
- Impressive, admired engineering (6 comments): "Very few people in recent decades have achieved anything comparable to αcτµαlly pδrταblε εxεcµταblε and Cosmopolitan libc" ([source](https://news.ycombinator.com/item?id=48350010)) "I love that someone is attempting this just because of the tenacity it shows." ([source](https://news.ycombinator.com/item?id=46433907)) "jart's cosmopolitan is awesome." ([source](https://news.ycombinator.com/item?id=49030359))
- Works with OpenGL and GUI packages (2 comments): "Cosmopolitan Libc has since integrated the bits to make OpenGL work in cross-platform binaries and it's awesome." ([source](https://news.ycombinator.com/item?id=48573594)) "Cosmopolitan can be used to bundle up any gui package, and your code" ([source](https://news.ycombinator.com/item?id=47248904))
- Platform-agnostic static C standard library (2 comments): "the core benefit proposition of Cosmopolitan is indeed a platform-agnostic, statically-linked C standard" ([source](https://news.ycombinator.com/item?id=46764720)) "it's the secret sauce that powers everything else" ([source](https://news.ycombinator.com/item?id=46564845))

## What people warn about

- Unclear value and limited adoption (2 comments): "Cosmopolitan is great tech, the llamafile command (the "UX for a model" part) is great, but I'm not convinced by the value of Cosmopolitan applied here." ([source](https://news.ycombinator.com/item?id=45780009)) "And it's not like APE and Cosmo libc are seeing massive adoption" ([source](https://news.ycombinator.com/item?id=48354675))
- Platform hacks and support limits (2 comments): "I'd rather have platform specific minimal binaries than a single binary with hacks." ([source](https://news.ycombinator.com/item?id=48537078)) "has many lowest common denominator platform support issues" ([source](https://news.ycombinator.com/item?id=46770881))

## Alternatives hackers recommend

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

## Cite as

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