开发者

Converting Ruby 1.9.2 code to JavaScript?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜