Monday, August 25, 2014

First day

I am beginning to learn lisp and I thought I would document the whole process of learning in a blog. The environment that I plan to learn to learn lisp is the following. There is no particular reason for choosing any of these tools.

  • Ubuntu 14 - quite comfortable with the OS.
  • SBCL (Steel Bank Common Lisp) - Goal is to learn this.
  • Emacs - Have never used it before. I am a Vim fan.
  • Slime - An IDE to make things easier.
Installation steps:

  1. C-M-t to open terminal
    sudo apt-get install emacs24
    sudo apt-get install sbcl
    sudo apt-get install slime
    curl -O http://beta.quicklisp.org/quicklisp.lisp
  2. quicklisp installation steps here.
  3. Run emacs
  4. C-x C-f test.lisp
  5. C-x 3
  6. M-x slime
  7. In slime window type
    1. (+ 1 2)↵
    2. Check that result is 3
  8. In other window type
    (defun test(x y)
        (+ x y))
  9. C-c C-c
  10. Slime window
    1. (test 3 4)↵
    2. Check that output is 7.

No comments:

Post a Comment