The best c libraries, according to hackers
9 c libraries recommended in Hacker News comments over the past year, ranked by how many separate people recommend each one.
- Most recommendedmusl libc34 people recommend it
- Least regretCosmopolitan libc29 recommend, 6 criticize
All c libraries
- musl libcSmall C library that makes statically linked, portable Linux binaries easy to build and ship. Main caveat: its allocator and some functions run slower than glibc's.34recommend
- glibcFree C library praised for strong ABI stability and backward compatibility; critics say its design decisions and versioned symbols hurt portability.29recommend
- Cosmopolitan libcBuilds 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.29recommend
- Sp.h standard library for CA single-header-style C standard library replacement that people praise for its opinionated, self-contained design and portability, though critics find its implementation quality and performance uneven.11recommend
- GLibC utility library offering automatic resource management and basic data structures; critics find its design odd and its abstractions unsafe.6recommend
- Active Template LibraryFree C++ library for COM code that people find useful with little cost. Common caveat: awkward casting and sharp edges make it messy.6recommend
- Lib0xcFree C library of safer systems APIs that people say can make existing C code safer, with bounds safety where possible. Caveat: it doesn't support MSVC or Windows.6recommend
- sokolFree C library whose code builds to WebAssembly and runs the same way as the native app, which people find convenient.5recommend
- Rhubarb C89 libraries in LatinFree C89 libraries with Latin keywords, recommended as a fun, deliberately odd project that shows a lot of work.5recommend