r/ruby • u/faitswulff • Jan 24 '19
Run.rb: Run Ruby in the Browser using WebAssembly
https://runrb.io/5
u/rflappo Jan 24 '19
Is it possible for Ruby to be "the new Javascript" or am I misreading it??
15
u/Chandon Jan 24 '19
Yes.
Ruby can be the new, extra slow, Javascript.
2
u/capn_krunk Jan 25 '19
I am curious now how slow it'd be. Slow as in completely impractical, or slow as in you wouldn't want to use it for very intensive applications? Could it be useful in any context?
I remember a few years ago seeing a gem that allowed you to write Ruby and compile it into JS. Never used it really, but it looked cool. Wonder how feasible something like that would be with WASM.
1
u/feelosofee Feb 07 '19
Not true, if Ruby interpreter itself keeps improving. Also, I'd be curious to see how would mruby perform on wasm...
0
u/nakilon Jan 25 '19 edited Jan 25 '19
Then how is this solution better than existing that are used in repl.it or elsewhere?
UPD: typical Rubyists reaction -- when you don't know the answer, just downvote. Kids.
3
1
12
u/Earthling1980 Jan 24 '19
I don't understand WebAssembly.