by matthavener · 14y ago · 0 comments
https://dev.mysql.com/doc/internals/en/general-development-g...
[1]: https://github.com/bloomberg/bsl [2]: https://github.com/bloomberg/bsl/wiki/bdestds.pdf
If we get to the point where OS distros want to package the libs, we may opt to generate autotools files, but that was too much work to be a roadblock from open-sourcing the lib.
Another interesting C++ coding guideline are the JSF coding guidelines. Stroustrup was actually involved in creating them. It's mostly focused in embedded and critical systems. But unlike what most people expect they highly recommend stuff like Templates
Like anything boost spirit has a leaning curve. You could just as easily say no one should use emacs because it is hard to learn. In fact I personally don't use emacs because I found it too hard to get going with, but I don't from there extrapolate that no one else should use it.
The compile time and binary size problems of boost spirit can be addressed by factoring your grammar into smaller subgrammars in separate compilation units. The subgrammars can still be combined the same as rules can be.
The obscure error messages can be improved by using typeful programming so that you get an error like "no conversion from MyRuleADatatype to MyRuleBDatatype".
Yes these things are still problematic, but how do we get from "X is hard" to "no one should use X"? See the Clojure author's talk on Simple vs Easy: he lambasts programmer culture for being obsessed with 'easy' to the detriment of creating useful stuff. He asks, what if the Foo Fighters said guitars are hard to play, let's play kazoos because they are easy. Would you listen to the Kazoo Fighters, he asks.
You can ignore the more restrictive rules (for embedded systems) if that's your case.
And everyone knew the huge amount of software in C++. Why the list?
Perhaps the submitter just likes watching HN'ers fall all over themselves to reflexively point out all the reasons why C++ is, like, the worst language ever? (Someone even mentioned coding Windows in ML-derived languages, I can only imagine Raymond Chen's reaction to that)