Re: How can I use a library?
- From: Edi Weitz <spamtrap@xxxxxxxxxx>
- Date: Tue, 07 Jun 2005 09:45:10 +0200
On Tue, 07 Jun 2005 10:48:54 +0400, "V.Ch." <fake@xxxxxxxx> wrote:
> Wow, thanks for such a quick response!
Glad to be at your service... :)
> I've skimmed through it already, and realised there's a mess with my
> understanding of what ASDF does. I thought one uses ASDF to install
> a library, not to use it.
In order to /use/ it you have to /load/ it. ASDF can be used to
/compile/ libs as well as /load/ them.
> I can execute (asdf:operate 'asdf:load-op cl-ppcre), however, I
> thought I am supposed to run it only once, because it takes some
> time even when cl-ppcre is compiled.
CL-PPCRE might not be the best example because it does some
computations at load time. Smaller and simpler libraries should load
very quickly once they're compiled.
> Btw, (asdf:operate 'asdf:load-op ...) looks a bit repulsive ;)
So, write a shortcut for it... :)
> Don't know anything about Perl,
Sorry, I confused you with another newbie who posted here recently.
> althout thinking right now about learning it (may be instead of
> Lisp, alas).
I've done mostly Perl before I switched to CL and I can only advise
you not to do that. But, hey, it's your life... :)
> Well, that's not quite true. As long as you stick to exporting plain
> C functions, you should be fine. In some cases you'll probably get
> away with exporting classes, and I think that in the end they will
> define an ABI for C++ that all compilers will adhere to.
Well, maybe in the end "they" (whoever that is) will define a common
FASL format all Lisp compilers will adhere to. I wouldn't hold my
breath, though... :)
Seriously - it's a good thing that there's a choice between several
Lisp implementations based on the same ANSI standard. However,
everyone who uses CL in earnest will sooner or later decide to use
/one/ implementation and then questions like these become moot.
Cheers,
Edi.
--
Lisp is not dead, it just smells funny.
Real email: (replace (subseq "spamtrap@xxxxxxxxxx" 5) "edi")
.
- References:
- How can I use a library?
- From: V.Ch.
- Re: How can I use a library?
- From: Edi Weitz
- Re: How can I use a library?
- From: V.Ch.
- How can I use a library?
- Prev by Date: Re: help a newbie with a macro
- Next by Date: Re: Regarding Lisp/Scheme
- Previous by thread: Re: How can I use a library?
- Next by thread: Re: How can I use a library?
- Index(es):
Relevant Pages
|