Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Post Code

Name: Anonymous 2011-03-04 21:33

One recurring complaint is that nobody talks about code on /prog/. So everyone write go and write some code, any code, that does something, anything, and post it. A small explanation wouldn't go amiss either.

Name: Anonymous 2011-03-15 16:29

>>137
Try running following snippet on SBCL:

(defun vecs2 (n)
  (let ((gs (loop as i from 0 below n
               collect (intern (format nil "~a" i)))))
    (labels ((r (xs)
               (if xs
                   `((lambda (,(car xs)) ,(r (cdr xs)))
                     (vector 1))
                   `(vector ,@gs))))
      (r gs))))

(eval (vecs2 2000))


Can you explain, why it's so slow?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List