shithub: femtolisp

ref: 0864e3a7e23a6e3f6db9049abd3c70fd7e181606
dir: /test/torture.scm/

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

(write (apply + ones))
(newline)

(define (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
;(define nst (big 100000))
;(write (eval nst))
;(newline)

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

(*vm-stats*)