Catch 22 for jogl

Seems like a simplistic Java=>JS framework might take a few years, which is just as long as it would take for WebGL to breakthrough. This is the #1 place to find Java ‘fans’ and heck, you might find a handful that weren’t utterly disappointed. Can’t we just accept our losses, and move on?

A single threaded Java to Javascript sourcecode transformator that ‘almost always works’ shouldn’t be that hard, and we can move from there. Such a proof of concept might get us some momentum and motivation to continue the effort.

[quote]A single threaded Java to Javascript sourcecode transformator that ‘almost always works’ shouldn’t be that hard, and we can move from there. Such a proof of concept might get us some momentum and motivation to continue the effort.
[/quote]
Sounds reasonable.

Could we maybe make use of GWT for this? That would cover maybe 90% of the job, and then we’d just need to write a wrapper to map the JOGL2 API into WebGL. This would give users the flexibility of deploying current desktop JOGL2 apps, or WebGL based apps. Assuming we stick to something simple like ES2. GWT would give us the benefit of still being able to use standard Java tools and allow for debugging.

Peter

WebGL does sound too? - if not …

I can’t quite see the point of coding it in Java and then attempting to translate it…? Just, y’know, learn Javascript, and get on with it…?

Cas :slight_smile:

Type safety?

Not saying I’d do it - when I write JS I write JS - but I’m a fan of strong types and I can understand why someone would consider type checking worth an extra layer of translation.

Exactly. That and tool support.

I’ve played around with GWT a bit and quite liked it in a way, although I also write JS when I write JS. Praise be to jQuery, but I digress.

nope, seems like sound is currently the weak point here for using WebGL for games, browser javascript’s sound support is pretty crap atm. maybe they’ll have a WebAL soon :slight_smile:

Flash isn’t too bad for sound these days.


http://www.hobnox.com/audiotool

You’re not digressing actually…
John Resig, the man behind jQuery is also the man behind Processing.js (which is already proposing some kind of GWT-like magic-transform between Java and JS…)

What would really be a bit more useful, wouldn’t it, is having Java built in to browsers so that web pages could execute bytecode natively, with a proper API for interacting with the browser’s compositor and DOM. Then you’d implement Javascript in Java too :slight_smile:

Cas :slight_smile:

  • Typesafe
  • Maintainability
  • Superb IDE support
  • Realtime compilation
  • Refactoring
  • Debugging
  • etc. etc.

When I work with Javascript (and yes, I do write a lot of Javascript) my hands feel tight and it feels like coding Java in notepad again. Horror. Better to have some code converter!

I think the easiest option would be a Java interpreter in Javascript. I know it sounds hilarious and retarded, but it would be something that we could have up and running in a month. Work from there.

:o That would be the most slowest thing evaaaa :slight_smile:
GWT seems like the best way to go IMO, it works really well already.

When I went to interview at Google I talked with some engineer or other about Chrome and how I’d like to embed a JVM in it as the core clientside execution engine. Needless to say I didn’t get the job ;D but I still think it’d probably be the utterly brilliant panacaea we all want - high speed execution built in to every browser with proper language tools and support behind it, with hardware acceleration and DOM integration out of the box…

Cas :slight_smile:

Perhaps we should just make a new browser that has proper applet and java integration :slight_smile:

Perhaps we should make a new society where everyone holds hands and smiles and there’s never any problems and everything’s just peachy. :-*

Sorry to refresh this thread. I have a meeting tomorrow and I will have to speak about JOGL, they would like to know some things about the future of JOGL. Can someone tell me at least how many people go on fixing bugs and maintaining the whole library? Are Sven Goethel and Michael Bien participating to this project?

@gouessej Did you manage to get any info, or is the lack of activity over the last month an indication of things to come?

head in hands

Yes, I agree entirely. I code a lot of Javascript (and server-side C#) at work, and it’s really shit. Well, the JS is, the C# is ok. Having a JVM in browsers would rock - especially if you could produce bytecode from whatever language you wanted. Awesome solution.