Re: An Android Side Project
by Estragon on Monday April 12, 2010 @08:55AM
(#1259014)
I'd be really interested to hear about anyone doing this. Seems like you pay a heavy price for dynamicity on Dalvik, because introspection is expensive.
[ Parent
| on HN ]
> Seems like you pay a heavy price for dynamicity on Dalvik, because introspection is expensive
Citations?
On Android it seems to me that all APIs are running on top of Dalvik, so to use other interpreters (outside of Dalvik) means you have to pay the price for IPC calls (coupled with an interpreter that isn't optimized for mobiles).
"all APIs are running on top of Dalvik"
No, the NDK (Native Development Kit) allows you to bypass Dalvik for some APIs - OpenGL ES, math, compression etc. The complete list is on http://developer.android.com/sdk/ndk/index.html
Search for clojure on android.
FWIW, native Python already runs on my Nexus One, from the ASE - http://code.google.com/p/android-scripting/
It uses RPC to do Android-native calls though.