Re: Clojure 1.3 head holding bug

2011-11-28 Thread Juha Arpiainen
e 0))) since the multi-argument version of trampoline doesn't appear to use ^:once. -- Juha Arpiainen -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from ne

Re: Type hinting inconsistencies in 1.3.0

2011-05-12 Thread Juha Arpiainen
and IFn, then (Foo/bar foo) resolves to the wrong version. -- Juha Arpiainen -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - ple

Re: Recreate a hierarchy

2011-05-05 Thread Juha Arpiainen
op" "level" "file2"] ["top" "level2" "file3"]]) => {"top" {"level2" ["file3"], "level" ["file1" "file2"]}} -- Juha Arpiainen On May 5, 3:40 pm, Steffen wrote: > Hello, > > I&#

Re: Converting from 1.2 to 1.3-alpha3

2010-11-19 Thread Juha Arpiainen
g and double primitives as local variables. But the bug doesn't seem to be new. I get the same error if I try to assign an int into a long deftype field in 1.2. -- Juha Arpiainen -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post

Re: Find all ties in a sorted list

2010-11-10 Thread Juha Arpiainen
On Nov 10, 10:28 pm, David Jacobs wrote: > I have a sorted list, and I'd like to derive from that a list > containing all "ties" in the original. One more solution assuming input is sorted: (defn seq-ties [coll] (mapcat #(cons (first %) %) (keep next (partition-by ident

Re: The Genuine Sieve of Eratosthenes

2010-11-06 Thread Juha Arpiainen
On Nov 6, 7:57 pm, Ken Wesson wrote: > Here's a Clojure sieve that works fine up to at least 50 > million and is reasonably fast (though the same algorithm implemented > in Java is 10x faster even with the type hints and primitive > arithmetic in the Clojure; not sure why). > > (defn primes-to [n]

ANN: A clojure port of the compiler

2010-10-26 Thread Juha Arpiainen
some information about bootstrapping is at http://subluminal.org/cljc . Included also is a bytecode assembler/disassembler and a binary format parser/writer library. -- Juha Arpiainen jarpi...@iki.fi -- You received this message because you are subscribed to the Google Groups "Clojure" gr