[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: musl.png (38 KB, 600x600)
38 KB PNG
Usecase?
>>
musl libc is primarily used in scenarios requiring minimal resource consumption, high portability, or strict security standards, contrasting with the performance-optimized but heavier glibc.

Containerization: It is the standard for Alpine Linux, enabling minimal container base images that pull faster and reduce the attack surface by eliminating unnecessary libraries.
Static Linking: musl allows binaries to be fully self-contained without external dependencies (even for DNS or character sets), making it ideal for Rust and Go applications where single-file deployment is required.
Embedded Systems: Its tiny footprint and low memory usage make it suitable for resource-constrained environments and IoT devices.
Security and Simplicity: musl avoids legacy compatibility bloat and race conditions, offering a simpler, more secure implementation that adheres strictly to standards.
While musl offers these advantages, glibc remains the default for general-purpose desktop and server applications due to superior performance in multi-threaded workloads and broader compatibility with proprietary software and game engines.
>>
File: 1781460511260.png (35 KB, 888x886)
35 KB PNG
>>109055898
>musl libc is primarily used in scenarios requiring minimal resource consumption, high portability, or strict security standards, contrasting with the performance-optimized but heavier glibc.
>
>Containerization: It is the standard for Alpine Linux, enabling minimal container base images that pull faster and reduce the attack surface by eliminating unnecessary libraries.
>Static Linking: musl allows binaries to be fully self-contained without external dependencies (even for DNS or character sets), making it ideal for Rust and Go applications where single-file deployment is required.
>Embedded Systems: Its tiny footprint and low memory usage make it suitable for resource-constrained environments and IoT devices.
>Security and Simplicity: musl avoids legacy compatibility bloat and race conditions, offering a simpler, more secure implementation that adheres strictly to standards.
>While musl offers these advantages, glibc remains the default for general-purpose desktop and server applications due to superior performance in multi-threaded workloads and broader compatibility with proprietary software and game engines.
>>
>>109055873
You don't need more. That concludes the usecase.
>>
>>109055898
Static linking sounds nice.
>>
>>109055898
>minimal resource consumption
meme+wrong
>high portability
meme+irrelevant+"theoretical"
>or strict security standards
meme
>performance-optimized
meme(ish)
>heavier glibc.
meme
>Alpine Linux, enabling minimal container base
busybox meme
>eliminating unnecessary libraries.
meme
>Static Linking
correct
>making it ideal for Rust
who told you that?
>where single-file deployment is required
lol
>tiny footprint
repeated meme
>musl avoids..race conditions
as opposed to other implementations which do race conditions on purpose! lol
>simpler
repeated meme
>more secure
see lol above
>implementation that adheres strictly to standards.
translation: doesn't support a shitload of things without janking around like you're on a BSD, except worse. because platform ifdefs can guess kernel+libc with one variable for the BSD's.
>broader compatibility with proprietary software and game engines.
that's not the only thing musl doesn't support out of the box. although a musl-based distro may hide a lot of details from (you)r as clueless user.
-----
many memes above range from being flat out wrong, to not understanding that many descriptions refer to the code, not the binary library.
the point of musl is three fold:
license - simple implementation - static linking without footguns
everything else is a meme or a myth.
feed that to the LLM you copied your comment off, and tell us what "it" "thinks".
>>
>>109056972
You contradict yourself in so many ways it would be tiresome to argue about.
>>
>>109055873
New version of gcc added a hardening feature you can't disable. It's also gcc so can't static link.
I had a embedded device with older libc that I couldn't just upgrade shit on.
I had to upload and run a program on it, compiled on my pc.
Compiled with the old gcc it was missing a symbol for that hardening shit.
I did not want to roll my own _start since the libraries I was using were e prcting the regular libc start main.
SoI compiled it statically with musl
>>
>>109055873
Portability and autistic tier standards compliance
If your program runs with musl you likely won't need to do much to get it working on windows/mac/other platforms
>>
>>109055898
>high portability

Yes. The official musl library is designed exclusively around the Linux kernel system call API. It cannot be used natively on other operating systems like macOS, Windows, or FreeBSD, because its core functionality relies entirely on the Linux syscall layer.
>>
>>109056972
wow what a useful post!
>>
>>109055873
cleanliness
also if you want a dev machine that cant run too much distracting shit
computers aren't just for gayming and tinker-trooning bc you think it looks cool. it's good we have minimal alternatives like musl
>>
>>109055908
Nope.
Brave Leo
Note the absence of faggy greetings and follow-up questions.
>>
>>109055873
embedded but also hipster loonixians
>>
>>109057478
Distro portability is a relevant issue.
>>
It's the only way of creating binaries that are close to statically linked exe files. Glibc is a dumpster fire that's single-handedly responsible for setting the most retarded practices in stone in the Linux world.
>>
>>109055873
it different
and fun :D



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.