Thread: Is C++ going to be around?

  1. #16
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    The problem about the tiobe index is that it is about lines of code. While not necessarily greatly affecting the ratings, some difference will be there. It generally takes fewer lines to do the same in C++ than in C, thanks to the advanced features the language supports. And of course, functional languages like Haskell use even less lines.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  2. #17
    Registered User
    Join Date
    Apr 2004
    Posts
    210
    Unless you are using your programming skills for a living I'd suggest to use whatever language+IDE suits your needs and doesn't require you to invest a lot of money.

    It can be fun to write highly optimized C programs that don't do much besides doing the thing they do *fast* (i.e. image manipulation).
    Just as much as it can be fun to write a small C# programm that does things you couldn't even have done with 10 times as much code in C.
    Or do the same thing in D and realize that a good highlevel language doesn't neccessarily require a JIT [It's probably the next thing for me to try...]

    If you're the masochist-type of person, Scheme or another functional language might also be quite a lot of fun since it's so different from the mainstream.
    Delphi (aka Pascal) is also an interesting language for quick and easy Windows development. Or just to see how fast Earth's fastest native-code compiler really is.

    It's really all up to you. Just make sure you don't feel like being forced to use C++ because everyone else seems to be using it - because if you do, you won't get very far.
    main() { int O[!0<<~-!0]; (!0<<!0)[O]+= ~0 +~(!0|!0<<!0); printf("a function calling "); }

  3. #18
    Registered User
    Join Date
    Jun 2004
    Posts
    722
    Quote Originally Posted by Stack Overflow
    How powerful is C++?
    C++ is one of the most powerful language and will be used for a long time in the future inspite of emergence of Java. C++ runs extremely fast and is in fact 10 to 20 times FASTER than Java. Java runs very slow because it is a byte-code-interpreted language running on top of "virtual machine". Java runs faster with JIT (Just-In-Time) compiler, but it is still slower than C++. And optimized C++ program is about 3 to 4 times faster than Java (with JIT compiler). Then, why do people use Java? Because it is pure object oriented and is easier to program in Java, as Java automates memory management, and programmers do not directly deal with memory allocations.
    http://www.idiom.com/~zilla/Computer...benchmark.html

    I'm not saying that java's more faster. But traditionally people say java is slow, based on experiments with the regular Sun's J2SE SDK. IBM has high-eficiency virtual machines that, I far as I've eared, have similar behaviours as compiled C++, although I've never tested them myself.

  4. #19
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    If you're the masochist-type of person, Scheme or another functional language might also be quite a lot of fun since it's so different from the mainstream.
    They're definitely loads of fun, and once you've got over the initial "WTF is this about?" barrier, you don't even have to be masochistic.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  5. #20
    'AlHamdulillah
    Join Date
    Feb 2003
    Posts
    790
    Quote Originally Posted by CornedBee
    They're definitely loads of fun, and once you've got over the initial "WTF is this about?" barrier, you don't even have to be masochistic.
    Not to mention functional languages tend to be more useful in AI than procedural languages,or is it just that they are used more?
    there used to be something here, but not anymore

  6. #21
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    Posts
    812
    >C++ is one of the most powerful language and will be used for a long time in the future inspite of emergence of Java

    LOL!

    Shouldn't it say:

    "C++ is one of the most powerful language and will be used for a long time in the future despite the emergence of Java"

    I don't mean to pick holes. Just thought it was funny.
    OS: Windows XP
    Compilers: MinGW (Code::Blocks), BCB 5

    BigAngryDog.com

  7. #22
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Scheme is awesome! You just gotta have an editor that'll match parens for you otherwise you might end up in the looney bin.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

Popular pages Recent additions subscribe to a feed