3 ms·
> I don't see why I would want to use libc To make your code portable? Linux-only software is even worse than Windows-only
by usrnm 8mo ago
> I don't see why I would want to use libc
To make your code portable? Linux-only software is even worse than Windows-only
- koakuma-chan 8mo agoLet me narrow down the scope here. I am a Rust developer, developing software that will run on my Linux server. Why would I want to use libc? Why does Rust standard library use libc? Zig, for example, doesn't.
- usrnm 8mo agoIf you write your software only for yourself, do whatever you want, of course. If you want to share it with other people, artificially limiting it without a very good reason will make it less useful and popular.
- wtetzner 8mo ago> Why does Rust standard library use libc? Because that's the stable public interface provided by pretty much every OS except Linux. On Linux, if you don't want to depend on the OS-supplied libc, you can use musl.