Re: Incorrect behaviour for large s-expressions :(

2010-11-14 Thread Robert McIntyre
9992 9993 9994 9995 9996 9997 9998 1) Then you get the same error :( Are we really OK with having a 30 year old (Common Lisp/Lisp Machine) that operates at megahertz speeds do better than (clojure/JVM) here? --Robert McIntyre On Sun, Nov 14, 2010 at 3:36 AM, Mike Meyer m...@mired.org

Re: Incorrect behaviour for large s-expressions :(

2010-11-14 Thread Robert McIntyre
generated code, you would instead have to do something like a tree of function calls, so It may be worth increasing the limit for for the sake of enabling machine generated code. What are you peoples' thoughts on this? --Robert McIntyre On Sun, Nov 14, 2010 at 12:54 PM, Mike Meyer mwm-keyword

Re: fastest way to remove nils

2010-11-17 Thread Robert McIntyre
So, just to be clear, user (def nil-seq (doall (interleave (repeat 1e5 nil) (repeat 1e5 whatever))) ) #'user/nil-seq user (time (doall (keep identity nil-seq))) Elapsed time: 122.485848 msecs user (time (doall (remove nil? nil-seq))) Elapsed time: 149.71484 msecs --Robert McIntyre On Wed

Re: a macro to debug the let form

2010-11-27 Thread Robert McIntyre
cool! Although I think with-seperator should be spelled with-separator --Robert McIntyre On Thu, Nov 25, 2010 at 9:13 AM, Sunil S Nandihalli sunil.nandiha...@gmail.com wrote: I just tried to re-write with-seperator without using the symbol-macros from macro-utils and it seems to work fine

Re: Ring startup processing?

2010-11-30 Thread Robert McIntyre
.) result (atom sentinel) reset-fn (fn [] (reset! result sentinel) nil) has-run? #(not= @result sentinel)] [has-run? reset-fn (fn [ args] (locking sentinel (if (= @result sentinel) (reset! result (function)) @result)))])) --Robert

<    1   2