As I said, I used C++ for well over half a decade. It was ideal for the AI/image recognition/image processing apps I was writing then. I'm not disputing that some apps need something like C++ or C or assembly code.I don't feel that Java has any business at all being a server language. For simple things that are mostly IO bound, it's great. But when you need some real power behind it, it lacks heavily.
But to say Java lacks real power? Because... why again? No pointers? It would seem that you're unfamiliar with it if you think it is underpowered compared to C++. And having written a fair amount of Java-based server code, and having used a fair amount of Java-based server apps, you're clearly wrong when saying it has no business there. You seem, again, to base it all on speed without any real argumentation as to why that would matter - look plinden's post, and my experiences are similar. Java is often a much better business decision because it's cheaper to use.
When speed or raw efficiency or access to native functionality or real-time needs are paramount, then, in many cases, C++ is a better choice. But you continue to argue it's better simply because it's faster and has a smaller memory footprint, and you continue to ignore any comments that, in these days where the cheapest CPUs you can buy easily exceed 1GHz, speed isn't all it used to be.
Wouldn't we all? Of course, this does nothing to advance your argument. And at least it's nice to hear you admit Java is easier to grasp. Obscurity is never a plus. I've coded in Symbian, and the fact it's got excellent access to the phone hardware doesn't in any way counteract the fact that it's exceedingly poorly designed.darkwing said:I'd rather have top-notch people developing an app that will run fast and be efficient than a bunch of mediocre people basing their language of choice on what's easier for them to grasp.
I still have a lot of love for C++ and other languages. I don't think Java is the be-all and end-all of languages. It isn't. It's bloated compared to a lot of other choices. It takes longer to start up. It has a number of weaknesses. But... to say that it's inappropriate for business/server apps is simply wrong. That's exactly where it's most suitable. Consumer apps? No. Games? No. Scientific visualization? Not so much. Agreed.
I don't mind that you prefer C++. I just wish your defense was better than "it's faster and smaller." What language features make it superior?