Giter Club home page Giter Club logo

sbcl-image-builder's Introduction

sbcl-image-builder

Lisp image build for SBCL

This is my build system to create custom SBCL executables preloaded with a collection of Quicklisp libraries. It will compile the libraries and embed them in a SBCL executable which is very fast to load.

The build script sbcl-core.lisp provides a basic set of commonly used utility libraries. This can be edited or used as a template to create more specific Lisp environments.

Requirements

  • SBCL in the program path
  • a copy of ASDF in ~/.common-lisp/asdf.lisp
  • a Quicklisp installation in ~/.common-lisp/quicklisp/

If you prefer to use different paths than these, edit them in the build script.

Build

Run make. Install with make install.

Customization

Find relevant sections in the build script and list systems you want embedded, and add your custom initialization code.

  • LOAD-SYSTEM NAME loads a system and adds it.
  • USE-SYSTEM NAME &REST PACKAGES loads a system, adds it, and imports package symbols into CL-USER. If no package was named, imports the package with the same name as the system.
  • INITIALIZE &BODY BODY adds code to run at initialization.

Usage in Emacs

Make your Lisp image known to SLIME, and optionally make it the default.

As a benefit of constructing an image with USE-SYSTEM, SLIME will automatically recognize the packages and their symbols when used in any context.

(setq slime-lisp-implementations
      '((sbcl ("sbcl"))
        (sbcl-core ("sbcl-core")))
      slime-default-lisp 'sbcl-core)

sbcl-image-builder's People

Contributors

jpcima avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.