8 Jun 2007 mrcsparker   » (Journeyer)

Getting your little bitty Common Lisp Project working quickly

So, you have a Common Lisp program that is just one file and you want to load it without mucking too much with asdf? And you also want to include a few of your asdf-installed packages? Man, you are asking for a lot! Okay, well, here is what I do:


(eval-when (:load-toplevel :execute :compile-toplevel)
  (asdf:oos 'asdf:load-op :cl-who)
  (asdf:oos 'asdf:load-op :hunchentoot))


(defpackage :my-project-package (:use :common-lisp :cl-who :hunchentoot))

(in-package :my-project-package)

(format t "hello, world")

Load, compile, etc. In SLIME (I assume you are using SLIME) type in:
CL-USER> (in-package :my-project-package)

This works for me with small CL programs.

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!