Discussion:
Shoebot in java applet..?
Stuart Axon
2009-07-17 13:53:12 UTC
Permalink
Not sure how many java people there are here but -

It would be cool if we could work in a java applet via jython.


If cairo can be made to render into the applet via a dll we might not need that much new code (processing uses dlls to make opengl render into an applet so it must be possible).

Another way would be to reimplement the 2d api with the java api, but then theres more code to maintain.


Anybody have any idea about how we can get cairo rendering in a java applet ?



Basically if we can get this working we can have a site like the openprocessing one where people can run the bots straight in the browser which IMHO would be a big win!
Dave Crossland
2009-07-17 14:01:17 UTC
Permalink
Personally I'd suggest anyone interested in a web version target
<canvas> like http://processingjs.org/ instead of a Java applet, which
seems dated and clunky in 2009 :-)
Stuart Axon
2009-07-17 14:06:25 UTC
Permalink
True; but then you have to reimplement shotbot in js; so can't run the same bots or need to translate the python code to js and then output to canvas.

Running shoebot in jython with a little bit of wrapping to make a cairo dll be able to output into the applet is probably simpler.

Anyway; I'll try and investigate a little more how processing outputs opengl into the applet as a start.



----- Original Message ----
From: Dave Crossland <dave-***@public.gmane.org>
To: shoebot-devel-***@public.gmane.org
Sent: Friday, July 17, 2009 3:01:17 PM
Subject: Re: [shoebot-devel] Shoebot in java applet..?

Personally I'd suggest anyone interested in a web version target
<canvas> like http://processingjs.org/ instead of a Java applet, which
seems dated and clunky in 2009 :-)
Dave Crossland
2009-07-17 14:09:24 UTC
Permalink
Post by Stuart Axon
True; but then you have to reimplement shotbot in js; so can't run the same
bots or need to translate the python code to js and then output to canvas.
I think pyjamas is doing much of the groundwork for this.
Post by Stuart Axon
Running shoebot in jython with a little bit of wrapping to make a cairo dll be able to output into the applet is probably simpler.
Probably, yes :)
ricardo lafuente
2009-07-17 15:11:48 UTC
Permalink
Post by Stuart Axon
True; but then you have to reimplement shotbot in js; so can't run the same bots or need to translate the python code to js and then output to canvas.
like Dave mentioned, Pyjamas might be a way out of this.
i had read something when thinking if this was possible, and we'd just
need to do a new Canvas/backend, that would be bound to a <canvas>
object. Still haven't grasped the whole thing yet though...
Post by Stuart Axon
Running shoebot in jython with a little bit of wrapping to make a cairo dll be able to output into the applet is probably simpler.
true! apparently cairo-java is in the works:
http://www.cairographics.org/cairo-java
Post by Stuart Axon
Anyway; I'll try and investigate a little more how processing outputs opengl into the applet as a start.
Ooh, nice. I'll be looking into the <canvas> side of things; i'm
intrigued by the possibility of using it along with Crunchy
(http://code.google.com/p/crunchy).

(btw -- please excuse my recent inactivity, i'm wrapping up a big work
assignment and in some days i'll be back to action on the 0.3 branch.)
Post by Stuart Axon
----- Original Message ----
Sent: Friday, July 17, 2009 3:01:17 PM
Subject: Re: [shoebot-devel] Shoebot in java applet..?
Personally I'd suggest anyone interested in a web version target
<canvas> like http://processingjs.org/ instead of a Java applet, which
seems dated and clunky in 2009 :-)
_______________________________________________
Shoebot-devel mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
_______________________________________________
Shoebot-devel mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
Stuart Axon
2009-07-17 15:14:26 UTC
Permalink
Cool; well any way of it working would be awesome tbh :)



----- Original Message ----
From: ricardo lafuente <***@sollec.org>
To: shoebot-devel-***@public.gmane.org
Sent: Friday, July 17, 2009 4:11:48 PM
Subject: Re: [shoebot-devel] Shoebot in java applet..?
Post by Stuart Axon
True; but then you have to reimplement shotbot in js; so can't run the same bots or need to translate the python code to js and then output to canvas.
like Dave mentioned, Pyjamas might be a way out of this.
i had read something when thinking if this was possible, and we'd just need to do a new Canvas/backend, that would be bound to a <canvas> object. Still haven't grasped the whole thing yet though...
Post by Stuart Axon
Running shoebot in jython with a little bit of wrapping to make a cairo dll be able to output into the applet is probably simpler.
true! apparently cairo-java is in the works: http://www.cairographics.org/cairo-java
Post by Stuart Axon
Anyway; I'll try and investigate a little more how processing outputs opengl into the applet as a start.
Ooh, nice. I'll be looking into the <canvas> side of things; i'm intrigued by the possibility of using it along with Crunchy (http://code.google.com/p/crunchy).

(btw -- please excuse my recent inactivity, i'm wrapping up a big work assignment and in some days i'll be back to action on the 0.3 branch.)
Post by Stuart Axon
----- Original Message ----
Sent: Friday, July 17, 2009 3:01:17 PM
Subject: Re: [shoebot-devel] Shoebot in java applet..?
Personally I'd suggest anyone interested in a web version target
<canvas> like http://processingjs.org/ instead of a Java applet, which
seems dated and clunky in 2009 :-)
_______________________________________________
Shoebot-devel mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
_______________________________________________
Shoebot-devel mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
Dave Crossland
2009-07-17 15:17:47 UTC
Permalink
Post by Stuart Axon
Ooh, nice. I'll be looking into the <canvas> side of things; i'm intrigued
by the possibility of using it along with Crunchy
(http://code.google.com/p/crunchy).
DAMN.

THAT is how to teach python drawing to design students.

ZING :)
ricardo lafuente
2009-07-17 15:37:44 UTC
Permalink
if you check the documentation that comes with the source,
it comes with a fully functional canvas example... we'd only need the
backend to send <canvas> instructions instead of cairo commands, and
we'd be set :)
Post by Dave Crossland
Post by Stuart Axon
Ooh, nice. I'll be looking into the <canvas> side of things; i'm intrigued
by the possibility of using it along with Crunchy
(http://code.google.com/p/crunchy).
DAMN.
THAT is how to teach python drawing to design students.
ZING :)
_______________________________________________
Shoebot-devel mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
Dave Crossland
2009-07-17 16:14:05 UTC
Permalink
Post by ricardo lafuente
if you check the documentation that comes with the source,
it comes with a fully functional canvas example... we'd only need the
backend to send <canvas> instructions instead of cairo commands, and we'd be
set :)
Sounds like a 0.4 feature!
Stuart Axon
2009-07-17 16:19:43 UTC
Permalink
Or even further forward; just thought I'd chuck it out there...

If I had a top two wishlist right now it would include:
1) Even more speed !
2) Gedit magically working in windows (or scite plugin) so we can distribute on all platforms sans the IDE.

But really wishing doesn't help much so I'll need to go and route around in the code again :)



----- Original Message ----
From: Dave Crossland <dave-***@public.gmane.org>
To: shoebot-devel-***@public.gmane.org
Sent: Friday, July 17, 2009 5:14:05 PM
Subject: Re: [shoebot-devel] Shoebot in java applet..?
Post by ricardo lafuente
if you check the documentation that comes with the source,
it comes with a fully functional canvas example... we'd only need the
backend to send <canvas> instructions instead of cairo commands, and we'd be
set :)
Sounds like a 0.4 feature!
Dave Crossland
2009-07-17 16:42:38 UTC
Permalink
Post by Stuart Axon
Or even further forward
True.

Crunchy + http://code.google.com/p/google-mobwrite/ = leet

Loading...