Re: unloading/reloading an asdf system
Gary King <[email protected]>
| Newsgroups | gmane.lisp.cclan.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Craig,
ASDF keeps track of the load time and compile time of the files in a
system, not the consequences of actually loading those files (which
would be very hard, IMHO). As far as ASDF knows, you loaded the files
already and so it doesn't need to load them again even after you
delete the package.
FWIW, I _don't_ see the same behavior as you do. Here is part of
session in MCL with moptilities:
> (asdf:oos 'asdf:load-op 'moptilities :force t)
> ;Loading #P"Billy-Pilgrim:Users:gwking:.asdf-install-dir:site:lw-
> compat:ccl-5.1b4-apple-powerpc:lw-compat-package.cfsl"...
> ;Loading #P"Billy-Pilgrim:Users:gwking:.asdf-install-dir:site:lw-
> compat:ccl-5.1b4-apple-powerpc:lw-compat.cfsl"...
> ;Loading #P"Billy-Pilgrim:Users:gwking:.asdf-install-
> dir:site:closer-mop:mcl:ccl-5.1b4-apple-powerpc:closer-mop-
> packages.cfsl"...
> ;Loading #P"Billy-Pilgrim:Users:gwking:.asdf-install-
> dir:site:closer-mop:mcl:ccl-5.1b4-apple-powerpc:closer-mop.cfsl"...
> ;Loading #P"Billy-Pilgrim:Users:gwking:.asdf-install-
> dir:site:closer-mop:ccl-5.1b4-apple-powerpc:closer-mop-utility-
> packages.cfsl"...
> ;Loading #P"Billy-
> Pilgrim:Users:gwking:darcs:moptilities:dev:ccl-5.1b4-apple-
> powerpc:moptilities.cfsl"...
> NIL
> ? (delete-package 'moptilities)
> T
> ? (asdf:oos 'asdf:load-op 'moptilities :force t)
> ;Loading #P"Billy-Pilgrim:Users:gwking:.asdf-install-dir:site:lw-
> compat:ccl-5.1b4-apple-powerpc:lw-compat-package.cfsl"...
> ;Loading #P"Billy-Pilgrim:Users:gwking:.asdf-install-dir:site:lw-
> compat:ccl-5.1b4-apple-powerpc:lw-compat.cfsl"...
> ;Loading #P"Billy-Pilgrim:Users:gwking:.asdf-install-
> dir:site:closer-mop:mcl:ccl-5.1b4-apple-powerpc:closer-mop-
> packages.cfsl"...
> ;Loading #P"Billy-Pilgrim:Users:gwking:.asdf-install-
> dir:site:closer-mop:mcl:ccl-5.1b4-apple-powerpc:closer-mop.cfsl"...
> ;Loading #P"Billy-Pilgrim:Users:gwking:.asdf-install-
> dir:site:closer-mop:ccl-5.1b4-apple-powerpc:closer-mop-utility-
> packages.cfsl"...
> ;Loading #P"Billy-
> Pilgrim:Users:gwking:darcs:moptilities:dev:ccl-5.1b4-apple-
> powerpc:moptilities.cfsl"...
> NIL
I wasn't able to try this with parenscript because HTMLGEN 404'd
while I was trying to install. However, parenscript's ASDF system
definition doesn't appear to have anything the least bit odd in it so
I don't see why that would be the difference. Do you see this
behavior with other systens?
On Mar 3, 2006, at 3:14 PM, Craig McDaniel wrote:
> Hello ASDF experts,
>
> Is there a way to reload an ASDF system without the recompilation?
>
> For example, load a system:
>
> CL-USER> (asdf:oos 'asdf:load-op 'parenscript)
> ; loading system definition from /home/kreg/.sbcl/systems/
> parenscript.asd
> ; into #<PACKAGE "ASDF1224">
> ; registering #<SYSTEM :PARENSCRIPT {AA7B7A1}> as PARENSCRIPT
> ; registering #<SYSTEM :PARENSCRIPT.TEST {AD20FD9}> as
> PARENSCRIPT.TEST
> NIL
>
> This one contains package js amoung others:
>
> CL-USER> (find-package 'js)
> #<PACKAGE "JS">
>
> After messing around with the package in the REPL, delete it so I can
> reload the original package:
>
> CL-USER> (delete-package 'js)
> T
> CL-USER> (find-package 'js)
> NIL
>
> Try to reload the original package the easy way, by just reloading the
> ASDF system, but that doesn't work:
>
> CL-USER> (asdf:oos 'asdf:load-op :parenscript)
> NIL
>
> CL-USER> (find-package 'js)
> NIL
>
> Using the force option does work, but recompiles the whole system:
>
> CL-USER> (asdf:oos 'asdf:load-op :parenscript :force t)
> ; compiling file "/home/kreg/lisp/parenscript/src/package.lisp" ....
> ; compiling (IN-PACKAGE :CL-USER)
> ; compiling (DEFPACKAGE :JS ...)
> .
> ....lots of compilation
>
> CL-USER> (find-package 'js)
> #<PACKAGE "JS">
>
> Thanks for any info.
>
> -Craig McDaniel
>
>
>
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> that extends applications into web and mobile media. Attend the
> live webcast
> and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> cclan-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/cclan-list
--
Gary Warren King
metabang.com
http://www.metabang.com/
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642