ruby on android: ruboto vs rhodes?

时间:2020-11-30 16:47:50

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?

有人尝试过用Ruby开发Android应用吗?如果有,你会推荐哪种工具?比较两者的优缺点是什么?

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

任何分享经验、见解等,都将备受感激。

2 个解决方案

#1


5  

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.

Mirah编程语言的语法很大程度上基于Ruby,它编译为Java字节代码,然后您可以通过dx android工具运行这些代码。

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

另一个可以考虑的选项是JRuby。JRuby是Ruby的一个相当成熟的实现,我认为它支持提前编译。

#2


4  

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.

Rhodes在运行时使用编译好的Ruby 1.9字节码,根本不使用Dalvik JVM(它是用c++和NDK编写的)。因此,它比Ruboto要快得多。

#1


5  

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.

Mirah编程语言的语法很大程度上基于Ruby,它编译为Java字节代码,然后您可以通过dx android工具运行这些代码。

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

另一个可以考虑的选项是JRuby。JRuby是Ruby的一个相当成熟的实现,我认为它支持提前编译。

#2


4  

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.

Rhodes在运行时使用编译好的Ruby 1.9字节码,根本不使用Dalvik JVM(它是用c++和NDK编写的)。因此,它比Ruboto要快得多。