Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  Also, in theory you ought to be able to use the Android NDK
  to get the native C versions of Ruby and/or Python going. 
  It’d be a slog, but the idea doesn’t seem insane.
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.


> 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: