Is it possible to convert Ruby code to Javascript at all? I have heard of RubyJS but this appears to not work with Ruby 1.9.2 - is this the case?
It seems to me that Opal is the best Ruby to JavaScript converter/compiler out there right now. You can see it in action here.
It isn't perfect, but it works in most cases and unlike older projects such as RubyJS, Opal is still being actively developed. (Check out Opal on Github)
List of languages that compile to JS...
There are many efforts that have tried to do this, but most have only been to an academic degree. For instance, this Ruby 1.9.2 VM in JavaScript.
Most efforts to port to JavaScript focus on the Google V8 engine and not necessarily the browser-side equivalent.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With