Archived

This topic is now archived and is closed to further replies.

will java become the next big language?

This topic is 5800 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, I was just wondering what you think about Java and how far its gonna go. My teacher says that Java is the next big thing and will replace C++, does this mean that it will invade the game industry too? Does Java have anything that C++ can''t do?

Share this post


Link to post
Share on other sites
Time to get a new teacher. C++ is here to stay. Languages never die, people do.

-me

BTW, Java has been out for a long time. How long does your teacher think it will become the next big thing? When all of the college grads who learn Java enter the industry and the C++ guys retire?

Share this post


Link to post
Share on other sites
I HOPE Java doesn''t invade the games industry. There is nothing it can do that C++ can''t (well except that applet thing). Plus it is a lot slower. I suppose the fact that is platform independant is a good thing, but this does mean that the JVM has to be installed on the machine to be able to run the program.

So my answer is, Java is (and will be) used for web browser based games, but I doubt it will be used for much else in the games industry.

I find most teachers/lecturers like to talk about new things that will be great. Usually they are wrong .

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I am hoping my lecturers are not veiwing this...
Lecturers are lecturors for reason. Those who can, Do. Those who can''t, teach. If they were the best, surely they be doing.
Please forgive any offence i cause, i dont normally bitch!

Share this post


Link to post
Share on other sites
Unless you are flat out determined that game development is all you are going to do in your career, I suppose some of the comments against Java might carry some weight (in today''s industry).

If you are asking about Java because you plan on pursuing a career in programming for business related apps, Java is a very valuable language to know. There are many reasons to use Java over C++ in business, but the #1 reason to me is application development times. It''s for this reason that Visual Basic is also a popular business language.

Now, do I think Java will make it into the games industry? Sure I do. It''s just a matter of time before Java has the capabilities needed to satisfy hard code game developers. And when it does, watch out. It will be used by many. I don''t believe it will take over, but it will get a good market share. The reason, to save time! If a game shop can crank out the same quality of game in half the time, they will do it. That''s because it affects the bottom line.

As I tell everyone else, if something interests you, learn it. If you think it will be useful later on, learn it. If you want to make money, learn it. And this applies to more than just programming languages.

borngamer

Share this post


Link to post
Share on other sites
Well after the detailed reply's from the above I would have to disagree. C++ will still be an integral part of games but will become more like asm.

Now I deliver this based on the theory that history repeats itself. Now having been around the block a lot longer than a lot of people (my first game was on a Commodore 64 in machine code) and in my youth believed that games could never be made in any other language especially not C (the base of C++).
As hardware got faster and more memory and compiler optimisation C++ became more viable as it was more portable and enabled parts of code which did not need optimisation (anything but graphics) and the cost effectiveness of C++ coding over asm made it essential to company life to reduce development life cycles. I could go on and on but trust me that C/C++ was used as more of a business decision initially.

Now I believe Java (and VB) will replace C++ as the main stream language but that’s in about 5 years time when processors will be about 16Ghz (processor speed doubles every 18months) and the nVidia GeForce 14 (new GPU every 6 months) means that the amount of raw power within a machine won't need an optimal language as C++/ASM and would open the way for Java and VB to become mainstream and Java will lead the way due to its platform independence.

If you don't believe me look at how games have evolved from Machine code only, to small amounts of C and lots of ASM, to lots of C++ and small amounts of ASM, to just C++, then C++ with small amounts of Java to small amounts of C++ with lots of Java to pure Java games.

The funny thing is that its already happening as I have heard that one game uses Java for scripting already.

So when in doubt look back at history and see what happened then, and then you know what will happen.

I would take this chance to learn Java and become a good Object based programmer and therefore if Java does become the language you will have at most 5 years experience which would almost guarantee you a good wage in the industry.


Edited by - stiby on February 25, 2002 12:05:09 PM

Share this post


Link to post
Share on other sites
As a java source could be compiled and build into an executable, it could be a good language for games.
It''s just what i think.
But, I prefer C++. It''s a very powerful language, and you don''t need to pass 3 classes in order to print something on screen !

Fratt

Share this post


Link to post
Share on other sites
quote:
Original post by Blacksmith_Tony
There is nothing it can do that C++ can''t (well except that applet thing).

Some of the things java has that C++ doesnt:

  • Garbage collection
  • Built in serialization
  • Bounds checking
  • Reflection
  • Dynamic class loading
  • Integrated threading support




The world holds two classes of men -- intelligent men without religion, and religious men without intelligence. Abu''l-Ala-Al-Ma''arri (973-1057; Syrian poet)

Share this post


Link to post
Share on other sites
You can hardly tell the difference between the speed of Java and C++.

Java is faster than many people think.

But Java sucks because I need to carry around a 100 mb JVM in order to get the shitty little "Hello World"- app to work!

That''s why it never will become a language where you develop games.

Share this post


Link to post
Share on other sites
quote:
Original post by zedd_
You can hardly tell the difference between the speed of Java and C++.

Java is faster than many people think.



Well on a 2 GHz supa-dupa machine you may not see a difference running a Java or C++ "Hello World" app.

But trust me, on my lousy 200MHz K6 you *do* notice...

Bye, VizOne

Share this post


Link to post
Share on other sites
Saying that as C++ replaced assembly, Java will probably replace C++, isn''t a very good comparison. C++ code compiles to assembly, so it''s just a matter of how efficient the compiler optimizations are. I''ve found that Visual C++ is extremely good and that the speed difference between its generated assembly code and very carefully optimized handwritten assembly is very small.

But Java is interpreted, so it will always be slower than C++. It doesn''t matter what the code does or how fast the processor is, the Java code will always be slower than the equivalent C++ code. And the complexity of games always ramps up as the hardware improves, so the hardware is always pushed to the limit. So you need all the speed you can get.

You can create simple 3D Java games, but only because all rendering is done by the 3D card, so not much Java code is being executed.

But I do believe there is a strong future for Java or at least something similar to it.

~CGameProgrammer( );

Share this post


Link to post
Share on other sites
quote:
Original post by CGameProgrammer
But Java is interpreted, so it will always be slower than C++. It doesn''t matter what the code does or how fast the processor is, the Java code will always be slower than the equivalent C++ code. And the complexity of games always ramps up as the hardware improves, so the hardware is always pushed to the limit. So you need all the speed you can get.


All current JVM''s JIT the code - its not interpreted. Jitted code theoretically has the potential to outperform native code, since it can optimize for the target platform at runtime.

Resist Java ignorance among C/C++ programmers

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:
Original post by Arild Fines
All current JVM''s JIT the code - its not interpreted. Jitted code theoretically has the potential to outperform native code, since it can optimize for the target platform at runtime.

Notice the two words "theoretically" and "potential" in that sentence.

Share this post


Link to post
Share on other sites
I don''t have much personal experience with Java but the syntax is very much like C++, unlike ASM and C++ which are very different.

So why would Java be faster than C++ to do games (coding time)?. I understand why if you were doing some GUI application but games are mostly logic and API calls (DirectX/OpenGL).
In that area what does Java do better than C++ ?

Share this post


Link to post
Share on other sites
wanna see slow, try limewire for any platform (written in java ). Also any java on mac ( ihave to use them at work ). Having said that java is a good language that is MUCH faster to program in. Als o the jvm is actually very small, not large.... they can fit on a cell phone. It is the java api''s that are large and OPTIONAL.

Share this post


Link to post
Share on other sites
quote:
Original post by Anonymous Poster
Notice the two words "theoretically" and "potential" in that sentence.

The post I was replying to was using words like "always" and "never" - I was merely making the point that what is considered truth today may not be so tomorrow.





Share this post


Link to post
Share on other sites
I think your teacher is on crack. The industry is always hooked on ''big things'', and this year they''re saying that all the world''s data is gonna be stored in XML soon. But these things never come to pass. Java is a nice language, but it''s not significantly different enough from C++ to merit a wholesale changeover. It has its place, but I doubt serious games programming will ever be it.

[ MSVC Fixes | STL | SDL | Game AI | Sockets | C++ Faq Lite | Boost ]

Share this post


Link to post
Share on other sites
quote:
Original post by Arild Fines
Some of the things java has that C++ doesnt:

  • Garbage collection
  • Built in serialization
  • Bounds checking
  • Reflection
  • Dynamic class loading
  • Integrated threading support

The world holds two classes of men -- intelligent men without religion, and religious men without intelligence. Abu''l-Ala-Al-Ma''arri (973-1057; Syrian poet)


Well I was more thinking in an overall view, as in what a Java end product can have that a C++ one can''t and visa versa there is nothing (that I know of, please correct me if I''m wrong) that C++ can do that java can''t. The only differences are the facilities you have to implement these things.

It would be nice if C++ had bounds checking though, when I started learning C++ after programming Java I had some problems with Illegal Operations after writing/reading past the end of arrays .

Share this post


Link to post
Share on other sites
Um, this is kinda not right...

quote:

Some of the things java has that C++ doesnt:


  • Garbage collection
  • Built in serialization
  • Bounds checking
  • Reflection
  • Dynamic class loading
  • Integrated threading support




All these things can be done with C++. It is just that the programmer has to implement them rather than having them crammed down his throat. Frankly - I would rather clean up my own memory when and where I want rather than having the VM decide to run a background process to do it and suck up CPU cycles...

Java has its place, and it is NOT real time applications.

One other thing - how the heck does Java make coding an application any faster? I keep hearing this and I have yet to see a single example of it. I have taken Java courses and programming time seems to be on par with C++.

My 2 cents,
Landsknecht




Edited by - landsknecht on February 25, 2002 3:50:21 PM

Share this post


Link to post
Share on other sites
I don''t see Java ever replacing C++.

I can only see C++ compilers becoming more and more efficient, to the point where speed concerns are never a programmer''s issue.

Share this post


Link to post
Share on other sites

This topic is 5800 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Guest
This topic is now closed to further replies.