How exactly does Tryruby work?

Hi,

I have always been curious: how does Tryruby (http://
tryruby.hobix.com/) work: does it contain a Ruby interpreter coded in
Javascript, or is it just a frontend to some web service?

PS I haven’t tried to reverse-engineer that site understanding that
somebody might want not to disclose their ideas, but I think my
general question might be answered.

Thanks.

On 10/18/07, [email protected] [email protected] wrote:

Thanks.
There’s a patched interpreter running behind. Google for
FreakyFreakySandbox. _why patched the interpreter to separate the
individual session from each other. That interpreter is connected to
the webserver using drb. (This is what I remember from various mailing
list/blog posts, so I don’t guarantee anything :wink:

Jano

On Oct 18, 2007, at 11:50 AM, [email protected] wrote:

Thanks.

Mostly javascript that talks to the server (ajax…)
Just view the page source when it loads in your browser.

[email protected] wrote:

Thanks.
There’s a 13-year-old kid watching a log file with “tail -f”. When a
request comes in, he reads it off the monitor and types it into a Mac
Mini running “irb”. Then he copies the “irb” results into an HTML page
source that he’s editing in “vi” and does “:w!” to update the HTML!

M. Edward (Ed) Borasky wrote:

There’s a 13-year-old kid watching a log file with “tail -f”. When a
request comes in, he reads it off the monitor and types it into a Mac
Mini running “irb”. Then he copies the “irb” results into an HTML page
source that he’s editing in “vi” and does “:w!” to update the HTML!

“And what’s behind that vi window, making that work?”

“You can’t fool me, Mr. James, it’s teenagers all the way down!”

On Oct 18, 2007, at 10:48 PM, Joel VanderWerf wrote:


vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

Nope. Prison labor. Most do license plates. A few do vi.

On 10/18/07, Giles B. [email protected] wrote:

Nope. Prison labor. Most do license plates. A few do vi.

Yup. That’s what happened to the guys from “Office Space” after they
were caught.

pound-me-in-the-ascii federal prison

martin

Nope. Prison labor. Most do license plates. A few do vi.

Yup. That’s what happened to the guys from “Office Space” after they
were caught.


Giles B.

Blog: http://gilesbowkett.blogspot.com
Portfolio: http://www.gilesgoatboy.org
Tumblelog: http://giles.tumblr.com/

On 10/18/07, M. Edward (Ed) Borasky [email protected] wrote:

Thanks.

There’s a 13-year-old kid watching a log file with “tail -f”. When a
request comes in, he reads it off the monitor and types it into a Mac
Mini running “irb”. Then he copies the “irb” results into an HTML page
source that he’s editing in “vi” and does “:w!” to update the HTML!

No, no NO!

It’s a couple of cats and every time one of them types :w! they get
a dose of chunky bacon!


Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

On Oct 19, 2007, at 1:34 PM, Rick DeNatale wrote:

No, no NO!

It’s a couple of cats and every time one of them types :w! they get
a dose of chunky bacon!

They’re foxes…

nice blog, btw!

I read it religiously :slight_smile:

-------------------------------------------------------|
~ Ari
crap my sig won’t fit

On 10/19/07, Ari B. [email protected] wrote:

On Oct 19, 2007, at 1:34 PM, Rick DeNatale wrote:

No, no NO!

It’s a couple of cats and every time one of them types :w! they get
a dose of chunky bacon!

They’re foxes…

I guess no chunky bacon for me then!


Rick DeNatale

My blog on Ruby
http://talklikeaduck.denhaven2.com/

On Oct 19, 2007, at 7:49 AM, Martin DeMello wrote:

On 10/18/07, Giles B. [email protected] wrote:

Nope. Prison labor. Most do license plates. A few do vi.

Yup. That’s what happened to the guys from “Office Space” after they
were caught.

pound-me-in-the-ascii federal prison

So has anyone given a legitimate answer yet? i’m actually kind of
interested in how it works, too…

Ari
-------------------------------------------|
Nietzsche is my copilot

From: “Ari B.” [email protected]

So has anyone given a legitimate answer yet? i’m actually kind of
interested in how it works, too…

Tried View Source on the web page? It’s some of the most readable
JavaScript I’ve seen. Looks like it uses a number of support
scripts (mouseApp.js, mouseIrb.js, etc.) which you can download and
look at just by pointing your browser at them.

Hint: take a look at the fireOffCmd function in mouseIrb.js

Regards,

Bill