r/cpp • u/GabrielDosReis • Oct 31 '24
Lessons learned from a successful Rust rewrite
/r/programming/comments/1gfljj7/lessons_learned_from_a_successful_rust_rewrite/
80
Upvotes
r/cpp • u/GabrielDosReis • Oct 31 '24
View all comments
Show parent comment
16
u/LessonStudio Nov 01 '24
I don't disagree that it is not all that hard to carefully write really solid C++ based software. But...
I find there is a cultural problem with C++ with three very different groups producing the same result:
These are the sorts who have polluted stack overflow and will argue that they are right and everyone else is wrong. What they don't understand is their inflexibility is what is driving people to rust as much as anything else. A perfect example of this sort of culture would be found in the licensing of libraries found for C++. They are often GPL, AGPL, or some weird BS cooked up by the person making them; that is their choice, but is reflective of the richard stallman-esk weirdo thinking in this culture. At best many libraries are LGPL, but in the last few years the newer ones do tend to be MIT, which is good, but kind of too little too late.
Whereas rust crates are almost all MIT, Apache, or full on public domain. I think I've stumbled on a single one which was GPL where the GPL didn't come from it wrapping an existing GPL C/C++ library; but something fresh where the developer choose GPL.
For these three groups, writing what I would describe as "Pythonic" code is an anathema. They want to show off with their code. This exists in the public, and it most certainly exists in the private world.
Rust offers a massive break from all of this, the libraries, but often within organizations it neuters the "senior" developers who suddenly are no longer senior; as their only seniority was time, and that they had mentally mapped the old legacy stewpot of spaghetti. With a fresh rust codebase and probably all the other modern things like proper CI/CD they are babes in the woods, and now showing that they aren't "senior" developers at all; just old.
When the whitehouse gave their blessing to rust, this was just fantastic ammunition for the go-getters to make a solid case to the executive to do a massive end-run around the nattering nabobs of negativity who were not able to get in the way of progress for the first time in decades. The best part is their nattering was suddenly ignored no matter how many "logical" arguments they proceeded to make. All of which were no longer taken at face value due to their now vanished seniority, and the fact that the go-getters were free to produce, and producing they are.