Ruboto在Android应用开发

Ruboto在Android应用开发

本文介绍了SL4A VS Ruboto在Android应用开发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在考虑使用JRuby(或者Ruby for Android提供一个合适的变体)在Android上创建应用程序。

I am thinking about creating apps on Android using JRuby (or a suitable variant of Ruby for Android).

根据我的研究,目前支持在Android Ruby开发两个电流项目:

According to my research there are two current projects that support Ruby development on Android:

  1. Ruboto
  2. SL4A

常见问题解答的Ruboto的是准备好应用程序的开发,但目前还不支持JIT编译,而应用程序中与该给它一个大脚印库(用于移动设备的安装被打包)。

From the FAQ of the Ruboto wiki on github it seems like Ruboto is ready for application development, but does not yet support JIT compilation, and the application has to be packaged with libraries which give it a big footprint (for mobile device installation).

我没有关于SL4A足够的知识,但它似乎像SL4A也试图运行在JVM上的JRuby脚本。但主要的一点是,SL4A仍处于alpha通道,所以我不知道这是否可以用于应用程序开发。

I don't have enough knowledge about SL4A but it seems like SL4A also tries to run JRuby scripts on the JVM. But the main thing is that SL4A is still in alpha, so I don't know if it can be used for app development.

有人可以有更好的了解这些平台建议哪一个应该被使用?另外,在不久的将来,哪一个具有更好的可能性变得更加成熟,在JIT(性能)而言,低级足迹,和更好的API访问到Android?

Can someone with a better knowledge of these platforms suggest which one should be used? Also, in the near future, which one has the better probability of becoming more mature in terms of JIT (performance), lower footprint, and better API access to Android?

推荐答案

米拉通过JRuby的开发商,已经与一些生产应用程序,适用于Android的。我们可以直接使用Android API,而精神上转换Java语法,你这样做几乎红宝石',它的语法是'偷'。它增加(而不是,编译器语法插件时)没有库文件,它有字面上完全相同的运行速度与Java。因此,它具有高性能,零空间占用和理想的API访问到Android。

Mirah, by the developer of JRuby, already with some production apps, is appropriate for Android. One can use the Android API directly while mentally converting the Java syntax as you do so to 'almost-Ruby', whose syntax it 'stole'. It adds no library files (instead, compiler syntax plugins are used) and it has literally exactly the same runtime speed as Java. So it features performance, zero footprint and ideal API access to Android.

这篇关于SL4A VS Ruboto在Android应用开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 22:42