newLisp on Android (redux)

Started by kanen, October 17, 2012, 11:37:40 AM

Previous topic - Next topic

kanen

I am very interested in having newLisp running on Android (especially the mobile version). Ice Cream Sandwich or higher is fine.



Anyone made this work yet?



Let me know. I'd love to collaborate and/or figure out how to make it happen.
. Kanen Flowers http://kanen.me[/url] .

xytroxon

#1
Welcome to Google's version of non-standard Oracle Java aka programming hell...



But not to worry, C/C++ can be made to live here too!



Android runs a form of Debian Linux, but sadly, Debian packages won't run as is, since Android doesn't allow several commonly used Debian program directories. Also Linux programs that write a lot to storage can quickly kill the limited write capability of the sdcard (and hence kill your tablet or phone) and should not be used on Android devices... Busybox for Android tries to solve that problem by providing "safe" versions of common Linux programs... (But I haven't tried or needed it.)



----

Note to non-Android owning readers:



Android compatible wifi only tablets can now be picked up just about anywhere in the US for $60 to $120. Try for 4 gigabyte internal storage, external 16 gigabyte micro sdcard slot*, 500 megabyte ram, Android 4.0 Ice Cream Sandwich. Make sure that the tablet is "root-able", you'll have to research that on the web... But I haven't had to "root" my tablet (so far) as it has a setting to allow installation of non-Google Play Store approved apps... Android phones tend to be more secure (locked) and are harder to hack...



(* I spent three days looking for my thumbnail sized micro sdcard after trying to insert it into the tablet's micro sdcard slot. It shot up into the air, over my desk, into a stack of open boxes containing 30+ years of computer parts and cables.  Of course it wasn't in the boxes, as it had bounced out, halfway back across the desk, and slid under a stack of file folders.)

----



Now to make Android developer life easier, download and install these following programs (.apk) to your Android device. Optionally, you can download .apk files to your PC and tranfer them via USB cable to your Android. Often times you are pointed to the Google Android Play store, but if you look around the web pages you can directly download these apps from the author's web pages. (You get the latest versions that way.)



The must have programs:



-----



Hacker's Keyboard:



5-row (programmer friendly-er) keyboard using full PC key layout for Android tablets or phones



http://code.google.com/p/hackerskeyboard/">http://code.google.com/p/hackerskeyboard/



-----



Android-Terminal-Emulator:



For access to a Linux-ish command line shell.



https://github.com/jackpal/Android-Terminal-Emulator">https://github.com/jackpal/Android-Terminal-Emulator



-----



(Optional) Opera Mobile Browser



http://www.opera.com/mobile/">http://www.opera.com/mobile/



-----



Now you can try out these programming languages to see how the Droid beastie might be tamed.



----------------------



RFO Basic:



Simple, good for beginning programmers, but it is powerful too.

http://laughton.com/basic/">http://laughton.com/basic/

Manual: Lots of strange new Android functions to explore here!

http://laughton.com/basic/help/De_Re_BASIC%21.htm">http://laughton.com/basic/help/De_Re_BASIC%21.htm

Forums:

http://rfobasic.freeforums.org/">http://rfobasic.freeforums.org/



(Optional) Bluestacks: Third party Android App Player, (ARM CPU emmulator) for Windows 7. After installing RFO Basic on Bluestacks, you can write and debug programs on Windows without having to try to type on the small Android keyboard. Under heavy develpment... i.e. hasn't become total commercial crapware. (Occasional Windows pop-up ads flag new apps available from their store.)



http://bluestacks.com/">http://bluestacks.com/



----------------------



Kivy (Python):



Runs on Windows, Linux, iOS, as well as Android. Large, slow to startup, another gui to learn, but hey, it's Python!



http://kivy.org/">http://kivy.org/



---------------------



Maybe a newlisp module could be built to run from Kivy?



That's about all I have for now...



-- xytroxon



--- a long, steep, slow, winding mountain journey of ten thousand steps can end - suddenly - with only a single stumble - so tie your shoe laces together tightly - but not to each other's pair of shoe laces - that would indeed be a very bad thing to do ---
\"Many computers can print only capital letters, so we shall not use lowercase letters.\"

-- Let\'s Talk Lisp (c) 1976

xytroxon

#2
To achieve the goal of NL4A (NewLisp For Android), their exists the SL4A project as described in Wikipedia:

------

Scripting Layer for Android

http://en.wikipedia.org/wiki/Scripting_Layer_for_Android">http://en.wikipedia.org/wiki/Scripting_ ... or_Android">http://en.wikipedia.org/wiki/Scripting_Layer_for_Android



The Scripting Layer for Android (abridged as SL4A, and previously named Android Scripting Environment or ASE) is a library that allows the creation and running of scripts written in various scripting languages directly on Android devices. SL4A is designed for developers and is still alpha quality software.



These scripts have access to many of the APIs available to normal Java Android applications, but with a simplified interface. Scripts can be run interactively in a terminal, or in the background using the Android services architecture.



Currently supported languages are:



    * Python using CPython

    * Perl

    * Ruby using JRuby

    * Lua

    * BeanShell

    * JavaScript

    * Tcl

-----



Important Google Code links for the  SL4A project:



Home:

http://code.google.com/p/android-scripting/">http://code.google.com/p/android-scripting/



Tutorials:

http://code.google.com/p/android-scripting/wiki/Tutorials">http://code.google.com/p/android-script ... /Tutorials">http://code.google.com/p/android-scripting/wiki/Tutorials



-- xytroxon
\"Many computers can print only capital letters, so we shall not use lowercase letters.\"

-- Let\'s Talk Lisp (c) 1976

newdep

#3
Thanks for the info... I was already informed it would not be heaven ;-)



Good i didnt try at all... I took the shotcut and rented a cloud server of $9 a month to be able to

access my linux prompt at any time..ofcourse with newlisp on it  ;-)
-- (define? (Cornflakes))

kanen

#4
As of a few weeks ago, this is done. See the forums for details. :)
. Kanen Flowers http://kanen.me[/url] .

sc4les

#5
On my rooted phone I simply downloaded the precompiled binary for android. Then I used the app root browser lite to move the binary because you cannot execute anything within /sdcard/... (remount would work but I dont want to remount my sdcard every time). I just opened terminal emulator app and "cd [where I moved the downloaded binary]", "chmod 755 newlisp.txt" then "./newlisp.txt" and it worked :) (yeah, you should rename the binary)

Now I wrote a little app to use it. See here:

http://stackoverflow.com/questions/6802810/running-shell-commands-from-app-rooted">http://stackoverflow.com/questions/6802 ... app-rooted">http://stackoverflow.com/questions/6802810/running-shell-commands-from-app-rooted

Since we have root, it wouldn't be hard to check if the binary exists and to use wget to download it otherwise.



I hope this is usefull :)

Lutz

#6
you can also try one of these:



http://www.newlisp.org/code/android/">http://www.newlisp.org/code/android/