107 points · by jjuhl · 8y ago · 38 comments
Recently, I have run into quite a few issues with different C++17 compilers (actually, I found that none of the compilers-I-tried is really C++17 compliant yet);
IMHO the fact that the spec is so complex that it is near impossible to implement it correctly should be a big hint, yet people seem very eager to continually stuff more features into the language, which can interact with all the other features in complex ways.
I think that's what bothers me about your comment; your phrasing "continually stuff more features into the language" implies a short-sightedness, but if you actually follow the work of the committee you can see that the thinking all the way from when it was C++0x to now maintains a long-term view.
In think the GP was correct in pointing out that the ways in which the language is getting more complex is a problem for implementations of the compiler and/or the standard C++ library.
You may be correct that the GP was unfairly calling the committee "eager" to make the language more complex. But perhaps we can agree that the language is becoming more complex, and that the complexity comes at a cost.
This is not to say that compiler developers do a bad job; however, don't expect complex language revisions to be production grade from the get-go.
The bigger problem is interfacing with third party code that has to work with everything back to c+03. I don’t envy those folks in their task!
auto i = { 1 };
A "big hint" for what? There's not many viable alternatives to C++, and the major contestant at the moment is Rust which has an even more complex compiler. Otherwise all the simpler languages make major compromises to achieve that simplicity, compromises that are unacceptable in more than a few circumstances.
What metric are you using for this? I would expect it to be simpler, mostly due to a lack of needing to support so many things. Totally willing to be wrong though.
I dont see any other way. Either you have to remove stuff from the language to make it simpler or stop introducing any new features at all. Am I right? Or is there any other way around this?
I see people constantly nagging about C++ becoming more and more complex. But I suspect of committe would depracate any features, mostly the same people would start nagging about not having backward compatibility?
Isn't it reasonable to desire a language that is both backwards compatible and not very complex?
https://www.kdab.com/clang-tidy-part-1-modernize-source-code...
AFAICS, kaleidoscope produces random code (which does nothing meaningful) that should compile. Then, they feed the random code into the C++ compilers Clang, gcc, and MSVC. The random code triggers bugs in the compilers, which are summarized in the post.
Actually, they don't feed the random code, but kaleidoscope uses the template system to "directly" produce randome code.
That being said, to address your concern: this is HN, where in my experience pretty much anything can get discussed, and not-so-topnotch blog formats is one of those things. Upvotes in this case simply mean others have the same feeling with regards to the general readability of the article. Also note that, as far as I recall, there has been more than one post - not just comment - on HN exactly about this: conveying information in a proper manner is an important aspect of the internet in general. Not just bikeshedding. Even more so for technical stuff, imo.
I don't find the parent comment to be the most constructive example but, ignoring the subjective criticism about the jokes, I agree there's something unusually distracting about the format.
For example, the bunnies that highlight content on the right-hand side? If you're reading the entire post, you're going to read some sentences twice over -- So why are these here? For summary? Why couldn't the summary be in a more accessible area like the top?