index.html 19.3 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
<html xmlns='' xml:lang='en' lang='en'>
    <title>ASDF - Another System Definition Facility</title>
    <link type='text/css' href='style.css' rel='stylesheet' />
    <meta name="author" content="the ASDF group"/>
    <div class="header">
      <span class="logo">
        <a href="" title="ASDF Homepage">
          <img src="lisp-logo120x80.png" title="ASDF homepage" width="100" alt="Lisp Lizzard" />
      <h2>ASDF</h2><h4>Another System Definition Facility</h4>
17 18 19
    <div class="system-links">
        <li><a href="#what_it_is">What it is</a></li>
20 21
        <li><a href="#what_it_is_not">What it is not</a></li>
        <li><a href="#implementations">Supported Implementations</a></li>
        <li><a href="#examples">Examples</a></li>
23 24
        <li><a href="#documentation">Documentation</a></li>
        <li><a href="#downloads">Getting it</a></li>
        <li><a href="#extensions">Extensions</a></li>
        <li><a href="#bugs">Reporting Bugs</a></li>
Francois-Rene Rideau's avatar
Francois-Rene Rideau committed
        <li><a href="#mailing-lists">Mailing Lists</a></li>
28 29 30 31
        <li><a href=";a=log"
    <div class="contents">
33 34
        <a id="ASDF 3"></a>
        <h3>ASDF 3</h3>
        <p>ASDF 3, pre-released as 2.28 on February 1st 2013,
          is the current successor to Daniel Barlow's ASDF.
          It was rewritten for improved portability, robustness, usability,
          extensibility, configurability, internal consistency,
          and the ability to create standalone executables.
41 42
        <a id="what_it_is"></a>
        <h3>What it is</h3>
43 44 45
        <p>ASDF 3 contains two parts: ASDF/DEFSYSTEM and ASDF/DRIVER.
46 47
          is a tool to describe how Lisp source code is organized in systems,
          and how to build a system in term of actions that depend on previous actions.
        <p>It is roughly what Common Lisp hackers use to build software
          where C hackers might use GNU Make.
51 52 53 54
        <p>ASDF stands for <em>A</em>nother <em>S</em>ystem <em>D</em>efinition <em>F</em>acility,
          in the continuity of the Lisp DEFSYSTEM of yore.
55 56 57 58 59 60 61 62 63 64 65
        <p>ASDF/DRIVER is a Common Lisp portability library and runtime support system
          that helps you write Common Lisp software in a portable way.
        <p>In addition to many general-purpose Lisp utilities,
          it notably provides portable abstractions to
          gloss over implementation quirks, support hot-upgrade of code,
          manipulate pathnames, create programs, use command-line arguments,
          access the environment, use the filesystem,
          call other programs and parse their output,
          compile Lisp code, muffle conditions, or configure Lisp software.
66 67
        <a id="what_it_is_not"></a>
        <h3>What it is not</h3>
        <p>ASDF will <em>not</em> download missing software components for you.
          For that, you want <a href="">Quicklisp</a>,
70 71 72 73 74
          that builds upon ASDF, and is great for pulling and installing
          tarballs of packages you may depend upon;
          we also recommend <a href="">clbuild</a>,
          that now builds upon Quicklisp, as a great tool for pulling from version control
          packages you need to modify or want to contribute to.
75 76 77 78 79 80 81 82 83 84 85
          We recommend you should <em>not</em> use ASDF-Install anymore,
          as it is an older similar piece of software that is both unmaintained and obsolete.
          If you're unsatisfied with ASDF, other actively maintained build systems for Common-Lisp
          that may or may not satisfy you include:
          Fran&ccedil;ois-Ren&eacute; Rideau's
          <a href="">XCVB</a>
          (trying to build object and image files deterministically and in parallel),
          or its polar opposite,
          Drew McDermott's
          <a href="">YTools</a>
          (trying to maintain coherence of the current Lisp image at a fine grain),
          the newcomer
          <a href="">ASDlite</a>
89 90
          (a somewhat improved incompatible variant of ASDF 1, less featureful than ASDF 3),
          or Alastair Bridgewater's interesting quick-build (unreleased, similar to faslpath below).
91 92
          Older systems that are not maintained anymore include
          Mark Kantrowitz's <a href="">mk-defsystem</a>
          (free software successor of the old proprietary DEFSYSTEM's and predecessor of ASDF, obsolete),
          Sean Ross's <a href="">mudballs</a>
          (an attempt at making things cleaner than in ASDF, aborted),
          Peter Etter's <a href="">faslpath</a>
          (a much simpler system establishing a mapping between packages and files)
          Alexander Kahl's <a href="">evol</a>
          (a reimplementation of the GNU autotools stack in Lisp, abandoned),
100 101
          and probably more.
          However, none of these systems seems to ever have had the traction of ASDF.
        <a id="implementations"></a>
        <h3>Supported Implementations</h3>
        <p>ASDF 3 now supports all CL implementations
          that seem to have any current user base, and then some.
107 108
          Most implementations provide ASDF 2 as a module,
109 110 111
          and you can simply <tt>(require "asdf")</tt>.
          (All of them but CLISP also accept
          <tt>:asdf</tt>, <tt>"ASDF"</tt> or <tt>'asdf</tt> as an argument.)
112 113 114 115 116 117
          They will hopefully soon all provide ASDF 3,
          but in the meantime, you can download ASDF 3,
          and use <tt>(asdf:load-system :asdf)</tt>
          from a properly configured ASDF 2 to upgrade to the latest,
          which you should before you use ASDF for anything else.
118 119 120 121
          A few implementations don't provide ASDF yet,
          but have announced they will in their next release.
          As for remaining implementations,
          they are obsolete and/or mostly unmaintained;
          still ASDF 3 supports them if you load it manually,
124 125 126 127 128 129 130 131 132
          though there might never be a next release
          to provide it through <tt>require</tt>.
            <th align="left">Provide "asdf"</th>
            <th align="left">Will provide it</th>
            <th align="left">Obsolete</th></tr>
          <tr><th align="left">Free</th>
            <td align="left">abcl ccl clisp cmucl ecl mkcl sbcl xcl</td>
134 135 136
            <td> </td>
            <td align="left">gcl mcl</td></tr>
          <tr><th align="left">Proprietary</th>
137 138
            <td align="left">allegro lispworks</td>
            <td align="left">scl</td>
139 140 141 142 143 144 145 146 147
            <td align="left">cormanlisp genera</td></tr>
        <!-- Note to self:
             The maintainers of the following implementations follow asdf-announce:
             allegro	Gary King <>
             clisp	(sds)
             ecl	(juanjo)

             The maintainers of the following implementations require direct notification:
             abcl ccl cmucl gcl lispworks sbcl mkcl scl xcl
149 150 151 152 153 154
Armed Bear <>,,,,,
SBCL Devel-list <>,
Jean-Claude Beaudoin <>,
156 157
Douglas Crosher <>,
Peter Graves <>
159 160
          If there is an old or new implementation that we are missing,
          it shouldn't be hard to adapt ASDF to support it.
          Ask us!

165 166 167 168 169 170
        <a id="examples"></a>
        <p>Download any of the many packages available through
          <a href="">Quicklisp</a>
          to see as many examples.</p>

171 172 173 174 175 176 177
        <a id="documentation"></a>
        <p>You can read our manual:</p>
          <li><a href="asdf.html">as one HTML file</a></li>
          <li><a href="asdf/">split into one HTML file per section</a></li>
          <li><a href="asdf.pdf">as a PDF document</a></li>
          <li><a href=";a=blob;f=doc/asdf.texinfo">as texinfo source</a></li>
180 181
        <p>Regarding the internal design of ASDF in general,
          and the work we did on ASDF 2,
182 183 184 185
          see the last draft version of our paper for
          <a href="">ILC 2010</a>,
          <cite><a href="ilc2010draft.pdf"
                   >Evolving ASDF: More Cooperation, Less Coordination</a></cite></p>
186 187 188 189 190
        <p>Finally, while the manual covers all the basics,
          some advanced or new features remain underdocumented.
          Please contact our mailing-list (see below)
          for any issue that isn't well-documented enough.
191 192 193 194
        <p>Until we write more documentation on the further innovations of ASDF 3,
          the documentation strings, the source code, the changelog and the git log
          are unfortunately your best chances for discovering the available functionality.

        <a id="downloads"></a>
197 198 199 200 201
        <h3>Getting it</h3>
        <p>Though they may lag behind the version here, ASDF comes bundled with most Lisps.
          To get the greatest and latest, you can:
          <li>download just the latest <em>release</em> source for
            <!--<a href=";a=blob_plain;tag=RELEASE;f=asdf.lisp">asdf.lisp</a>,-->
            <a href="">asdf.lisp</a>;
          <li>download the latest <em>release</em>
207 208
            <!--<a href=";tag=RELEASE;a=snapshot;sf=tgz">tarball</a>,-->
            <a href="">tarball</a>
            to get all bells and whistles;
211 212 213 214
          <li>download just the latest <em>development</em> source from our git repository:
            <a href=";a=blob_plain;f=asdf.lisp;hb=HEAD">asdf.lisp</a>
          <li>pull the latest <em>development</em> tree from our git repository
            <pre>git clone git://</pre>
216 217 218 219 220 221 222 223
            (note that our "master" branch is for current development;
            get our "release" branch for the latest stable release.);
          <li>browse the latest <em>development</em> tree from our git repository:
            <a href="">gitweb</a>
          <li>download the tarball of a past release:
            <a href="">archives</a>
224 225

226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245
        <a id="extensions"></a>
        <p>Known extensions to ASDF include:</p>
	  <li><a href=""
	    a collection of most of the below.</li>
	  <li><a href=""
	    to compile Lisp source files with character encodings other than UTF-8.</li>
	  <li><a href=""
	    to allow macros to include code to be evaluated
	    at the end of a file being compiled.</li>
	  <li><a href=""
	    to compute the actual dependencies in a big ASDF system.</li>
	  <li><a href=""
	    to compile a system in parallel.</li>
246 247 248
	  <li><a href=""
	    to bind file-local variables around the compilation of some files.</li>
249 250 251 252 253 254 255 256 257 258 259 260
        <p>Former extensions, now superseded, include:</p>
	  <li>ASDF-BINARY-LOCATIONS allowed one to redirect where ASDF creates its output files,
            so they don't clash between implementations and don't pollute source directories.
            It is superseded by ASDF/DEFSYSTEM's builtin ASDF-OUTPUT-TRANSLATIONS mechanism;
            a limited compatibility mode is available to easily convert
            your former ABL configuration into an AOT configuration.
            COMMON-LISP-CONTROLLER and CL-LAUNCH used to provide similar mechanisms,
            and have also been superseded by ASDF-OUTPUT-TRANSLATIONS.
            allowed you to create a single-file bundle out of a system,
            for easier delivery.
263 264 265
            It is now a builtin part of ASDF/DEFSYSTEM,
            and allows to deliver a single FASL for a system,
            or (on supported implementations), a standalone executable program.
	  <li>ASDF-UTILS was a collection of utilities that originated with ASDF.
268 269 270 271 272 273 274
            It is now superseded by ASDF/DRIVER, which is part of ASDF,
            and exports its functionality in its own package ASDF/DRIVER.
	  <li>ASDF-CONDITION-CONTROL, initially part of XCVB's XCVB-DRIVER,
            allowed you to muffle uninteresting conditions during compilation.
            Is now superseded by equivalent functionality in ASDF/DRIVER.
275 276 277 278 279 280 281

        <p>Join our mailing list, check the code out from git,
          send questions, ideas and patches!

282 283
        <a id="bugs">
        <h3>Reporting Bugs</h3>
        <p>To report bugs, you can use our
285 286 287 288 289
          <a href="">launchpad project</a>.
          If you're unsure about the bug or want to discuss how to fix it,
          you can send email to the project mailing-list below.

Francois-Rene Rideau's avatar
Francois-Rene Rideau committed
290 291
        <a id="mailing-lists"></a>
        <h3>Mailing Lists</h3>
292 293
          <li><a href="">asdf-devel</a>:
Francois-Rene Rideau's avatar
Francois-Rene Rideau committed
294 295 296 297 298 299 300 301 302
            A list for questions, suggestions, bug reports, patches, and so on.
	    It's for everyone and everything. Please join the conversation!
          <li><a href="">asdf-announce</a>:
            A low-volume mailing-list for announcements only, mostly regarding new releases.
	    Posting is restricted to project administrators and to important notices.
	    Please subscribe to it if you're a Lisp implementation or distribution vendor,
	    who needs to know when to upgrade the ASDF you distribute,
	    but are otherwise not interested in day to day design and development.
303 304 305 306 307 308 309 310 311 312

        <p>Join our mailing list, check the code out from git,
          send questions, ideas and patches!

        <a id="news"></a>
        <h3>What is happening</h3>
          <dt>In February 2013</dt>
314 315 316 317 318 319 320 321
            ASDF 3 now includes both the traditional ASDF/DEFSYSTEM
            and a formalized portability library ASDF/DRIVER.
            ASDF/DEFSYSTEM is a backward-compatible reimplementation of ASDF
            with correct timestamp propagation based on a consistent dependency model,
            and featuring support for bundle output, deferred warnings, and more.
            ASDF/DRIVER provides many abstractions to write portable Common Lisp programs.
322 323
          <dt>In April 2012</dt>
324 325 326
            ASDF 2.21 now controls the character encoding used by Lisp source files.
            You can specify different encodings in your defsystem,
            e.g. <kbd>:encoding :latin1</kbd>,
            if you <kbd>:defsystem-depends-on (:asdf-encodings)</kbd>.
328 329 330 331 332 333 334
            While the default will remain to load and compile file
            with the <kbd>:default</kbd> external-format,
            we encourage all library authors to adopt
            the <i>de facto</i> standard, UTF-8,
            for all their source files (.lisp and .asd).
            Our intent is to bless and enforce this standard encoding
            on all these files by default in a not-to-faraway future.
Francois-Rene Rideau's avatar
Francois-Rene Rideau committed
          <dt>Since December 2009</dt>
          <dd>Fran&ccedil;ois-Ren&eacute; Rideau is de facto maintainer,
            with notable contributions from Robert P. Goldman, but also
            Juanjo Garcia-Ripoll and James Anderson.
            ASDF 2 released
            with many clean-ups, better configurability, some new features,
342 343 344 345 346
            and updated documentation.
          <dt>May 2006 to November 2009</dt>
          <dd>Gary King is de facto maintainer,
            with notable contributions from
            Robert P. Goldman, Nikodemus Siivola, Christophe Rhodes, Daniel Herring.
            Many small features and bug fixes,
            making the project more maintainable,
            moving to using git and
            Last version: 1.369.
352 353 354 355 356
          <dt>May 2004 to April 2006</dt>
          <dd>Christophe Rhodes is de facto maintainer,
            with notable contributions from
            Nikodemus Siivola, Peter Van Eynde, Edi Weitz, Kevin Rosenberg.
            The system made more robust, a few more features.
            Last version: 1.97.
          <dt>August 2001 to May 2004</dt>
          <dd>Developed by Daniel Barlow, with notable contributions from
            Christophe Rhodes, Kevin Rosenberg, Edi Weitz, Rahul Jain.
            Last version: 1.37.
363 364
          <dt>August 2001</dt>
          <dd>Created by Daniel Barlow</dd>
365 366
367 368 369 370 371
      <div id="footer">
        <a class="nav" href="" title="xhtml1.1"><img src="" width="80" height="15" title="valid xhtml button" alt="valid xhtml" /></a>
        <a class="nav" href="" title="hacker"> <img src="" width="80" height="15" title="hacker emblem" alt="hacker button" /></a>
        <a class="nav" href="" title="Association of Lisp Users"> <img src="" width="80" height="15" title="ALU emblem" alt="ALU button" /></a>
        <a class="nav" href="" title=""> <img src="" width="80" height="15" title="" alt=" button" /></a>
        <p><span class="copyright"Copyright &copy; 2001-2013 Daniel Barlow and contributors</span></p>
        <p>ASDF has an <a href="">MIT style</a> license</p>
        <div id="timestamp">Last updated 2013-02-05</div>
376 377