c++ replacemant

This is a discussion on c++ replacemant within the C++ Programming forums, part of the General Programming Boards category; do you think c++ will ever get replaced?...

  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    127

    c++ replacemant

    do you think c++ will ever get replaced?

  2. #2
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    With what? D--?

    I'm sure another language will eventually make C++ obsolete, but not any time soon.

  3. #3
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    1,597
    C++ provides a very nice balance between high and low level programming that your hard pressed to find in other languages; I think it'll be a very long while.
    A class that doesn't overload all operators just isn't finished yet. -- SmugCeePlusPlusWeenie
    A year spent in artificial intelligence is enough to make one believe in God. -- Alan J. Perlis

  4. #4
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,638
    I've already evolved. I send machine instructions directly using a crude magnet and my incredibly powerful will.

  5. #5
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,452
    If C is any indication, I don't think C++ will be going away until maybe 1000 years into the future.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  6. #6
    Registered User
    Join Date
    Apr 2008
    Posts
    890
    Completely, in all application domains? No. C++ is very versatile and portable. But a shift has been occurring for years in many domains. IT infrastructure is largely Java and even .Net now, with RoR even making some inroads. C# is making inroads in Windows client development, and even some game development is being done in Java, with scripting in Lua, Python, Ruby, etc.

    There will always be the need for speed and close to the metal C++ code, but frankly I wouldn't choose it to develop new software unless strict time and/or space constraints dictated it.

  7. #7
    Registered User
    Join Date
    Oct 2006
    Location
    UK/Norway
    Posts
    485
    My understanding is that c++ is pretty much the fastest programming language out (apart from assembly) Would it be possible to create say a next gen game like crysis with C# and XNA or python?

  8. #8
    Registered User
    Join Date
    Apr 2008
    Posts
    890
    Languages aren't fast, per se, implementations of programs using them are. I don't know what "crysis" is, but I assume it's a fast action 3D game. The core of something like that would almost certainly be written in a combination of C, C++, and assembly, but I could imagine that parts of it are scripted with something like Python, Ruby, Lua, etc.

  9. #9
    Registered User
    Join Date
    Aug 2006
    Posts
    6
    Quote Originally Posted by medievalelks View Post
    I don't know what "crysis" is, but I assume it's a fast action 3D game.
    I admire your hype-avoiding skills, good sir. What you assume is correct. The reason the game was so highly anticipated was for its graphics and fully destructible buildings (also breakable trees), plus it takes on an open island like Far Cry. You can also add attachments to your weapon at any time and you have a "nanosuit" which has several modes including armor mode, cloak mode, strength mode, and speed mode.

  10. #10
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,452
    Quote Originally Posted by medievalelks View Post
    There will always be the need for speed and close to the metal C++ code, but frankly I wouldn't choose it to develop new software unless strict time and/or space constraints dictated it.
    I fear that hype will doom us all.
    Java, dotNet, etc, allow slow and crippled, I wouldn't want to work with any of them. Where does that leave us? C? For a computer program? No thanks.
    C++ is the obvious choice here.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  11. #11
    Registered User
    Join Date
    Apr 2008
    Posts
    890
    Quote Originally Posted by Elysia View Post
    I fear that hype will doom us all.
    Java, dotNet, etc, allow slow and crippled, I wouldn't want to work with any of them. Where does that leave us? C? For a computer program? No thanks.
    C++ is the obvious choice here.
    Here? Where is that? If I'm writing a Windows GUI for a handheld where portability is not a top concern -- which I am now -- I'm choosing C#. If I'm writing a dynamic web application I'm probably choosing Java/J2EE, Ruby on Rails, or Python/Django. If I'm writing real time software where speed is critical, C++.

    C++ would work for all of those as well, but I'd rather not deal with its nits and headaches when there are better alternatives for specific tasks.
    Last edited by medievalelks; 06-23-2008 at 05:45 AM.

  12. #12
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by Elysia View Post
    I fear that hype will doom us all.
    Java, dotNet, etc, allow slow and crippled, I wouldn't want to work with any of them. Where does that leave us? C? For a computer program? No thanks.
    C++ is the obvious choice here.
    For many applications, speed isn't the highest priority.
    I love C++, but I wouldn't use it for a website where I could use ASP instead.
    Or if I wanted to write a multiplatform program that doesn't need to be super fast, I'd use Java since I wouldn't need to compile it on every platform.

    Use the right language for the right job.

  13. #13
    Registered User
    Join Date
    May 2008
    Posts
    81
    Quote Originally Posted by citizen View Post
    I've already evolved. I send machine instructions directly using a crude magnet and my incredibly powerful will.

  14. #14
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by herWter View Post
    do you think c++ will ever get replaced?
    Yes. When? Not for quite some time, that's for sure. But it will almost certainly be replaced at some point (at least for most of it's usage).

    As discussed in this thread and elsewhere, performance is only one aspect. In most programs, only a small proportion is using up most of the CPU-time, and only that portion is really critical to use the "right" language.

    I will make no prediction of WHAT will replace C++...

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  15. #15
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,412
    Quote Originally Posted by matsp View Post
    I will make no prediction of WHAT will replace C++...
    I could however predict what could make it obsolete... A whole new computer architecture.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21