Lightweight C library musl 1.0 released

in linux on (#3GK)
musl, a lightweight alternative to the GNU Clibrary , has just had its version 1.0 released after three hard years of development. musl is, according to its developers:
a lightweight, fast, simple, MIT-licensed, correctness-oriented alternative to the GNU C library (glibc), uClibc, or Android's Bionic. At this point musl provides all mandatory C99 and POSIX interfaces (plus a lot of widely-used extensions), and well over 5000 packages are known to build successfully against musl.
musl is indeed lightweight, and a chart showing how musl compares to uClibc, dietlibc, and eglibc shows musl compares favorably and often outshines other small C libraries. Several options are available for trying musl. Compiler toolchains are available from the musl-cross project, and several new musl-based Linux distributions are already available (Sabotage and Snowflake, among others).

Some well-established distributions including OpenWRT and Gentoo are in the process of adding musl-based variants, and others (Aboriginal, Alpine, Bedrock, Dragora) are adopting musl as their default libc.

Re: what are the contexts where this is preferred? (Score: 1)

by on 2014-03-21 21:28 (#RD)

I suspect there's a certain amount of inertia and "Nobody ever got fired for..." in favor of sticking with gcc. It takes time to vet something as large as libc. The size of the library is probably a non-issue for server apps.
Post Comment
What is twenty six thousand seven hundred and sixty six as digits?