Making Ruby a standard browser side language

it looks like Prototype was made to mimic Ruby in Javascript, and people
who use Prototype usually love it. I wonder if Ruby can be made into
another browser side language and what can make that happen? If Firefox
adds a Ruby interpreter to its browser and some killer websites come out
with features only supported by Ruby-enabled browsers, maybe Microsoft
and Apple will have incentive to make Ruby go into IE and Safari too?
Apple probably already loves Ruby as they put Ruby on Tiger and then
added Rails on Leopard.

SpringFlowers AutumnMoon wrote:

it looks like Prototype was made to mimic Ruby in Javascript, and people
who use Prototype usually love it. I wonder if Ruby can be made into
another browser side language and what can make that happen? If Firefox
adds a Ruby interpreter to its browser and some killer websites come out
with features only supported by Ruby-enabled browsers, maybe Microsoft
and Apple will have incentive to make Ruby go into IE and Safari too?
Apple probably already loves Ruby as they put Ruby on Tiger and then
added Rails on Leopard.

An interesting attempt to interpret ruby bytecodes (YARV) in javascript:

http://hotruby.accelart.jp

On Tue, Apr 15, 2008 at 9:25 AM, SpringFlowers AutumnMoon
[email protected] wrote:

it looks like Prototype was made to mimic Ruby in Javascript, and people
who use Prototype usually love it. I wonder if Ruby can be made into
another browser side language and what can make that happen? If Firefox
adds a Ruby interpreter to its browser and some killer websites come out
with features only supported by Ruby-enabled browsers, maybe Microsoft
and Apple will have incentive to make Ruby go into IE and Safari too?

Microsoft is way ahead of Mozilla and Apple in that department.
Silverlight allows web pages to be scripted with Ruby.

But I don’t think it’s going to take off, any more than previous
attempts to put VBScript, Python, TCL, etc. in the browser have
succeeded. Browser makers have a hard enough time standardizing their
rendering of [X]HTML, ECMAScript, and CSS without adding more
languages for them to handle in subtly incompatible ways.


Avdi

Home: http://avdi.org
Developer Blog: http://avdi.org/devblog/
Twitter: http://twitter.com/avdi
Journal: http://avdi.livejournal.com

Avdi G. wrote:

Microsoft is way ahead of Mozilla and Apple in that department.
Silverlight allows web pages to be scripted with Ruby.

But I don’t think it’s going to take off, any more than previous
attempts to put VBScript, Python, TCL, etc. in the browser have
succeeded. Browser makers have a hard enough time standardizing their
rendering of [X]HTML, ECMAScript, and CSS without adding more
languages for them to handle in subtly incompatible ways.

Firebird is working on “python script”, not officially, but I think this
is a good start, later though.

On Apr 15, 2008, at 7:25 AM, SpringFlowers AutumnMoon wrote:

added Rails on Leopard.
http://headius.blogspot.com/2006/11/ruby-for-web-check.html

a @ http://codeforpeople.com/

On Tue, Apr 15, 2008 at 4:20 PM, Avdi G. [email protected] wrote:

Silverlight allows web pages to be scripted with Ruby.

But I don’t think it’s going to take off, any more than previous
attempts to put VBScript, Python, TCL, etc. in the browser have
succeeded. Browser makers have a hard enough time standardizing their
rendering of [X]HTML, ECMAScript, and CSS without adding more
languages for them to handle in subtly incompatible ways.

Quite agree with you and actually Javascript is not bad a language at
all, although Prototype is a nice extension. It is not Javascript’s
fault that applying it on web pages is not as easy as writing Ruby
scripts in vim and running them.
Now I still would use Ruby instead of Javascript (e.g. with Rhino) to
implement a console application of course :wink:

Javascript does not have the sexy syntax and block semantics that Ruby
has but its object model is great (maybe better in some ways as
Mixins, almost as Traits but there is of course no conflict handling
when extending an objects prototype) and blocks can be simulated with
anonymous functions, I believe that I am not the first to say this on
this list:
Javascript is unduly underrated as a language because of the niche it
is used in.

Somehow it even feels wrong to take this niche away from it.

Cheers
Robert


http://ruby-smalltalk.blogspot.com/


Whereof one cannot speak, thereof one must be silent.
Ludwig Wittgenstein

Avdi G. wrote:

Microsoft is way ahead of Mozilla and Apple in that department.
Silverlight allows web pages to be scripted with Ruby.

so Silverlight is like a Flash program that can be written in many
languages including Ruby? can it become popular, since Flash is not
popular as a standalone app such as email program (gmail or yahoo mail)
or bank’s website. they still just javascript and AJAX to do things.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs