Getting started programming in dynamic languages i

2019-04-30 20:07发布

I've been looking around, and I can't seem to find any definitive answer or headway that seems "up to date". I've seen some interesting projects like Mirah (formerly Duby), and am looking into it a bit. I've seen JRuby unsuccessfully used to compile ruby into .dex. I've also been looking, independently, into Clojure and have realized that they might all be linked to the same thing.

Does anyone have any tips on how to get started and make headway? I ask not only what frameworks could help, but more importantly, a philosophy/direction in which to guide my efforts, just to get started.

3条回答
Rolldiameter
2楼-- · 2019-04-30 20:27

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.

查看更多
在下西门庆
3楼-- · 2019-04-30 20:32

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.

查看更多
爱情/是我丢掉的垃圾
4楼-- · 2019-04-30 20:45

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.

查看更多
登录 后发表回答