Getting started programming in dynamic languages in Android ((J)Ruby, Clojure…)

℡╲_俬逩灬. 提交于 2019-12-05 09:28:30
dbyrne

See this question. Have you considered Scala? I know its not a dynamic language, but it seems to be the best alternative to Java right now.

Most of the Dynamic JVM languages like JRuby, Clojure, or Jython have severe performance problems on the Android Dalvik JVM. Until Dalvik gets friendlier to dynamic languages you are pretty much out of luck.

JRuby (its Android distribution is called Ruboto, you can try out Ruboto IRB now) works in interpreted mode on Android, and though dx has some problems in compiling all of the JRuby standard library, the JRuby devs seem to want to solve that problem on their end, so I'd keep an eye on JRuby, becasue the issues are likely to be solved soonish.

It also looks like it's possible for dx to compile just the portion of the standard library that you're interested in using for a given app.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!