On Tue, Feb 15, 2011 at 6:29 AM, <[email protected]> wrote: > On Tue, Feb 15, 2011 at 03:06:07PM +0100, Carl Friedrich Bolz wrote: >> On 02/15/2011 12:51 PM, Laura Creighton wrote: >
>> I am sure you know of this then: >> >> http://code.google.com/p/android-scripting/ >> >> It's an app for Android that lets you script the phone with various >> dynamic languages (including Python). Actually I think that PyPy >> could/should be made to work with this thing. It would not quite make >> PyPy a first class VM on the phone, but would already give you access to >> a number of phone-specific features. > > the Scripting eniroment uses an enviroment varible to indicate a > socket to connect to, once connected you make JSON calls over the > socket to access the platform API's that are done via a java proxy. > porting pypy to run in the enviroment would be as simple as compiling > an arm port and importing the (all python) proxy libary A guy at my local Python User Group uses an Android phone, and has explored both Python and Ruby in the Android Scripting Environment. He tells me that because the Ruby implementation is running on the Dalvik virtual machine, that its API access is more complete than that of the CPython port. Presumably you need a wrapper function for everything you want to chain into over the socket (in CPython), and people create those wrappers mostly on an as-needed basis. In light of this, it seems it might be better to put a JVM (which is almost the same as Dalvik) version of Pypy, or Jython, on Android rather than Pypy built for ARM. _______________________________________________ [email protected] http://codespeak.net/mailman/listinfo/pypy-dev
