News for hackers. Stuff that matters.
Re:What Is Rust's Hole Purpose? by kazinator on Friday February 18, 2022 @07:04PM (#30392927)
The initial C++ designers produced a language which was still very understandable, and in which you could easily write bullet-proof programs.

In C++98 (the first ISO standard version of C++) you can fairly easily organize a program such that any low-level activities are confined to classes that are almost impervious to misuse by the rest of the application, so there will be no memory misuse or leaks, or out of bounds arithmetic.

If Rust takes off, there will be widespread use of its unsafe parts by programmers who are under pressure to deliver something and take the obvious route of telling the machine where to put what bits, exactly like what C++ programmers have been doing.

Re:What Is Rust's Hole Purpose? by dataangel on Sunday February 20, 2022 @01:57PM (#30408266)
But tools like cargo geiger will tell you exactly where the unsafe parts are so you can progressively remove them. Also safety is usually terser in Rust, so programmer laziness usually leads to safe code.