newlisp on the Nokia N810 Internet tablet

Started by newdep, June 15, 2009, 09:04:34 AM

Previous topic - Next topic

newdep

#15
newLisp 10.0.8 precompiled ARM version can be found at

https://garage.maemo.org/projects/newlisp/">//https://garage.maemo.org/projects/newlisp/



Im working on a official package so that newLisp can be directly

installed/maintained/updated on the N810.



To be continued...
-- (define? (Cornflakes))

newdep

#16
because maemo linux handles Debian packaging and newlisp already

has lots of packaging I did not create a package for newlisp so it cant

yet be installed from the extra-repository in Maemo. I need help with this

because im a tar-guy and reject rpm and deb ..;-)



You can grab the full source + precompiled UTF8 and regular newlisp

package of version 10.1.0 from https://garage.maemo.org/projects/newlisp/">//https://garage.maemo.org/projects/newlisp/ including the pdf manual inside the package.




Release Name: newlisp 10.1.0

Notes:
This is the original 10.1.0 newlisp release that includes the complete source package of newlisp.
It also contains 2 pre-compiled binary's for the ARMEL maemo linux Diablo version. (not tested on other releases)
The 'newlisp' and 'newlisp_utf8' are pre-compiled ARMEL versions.


Quick install:

Become root on the N810

gunzip < newlisp-10.1.0-armel-maemo.tgz | tar xvf -

or

gzip -d newlisp-10.1.0-armel-maemo.tgz
tar xvf newlisp-10.1.0-armel-maemo.tar


run the ./maemo-install.sh script as user root to install newlisp.
run the ./maemo-deinstall.sh script as root to de-install newlisp.

The install script will install the utf8 version of newlisp by default
and will move the newlisp_manual.pdf to your ~/MyDocs/.documents/newlisp directory.

All information on newLisp language can be found at http://www.newlisp.org

This file is so big because it includes the PDF manual.
-- (define? (Cornflakes))

newdep

#17
oke oke..nothing more annoying then unable to recall history..as we do daily..



But for the newlisp version on the ARMEL maemo its a must!.



So its working now..
# makefile for newLISP v.10.x.x on MAEMO ARMEL LINUX with readline and UTF-8 support
#
# Note, that readline support may require different libraries on different OSs
#

OBJS = newlisp.o nl-symbol.o nl-math.o nl-list.o nl-liststr.o nl-string.o nl-filesys.o
        nl-sock.o nl-import.o nl-xml.o nl-web.o nl-matrix.o nl-debug.o nl-utf8.o pcre.o

CFLAGS = -Wall -pedantic -Wno-strict-aliasing -Wno-long-long -c -O2 -g -DREADLINE -DSUPPORT_UTF8 -DLINUX

CC = gcc


default: $(OBJS)
        $(CC) $(OBJS) -g -lm -ldl -lreadline -ltermcap -o newlisp
#       $(CC) $(OBJS) -g -lm -ldl -lreadline -lncurses -o newlisp
#       $(CC) $(OBJS) -g -lm -ldl -lreadline -o newlisp
#       $(CC) $(OBJS) -g -lm -ldl  -lncurses -o newlisp
#       $(CC) $(OBJS) -g -lm -ldl -o newlisp
        strip newlisp

.c.o:
        $(CC) $(CFLAGS) $<

$(OBJS): primes.h protos.h makefile_maemo_utf8




dependency's ->

    libm.so.6 => /lib/libm.so.6 (0x00000000)

     libdl.so.2 => /lib/libdl.so.2 (0x00000000)

     libreadline.so.4 => /lib/libreadline.so.4 (0x00000000)

     libncurses.so.5 => /lib/libncurses.so.5 (0x00000000)

     libc.so.6 => /lib/libc.so.6 (0x00000000)

     /lib/ld-linux.so.3 => /lib/ld-linux.so.3 (0x00000000)





Ill put that little precompiled god-tool on the garage page ;-)
-- (define? (Cornflakes))

newdep

#18
aaa still working nicely the N810 with newlisp.



I have compiled the nano editor, quick and simple without much fingering

on the keyboard a good editor for the N810..

With the newlisp syntax highlighting nanorc a nice to have!



The inputrc is now a real wonderful addon on the N810.

Quick an simple macro's with termcap nice nice...saves typing..



The only thing I realy would like to see is the newlisp manual

being split per chapter in smaler html pages.. Loading that thing

is just a little too long ;-) But perhpas the Wiki could create a solution

here..



all in all I had the N810 on a holiday trip the last week and its smashing

to use ... the nicest part is.."A lambda prompt at your fingertips"..

nice nice...



No deep testing done yet..normal use and newlisp runs fine..

Ill through in some border-checking this month..
-- (define? (Cornflakes))

newdep

#19
Now having newlisp running on the N810 and being a console user

was thinking of an overall editing evironment..



For the Java part there is the GS editor for newlisp but as java is not

ported to the Maemo evironment I was seeking for something else..



And yes..there is.. Strange ..but I actualy never used this but comes in

very handing right now.. its the "http://www.newlisp.org/index.cgi?Applications">//http://www.newlisp.org/index.cgi?Applications" newlisp-ide ;-)



As the webbrowser on the N810 from Maemo is very quick it turn this

ide into a fully usable editor.



the first thing i did seek on the Ide was a way to change the lines of the iinput/output,

yes it was already taken care of and could simply be adjusted to 24.

then I seeked for a bigger font for the left panel and yes

it was already taken care of.



Easy file seeking editing and evaluating.. Very handy Lutz! thanks !
-- (define? (Cornflakes))

newdep

#20
I added the maemo release to my newlisp page so its under the roof

of the rest of my newlisp collection.

http://maemo.nodep.nl">//http://maemo.nodep.nl can also be found via http://newlisp.nodep.nl">//http://newlisp.nodep.nl
-- (define? (Cornflakes))

newdep

#21
oke oke the N810 Maemo does official not have Sun Java

but there is a Jalimo version that support AWT/SWT.



So after some tweaking to get the AWT running it finaly ran out

of the box...Guiserver support runs.

(Not sure yet what widgets are there yet but we will see ;-)





Ill dump some screenshot here tonight ;-)
-- (define? (Cornflakes))

newdep

#22
Ok so after having Jalimo working it was upto the Gui-Server to start,

that went all out of the box actualy... The only problem I had where the

pre-version 10 Gui-server demo's, those whernt converted yet by myself...oeps...



Anyway the speed of this VM running on a 400Mhz processor isnt advisable

for 2D drawing.. Its simple too slow.. menu Widget though are well workable..

Some widgets dont work like the html clickable..but thats know inside Jalimo AWT. The Jalimo is a java 1.5 port..so it used the Swing SWT and AWT nicely.



As the N810 has a small screen 800x480 and there is a reserved area for

menu's etc.. (you can do full screen, no problem) some programs i started

are not adjusted for this screen size..



Still its nice to see that its working, not flawless as I saw in loading files

from the newlisp-edit, but i was using a old GS library! 1.29 and not 1.34.



All in all below a resized collection of screen shots, No dont worry the

graphics are halfsized to make 1 picture but gui is fine. I took screenshot

from the N810 directly...



http://maemo.nodep.nl/downloads/gsserver-maemo.png">
-- (define? (Cornflakes))

newdep

#23
working with the n810 continues..

updated http://maemo.nodep.nl">//http://maemo.nodep.nl  (refresh manual please ;-)



Actualy all armel packages from the debian distribution work, though

there is ofcourse the dependency's but those can be sloved.



Just installed joe editor..works like a charm..ofrouce with newlisp

syntax highlighting.. (nano crashed on my selfcompiled version

when doing a search inside the files..duh..)



Lutz.. who is doing the debian packages?

because I can pre-compile the armel version so an extra debian

package can be create for armel. Im not a .deb guru.. perhpas

its an option..
-- (define? (Cornflakes))

jdelgado

#24
Hi,



I'm new to newLISP, and the newLISP forums, so this is my first post (btw, thanks a lot to the creator of newLISP). Still playing with newLISP, though I am not new to Lisp. I have used Scheme for a while. I got here when I noticed that there was the possibility of carrying a lambda in the pocket, as they say...



I used to have lots of fun carrying around my Palm M125 with LispMe (scheme), but some time ago I just gave up the idea of having that back... until I discovered your newLISP port. I got really enthusiastic.



So, just one question: Does your port work with Nokia N900? If that is the case I will hurry to buy one. Unfortunately I have no much time to try to port newLISP to the new maemo version by myself.



Thanks in advance for your answer, and thanks for porting newLISP to Maemo.



Bests,



Jordi

hilti

#25
QuoteSo, just one question: Does your port work with Nokia N900?


Short answer:

I think not yet, but I hope someone get it working.



Long answer:

I've downloaded all the maemo files and followed the gunzip process on my N900, started the maemo-install.sh but nothing happens. If I try to open the "newlisp" binary I get an error: permission denied, although I'm in a root shell.



Cheers

Hilti
--()o Dragonfly web framework for newLISP

http://dragonfly.apptruck.de\">http://dragonfly.apptruck.de

newdep

#26
No the N900 is a different ARM architecture irrc...

A port should not be that difficult... Though I dont have a N900 neighter

do I have the N900 simmulation on my Linux running.. Sorry..



But feel free to delivery to the N900 community ;-)



Im still using the N810 with newlisp although not recently updated..

Great travel mate for newlisp ;-)
-- (define? (Cornflakes))

hilti

#27
Compiling newLISP on Nokia N900



I like the pragmatic way, so I just compiled newLISP directly on my N900. This is the way how it's done in Your X-Terminal:



1. You need to install the package "rootsh" to be able doing some hacking stuff ;-)

2. Install GCC from this repository

deb http://repository.maemo.org/">http://repository.maemo.org/ fremantle/sdk free

4. Open Terminal and type this "apt-get install build-essential"

5. Install readline support "apt-get install libreadline5-dev"

6. Download newlisp source via "wget http://www.newlisp.org/downloads/newlisp-10.2.8.tgz">http://www.newlisp.org/downloads/newlisp-10.2.8.tgz" into /home/user

7. From /home/user do a "./configure"

8. Then MAKE via "make -f makefile_linux_maemo_utf8"

9. Do a check "make check"

10. Install "make install"

11. Starty newLISP by typing "newlisp"



Happy newLISPing!



Cheers Hilti
--()o Dragonfly web framework for newLISP

http://dragonfly.apptruck.de\">http://dragonfly.apptruck.de

newdep

#28
Aaaaaaa Slick ;-)



Very nice!...



Im still on the N810 used it 2 weeks ago for newlisp.. Great device to run it on..



Good to see its now up for the N900 ;-)  Thanks for posting!
-- (define? (Cornflakes))