How exactly does Tryruby work?

G

golubovsky

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.
 
J

Jano Svitok

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.

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 ;-)

Jano
 
J

John Joyce

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.
Mostly javascript that talks to the server (ajax...)
Just view the page source when it loads in your browser.
 
M

M. Edward (Ed) Borasky

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.

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!
 
J

Joel VanderWerf

M. Edward (Ed) Borasky said:
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!"
 
J

John Joyce

"And what's behind that vi window, making that work?"

"You can't fool me, Mr. James, it's teenagers all the way down!"
Nope. Prison labor. Most do license plates. A few do vi.
 
R

Rick DeNatale

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!
 
A

Ari Brown

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 :)

-------------------------------------------------------|
~ Ari
crap my sig won't fit
 
A

Ari Brown

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
 
B

Bill Kelly

From: "Ari Brown said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,269
Messages
2,571,338
Members
48,025
Latest member
Rigor4

Latest Threads

Top