Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Insider News
  4. Is C++ doomed?

Is C++ doomed?

Scheduled Pinned Locked Moved The Insider News
questionc++phpcom
8 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kent Sharkey
    wrote on last edited by
    #1

    Tenesday Games[^]:

    I’ve written a lot of data structures before, but I’ve never written one that is “idiomatic”. After doing it, I’m left with the question, is it actually feasible to do any of this correctly?

    Hardly everybody uses it anymore

    D Greg UtasG 2 Replies Last reply
    0
    • K Kent Sharkey

      Tenesday Games[^]:

      I’ve written a lot of data structures before, but I’ve never written one that is “idiomatic”. After doing it, I’m left with the question, is it actually feasible to do any of this correctly?

      Hardly everybody uses it anymore

      D Offline
      D Offline
      David ONeil
      wrote on last edited by
      #2

      Quote:

      But exceptions come at a performance cost. So ideally we want to turn them off. So let’s turn them off ...

      And that's a wrap, folks! Unless you are making programs that rely on throwing exceptions for normal logic flow, in which case you should be completely wrapped up _and_ fired. But he does go on to make some valid points after spouting that nonsense. (For newbies - exceptions only impede performance _when_ they are thrown. And they should only be thrown for real issues, not as logic checks. And when they are thrown for real issues, the alternative is almost always complex and time-consuming. Not as time consuming as a full stack unwind, but still problematic, and usually non-trivial to code.)

      Our Forgotten Astronomy | Object Oriented Programming with C++

      K 1 Reply Last reply
      0
      • D David ONeil

        Quote:

        But exceptions come at a performance cost. So ideally we want to turn them off. So let’s turn them off ...

        And that's a wrap, folks! Unless you are making programs that rely on throwing exceptions for normal logic flow, in which case you should be completely wrapped up _and_ fired. But he does go on to make some valid points after spouting that nonsense. (For newbies - exceptions only impede performance _when_ they are thrown. And they should only be thrown for real issues, not as logic checks. And when they are thrown for real issues, the alternative is almost always complex and time-consuming. Not as time consuming as a full stack unwind, but still problematic, and usually non-trivial to code.)

        Our Forgotten Astronomy | Object Oriented Programming with C++

        K Offline
        K Offline
        Kent Sharkey
        wrote on last edited by
        #3

        I'm looking forward to you taking an exception to another C++ item I have coming up after lunch :)

        TTFN - Kent

        D 1 Reply Last reply
        0
        • K Kent Sharkey

          I'm looking forward to you taking an exception to another C++ item I have coming up after lunch :)

          TTFN - Kent

          D Offline
          D Offline
          David ONeil
          wrote on last edited by
          #4

          What if I make an exception?

          Our Forgotten Astronomy | Object Oriented Programming with C++

          1 Reply Last reply
          0
          • K Kent Sharkey

            Tenesday Games[^]:

            I’ve written a lot of data structures before, but I’ve never written one that is “idiomatic”. After doing it, I’m left with the question, is it actually feasible to do any of this correctly?

            Hardly everybody uses it anymore

            Greg UtasG Offline
            Greg UtasG Offline
            Greg Utas
            wrote on last edited by
            #5

            He makes some reasonable points but also whines. The problem, as I discovered when corresponding with someone who wrote a proposal for handling POSIX signals in C++, is that the standards crowd are very conservative. They're incapable of growing a pair and telling existing users that the next version will have some non-upward compatible changes which will require retesting and possibly rework. And if you're not willing to accept that, then stay on the version you're currently using. So lots of things get bolted on, especially in edge areas that are only of interest to the pedantic, and nothing gets removed.

            Robust Services Core | Software Techniques for Lemmings | Articles
            The fox knows many things, but the hedgehog knows one big thing.

            <p><a href="https://github.com/GregUtas/robust-services-core/blob/master/README.md">Robust Services Core</a>
            <em>The fox knows many things, but the hedgehog knows one big thing.</em></p>

            T 1 Reply Last reply
            0
            • Greg UtasG Greg Utas

              He makes some reasonable points but also whines. The problem, as I discovered when corresponding with someone who wrote a proposal for handling POSIX signals in C++, is that the standards crowd are very conservative. They're incapable of growing a pair and telling existing users that the next version will have some non-upward compatible changes which will require retesting and possibly rework. And if you're not willing to accept that, then stay on the version you're currently using. So lots of things get bolted on, especially in edge areas that are only of interest to the pedantic, and nothing gets removed.

              Robust Services Core | Software Techniques for Lemmings | Articles
              The fox knows many things, but the hedgehog knows one big thing.

              T Offline
              T Offline
              trønderen
              wrote on last edited by
              #6

              Greg Utas wrote:

              They're incapable of growing a pair and telling existing users that the next version will have some non-upward compatible changes which will require retesting and possibly rework. And if you're not willing to accept that, then stay on the version you're currently using.

              I can't remember where I picked up this word of wisdom - Any sufficiently high-versioned standard is indistinguishable from a can of worms.

              P 1 Reply Last reply
              0
              • T trønderen

                Greg Utas wrote:

                They're incapable of growing a pair and telling existing users that the next version will have some non-upward compatible changes which will require retesting and possibly rework. And if you're not willing to accept that, then stay on the version you're currently using.

                I can't remember where I picked up this word of wisdom - Any sufficiently high-versioned standard is indistinguishable from a can of worms.

                P Offline
                P Offline
                Peter_in_2780
                wrote on last edited by
                #7

                You're quoting me! The Lounge[^]

                Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012

                Greg UtasG 1 Reply Last reply
                0
                • P Peter_in_2780

                  You're quoting me! The Lounge[^]

                  Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012

                  Greg UtasG Offline
                  Greg UtasG Offline
                  Greg Utas
                  wrote on last edited by
                  #8

                  I was going to suggest that it must have been ACC who said it. :-D

                  Robust Services Core | Software Techniques for Lemmings | Articles
                  The fox knows many things, but the hedgehog knows one big thing.

                  <p><a href="https://github.com/GregUtas/robust-services-core/blob/master/README.md">Robust Services Core</a>
                  <em>The fox knows many things, but the hedgehog knows one big thing.</em></p>

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups