From: Michal Suchanek Date: 2009-09-06T00:52:31+09:00 Subject: Re: Rubyscript instead of javascript 2009/9/5 Damjan Rems : > >> There are several projects for getting Ruby into the browser, ranging >> from Yahoo's approach of a plugin that can run Ruby in parallel with >> the browser to the HotRuby bytecode interpreter which is implemented >> in JavaScript. As of yet none is a good solution for general-purpose >> browser-side Ruby. >> > > It should probably be done like a plugin. Like Flash. Since it already > can be compiled for numerous platforms porting to browsers shouldn't be > a problem. The problem with yet another plugin is that everybody who visits your site has to install it which may not be possible because they are running a (mostly) readonly live-cd or an administratively locked-down PC in an office (you even have to be administrator to install Explorer plugins on WIndows). And then the plugin will be available only for finite number of browser-platform combinations. If you are running a different browser or a supported browser but on a different platform you get no plugin. That's why Flash sucks. > > Of course security should be tightened and DOM must be implemented. Bindings for DOM in each browser in the world ... or a compiler into Javascript that already has them? The fact DOM bindings are already present is Javascript and Javascript (actually ECMA script) is widely supported is why there are projects targeting this platform. Thanks Michal