lay

Lay

Description

The lay utility installs eggs. It leverages the index file generated by egg-tarballs-index and chicken-install to parallelize and speedup the eggs building process.

Usage

lay [-h] [-c] [-v] [-j jobs] [-z zcat] egg ...
    -h         display this help page and quit
    -c         clear the local cache before doing anything else
    -i prog    use 'prog' as chicken-install program
    -v         print verbose output
    -j jobs    use at most 'jobs' parallel processes (default: 4)
    -z prog    use 'prog' as zcat program

Details

The lay utility retrieves the eggs index file from the egg-tarballs directory of the running CHICKEN major release. A copy is kept in a local cache directory to avoid unnecessary downloads. A DAG representing eggs dependencies is generated from the eggs index file. The DAG file is cached too. The DAG is then resolved into levels. Each level contains independent eggs that can be built in parallel. Here comes the major advantage of using lay: multiple instances of chicken-install can be used to build the eggs at each level. As an example, to build version 1.42 of the brev egg we need to resolve 6 levels:

At the time of this writing, on a reasonably cheap VPS, building brev with plain chicken-install vs. using lay results in these times:

Author

Pietro Cerutti

Repository

https://code.ptrcrt.ch/lay

License

 Copyright (c) Pietro Cerutti
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions
 are met:
 
 1. Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.
 2. Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the
    documentation and/or other materials provided with the distribution.
 
 THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 SUCH DAMAGE.

Version History