News for hackers. Stuff that matters.
Re:Chimera Linux by NewJazz on Saturday December 16, 2023 @06:41PM (#38668902)
[musl is] slower than glibc, and in occasionally difficult to predict spots

Note that sometimes (/often) this purely due to the allocator, and as far as I remember Chimera uses a different allocator than the stock musl one.

Re:Chimera Linux by celrod on Saturday December 16, 2023 @07:24PM (#38669174)
Chimera uses the scudo allocator, which is Ajay also the default on Android and Fuscia.

Yet I can't find many benchmarks.

Frustratingly, it's listed here, but not actually included in the results: https://github.com/daanx/mimalloc-bench Might be fun trying to run the benchmarks myself.

Re:Chimera Linux by q66 on Sunday December 17, 2023 @12:10AM (#38670464)
i ran that when doing the initial porting: https://gist.github.com/q66/84288d3b8e70146a630f65dc1de4b683

that said, scudo is highly configurable, and the performance reflects the configuration (you can even swap out the primary allocator, secondary cache, you can tune all the parameters, the TSD registry implementation has a big impact on multithreaded code, etc.), so it's not 100% representative - chimera's current configuration is further tweaked for both better performance and lower memory usage

scudo being this configurable is excellent because it is what enables such integration in the first place (other allocators e.g. frequently rely on ELF TLS, i.e. __thread and the likes, which would make libc integration very difficult and would require major changes to the dynamic linker, with scudo we instead implement a custom TSD registry and simply shove an extra pointer in the pthread structure)

Re:Chimera Linux by q66 on Saturday December 16, 2023 @10:44PM (#38670159)
in most applications where it matters, it actually tends to be the allocator; you'll find that especially interactive applications (e.g. browsers) tend to feel significantly more responsive in chimera than in alpine, as well as other things (e.g. LTO link times with lld take a third of the time)
Re:Chimera Linux by sidkshatriya on Saturday December 16, 2023 @11:09PM (#38670251)
Happy chimera user here. It feels fast in regular usage though I use ssh much more than desktop.

What’s actually amazing about chimera is the musl + clang/llvm/compiler-rt combination. It allows you to do all kinds of amazing things easily from a programming perspective.

The apk 3 package manager, build system (cbuild) is also excellent. Everything feels modern and clean. Package availability is still limited and you would probably need to compile many of your favourite packages from source but I would still highly recommend this distribution.

Re:Chimera Linux by LeFantome on Sunday December 17, 2023 @12:31AM (#38670547)
“What’s actually amazing about chimera is the musl + clang/llvm/compiler-rt combination. It allows you to do all kinds of amazing things easily from a programming perspective.”

Any examples?

Re:Chimera Linux by Gur3n on Sunday December 17, 2023 @05:03AM (#38671748)
It's pretty hard to feel slow on modern hardware, especially for x86 (I don't mean Chimera is slow though, I haven't tried it yet.)
Re:Chimera Linux by i5-2520M on Sunday December 17, 2023 @05:43AM (#38671935)
Windows easily manages to feel slow, especially 11 did in the early days. I wonder how they do it...
Re:Chimera Linux by 1vuio0pswjnm7 on Sunday December 17, 2023 @06:19AM (#38672092)
On Void, installing clang results in a massive 120MB libLLVM-15.so along with a number of other hefty shared libaries. 50+ MB, 30+ MB and so on.

As such, I have stuck with GCC which requires much less space.

Is this any different on Chimera.

Re:Chimera Linux by gavinray on Sunday December 17, 2023 @10:06AM (#38673311)
Do people really have such a violent reaction to using ~100MB of disk space for one of the most advanced compilers in the world?

I have 2TB of internal SSD storage on my laptop, and I can buy extra TB's for $50 each.

Why on earth would I balk at 100MB?

Some webpages serve half of that in optimized images for crying out loud, lol.

Re:Chimera Linux by fransje26 on Monday December 18, 2023 @05:44AM (#38681029)
To get a bit of perspective, these peoples should be invited to briefly switch to windows, and to try installing the MSVC compiler...