[self-interest] Self running on x86 Android Tablet

Russell Allen mail at russell-allen.com
Wed Sep 11 06:26:44 UTC 2013


 

That's very cool! :) 

Russell 

On 2013-09-11 14:28, Chris Double wrote: 

> Now that x86 Android tablets and phones are available I thought it'd be
> interesting to try and get a version of Self running on one. I succeeded
> in getting a Self binary running on the device. The REPL works but
> there's no GUI as there's no currently available backend.
> 
> A screen shot of it running on a Samsung Galaxy Tab 3 10.1 is here:
> 
> <http://bluishcoder.co.nz/self/android_self.png>
> 
> The binary I used is:
> 
> <http://bluishcoder.co.nz/self/i686-android-linux-Self.bz2>
> 
> To run it on a device, uncompress it and push it to it:
> 
> $ bunzip2 i686-android-linux-Self.bz2
> $ mv i686-android-linux-Self Self
> $ adb push Self /data/local/tmp
> $ adb shell
> device$ cd /data/local/tmp
> device$ chmod 0755 Self
> device$ ./Self
> 
> To build an image on the device, push the 'objects' directory there:
> 
> $ adb push objects /data/local/tmp
> $ adb shell
> device$ cd /data/local/tmp
> device$ ./Self
> device# 'worldBuilder.self' _RunScript
> 
> You can run directly on the device by installing 'Terminal Emulator' or
> a similar program instead of 'adb shell' from a connected PC.
> 
> To build this I made some hacks to the source to workaround Android
> differences. The patch is here:
> 
> <http://bluishcoder.co.nz/self/android.patch>
> 
> It applies on top of my Tup tree at:
> 
> <https://github.com/doublec/self/tree/tup>
> 
> Build a standalone Android NDK for x86 with:
> 
> $ cd $NDK_HOME
> $ ./build/tools/make-standalone-toolchain.sh --arch=x86 
> --install-dir=/somewhere/stk
> 
> Add it to your patch and run 'tup upd' in the Self source directory with
> that patch applied:
> 
> $ cd $SELF_DIR
> $ export PATH=/somewhere/stk/bin:$PATH
> $ tup init # <-- only needs to be run once
> $ tup upd
> 
> The resulting 'Self' binary is the Android binary and will run on x86 devices.
> 
> Chris.
> -- 
> http://www.bluishcoder.co.nz 
> 

 

Links:
------
[1]
http://groups.yahoo.com/group/self-interest/post;_ylc=X3oDMTJwdW1jbzRoBF9TAzk3MzU5NzE0BGdycElkAzExMTQ4MzUEZ3Jwc3BJZAMxNzA3Mjc2NzE4BG1zZ0lkAzI5MDIEc2VjA2Z0cgRzbGsDcnBseQRzdGltZQMxMzc4ODcwMDg3?act=reply&messageNum=2902
[2]
http://groups.yahoo.com/group/self-interest/post;_ylc=X3oDMTJlaHA3NTl1BF9TAzk3MzU5NzE0BGdycElkAzExMTQ4MzUEZ3Jwc3BJZAMxNzA3Mjc2NzE4BHNlYwNmdHIEc2xrA250cGMEc3RpbWUDMTM3ODg3MDA4Nw--
[3]
http://groups.yahoo.com/group/self-interest/message/2902;_ylc=X3oDMTM0anRsMmw5BF9TAzk3MzU5NzE0BGdycElkAzExMTQ4MzUEZ3Jwc3BJZAMxNzA3Mjc2NzE4BG1zZ0lkAzI5MDIEc2VjA2Z0cgRzbGsDdnRwYwRzdGltZQMxMzc4ODcwMDg3BHRwY0lkAzI5MDI-
[4]
http://groups.yahoo.com/group/self-interest;_ylc=X3oDMTJlNDFmNm5vBF9TAzk3MzU5NzE0BGdycElkAzExMTQ4MzUEZ3Jwc3BJZAMxNzA3Mjc2NzE4BHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTM3ODg3MDA4Nw--
[5]
http://groups.yahoo.com/;_ylc=X3oDMTJkdDZpNGM3BF9TAzk3MzU5NzE0BGdycElkAzExMTQ4MzUEZ3Jwc3BJZAMxNzA3Mjc2NzE4BHNlYwNmdHIEc2xrA2dmcARzdGltZQMxMzc4ODcwMDg3
[6] http://info.yahoo.com/legal/us/yahoo/utos/terms/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.selflanguage.org/pipermail/self-interest/attachments/20130911/aa6cfa75/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/x-ygp-stripped
Size: 204 bytes
Desc: not available
URL: <http://lists.selflanguage.org/pipermail/self-interest/attachments/20130911/aa6cfa75/attachment.bin>


More information about the Self-interest mailing list