views:

1525

answers:

4

In theory, Dalvik executes any virtual machine byte code, created for example with the compilers of

  • AspectJ
  • ColdFusion
  • Clojure
  • Groovy
  • JavaFX Script
  • JRuby
  • Jython
  • Rhino
  • Scala

Are there already working versions of bytecode compilers for Dalvik available for other languages than Java?

+3  A: 

I haven't played with it but I know that Scala works.

http://www.scala-lang.org/node/160

nagnatron
+9  A: 

Scala works very well.

I'm programming my Android application projects in Scala (Website written in Chinese with some screenshot, source code @ GitHub), and it is pretty easy to setup the evnviroment (without IDE, using SBT as build tool).

It could access every API in Android SDK, so anything you could do in Java, you could do it in Scala too.

You may check this blog entry to see how to build Android application with Scala and SBT.

Brian Hsu
A: 

The dynamically typed languages wont be possible until Dalvik supports JIT (Just In Time) compiling. I believe there is JIT support in one of the experimental Eclair branches, but it is not yet officially available/supported in Android.

Jeff Gilfelt
No, even with Android Froyo's JIT, most dynamic languages will not work. See http://stackoverflow.com/questions/973386/android-adverse-to-dynamic-languages
jhominal
+11  A: 
PM - Paresh Mayani
checkout..i have added new example links for scala
PM - Paresh Mayani
Checkout..i have added "frink Prog. for Android" detail
PM - Paresh Mayani
On 4-aug-2010, i have added detail regarding "RenderScript for Android" detail
PM - Paresh Mayani