Showing posts with label lisp. Show all posts
Showing posts with label lisp. Show all posts

Saturday, January 12, 2008

Compiling Threadless SBCL for Stumpwm on Debian Sid

Stumpwm Logo

Here is the Debian counterpart for Compiling SBCL HOW-TO on Stumpwm Wiki.
The only problem I faced during the whole process was that build-deps for sbcl needed texlive and it took 597MB for diskspace and not to mention bandwidth to download the packages :( if you feel you can't afford that append '-d' (Do not run dpkg-checkbuilddeps to check build dependencies) to the debuild command. Also be prepared for really long build, I guess it took hours and hours.

# Get the sbcl package source 
apt-get source sbcl

# Get the sbcl build depends.
apt-get build-dep sbcl

# cd into the sbcl source directory
cd sbcl-1.0.11.0-1

#edit the line that generates customize-target-features.lisp file in debian/rules file 
# (As mentioned in Compiling SBCL HOW-TO mentioned above)
$EDITOR debian/rules 

# build the package
debuild -us -uc 

# install the newly built package 
dpkg -i ../sbcl_1.0.11.0-1_i386.deb 

#set hold on the package 
echo sbcl    hold | sudo dpkg --set-selections

#check if the package is marked 'ih'
dpkg -l |grep sbcl
..
hi  sbcl  1.0.11.0-1  A Common Lisp compiler and development system
..

Compiling Stumpwm

# Get the latest git source of stumpwm
git clone git://git.savannah.nongnu.org/stumpwm.git

# change into stumpwm source directory
cd stumpwm

# generate config files
autoconf

# run configure with sbcl as default lisp 
./configure --with-lisp=sbcl

# make and if success do make install :o) 

make

Thanks to help of those on #stumpwm on freenode for their great support as always.

Thursday, November 22, 2007

How To Start StumpWM

Stumpwm Logo

That seems to be on minds of many who want to use the swanky StumpWM Lisp-based Window Manager for X. Written entirely in Lisp StumpWM takes REPL programming paradigm to the next level, some people have compared this one to the original Symbolic Lisp machines feature wherein any running program's source can be displaced and modified on the fly.

There is an open bug for StumpWM package (#356948) on Debian BTS for explaination about starting the StumpWM. Instead of launching StumpWM from Emacs or SLIME here created myself a simple shell script called "startstumpwm".

#!/usr/bin/env clisp (asdf:operate 'asdf:load-op 'stumpwm) (stumpwm:stumpwm)

After setting the execute persmission to file with chmod a+x startstumpwm I set an entry into my ~/.xinitrc and start the X server with 'startx' command.

exec startstumpwm

There you go ! Perhaps this will help you until the StumpWM gets its proposed /usr/bin/startwm binary in the next package upload.

Wednesday, November 7, 2007

Entertaining Lisp Tutorial From Lisprati.com

Casting SPELs In Lisp Book Cover

Here is a very entertaining Lisp Tutorial Casting SPELs In Lisp from Lisprati.com's Conrad Barski, M.D . This comic book like tutorial teaches the basics of lisp programming language by writing a text based adventure like game.

If you are a Emacs user like me, then there is a Emacs Lisp Edition of the book too. However the book is only translated into only one language Turkish. I guess translating this book into other languages would be a wonderful idea. Get in touch with Conrad if you are interested.

Lastly, If you don't like lisp then you may try the examples in Ruby and Haskell (almost) too.

Happy Spell Casting!!

Popular Posts