Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror
×
Programming IT Technology

C++ Creator Confident About Its Future 241

bonch writes "Bjarne Stroustrup is confident about the future of C++. He says there is a backlash against new languages like Java and C#, and that developers are returning to C++." From the article: "He claimed the main reason why people are not aware of this is because C++ doesn't have a 'propaganda campaign.' Sun Microsystems has touted the use of Java in the Mars Rover program, for example, but Stroustrup asserts that C++ was also used.
This discussion has been archived. No new comments can be posted.

C++ Creator Confident About Its Future

Comments Filter:
  • by DavidNWelton ( 142216 ) on Saturday April 23, 2005 @01:27PM (#12323484) Homepage
    ...like any language that has had its time in the limelight. There are millions upon millions of lines of code written in it, and a lot of that isn't just going to be rewritten from one day to the next, no matter how much buzz and hype Sun and MS spew forth about their new languages.

    I wrote an article about the economics of programming languages that talks about this and other issues that concern the adoption and lifecycle of languages, although be forewarned that the login system is a bit fiddly:

    http://www.byte.com/documents/s=9553/byt1113845246 791/0418_welton.html [byte.com]
  • by pauljlucas ( 529435 ) on Saturday April 23, 2005 @01:48PM (#12323637) Homepage Journal
    ... especially Java zealots, try reading Modern C++ Design [bookpool.com] by Alexandrescu. It'll blow your mind. Java generics don't even come close.
  • plagiarism (Score:5, Informative)

    by cronian ( 322433 ) on Saturday April 23, 2005 @02:37PM (#12323951)
    Isn't this copied from http://www.adequacy.org/public/stories/2002.7.4.18 3710.3582.html?
  • by the eric conspiracy ( 20178 ) on Saturday April 23, 2005 @02:55PM (#12324049)
    Here's a question for everyone: Which is better? An expertly designed and elegant C++ program with all the proper abstractions, frameworks, and methodologies that 1% of software developers can comprehend quickly, or a C program with a flat set of files, simple structs, and a few shell scripts to build it, which everyone understands (and can even debug)?

    The simple flat file C program that everyone can debug is also a small program. OO really comes into it's own when you get over 20,000 lines of code. Then the kiss C style starts breaking down.

  • Not an extension (Score:4, Informative)

    by rjh ( 40933 ) <rjh@sixdemonbag.org> on Saturday April 23, 2005 @03:13PM (#12324147)
    C++ started out as an extension of C, but the two quickly diverged. C++ is not a superset of C; it's an entirely different language nowadays with a syntax clearly borrowed from C.

    A trivial conversion exists between any ISO C90 program and ISO C++, but then again, we have FORTRAN-to-C translators and nobody thinks C is an extension of FORTRAN.

    Stroustrup would also likely be a little uncomfortable with the appellation "creator". While he's certainly been one of the pivotal figures in C++, Stroustrup has always been quick to recognize the contributions of other people and the work of the ISO standardization committee.
  • by flannelboy ( 344272 ) on Saturday April 23, 2005 @03:48PM (#12324336) Homepage
    OK, mod me flamebait, but I've read the same comments over and over again on Slashdot. To reiterate everything that is always said when this conversation comes up:


    C++ is faster than java / C#

    C++ has better templates

    There is so much C++ out there that no one should ever use another language, or they will be forced into reinventing the wheel

    Using a "simpler" language like java means that you will hire crappy programmers. Don't do that - use C++ and hire really good programmers.


    Having worked on Wall St. as a programmer for 15 years or so, I'm sorry to say to all the people who constantly make that argument that they are officially behind the times.


    The real reason to use java?


    Compilation times

    Compilation times

    Compilation times


    When programmers are a major cost (believe me, at Wall St. firms, they are a huge cost compared with the cost of machines), you should optimize the amount of time they spend waiting for compiles. We have a C++ library that is around 250,000 lines of code, that compiles in around 2 hours (and this is after a lot of work to try to make the compilation as fast as possible). We also have a 1,200,000 line java library that compiles in around 3 minutes. Any way you play it, programmers still spend a lot of time in the write code / compile / test cycle. In fact, this is where they spend most of their time.


    In terms of performance, that is largely a myth that is no longer true. We run pricing simulations in java (which is about as computationally intensive as it gets) and we are able to do so at the same speed is the equivalent C++ code. In fact, the java code is a bit faster now, as the tools for finding the bottlenecks are much faster.


    The hiring market? This is largely moving towards java. Many schools are not teaching C++ any more.


    The work problem? In java, you spend much more of your time working on the business problem, and much less time trying to figure out why GCC arcane error message on file X means that your template is out of whack in file Y. Or in C++, trying to locate the source of a core dump (getting java.lang.NullPointerException is SOO much better).


    Now, mod me flame.


  • by mobydobius ( 237311 ) on Saturday April 23, 2005 @04:03PM (#12324415) Homepage
    if you really are interested in c++ regex, you should get to know Boost [boost.org]. It is a fantastic set of libraries that play nice with the standard c++ library, and includes regexes, parser generators, threads, algebra and probability packages, serialization, custom memory handling, and more.
  • Re:Nice troll. (Score:3, Informative)

    by rjh ( 40933 ) <rjh@sixdemonbag.org> on Saturday April 23, 2005 @05:14PM (#12324819)
    The STL has a consistent design, but the base C++ language doesn't.
    The STL is part of the base C++ language. Read the Standard.
    The STL is a decent library
    Damning with faint praise. Have you ever used the STL for more than a trivial 5,000-line app?
    but it was hardly revolutionary. Type-safe generics were not a new technology at the time.
    C++ generics predate Ada95's strong generics mechanism by quite some time. In fact, the inventor of generics--Stepanov--used C++ as his testbed for ideas. C++ generics go back to the early 1980s.
  • zerg (Score:3, Informative)

    by Lord Omlette ( 124579 ) on Saturday April 23, 2005 @06:40PM (#12325223) Homepage
    C++ Guru Scott Meyers just asked people, "Why do you program in C++? [google.com]" If that's not relevant to this discussion, I don't know what is... (via Lambda the Ultimate [lambda-the-ultimate.org])
  • by ufnoise ( 732845 ) on Sunday April 24, 2005 @12:54AM (#12326999)
    When programmers are a major cost (believe me, at Wall St. firms, they are a huge cost compared with the cost of machines), you should optimize the amount of time they spend waiting for compiles. We have a C++ library that is around 250,000 lines of code, that compiles in around 2 hours (and this is after a lot of work to try to make the compilation as fast as possible). We also have a 1,200,000 line java library that compiles in around 3 minutes. Any way you play it, programmers still spend a lot of time in the write code / compile / test cycle. In fact, this is where they spend most of their time.


    Perhaps you need to take a look at your build system.


    If an incremental change to you program is triggering a massive recompilation of everything there may also be a problem in how include's are being handled or your make files. There are several well known techniques to reduce this.

Intel CPUs are not defective, they just act that way. -- Henry Spencer

Working...