Re: The Case for Rust (in any system)
Date: Mon, 09 Sep 2024 19:18:28 UTC
-------- Original Message -------- On 9/9/24 15:46, David Chisnall wrote: On 9 Sep 2024, at 12:24, Poul-Henning Kamp <phk@phk.freebsd.dk> wrote: What might that subset be? Initially it will be "better C compiler", but then we will gradually allow more and more of C++ to be used. In my experience, the worst C++ code is written by people thinking in C. The second worst is written by people thinking in Java (or Smalltalk In my honest opinion, this is primarily the reason why people outside of this space bundle up C and C++ together, treating them as if they are one and the same, suffering from the same memory bugs. Codebases out there using C++ as if its C with classes, completely out of the loop regarding modern technologies. And I am talking about userland here. I am beyond curious to see any reasonable study on C++ projects that employ RAII, use the STL and generally speaking follow modern guidelines, that still suffer from memory related CVEs. Rust looks like C++ with sane defaults, given that they aren't riddled with technical debt. But to hold such a strong stance that it should not be used for any new project whatsoever, without the required data I pointed out, seems at least ignorant. Fotis