Announcement

Collapse
No announcement yet.

A Quick Benchmark Of Mozilla Firefox With WebRender Beta vs. Chrome

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Originally posted by carewolf View Post

    What on earth are you blathering about? Best pratices with C++ are always zero overhead, boundary checks are enforced via typing at compile time and only checked on runtime of parsed from user input.
    The poor guy (Weasel, not you!) has no clue what he's talking about; let him be.

    Comment


    • Originally posted by Marc.2377 View Post
      The poor guy (Weasel, not you!) has no clue what he's talking about; let him be.
      Actually you have truly no idea what you are talking about. The compiler doesn't know what's from "user input". There's no such fantasy bullshit. Only static arrays of fixed size can be enforced at "compile-time".

      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 Post
          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"?
          They're part of a library, the standard library. You don't need them, and if they add the slightest bit of overhead to your specific scenario I suggest you don't use them.

          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

          Working...
          X