News for hackers. Stuff that matters.
Re:Why Bloat Is Still Software's Biggest Vulnerability by IshKebab on Saturday February 10, 2024 @08:40AM (#39326059)
Do you have any evidence that Rust programs actually run 10x as much code as C++ programs? That seems very unlikely. Most translations from C++ to Rust or vice versa that I've seen are within like 30% of each other.

The fact that Rust makes it easy to pull in a large number of small dependencies instead of a few enormous dependencies is irrelevant. You aren't using any more code.

For example are you counting Rusts `regex` crate as a dependency? Well that's just in the standard library for C++.

Does Boost count as a single dependency in C++? Because that would be like 30 separate crates in Rust.

Re:Why Bloat Is Still Software's Biggest Vulnerability by jurschreuder on Monday February 12, 2024 @02:27PM (#39349162)
Just to pick out some examples, rust-analyzer is 28M against clangd which is only 291K; ripgrep is 4.7M against GNU grep which is only 211K (binaries have already been strip-ed in both cases).