News for hackers. Stuff that matters.
Re:A lambda is not necessarily a closure by lispm on Tuesday February 09, 2016 @04:28AM (#11064173)
In Clozure Common Lisp:

    ? (defun closure-test ()
        (let ((x 32))
          (list (lambda (y) (+ y 10))
                (lambda (y) (+ x y)))))
    CLOSURE-TEST

    ? (closure-test)
    (#<Compiled-function (:INTERNAL CLOSURE-TEST) (Non-Global)  #x302000CBD71F>
     #<COMPILED-LEXICAL-CLOSURE (:INTERNAL CLOSURE-TEST) #x302000D1EE2F>)
Re:A lambda is not necessarily a closure by gsg on Tuesday February 09, 2016 @05:42AM (#11064470)
Weird that it doesn't propagate the constant such that both functions are closed - maybe with a higher optimisation level.
Re:A lambda is not necessarily a closure by lispm on Wednesday February 10, 2016 @03:48PM (#11075862)
Since CCL uses the compiler everywhere, even for interactive use, it is useful to have quick/dumb and slower/optimizing modes.

Some Lisps use an Interpreter for interactive use in the Listener and the compiler for the rest.

It's a typical tradeoff.