Originally posted by carewolf
View Post
Announcement
Collapse
No announcement yet.
A Quick Benchmark Of Mozilla Firefox With WebRender Beta vs. Chrome
Collapse
X
-
Originally posted by Marc.2377 View PostThe poor guy (Weasel, not you!) has no clue what he's talking about; let him be.
The compiler might be able to optimize if the array's max size is known to it (though it has nothing to do with the language) but that only happens if it's close to where the loop is, highly unlikely in most cases. For the compiler to know this, it has to 100% prove it in all cases. It cannot risk generating wrong code even in 0.0000000000000001% of cases, so it has to be a perfect proof.
Accessing stuff with .at() has runtime checks whether you like it or not.
Bunch of apes.
Comment
-
Ok, perhaps I spoke too early. Can you please clarify what you said on #50?
You stated: "C++ best practices is not real C++. Real C++ is just C with extra features (even the name says it all). You code with C mindset but with extra features."
Can you please tell me whether you consider the smart pointer templates and others like std::vector and std::bitset, which are acclaimed best practices, to be some of those extra features you talk about, or instead they are practices reserved to "incompetent morons"? And if you think it's at all possible to use such features and still program "with a C mindset"?
Edit: "Real C++ is just C with extra features (even the name says it all)" - this is just wrong. It was true, in the 80s and perhaps early 90s. Now it just isn't.
Comment
-
Originally posted by Marc.2377 View PostOk, perhaps I spoke too early. Can you please clarify what you said on #50?
You stated: "C++ best practices is not real C++. Real C++ is just C with extra features (even the name says it all). You code with C mindset but with extra features."
Can you please tell me whether you consider the smart pointer templates and others like std::vector and std::bitset, which are acclaimed best practices, to be some of those extra features you talk about, or instead they are practices reserved to "incompetent morons"? And if you think it's at all possible to use such features and still program "with a C mindset"?
As for it "not being true" anymore, that's just your opinion and the other people who code wrongly and then whine C++ has overhead. Stop following their ideologies, even if they are part of the C++ committee.
Comment
Comment