Since this project depends on webruby and webruby uses emscripten, it could get close to 2x native performance in browser(only firefox nightly) because of the awesome asm.js support.<p>I am a big supporter of asm.js after reading John Resig's post on it(<a href="http://ejohn.org/blog/asmjs-javascript-compile-target/" rel="nofollow">http://ejohn.org/blog/asmjs-javascript-compile-target/</a>).
Nice to see! Some things are working very well:<p><pre><code> >> class Fixnum; def even?; self%2==0; end; end;
>> (1..100).to_a.select{|i| i.even? }
</code></pre>
But some basic things are broken:<p><pre><code> >> n = 5
=> 5
>> n
=> RuntimeError: arena overflow error</code></pre>
Very cool. We wrote a post about different techniques to getting Ruby in the browser on our blog: <a href="http://blog.bloc.io/running-ruby-in-your-browser" rel="nofollow">http://blog.bloc.io/running-ruby-in-your-browser</a><p>Webruby (Mruby.js) was one of the options we considered but ultimately didn't use.
I was at a talk on mruby at a recent conference. It's some interesting stuff: the program size footprint is only something like 40k , and memory usage is around the same when running. It was initially meant for embedded systems, but seeing it here is also an interesting use case.
It'd be nice if someone could show an example of a webpage embedding some ruby code interacting with some js code/framework or something like html5 canvas. Just to see how they "communicate".
I remember you could also get it into iOS. Perfect if you wanted to script some stuff in Ruby. I'm currently using JS for that, but Ruby should do as well.
couple of tips:<p>jquery's $() is aliased to j() in ruby. Try:<p>j('body').css background: 'pink'<p>window is alias to w(). E.g.:<p>w.alert('hello from ruby')<p>puts w.prompt('saywhat?')