From: Peter Booth Date: 2009-03-06T11:19:39+09:00 Subject: Re: JRuby on Java ME Bill, What would be the "sweet spot" for applets? I acknowledge my prejudice, reluctantly accepting that memories of ancient rants about "craplets" are not just a bad dream. Peter Booth (917) 445 5663 peter_booth@mac.com On Mar 5, 2009, at 5:36 PM, "Bill Kelly" wrote: > > From: "Charles Oliver Nutter" >> >> It's essentially JRuby 1.2 forked and stripped of libraries and >> code that aren't supported in CDC. My intention with this is to get >> it running with a base set of Ruby classes but with Java >> integration still functional. That will allow most basic Ruby >> scripts to work while providing access to the rest of the Java APIs >> for bits I had to rip out. >> It's only running interpreted right now, just like the Android >> version of JRuby, but as in that case I expect most people would >> want to precompile Ruby code and ship it all as one unit. >> I think there are many other possible ways we could repurpose JRuby >> like this; it really only took me a couple days of trimming to get >> this far. Android will take far less time, and other "mini ruby" >> profiles might be possible for other platforms as well. > > This idea of a stripped-down JRuby running precompiled Ruby code, > still able to access Java APIs sounds ideal for applets. > > Do you think it would be a lot of work to target one of these "mini > rubys" > for applets? > > This gentleman currently has an OpenGL / JRuby applet proof of > concept -- but has he points out, the complete JRuby jar is large > and implies a lengthy download: > > http://sikanrong.com/blog/jruby_applet__opengl_running_from_ruby_in_an_applet > > I think it would be awesome to have a compact JRuby runtime for > use in applets. I don't see requiring the ruby code to be precompiled > to be a problem at all. (Perhaps even a benefit.) > > > Regards, > > Bill > > >