Install lisp on my linux machine

前端 未结 4 2149
悲哀的现实
悲哀的现实 2021-02-19 11:44

I use Vim as my editor. \"Practical common Lisp\" suggest installing Lispbox, I don\'t know how to use emacs, don\'t know how to run lisp code with that T.T after that i find li

4条回答
  •  忘掉有多难
    2021-02-19 12:25

    Install and learn the following things:

    • SBCL the compiler

    install a binary from http://www.sbcl.org/platform-table.html Once your used to it, compile from source and keep the source around. This way you can easily jump to the definitions of functions of SBCL with M-. in Emacs.

    • Emacs

    watch this screencast to see someone implementing a raytracer Raytracer in Common Lisp

    • quicklisp.lisp http://www.quicklisp.org/beta/

    This is the new package management. When I started it wasn't there. Now we have it and you should use it. It makes things a lot easier. Run 'sbcl --load quicklisp.lisp' and then enter (quicklisp-quickstart:install) press enter and then run (ql:add-to-init-file)

    • SLIME runs within Emacs.

      Try installing it with quicklisp. Read its manual and figure out what to write into your .emacs file so that it automatically starts when you open a lisp file. Optionally watch a screencast.

    • Paredit

    Seriously, you have to learn that (even if the guy in the raytracing screencast didn't use it). You should start with ( , this will make two parenthesis. With M-( you can enclose an existing s-expression. C-k cuts the s-expression behind the cursor and with C-y you can insert it anywhere.

    • ASDF

    This is the make for lisp. You should learn how to define a system in an ASDF file.

    • Reference

    I printed this booklet, Common Lisp Quick Reference. It's very concise.

提交回复
热议问题