Giter Site home page Giter Site logo

war-and-peace's Introduction

War and Peace

This ANSI Common Lisp program categorizes the chapters of the book War and Peace by Leo Tolstoi into war-related and peace-related chapters.

Environment Setup

This program was written using the SBCL Common Lisp implementation. As of this writing, SBCL 2.4.0 can compile and run this code; other Lisp implementations may also be capable of running it.

Installing SBCL on a Debian-based distribution should be as simple as issuing this command at a shell prompt:

$ sudo apt install sbcl

Other distributions may or may not package SBCL; refer to the SBCL project's getting started page for more information.

This program uses the cl-str library for string manipulation and lparallel for multithreading map operations. Unit testing uses the FiveAM testing library. Quicklisp is used for installing and loading dependencies. Detailed instructions for installing and using Quicklisp may be found on that project's homepage, but here is a quickstart guide:

$ curl -o /tmp/ql.lisp http://beta.quicklisp.org/quicklisp.lisp
$ sbcl --no-sysinit --no-userinit --load /tmp/ql.lisp \
       --eval '(quicklisp-quickstart:install :path "~/.quicklisp")' \
       --eval '(ql:add-to-init-file)' \
       --quit

With Quicklisp installed, your environment should be ready to run this program.

Program usage

The program is executed via run.sh. The program must be run from within this directory, or it will not find the files it needs. On the first run, Quicklisp will retrieve dependencies before loading the program. Subsequent runs should use the cached dependencies. The result will be written to standard out.

Example:

$ git clone https://github.com/skyler544/war-and-peace
$ cd war-and-peace
$ ./run.sh

Testing

The tests are executed via test.sh. This script loads the main program file but does not run it; instead, it runs the test suite and prints the results to standard out.

Example:

$ git clone https://github.com/skyler544/war-and-peace
$ cd war-and-peace
$ ./test.sh

war-and-peace's People

Contributors

skyler544 avatar

Watchers

 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.