4 ms·
> Standard C library: newlib (850k lines), glibc (1.2M lines), musl (82k lines) or uClibC-ng (251k lines) A big shout out to the musl developers. I was debuggi
by blobsburgers 3y ago
> Standard C library: newlib (850k lines), glibc (1.2M lines), musl (82k lines) or uClibC-ng (251k lines)
A big shout out to the musl developers. I was debugging a program's use of posix_spawn and went down a rabbit hole of looking at all the libc implementations from the BSDs to the ones mentioned above, and found that musl was by far the most elegant and easiest to follow. It's the sort of code we all wish we could write the first time.