News for hackers. Stuff that matters.
Re:No Stinking Loops by erik_seaberg on Saturday December 16, 2023 @11:04PM (#38670227)
Most platforms make some kind of loop into a primitive, but in Common Lisp

  (dotimes (i 10)
    (print i))
is just a predefined macro that might expand into primitives like

  (BLOCK NIL
    (LET ((I 0))
      (TAGBODY
        #:LOOP-2867
        (IF (>= I 10)
          (GO #:END-2868))
        (PRINT I)
        (PSETQ I (1+ I))
        (GO #:LOOP-2867)
        #:END-2868
        (RETURN-FROM NIL (PROGN NIL)))))

There are no comments on this comment yet.