ruby on android : ruboto vs rhodes?

2020-07-06 05:49发布

问题:

Has anyone tried developing an Android app using Ruby? If so, which tool would you recommend? What are the advantages and disadvantages, comparing (between) both?

Any sharing of experience, insight, etc., would be much appreciated.

回答1:

Disclamer: I haven't used this project at all. Having said that:

The Mirah programming language's syntax is based heavily on Ruby and it compiles to Java byte code which you could then run through the dx android tool.

Another option to consider would be JRuby. JRuby is a fairly mature implementation of Ruby which, I believe, supports ahead of time compilation.



回答2:

Rhodes uses compiled Ruby 1.9 bytecode at run time, and does not use the Dalvik JVM at all (it's written in C++ with the NDK). Hence, it is much faster than Ruboto.