3 ms·
Though it is fun to rag on C++ every now and again, I believe Google's C++ style guide is a subset of features (classes, no exceptions, subset of boost,..). Mo
by cameronbrown 7y ago
Though it is fun to rag on C++ every now and again, I believe Google's C++ style guide is a subset of features (classes, no exceptions, subset of boost,..).
Most C++ issues come from using every feature under the sun and accumulating loads of technical debt instead of picking one tool and sticking with it.
- PyroLagus 7y ago> Though it is fun to rag on C++ every now and again, I believe Google's C++ style guide is a subset of features (classes, no exceptions, subset of boost,..). Which is the same thing Genode does[1], and it has served them well. Maybe a different language like ADA/SPARK or something else would have been better, but C++ was what they're familiar with, so they made it work. Although I like Rust, it's a bad argument here. Rust has been changing a lot and is still changing, and Fuchsia wasn't started yesterday. And with C++, you could even replace critical parts with formally verified LEAN[1], which has C++ code generation and should be even safer than Rust. [0] https://genodians.org/nfeske/2019-01-22-conscious-c++ https://genodians.org/nfeske/2019-01-22-conscious-c++ [1] https://leanprover.github.io/ https://leanprover.github.io/
- steveklabnik 7y agoDon’t forget that Fuchsia also has a lot of Rust in it already. These things don’t have to be either/or.
- fithisux 7y agoC++i is excellent when you have a large code base. But if you have a large code base for a driver or a stack, you have already lost.