4 ms·
it's kind of surprising that the cadr took 10 seconds (at 43'56") to compile (defun fact (n) (cond ((< n 2) 1) (t (* n (fact (- n 1))))))
by kragen 3y ago
it's kind of surprising that the cadr took 10 seconds (at 43'56") to compile
(defun fact (n)
(cond ((< n 2) 1)
(t (* n (fact (- n 1))))))
does anyone know why it's so slow? maybe it had to do a full garbage collection?
- amszmidt 3y agoA full GC took several tens of minutes… it was considered a coffee break type of thing. It is hard to say why it took that long to compile from the video, I’m guessing some network access to something …
- lispm 3y agoPaging would be another option. Virtual memory was slow and the GC integration with virtual memory wasn't very sophisticated at that time. Also main memory was probably tiny.
- kragen 3y agothanks for the explanation! i'm sorry i upset you previously by saying that stallman had often been unkind to others