shithub: femtolisp

ref: 5c4ffb3f45d3ebc1590c395a603bc60cf81de5a9
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*)