paul_reiners

↗ HN profile [ 75.2 ms ] full profile
Karma
117
Created
August 31, 2007 (18y ago)
Submissions
0
I'm a professional programmer and an amateur musician and live in Minnesota.
  1. 10 Great Tech Books (spectrum.ieee.org)
  2. Back to Basics: Algorithms (computerworld.com)
  3. Has anyone else worked on exercise 13.3(b) in "ANSI Common Lisp"? I approached it by declaring all the variables in Figure 9.2 as long-floats: ; Use declarations in math utilities: (defun sq (x) (declare (long-float x))…

  4. Django Wired (artima.com)
  5. As I thought I understood it, Lisp union implements set union. So, I thought that (union '(a a) '(a b)) would return (a b) And, in fact, it does. This led me to think that (union '(a a) '(b)) would also return (A B)…

  6. I came up with the following solution for Exercise 4 in Chapter 10 of "ANSI Common Lisp" by Paul Graham: (defmacro ntimes (n &rest body) (let ((h (gensym))) `(let ((,h ,n)) (if (> ,h 0) ,@body) (if (zerop ,h)…