Tiny Ruby interpreters

I stumbled across a post by the almighty _Why himself from many a moon ago which intrigued me muchly.
The article in question, http://redhanded.hobix.com/bits/rubyForWindowsInUnder1k.html, is about how _Why used a most interesting combination of JavaScript and the Windows Scripting Host to acces a script he has on hiw own site.
The interesting thing is he used XmlHttpRequest so he could send and recieve commands and text with his script, which is an interface to IRB pretty much.

This means that his tiny bit of code can actually function like IRB on a computer with no Ruby installed, and all it needs is an internet connection.

Well, thought I, why not write a program that does all that, rather than having to download a javascript file then use a command to run it I could ahve it all with a single click.
Which I did and is now residing in all it's morbid obesity of 1.75 KB under the name of Pico IRB.

But _Why's version was under 1KB, 920 bytes to be exact. And mine was pretty much double that because of all the indentation, comments and extra stuff it has.
Could I make a single click batch file that was under 1KB too?

Yes!
It's a total mess and has absolutely no nice features or semantic code. However, it is only 522 bytes. Now that is tiny!
It also resides on the server in it's shockingly anorexic state under name name of Femto IRB.


Page :  1