TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Comparison of C/POSIX standard library implementations for Linux

140 pointsby smartmic4 days ago

10 comments

pizlonator4 days ago
My own perf comparison: when I switched from Fil-C running on my system’s libc (recent glibc) for yololand to my own build of musl, I got a 1-2% perf regression. My best guess is that it’s because glibc’s memcpy/memmove/memset are better. Couldn’t have been the allocator since Fil-C’s runtime has its own allocator.
评论 #43949936 未加载
评论 #43949899 未加载
评论 #43948784 未加载
评论 #43954796 未加载
ObscureScience4 days ago
That table is unfortunately quite old. I can't personally say what have changed, but it is hard to put much confidence in the relevance of the information.
评论 #43949491 未加载
jay-barronville4 days ago
Please note that the linked comparison table has been unmaintained for a while. This is even explicitly stated on the legacy musl libc website[0][0] (<i>i.e.</i>, “The (mostly unmaintained) libc comparison is still available on etalabs.net.”).<p>[0]: <a href="https:&#x2F;&#x2F;www.musl-libc.org" rel="nofollow">https:&#x2F;&#x2F;www.musl-libc.org</a>
评论 #43952612 未加载
weiwenhao3 days ago
The static compilation of musl libc is a huge help for alpine linux and many system programming languages. My programming language <a href="https:&#x2F;&#x2F;github.com&#x2F;nature-lang&#x2F;nature">https:&#x2F;&#x2F;github.com&#x2F;nature-lang&#x2F;nature</a> is also built on musl libc.
thrtythreeforty4 days ago
It really ought to lead with the license of each library. I was considering dietlibc until I got to the bottom - GPLv2. I am a GPL apologist and even I can appreciate that this is a nonstarter; even GNU&#x27;s libc is only LGPL!
评论 #43947855 未加载
josephg3 days ago
It’s amazing how much code gets pulled in for printf. Using musl, printf apparently adds 13kb of code to your binary. Given format strings are almost always static, it’s so weird to me that they still get parsed at runtime in all cases. Modern compilers even parse printf format strings anyway to check your types match.<p>This sort of thing makes me really appreciate zig’s comptime. Even rust uses a macro for println!().
评论 #43952490 未加载
评论 #43952557 未加载
moomin4 days ago
No cosmopolitan, pity.
snickerer4 days ago
Fun libc comparison by the author of musl.<p>My getaway is: glibc is bloated but fast. Quite unexpected combination. Am I right?
评论 #43946846 未加载
评论 #43947868 未加载
评论 #43961082 未加载
评论 #43952660 未加载
评论 #43946936 未加载
评论 #43948983 未加载
casey23 days ago
Where is the &quot;# of regressions caused&quot; box?
edam4 days ago
Pretty obviously made by the musl authors.
评论 #43948923 未加载