Ruby as Client Side Language in Web Browser (replacing JS)

S

Simone R.

Hi everybody,

I was thinking about the old days when IE was able to execute script
both in JS and VB.

Do you think can be a good idea to include in a web browser a Ruby VM to
execute client side script written in ruby?


thanks Simone
 
C

Caleb Clausen

Hi everybody,

I was thinking about the old days when IE was able to execute script
both in JS and VB.

Do you think can be a good idea to include in a web browser a Ruby VM to
execute client side script written in ruby?

I think it's a fantastic idea. I suspect most people on this list will
agree. Now, if only we could get the firefox maintainers on board as
well....

The biggest technical challenge with a project like this is making
ruby safe enough. We need a good sandboxing tool for ruby code (there
are other good applications for one, if it existed). I think the big
problem is that there are (probably) still buffer overflow and other
security bugs in MRI. Those would all need to be found and fixed.

The second biggest challenge is to get ruby hooked up to all the dom
manipulation and other libraries people expect to have in javascript.
 
I

Intransition

Hi everybody,

I was thinking about the old days when IE was able to execute script
both in JS and VB.

Do you think can be a good idea to include in a web browser a Ruby VM to
execute client side script written in ruby?

Yes, but on the other hand Javascript is pretty good language in it's
own right. The problem it has, where Ruby shines, is that it's syntax
is a little too crufty and it lacks much of the functionality Ruby
provides out of the box. In that vain, check out CoffeeScript.
 
R

Ritchie Flick

[Note: parts of this message were removed to make it a legal post.]

Wouldn't it be possible to develop an extension for various browsers for a
proof of concept? Or does it have to be integrated in the browser itself?


you might want to take a look at:
http://hotruby.yukoba.jp/
 
J

Joel VanderWerf

Simone said:
Hi everybody,

I was thinking about the old days when IE was able to execute script
both in JS and VB.

Do you think can be a good idea to include in a web browser a Ruby VM to
execute client side script written in ruby?

I'd like to have a ruby -> swf compiler. ActionScript is painful--it
combines the worst of java and javscript.
 
T

Tony Arcieri

R

Robert Dober

I'd like to have a ruby -> swf compiler. ActionScript is painful--it
combines the worst of java and javscript.

Copy that.
Concering Javascript I was once dreaming of Client Side Ruby too. But
I got pretty much acquainted to Javascript. After all I prefer
prototype over class inheritance ;). The syntax is a pain, but
Prototype, Moo, JQuery and friends kind of easy that.

Cheers
Robert
 
D

Dick Davies

You're on a hiding to nothing I think; if you can't rely on it being
present in the browser you'll be constantly testing and working around
it (java applet, anybody)?

Just learn Javascript; it's a tiny language and it's absolutely everywhere on
the server side these days too.
 
C

Caleb Clausen

2010/5/28 Dick Davies said:
A nice alternative would be cappuccino: http://cappuccino.org/
<http://cappuccino.org/>no plugin... and you can do TDD with it.
<http://cappuccino.org/>its not Ruby... but its fully Object Oriented and
has SmallTalk as common ancestor with Ruby.

Also two of the other projects mentioned on this thread: CoffeeScript
and HotRuby. All 3 compile ruby down to JavaScript, which probably is
really the most practical (tho not the best) way to achieve ruby on
the browser.
 
R

Robert Klemme

2010/5/27 Simone R. said:
I was thinking about the old days when IE was able to execute script
both in JS and VB.

Do you think can be a good idea to include in a web browser a Ruby VM to
execute client side script written in ruby?

Technically, yes - and in fact it has been attempted already. The
hard bit is to get enough momentum so there is a large enough
installation basis in clients so site developers will use it. It's a
catch 22 situation: if there are not enough client installations web
applications won't use it and if web applications do not use it people
have no reason to install the client extension. The only realistic
way out of this would be a Ruby VM that comes installed with a popular
browser. Even then the question remains whether this is sufficient to
win enough web site development teams over to using Ruby instead of
JavaScript which by now they know by heart. I don't think that
technical advantages of Ruby vs. JavaScript are not enough to make
this a realistic scenario. So, yes, it's a cool idea, I would like
it, too - but I assume this won't happen anytime soon, if at all.

Kind regards

robert
 

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

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top