Re: primitive meta data

2008-10-15 Thread Islon
Thanks for the advices. The unchecked version run as fast as java. Before I go solve some interesting problem I have to learn the language ;) Thanks anyway. On Wed, Oct 15, 2008 at 12:04 PM, Chouser <[EMAIL PROTECTED]> wrote: > > On Wed, Oct 15, 2008 at 7:08 AM, Parth Malwankar > <[EMAIL PROTECTE

Re: primitive meta data

2008-10-15 Thread Rich Hickey
On Oct 15, 11:04 am, Chouser <[EMAIL PROTECTED]> wrote: > On Wed, Oct 15, 2008 at 7:08 AM, Parth Malwankar > > <[EMAIL PROTECTED]> wrote: > > > On Oct 15, 8:34 am, Islon <[EMAIL PROTECTED]> wrote: > > >> (defn dumb-test [] > >> (let [#^Float f2 567.09723] > >> (loop [#^Float f 1.8, i 1

Re: primitive meta data

2008-10-15 Thread Chouser
On Wed, Oct 15, 2008 at 7:08 AM, Parth Malwankar <[EMAIL PROTECTED]> wrote: > > On Oct 15, 8:34 am, Islon <[EMAIL PROTECTED]> wrote: >> >> (defn dumb-test [] >> (let [#^Float f2 567.09723] >> (loop [#^Float f 1.8, i 1000] >> (if (zero? i) >> f >> (recur (/ f f2) (de

Re: primitive meta data

2008-10-15 Thread Parth Malwankar
On Oct 15, 8:34 am, Islon <[EMAIL PROTECTED]> wrote: > Hi. > > I've made a dumb (very dumb) performance comparison function just to play > with the language. > I wanted to mark some symbols with a float primitive type but the compiler > complained so I had to annotate it with the Float class. >

primitive meta data

2008-10-15 Thread Islon
Hi. I've made a dumb (very dumb) performance comparison function just to play with the language. I wanted to mark some symbols with a float primitive type but the compiler complained so I had to annotate it with the Float class. Here is the function: (defn dumb-test [] (let [#^Float f2 567.0972