kingjr3 said:Show me a C program that once compiled can run on a variety of platforms and architectures...Two languages, two different purposes. Assembly is faster than C, so using your failed logic it must be a better language?
What value are you even adding to the OP question??? Um, that would be none.
He wants to know what language would make him make him marketable, not which language is bigger/faster/better....
Well, let's see. I did an independent study as an undergraduate where I wrote a computer game with openGL using SDL, a portable API to multimedia hardware. I demonstrated the game on three laptops: windows, mac, and linux all running side by side. SDL is ported to all three systems just as the JVM is ported to all three systems. It's the same premise, only it runs much much faster. The only downside is it requires a build on each machine. That's fine though. All those saved CPU cycles will more than make up for that as they add up over time. Would you like the source for it? That will meet your criteria just as well as Java does.
Sure I could have done the game in assembly, but it would have taken me much longer to do it. I could have done it in Java, too, but that also would have taken me longer. I know Java quite well, but I only use it when I need to make an applet for a web page. As far as I'm concerned, that's its only strong point.
The main reason I suggested the OP learn C++ is that it would aid in his transition to Objective-C should he pursue OSX development. However, there's no portable implementation of Obj-C that I know of, so he should start with basics. Besides, GUIs come later anyway.