Re:Ask HN: What do you think of F#?
by StavrosK on Sunday October 24, 2010 @04:31PM
(#1827172)
Thanks for that. The apps run on Android? I thought Dalvik only supported Java... Or is there a Scala -> Java compiler (or Java bytecode -> Dalvik bytecode, for that matter)?
[ Parent
| on HN ]
dex is an executable that comes with the SDK and converts files from .class (Java bytecode) to .dex (Dalvik bytecode)
For a while there was a bug in the Dalvik VM that wouldn't let you run some Scala methods but I made a patch to fix that problem. I think it's in all releases after Android 1.6.
Ah, I see, fantastic. I thought it compiled the code into .dex. I imagine it might run Jython as well, then?
EDIT: Apparently Jython uses on-the-fly bytecode generation on account of being dynamic, so it can't run.
The Android Scripting project adds support for Python, Perl, JRuby, Lua, BeanShell, JavaScript and Tcl:
http://www.mirah.org/ (formerly Duby) is another compelling candidate for Android development for those that like Ruby. Compiles to Java byte-code :)