Java gaming discussion
Posted: Sat Jun 14, 2014 11:55 pm
I understand some people here have allot of things to say about different languages, and I also see that this thread may have already been started. (Maybe, I'm really really new here).
But I was wondering why some people don't recommend java? (Some bash it in fact). I ain't no newb, and I'm sure as hell not a fanboy. But its mainly the only programming language I've been using for the past 4 years. I've tried C++ then accidentally broke my compiler installation, and haven't touched it since. I've tried C#, that just ended up with allot of crying and lack of quality libraries.
Now, in no way did I recommend Java to be the "best" programming language. In fact, speed wise, Java kinda lacks on the calling side, because of its JVM communications. (Program talks to JVM, JVM talks to hardware) (I may be horribly wrong on how that works.))
Also, that JVM communication could be surpassed on the graphics side. Modern OpenGL uses interleaved data, so even if Java doesn't have very fast OpenGL calls, the data is interleaved anyway. There are some openGL wrappers for Java, like LWJGL, and JOGL. In fact, the LWJGL project now has OpenCL and OpenGL 4.0 versions. So that's not a problem either. Java also makes it very very portable through various devices. LWJGL handles the Native libraries through JNI (Java Native Interface) so all you have to do is include the right natives and you're good to go on Windows, Mac, and Linux. Even android (If you try hard enough)
I'm not college graduate, computer scientist, and some of you are, so please take it easy, even if I'm extremely wrong on everything.
But I was wondering why some people don't recommend java? (Some bash it in fact). I ain't no newb, and I'm sure as hell not a fanboy. But its mainly the only programming language I've been using for the past 4 years. I've tried C++ then accidentally broke my compiler installation, and haven't touched it since. I've tried C#, that just ended up with allot of crying and lack of quality libraries.
Now, in no way did I recommend Java to be the "best" programming language. In fact, speed wise, Java kinda lacks on the calling side, because of its JVM communications. (Program talks to JVM, JVM talks to hardware) (I may be horribly wrong on how that works.))
Also, that JVM communication could be surpassed on the graphics side. Modern OpenGL uses interleaved data, so even if Java doesn't have very fast OpenGL calls, the data is interleaved anyway. There are some openGL wrappers for Java, like LWJGL, and JOGL. In fact, the LWJGL project now has OpenCL and OpenGL 4.0 versions. So that's not a problem either. Java also makes it very very portable through various devices. LWJGL handles the Native libraries through JNI (Java Native Interface) so all you have to do is include the right natives and you're good to go on Windows, Mac, and Linux. Even android (If you try hard enough)
I'm not college graduate, computer scientist, and some of you are, so please take it easy, even if I'm extremely wrong on everything.