speculative

https://github.com/borkdude/speculative
borkdude 2018-11-29T10:11:29.015900Z

Found something. When you compile:

(ns repro
  (:require [clojure.spec.alpha :as s]
            [clojure.spec.test.alpha :as stest]))

(s/fdef clojure.core/range
  :args (s/alt :infinite (s/cat)
               :finite (s/cat :start (s/? number?)
                              :end number?
                              :step (s/? number?))))

(defn -main [& args]
  (stest/instrument)
  (println (take 1 (range))))

(set! *main-cli-fn* -main)
with :none and run it, you get:
(0)
but with :advanced you get:
RangeError: Maximum call stack size exceeded

borkdude 2018-11-29T10:14:49.016400Z

I don’t have the time to dig into this further, but I’ll make a JIRA ticket fornow

borkdude 2018-11-29T10:30:43.016600Z

https://dev.clojure.org/jira/browse/CLJS-2995