2 ms·
My Concern with Rust
- nightpool 2y agoArticle is riddled with inaccuracies (crates are not precompiled, they're downloaded in source form and then built locally), and only barely seems comprehensible. The topics they string together and the way they relate to each other (comparing Rust to BSD?) makes very little sense, and it makes me think the article was generated by AI or something similar.
- gus_massa 2y agoI took a look at the article in the same site about prime numbers. It has a program in C to calculate primes, but it's wrong, for example it prits that 143 is prime. I'm not sure that this is AI generated, but the whole site is very incacurate...
- whytevuhuni 2y agoI've been of the same opinion for a long time... if an operating system was to provide its lowest-level tools in Rust (not just coreutils, but everything a minimal Debian is comprised of), Cargo and the crates.io ecosystem would likely not be part of it. Very similar to how they are not part of the Linux kernel. It shows Rust can be used without it, but... it's so much of a regression for building systems compared to C.
- nightpool 2y ago> it's so much of a regression for building systems compared to C. huh?
- whytevuhuni 2y agoThat is with regards to the points raised in the article, specifically, how hard it is to manage dependencies, and their security, when you have 300 of them instead of 12. For a developer, crates.io makes managing dependencies a breeze. For a user, they might just download a static binary, or a FlatPak, and they'll be happy. But for system binaries? Those need to be part of a small base, with trusted dependencies. The crates.io model works against that; the massively distributed ownership of micro-dependencies makes trusting the security of your system almost impossible. Statically built binaries means that updating your system means re-downloading the entire OS on every security update. The only solution to this is to ditch crates.io and vendor a small base of dependencies, the same way the Linux kernel does it, the same way Firefox does it, and the same way the Rust compiler does it. Using crates.io is really hard.
- nightpool 2y agoSetting aside whether or not I agree with the premise that smaller dependencies are worse for building system binaries (I think Nix provides a compelling counterargument), how is vendoring Rust dependencies "like C" (the same way Firefox and the kernel do) a regression from building C? All Linux dependencies are already vendored, and even without access to crates.io, getting access to Rust's language features is still a Pareto improvement over C, not a regression.
- deleted 2y ago[deleted]
- deleted 2y ago[deleted]
- deleted 2y ago[deleted]