do you think c++ will ever get replaced?
do you think c++ will ever get replaced?
With what? D--?
I'm sure another language will eventually make C++ obsolete, but not any time soon.
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.
I've already evolved. I send machine instructions directly using a crude magnet and my incredibly powerful will.
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.
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?
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.
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.
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.
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.
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.
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.