TryClojure - Browser based Clojure REPL
tryclj.licenser.net
tryclj.licenser.net
=> (type 10)
java.lang.Integer
=> (type 10000000000)
java.lang.Exception: EvalReader not allowed when
*read-eval* is false.
Edit: a few bugs or limitations: => (defn pow [base exp] (apply * (take exp (iterate #'identity base))))
#'net.licenser.sandbox.box1712/pow
=> (defn long-compute [power] (def p (pow 10 power)) (loop [i 0] (if (> i p) i (recur (inc i)))))
#'net.licenser.sandbox.box1712/long-compute
=> (long-compute 6)
1000001
=> (long-compute 7)
Execution Timed Out!
=> (import java.lang.System)
java.lang.System
=> (System/getCurrentTimeMillis)
Disabled for security purposes.
=> 10000000000
10000000000
=> (type 10000000000)
java.lang.Exception: EvalReader not allowed when *read-eval* is false.
=> (type (pow 10 10))
java.lang.LongEDIT: Great work though!