Updates to the C++ language?

This is a discussion on Updates to the C++ language? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; The question is a short one, why isn't C++ updated as much as Java? We take a look at when ...

  1. #1
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427

    Updates to the C++ language?

    The question is a short one, why isn't C++ updated as much as Java? We take a look at when Java was created we see that they first picked and choosed which features to implement and which features from other languages not to implement in Java, for whatever reason. Java gets updated once in a while, and C++, has just stayed behind........why? I mean once you have an original concept and you just have to improve on it I think the chances are that you're new improved product will be much better than the first one. Java improved on many different languages that are still around, perhaps no other language as much as C++. Then we have people who just like to point out all of the bad features of C++. I mean why not just take a look around at C++ and start redoing some of these things like they do in Java? Just a thought. I personally program in Java where I work (still trying to get the hang of it), and you start noticing the diferences and I can't help but wish that some of the features that are not really good in C++ be ammended. Or perhaps should I start thinking about C++ being done with? I mean I really love this language, and I know that sometime we're going to have to let go of it, sooner or later we probably will.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  2. #2
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    Posts
    970
    I don't think we need to make much changes to the C++ language itself, but I do wish the standard C++ library would be made more up to date. Efforts like Boost are encouraging, though.

  3. #3
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    Well for one isn't Java controlled by one body? C++ is not controlled in such a manner. Also the last update for C++ was in '99 IIRC so I don't think much has really changed in the last 5 years that would warrent such a revision.

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >The question is a short one, why isn't C++ updated as much as Java?
    The answer is a long one. But summarized, Java doesn't have to consider compatibility with another language, Java wasn't backed by prior experience as much as C++ and made early mistakes that needed to be addressed.

    Java wasn't originally designed to be a general language, but it has evolved into one by adding standard classes to the library. The language itself is taking a "learn as we go" approach, so frequent improvements are to be expected. This is even more so when the language is owned by a single body that is able to dictate changes. C++ has to maintain a lot of precedent, so you shouldn't expect frequent or drastic changes this late in its evolution.
    My best code is written with the delete key.

  5. #5
    Registered User
    Join Date
    Aug 2001
    Posts
    403
    C++ is not controlled in such a manner.
    This is untrue, there is a C++ board that decides on the new standards.

    The next standard is being discussed right now, I heard 2005 is the year when we'll start to see likely changes, but my bet is that it won't be until closer to 2010 that we have compilers that can handle it with decent efficiency. (VC++ just now added partial template specialization in the latest release)

    Some things I've read from those on the board:
    -No major changes are going to be made, but that depends on your definition of major.
    -The new C99 types are going to be added, the latest C standard apparently added a new header (IIRC stdtype.h) with certain types defined.
    -Several things in boost will make their way into C++, there is a discussion of adding threading, which would be a rather large addition.
    -"Embarassments" like vector<vector<int> > should be fixed.

    I forget who it was, but one membre of the C++ Standardization committe wrote a short paper on parts of boost that are being considered for integration, changes he proposed for the preprocessor, and removal of embarassments. He made the statement that the committee realizes that if C++ isn't kept up to date as well as compatibile it will lose relevancy.

  6. #6
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    Thank you for your replies guys, I didn't know there was such a movement as boost. Good stuff. I guess it all boils down to a computer language being a tool, from which you choose to get a job done. This is how I need to start looking at things. I am glad however that there are such movements as boost.
    Last edited by incognito; 04-20-2004 at 08:05 PM.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  7. #7
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    This is untrue, there is a C++ board that decides on the new standards.
    They maintain their standard which is hopefully what the majority of people use.

  8. #8
    Registered User
    Join Date
    Aug 2003
    Posts
    470
    I think the next big thing will be improvements to editors. There's so much more that could be done better within the editors, not just in presenting the source code but also detecting syntax mistakes before compiling. If I type something like
    print("hello") and print is not defined, it would be a good thing if the editor could notify the user.

    I also think the view of the source code could be managed better. Visual C++ has a class view but it would be much easier if they showed classes in a UML like way. Automatic hyperlinking of the sourcecode would also be cool.

  9. #9
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    print("hello") and print is not defined, it would be a good thing if the editor could notify the user.
    Mine does, when I go to compile it I get a big fat error

  10. #10
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    Quote Originally Posted by okinrus
    I think the next big thing will be improvements to editors. There's so much more that could be done better within the editors, not just in presenting the source code but also detecting syntax mistakes before compiling. If I type something like
    print("hello") and print is not defined, it would be a good thing if the editor could notify the user.

    I also think the view of the source code could be managed better. Visual C++ has a class view but it would be much easier if they showed classes in a UML like way. Automatic hyperlinking of the sourcecode would also be cool.
    That doesn't really have anything to do with the language. You could go out and code yourself an editor or even an IDE with those features. You wouldn't even have to use C++ to do it...
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  11. #11
    Registered User
    Join Date
    Aug 2003
    Posts
    470
    That doesn't really have anything to do with the language. You could go out and code yourself an editor or even an IDE with those features.
    Quite a long time

    My point is that there's few improvements to be made to the language itself. It is the presentation of data and code that must change.

  12. #12
    Registered User
    Join Date
    Aug 2001
    Posts
    403
    I think that trying to make too many improvments to C++ instead of just changing languages will end up speeding up the shift away from C++. If the C++ committee decided that Java was gaining ground and that they needed Garbage Collection (which isn't going to happen) the people using C++ instead of Java b/c they didn't want things like built in GC, would leave, and the ones who really wanted that GC were probably already using a language that had it. If they stick to small changes to the core language and keep the STL fairly current, I think C++ can last a long time in the fields where it remains the best tool..

  13. #13
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    >>> print("hello") and print is not defined, it would be a good thing if the editor could notify the user.

    That would be awful! An editor is a tool for entering text/code/whatever - if it were checking syntax as you went, you'd have to develop your files in the order in which they will appear in your final application. The Print() function may be in file/header that someone else in the team is developing - that means I can't complete my module until I have there's.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  14. #14
    Registered User
    Join Date
    Aug 2003
    Posts
    470
    That would be awful! An editor is a tool for entering text/code/whatever - if it were checking syntax as you went, you'd have to develop your files in the order in which they will appear in your final application. The Print() function may be in file/header that someone else in the team is developing - that means I can't complete my module until I have there's.
    Didn't think of that. I think the notifying here could be a matter of interpretation. If all the editor did was highlighted the function, I don't it would be too much of a problem. Certainly would not want to put up a message box. However, if hyperlinks were used this error wouldn't even have to be notified.

    I typically write stubs for code that has not been completed, sometimes even using dependency diagrams to determine which modules must be completed first. Of course, since I'm the only programmer this has never been too much of a problem.

  15. #15
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,138
    >print("hello") and print is not defined, it would be a good thing if the editor could notify the user.

    It's all about processing power. In VS.NET with Visual Assist ( don't know which application has this feature, Visual Assist is a VS.NET PlugIn ) if you type your code it's compiled on the fly in the background and compiler errors are underlined like spelling errors in word. The tooltip shows the compiler error. To be more correct, it's only parsed, not compiled, but the result is the same. It even uses the office spellchecker for your comment and string lines.
    It's a great tool, but I wouldn't want to use it on my old PII 400 that I ran VC6 on.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

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

Similar Threads

  1. What language did they make Java in?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 07-03-2005, 04:18 PM
  2. Strange loop
    By D@rk_force in forum C++ Programming
    Replies: 22
    Last Post: 12-18-2004, 01:40 PM
  3. Language of choice after C++
    By gandalf_bar in forum A Brief History of Cprogramming.com
    Replies: 47
    Last Post: 06-15-2004, 01:20 AM
  4. Languages dying
    By Zewu in forum A Brief History of Cprogramming.com
    Replies: 31
    Last Post: 07-29-2003, 10:08 AM
  5. Language Script..
    By vasanth in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 03-30-2003, 05:48 AM

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