lisp compiler

Table of Contents

  • compiles lisp forms into machine language
  • speed up of 10-100x than the REPL way
  • with reference to macro-expansion, they shouldn't have side effects as they may be evaluated at different instances dependent on the implementations.

1. Structuring a File

  • use defvar,defparameter,defconstant for global declarations to suppress warnings that the compiler may raise other wise -> preferably at the top of the file
  • any macro defs should precede their references in functions or other macros.
  • redefinitions raise warnings
  • refrain from redefining built-ins
Tags::lisp: