Categories
Generative Art

DatIsNature And The Beauty of Lisp

Was it Neal Stephenson who said that Lisp is the only beautiful programming language? The excellent DataIsNature has a link to a
snippet of Lisp to draw the Mandelbrot set, which is a case in point:


(loop for y from -1 to 1.1 by 0.1 do
(loop for x from -2 to 1 by 0.04 do
(let* ((c 126)
(z (complex x y))
(a z))
(loop while ((setq z (+ (* z z) a)))
2)
while (> (decf c) 32))
(princ (code-char c))))
(format t "~%"))