Re: How can I use a library?



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")
.



Relevant Pages

  • Re: Making Lisp popular - can it be done?
    ... native code compilers. ... Lisp conference/meeting. ... My Clojure program took around 105 msecs and the Java code did the job ... I would like to run my tests in that JVM then. ...
    (comp.lang.lisp)
  • Re: Why does SBCL ...? was Re: "The Little Lisper"
    ... Especially in a Lisp context, ... Lisp compilers have to be able to deal ... from books and Lisp implementations, and all of it was in the sort ...
    (comp.lang.lisp)
  • Re: Bootstrapping ANSI CL
    ... compilers, and someone had to do the job by hand - in retrospect, what ... machine platform, and knowledge of Lisp - any cross compilation effort ... It is not a likely scenario but interesting ...
    (comp.lang.lisp)
  • Re: Lisp in hardware
    ... Perhaps I have to state it the other way round: Macros do not make much ... But Lisp compilers depend on them. ... First of all, it has great advantages to use lists for sequential data, ...
    (comp.lang.lisp)
  • Re: time to bring back the Lisp machines?
    ... For the Lisp model of development I can't see this particular ... drives. ... I find most Lisp compilers need improvements. ... Clos is not very optimized in some implementations. ...
    (comp.lang.lisp)