Giter VIP home page Giter VIP logo

sicl's Introduction

SICL: A new Common Lisp Implementation

This is the main source code repository for SICL. It contains the compiler, standard library, and documentation.

What is SICL?

SICL is a new implementation of Common Lisp. It is intentionally divided into many implementation-independent modules that are written in a totally or near-totally portable way, so as to allow other implementations to incorporate these modules from SICL, rather than having to maintain their own, perhaps implementation-specific versions.

Quick Start

  1. Make sure you have installed the dependencies:

    • A recent 64-bit version of SBCL
  2. Make sure your SBCL has a 10GB heap by passing --dynamic-space-size 10000 to SBCL when it starts up.

  3. Clone the source with git:

    $ git clone https://github.com/robert-strandh/SICL
    $ cd SICL 
    
  4. Make sure the top-level directory can be found by ASDF.

  5. Compile the boot system as follows:

    (asdf:load-system :sicl-boot)
    
  6. Change the package for convenience:

    (in-package #:sicl-boot)
    
  7. Create an instance of the BOOT class:

    (defparameter *b*
      (let ((sicl-extrinsic-environment::*cache-p* t))
         (make-instance 'boot)))
    

    Creating the first environment will take a few minutes. In particular, it will seem that it is stuck when loading a few files, especially remf-defmacro.lisp.

  8. Start a REPL:

    (sicl-extrinsic-environment::repl (r4 *b*) (r4 *b*))
    

Using SICL

  1. Cleavir is an implementation-independent compilation framework for Common Lisp. To use, make sure that you that you are in the SICL directory and load the neccesary packages and file.
(ql:quickload '(cleavir-generate-ast  cleavir-ast-to-hir cleavir-hir-interpreter)) 
(load "Code/Cleavir/Environment/Examples/sbcl.lisp")
  1. Now you can compile Common Lisp expressions like
(cleavir-hir-interpreter:interpret-hir (cleavir-sbcl-environment::compile-cleavir '(lambda ()  (+ 32 10))))

Documentation

SICL releases are here.

Check the Documentation directory for more information.

Getting Help and Contributing

The SICL community members are usually on various IRC channels. There is now a dedicated channel called #sicl, but discussion can also be found on #lisp, #clasp, and #sicl.

Keep up on SICL by reading the IRC logs

If you want to contribute SICL, please read CONTRIBUTING.md.

License

SICL is primarily distributed under the terms of the BSD license.

See LICENSE-BSD for more details.

sicl's People

Contributors

robert-strandh avatar bike avatar phmarek avatar drmeister avatar karlosz avatar idurand avatar dkochmanski avatar aarvid avatar areinisc avatar kingcons avatar dan-robertson avatar chkhd avatar snuglas avatar eudoxia0 avatar scymtym avatar marcoheisig avatar

Watchers

 avatar James Cloos 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.