hoodwink.d enhanced
RSS
2.0
XHTML
1.0

RedHanded

Oh Yeah: Irb Applet #

by why in inspect

You’re going to ask yourself, “What’s the point?” And, sure, go ahead. Take a minute. But, wow. What’s key: This doesn’t hit the server.

I wonder if we can put the Try Ruby face on it and pass commands in and out. No doubt, I’m sure. (From Headius.)

Update: If you want to give the applet access to your filesystem so you can use it for reals, here’s a ~/.java.policy file for you. You’ll need to restart your browser.

grant codeBase "http://www.headius.com/-" {
  permission java.io.FilePermission "<>", "write, read";
  permission java.util.PropertyPermission "*", "read, write";
};
said on 29 Nov 2006 at 12:11

Geez, is the JVM ever going to not take a minute to boot up?

said on 29 Nov 2006 at 12:48

I was expecting attempted file access to cause a pop-up asking for permission like other applets do. Is it possible to do it that way on demand at runtime?

said on 29 Nov 2006 at 13:59

why: I’d love to make it prettier with a TryRuby-style interface and more robust applet code. Other ideas: an even slimmer applet/plugin that allows ruby scripting of the DOM ; client-server apps with browser clients all in Ruby. Also, since this is a complete Ruby interpreter in a JAR file, you can provide a working interpreter that works on all platforms without modification. Lots of cool stuff.

Danno: I think the real slowdown is downloading the applet and starting up JRuby. The applet is almost 2MB and JRuby is still unpleasantly slow to start up. But this is really just proof-of-concept work…alpha quality, but intriguing.

slumos: Probably…I haven’t done applet work in probably 8 years, so this was mostly an experiment to prove it could be done.

said on 30 Nov 2006 at 02:36

an even slimmer applet/plugin that allows ruby scripting of the DOM

love the idea – but is the download size not going to be an issue (some people complain that prototype is too big at 50k :)

said on 10 Dec 2006 at 05:55

Any WPF irb out there?

said on 10 Dec 2006 at 08:34

Damian Steer has an even slicker one : http://kessel.ilrt.bris.ac.uk/~pldms/2006/12/jruby-applet.html

apparently it’s super easy to “require ‘mylib’” – so you should be able to use it to showcase one’s libraries. has Balloon just been popped ?

said on 16 Dec 2006 at 12:39

I wonder how the strings return their Unicode length in there

11 Jul 2010 at 20:57

* do fancy stuff in your comment.

PREVIEW PANE