Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to load a batch of files in common-lisp?

2 views
Skip to first unread message

Jacktian

unread,
Sep 4, 2002, 11:16:34 AM9/4/02
to
In common I use eg.
(compile-file "/tmp/hello.lisp") and
(load "/tmp/hello.fasl")
to load a file into common-lisp enviroment.

But when I have thousands of files, it seems difficult to load the
files one by one. I wonder if there is any easier way to load them?

Wojciech Sobczuk

unread,
Sep 4, 2002, 11:49:35 AM9/4/02
to
The rumour has it that you can cat these files together. If you do it
in the correct order, you'll be able to just load the resulting file.

Greetings,
Wojtek

Christopher Browne

unread,
Sep 4, 2002, 1:01:08 PM9/4/02
to

Try something like:

(defvar *cast-of-thousands* '("hello" "goodbye" "foo" "bar"
"frobozz" "slartibartfast" "macsyma"
"ultimatequestion" "ultimateanswer"))

(defvar *longer-names* (mapcar #'(lambda (x) (make-path :directory
'(:absolute "tmp")
:name x)))
*cast-of-thousands*))

(defun load-it-all (cast)
(dolist (s cast)
(compile-file s)
(load s))

(load-it-all *longer-names*)
--
(concatenate 'string "cbbrowne" "@acm.org")
http://cbbrowne.com/info/emacs.html
"My mom said she learned how to swim. Someone took her out in the lake
and threw her off the boat. That's how she learned how to swim. I
said, 'Mom, they weren't trying to teach you how to swim.' "
-- Paula Poundstone

Wojciech Sobczuk

unread,
Sep 4, 2002, 1:30:04 PM9/4/02
to
Or just use something like ADSF for managing your project:
http://ww.telent.net/cliki/asdf

Wojtek

--
Wojciech Sobczuk
NEMO Labs
http://www.nemo.pl/

Marco Antoniotti

unread,
Sep 4, 2002, 2:39:58 PM9/4/02
to

Wojciech Sobczuk <woj...@nemo.pl> writes:

> Or just use something like ADSF for managing your project:
> http://ww.telent.net/cliki/asdf

Or MK:DEFSYSTEM. http://sourceforge.net/projects/clocc

>
> Wojtek
>
> --
> Wojciech Sobczuk
> NEMO Labs
> http://www.nemo.pl/
>

--
Marco Antoniotti ========================================================
NYU Courant Bioinformatics Group tel. +1 - 212 - 998 3488
715 Broadway 10th Floor fax +1 - 212 - 995 4122
New York, NY 10003, USA http://bioinformatics.cat.nyu.edu
"Hello New York! We'll do what we can!"
Bill Murray in `Ghostbusters'.

ilias

unread,
Sep 4, 2002, 2:58:33 PM9/4/02
to
Marco Antoniotti wrote:
> Wojciech Sobczuk <woj...@nemo.pl> writes:
>
>
>>Or just use something like ADSF for managing your project:
>>http://ww.telent.net/cliki/asdf
>
>
> Or MK:DEFSYSTEM. http://sourceforge.net/projects/clocc


> asdf is a declarative system definition tool after the pattern of Mark
> Kantrowitz's defsystem, but with the addition of a defined protocol
> for accessing the system components.

sounds good.

0 new messages