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

FOAF updates: Trust rankings are now exported, making the data available to other users and websites. An external FOAF URI has been added, allowing users to link to an additional FOAF file.

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!