4 ms·
SBCL to the rescue. It compiles everything you enter in the REPL.
by tempodox 4y ago
SBCL to the rescue. It compiles everything you enter in the REPL.
- lispm 4y agoUnless one uses an interpreter: $ /usr/local/bin/sbcl This is SBCL 2.2.1, an implementation of ANSI Common Lisp. More information about SBCL is available at <http://www.sbcl.org/>. SBCL is free software, provided as is, with absolutely no warranty. It is mostly in the public domain; some portions are provided under BSD-style licenses. See the CREDITS and COPYING files in the distribution for more information. * *evaluator-mode* :COMPILE * (setf *evaluator-mode* :interpret) :INTERPRET * (defmacro my-if (test a b) (print "Hi, I'm the executing MY-IF macro") `(if ,test ,a , b)) MY-IF * (defun foo (a) (my-if (> a 10) 'big 'small)) FOO * (foo 11) (foo 11) "Hi, I'm the executing MY-IF macro" BIG