Howto make println run as fast as python's

2012-03-30 Thread sean neilan
Hey All, I'm trying to print the numbers 0-99 as fast as possible. In python, this for i in range(99): print i runs super fast. In clojure, even with type hints, this is slow (def ^java.io.PrintWriter outoutout (java.io.PrintWriter. *out*)) ; yes, I know this one prints to infinity. I

Re: Howto make println run as fast as python's

2012-03-30 Thread Sean Neilan
Whoops! I'm sorry. I tried compiling my code into an uberjar and then ran (defn print2 [] (dotimes [n 99] (.println outoutout n))) from main It's very very fast!! Wow! On Thu, Mar 29, 2012 at 8:07 PM, sean neilan wrote: > Hey All, > > I'm trying to print the numbers 0-99 as fast as po