musl

Lightweight, standards-conforming C standard library for Linux, an alternative to glibc.

Liked for building statically linked, self-contained binaries123 and minimal Linux systems as a simpler replacement for glibc.4567 The most common caveat is its slow default malloc, which several commenters replace with mimalloc8910, along with not being the fastest C library.11
The HN verdict, written from 11 cited comments
6recommend
1warn against
Nov 2, 2025first mention
Oct 10, 2026latest mention
Nov 25 – Oct 26
Used forfor static binariesfor containersfor minimal Linux distrosfor Rust developersc standard librarylibc for static userland

Why people recommend it

Static linking · 3

Commenters use it to build fully static, self-contained binaries and userlands.

“Otherwise the entire userland is statically-linked”

builds own minimal Linux userlandon “The Problem of System Communication”

“drops the GNU C library for the musl C library, which is more minimal and better optimized for static builds of packages”

Show 1 more

“I use musl for compiling self contained Nim utilities I use on containers and servers without having to deal with glibc hell.”

Glibc alternative · 3

Used in place of glibc, including to avoid glibc dependency problems.

“I use musl instead of glibc”

“I use musl for compiling self contained Nim utilities I use on containers and servers without having to deal with glibc hell.”

Show 1 more

“drops the GNU C library for the musl C library, which is more minimal and better optimized for static builds of packages”

Minimalism · 2

Valued for being more minimal and simpler than glibc.

“drops the GNU C library for the musl C library, which is more minimal and better optimized for static builds of packages”

“I genuinely prefer musl for this”

Production distros · 2

Whole Linux distributions and production operating systems are built on it.

“We use musl+mimalloc by default for our entire production operating systems”

“Our entire linux distro is musl based”

Memory footprint · 1

One Rust developer sees lower memory use for IO-bound programs.

“I use musl for my Rust stuff because I have noticed that for the stuff I write it appears to have a lower memory footprint”

Caveats and dissent

Slow malloc · 3

The default allocator is described as slow or a placeholder, so users swap in mimalloc.

“Our entire linux distro is musl based”

“I use musl for my Rust stuff because I have noticed that for the stuff I write it appears to have a lower memory footprint”

Show 1 more

“We use musl+mimalloc by default for our entire production operating systems”

Performance · 1

One commenter says it is not the fastest C library for performance-sensitive work.

“If you do use MUSL then you aren't using the fastest library, so you must not care that much about performance.”

Compatibility · 1

Some large programs still won't compile with musl and need a glibc chroot.

“Otherwise the entire userland is statically-linked”

builds own minimal Linux userlandon “The Problem of System Communication”

Often compared with

Who recommends it in their own words

All comments 10

“Otherwise the entire userland is statically-linked”

builds own minimal Linux userlandon “The Problem of System Communication”

“If you do use MUSL then you aren't using the fastest library, so you must not care that much about performance.”

“Show me where musl prevents someone from writing a fast program.”

“Our entire linux distro is musl based”

“I use musl for my Rust stuff because I have noticed that for the stuff I write it appears to have a lower memory footprint”

“I use musl for compiling self contained Nim utilities I use on containers and servers without having to deal with glibc hell.”

“drops the GNU C library for the musl C library, which is more minimal and better optimized for static builds of packages”

“We use musl+mimalloc by default for our entire production operating systems”

“I use musl instead of glibc”

“I genuinely prefer musl for this”

Threads where it came up

Data: musl.json. Quotes are verbatim; the verdict and theme labels are written by a model from these comments, and every clause links to its sources.

Keyboard shortcuts
j / kNext / previous item
o or EnterOpen selected item
/Search
g hHome
g tTop
g rRising
g cCategories
tToggle dark mode
?This help