Category : Files from Magazines
Archive   : PCTJ1285.ZIP
Filename : BENCHMRK.LSP

 
Output of file : BENCHMRK.LSP contained in archive : PCTJ1285.ZIP
(defun empty-loop-prog (count)
(prog ((n count))
loop
(when (zerop n) (return nil))
(setf n (1- n))
(go loop) ))

(defun empty-loop-do (count)
(do
((n count (1- n)))
((zerop n) nil) ))

(defun empty-loop-dotimes (count)
(dotimes (k count nil)) )

(defun makelist-iterative (count)
(let ((result nil))
(dotimes (k count result)
(setf result (cons nil result)) )))

(defun makelist-recursive (count)
(if (zerop count)
nil
(cons nil (makelist-recursive (1- count))) ))

(defun float-test (count)
(dotimes (k count)
(/ 1.0 3.0) ))


  3 Responses to “Category : Files from Magazines
Archive   : PCTJ1285.ZIP
Filename : BENCHMRK.LSP

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/