Clementson's Blog

Bits and pieces (mostly Lisp-related) that I collect from the ether.

January 2008
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Dec  Feb

Lisp on the OLPC XO Laptop

Friday, January 11, 2008

With all the speculation over the OLPC XO as the next Lisp machine (see here, here, here), I was wondering who would be the first person to actually get a Lisp installed on the OLPC XO Laptop. Well, looks like the honour goes to Grant Rettke - he's created a build of DrScheme (a Scheme implementation that in the past I dubbed "the best Open Source Lisp") for the OLPC XO laptop. It's implemented as a binary rather than an XO "activity"; however, it appears very usable (Grant says that converting it to an activity is going to take a bit more work).

DrScheme on OLPC XO

Grant provides a tarball that you can download as well as a build script so that you can build DrScheme for the XO yourself. There's also a flickr set of pictures of DrScheme on the XO so that (if you're a Canadian donor and haven't received your XO yet) you can still drool over a Lisp on the XO in pictures!

Good job Grant!

Update-2008-01-11: I also got an email from Greg Pfeil saying that he had been able to install SBCL on the XO. It was as simple as:

sudo yum install sbcl
Installing Emacs was similarly easy:
sudo yum install emacs
He said that he "was impressed by the fact that everything just worked".

Nice to see that the best Open Source CL implementation also works on the XO!

Update-2008-01-13: Bradley Lucier sent me an email mentioning that Jeff Read has also gotten Gambit Scheme working on the XO. Here are the things he did:
 As root:
   yum install gcc
   yum install glibc-headers
   yum install make
As user olpc (the user account on the machine): curl -O http://www.iro.umontreal.ca/~gambit/download/gambit/v4.1/source/gambc-v4_1_2.tgz tar xvzf gambc-v4_1_2.tgz cd gambc-v4_1_2 ./configure --prefix=/home/olpc/local/Gambit-C make make install
"It really is that simple. This gets you a working Gambit binary that will run from inside the Terminal activity. It's not yet its own activity, and so will not run from the Sugar user interface; I think it's a noble goal to rectify that situation. The Gambit compiler is not terribly useful, of course, without a C compiler, which the stock XO lacks, which presents problems of its own when bundling Gambit as an activity."
So, if you add Termite to Gambit Scheme, you get a miniature testbed for trying out highly-concurrent applications - the mind boggles!

emacs Copyright © 2008 by Bill Clementson