shithub: sl

ref: 9047c134f79cbca3ec554a6cd6c1a153b28b807a
dir: /test/torture.lsp/

View raw version
(def ones (map (λ (x) 1) (iota 10000000)))

(write (apply + ones))
(newline)

(def (big n)
  (if (<= n 0)
      0
      `(+ 1 1 1 1 1 1 1 1 1 1 ,(big (- n 1)))))

; https://todo.sr.ht/~ft/femtolisp/2
;(def nst (big 100000))
;(write (eval nst))
;(newline)

(def longg (cons '+ ones))
(write (eval longg))
(newline)

(vm-stats)