2 ms·
What do you mean blazingly fast? I would assume Rust and C have roughly the same performance coming down to LLVM. I'm not convinced that coreutils need much sec
by _lvbh 1y ago
What do you mean blazingly fast? I would assume Rust and C have roughly the same performance coming down to LLVM. I'm not convinced that coreutils need much security since they're almost never exposed and with the exception of sudo, shouldn't hold any extra privileges the user doesn't already have. I do welcome new implementations though, competition is always good
- bfrog 1y agoIt’s a bit of a joke, everything rust does is “blazingly fast” and has almost become a meme at this point. Though it does seem to trend towards well performing programs on the whole. I meant the rest though in a more serious manner.
- hyperman1 1y agoOne part of the answer is rust's borrowing provided assurances that make it possible to clone less. The type system guarantees immutability in a lot of cases. For small scale examples this doesn't mean much, but larger software gains a few percents for free. This argument is cultural, not technical. I presume it is possible to write e.g. C++ classes with similar guarantees. But it is work you get for free in rust, so in practice it almost only happens there at scale.