JavaGaming.org

July 30, 2010, 09:39:18 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
Advanced search  
Pages: 1 [2]   Go Down
Print
Author Topic: Why can't I run Java anywhere yet?  (Read 2476 times)
0 Members and 1 Guest are viewing this topic.
Riven
Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 1583


She is my Lorentz Attractor


View Profile WWW
« Reply #30 on: February 16, 2010, 02:30:56 pm »

Well sure, but....
bytecode->C approach may have been tried but is barely faster than an interpreter
Logged

delt0r
Full Member
***
Offline Offline

Posts: 114



View Profile
« Reply #31 on: February 16, 2010, 02:34:31 pm »

But a bare minimum JVM with your own lib to hardware interfaces, will have all the portability problems of modern java. lwjgl is great, but there are still driver/platform quirks. If every bit of OS interface code had to be your own...shessh... I think you underestimate even what awt does... never mind the IO and net libs.

By the way. My production java code  is over 2x faster than the C code it replaces... So all this java->bytecode->C, if you want C write C.
Logged
Riven
Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 1583


She is my Lorentz Attractor


View Profile WWW
« Reply #32 on: February 16, 2010, 02:38:49 pm »

But a bare minimum JVM with your own lib to hardware interfaces, will have all the portability problems of modern java. lwjgl is great, but there are still driver/platform quirks. If every bit of OS interface code had to be your own...shessh... I think you underestimate even what awt does... never mind the IO and net libs.

By the way. My production java code  is over 2x faster than the C code it replaces... So all this java->bytecode->C, if you want C write C.

Having a Java IDE while developing/debugging is a major productivity boost.
Logged

kevglass
Sr. Member
****
Offline Offline

Gender: Male
Posts: 263


Mentally unstable, best avoided.


View Profile WWW
« Reply #33 on: February 16, 2010, 11:18:41 pm »

XMLVM is essentially doing this bytecode->C (ok objectiveC) already. Performance on that seems to be getting pretty damn good.

Kev
Logged

princec
Showcase Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 6515


Eh? Who? What? ... Me?


View Profile WWW
« Reply #34 on: February 17, 2010, 01:32:22 am »

Wake me when it gets as good as the client VM is now Smiley

Cas Smiley
Logged

Noisefever
JGO n00b
*
Offline Offline

Gender: Male
Posts: 11



View Profile WWW
« Reply #35 on: February 17, 2010, 01:50:11 am »

why not use Unity or something like that?

http://unity3d.com/
Logged
princec
Showcase Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 6515


Eh? Who? What? ... Me?


View Profile WWW
« Reply #36 on: February 17, 2010, 01:53:10 am »

Because I have a vast library of Java "legacy" code that I want to use. And Eclipse. And I'm really good at Java.

Cas Smiley
Logged

Noisefever
JGO n00b
*
Offline Offline

Gender: Male
Posts: 11



View Profile WWW
« Reply #37 on: February 17, 2010, 02:52:54 am »

someday you have to break up if you want to make games for consoles or iphone... Smiley
Logged
princec
Showcase Moderator
JGO Kernel
*****
Offline Offline

Gender: Male
Posts: 6515


Eh? Who? What? ... Me?


View Profile WWW
« Reply #38 on: February 17, 2010, 03:02:03 am »

I only use Java for games because I use it every day in the day job, so I'm good at it. If I have to put in any more effort than I already do I just won't bother  Shocked

Cas Smiley
Logged

elias4444
Full Member
***
Online Online

Posts: 211



View Profile
« Reply #39 on: February 17, 2010, 08:20:15 am »

Quote
why not use Unity or something like that?
Oh how I've tried!! I thought Unity would be the perfect solution for me (despite the $1500 price tag or the limitations of the Indie version). I tried to duplicate my engine test and benchmarker in it to get a performance comparison and ended up pulling my hair out (seriously, it must have looked like Cas' avatar). There's a pretty steep learning curve involved, and I've discovered that it has more limitations than my own engine work.

I've put in a lot of time learning how to make games with Java and LWJGL. I've also put in substantial time trying to figure out Unity, Ogre3D, Horde3D, a few other game engines, and some C++ alternatives as well. Objective-C (tried to learn it for making iPhone apps) was a nightmare for me; my eyes couldn't focus on the code formatting (seriously!). C++ ended up being more limited than Java due to the need for platform specific libraries (I'm trying to learn SDL, as it's cross-platform, but I'll still be limited to the same audience as Java).

BTW, the problem isn't Java. It's the device manufacturers that refuse to support Java (or other libraries). Hopefully Oracle can bring this around, but as it stands, it's a mess no matter what language you decide to use. If you want to get on XBox, learn C++ and DirectX. If you want iPhone, learn Objective-C and the Apple libraries. If you want Android, learn Java and the Android library. If you want Windows-Linux-Mac, learn C++ with SDL or Java with LWJGL.
« Last Edit: February 17, 2010, 08:22:09 am by elias4444 » Logged

Noisefever
JGO n00b
*
Offline Offline

Gender: Male
Posts: 11



View Profile WWW
« Reply #40 on: February 17, 2010, 09:46:39 am »

interesting! a friend of mine wants to use Unity. i will warn him Smiley

If you want Android, learn Java and the Android library.

btw: is the android lib very different? is it likely that i have much to rewrite to port my games? i hadn't the time to look closer yet
Logged
elias4444
Full Member
***
Online Online

Posts: 211



View Profile
« Reply #41 on: February 17, 2010, 10:07:06 am »

Quote
btw: is the android lib very different? is it likely that i have much to rewrite to port my games? i hadn't the time to look closer yet

Well, I don't know your game code, so I couldn't say. The Android SDK is pretty straight forward though (IMHO) and there's quite a few tutorials out there. Keep in mind that it uses openGL ES for 3D, so fixed function pipeline only (for the most part). If your games are written in Java2D then they may just port right over.

Logged

Pages: 1 [2]   Go Up
Print
 
Jump to: