On Tue, Mar 30, 2010 at 4:06 PM, Robert Goldman <span dir="ltr"><<a href="mailto:rpgoldman@sift.info">rpgoldman@sift.info</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
FWIW, Faré provided a couple of new API functions to give ASDF users<br>
this function, notably<br>
<br>
SYSTEM-RELATIVE-PATHNAME<br>
<br>
and<br>
<br>
SYSTEM-SOURCE-DIRECTORY<br></blockquote><div><br>I insist on the following: in order to achieve purity in ASDF files we
want to keep as far away as possible from using any kind of API in the
compiled code.<br><br>The best system build system is one which is
invisible to the code that it builds.<br><br>Exposing functions, imposing the dependency of the user code on ASDF API as well as imposing that the library code queries ASDF for its own system is a very
bad design.<br><br>We want system definitions to be descriptive, not programatic, and we want the user code to be able to exist in an ASDF-free environment, as standalone systems. The existing situation does not allow this.<br>
<br>One may<br><br>1) Use *compile-file/load-truename*
but that leads to very ugly code.<br><br>2) Enforce that *default-pathname-defaults* is set to the system root when loading or compiling<br><br>3) Provide logical hostnames<br><br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
For what it's worth, I try to avoid logical-pathnames in portable code,<br>
having been hoist too many times on the petard of ACL/SBCL<br>
incompatibility in handling logical pathnames (SBCL sticks to the spec,<br>
in the name of portability and standardization; ACL accepts sensible,<br>
spec-defying logical pathnames in the name of utility).<br clear="all"></blockquote></div><br>I do not have payware lisps, but I have been living with SBCL and ECL's logical pathnames without further problems.<br><br>
Juanjo<br><br>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://tream.dreamhosters.com">http://tream.dreamhosters.com</a><br>