News for hackers. Stuff that matters.
Re:Why Bloat Is Still Software's Biggest Vulnerability by cperciva on Friday February 09, 2024 @10:06PM (#39323176)
> the amount of code and level of risk taken would be exactly the same.

The amount of code might be the same, but that doesn't guarantee that the level of risk is the same. A lot of bugs are introduced at interfaces -- the provider of an API makes a subtle change without realizing how it affects some of the API consumers -- and that's inherently more likely to occur if the two sides of the API are developed separately.

In the FreeBSD world we've found that it's incredibly useful to develop the kernel and libc and system binaries together; all sorts of problems Linux trips over simply never happen in FreeBSD.

Re:Why Bloat Is Still Software's Biggest Vulnerability by estebank on Friday February 09, 2024 @11:49PM (#39323680)
A really common thing in the Rust ecosystem is to write APIs that are impossible or at least hard to misuse. That cultural aspect plus the ownership system does help reduce those kind of problems. I've seen crates where there are "mistakes" in the API, lending a mutable borrow instead of returning an owned value, for example, that make them less useful than they could be otherwise, but I've seen fewer cases of bug prone APIs.
Re:Why Bloat Is Still Software's Biggest Vulnerability by josephg on Friday February 09, 2024 @10:37PM (#39323338)
This risk is much worse in C or C++ than rust because of the borrow checker. I’ve certainly seen some crimes against performance at the boundary between libraries, but I don’t think I’ve seen any subtle interface bugs.