Re: Newbie suggestion for an implementation - rosettacode pythagorean means

2010-02-25 Thread Aviad Reich
) > > (defn h-mean [coll] ;; Michael Kohl's function > (/ (count coll) (reduce + (map / coll)))) > > > > > On Feb 25, 9:07 am, Aviad Reich wrote: > > here is the final version of the implementation. > http://gist.github.com/313558 > > > > again, any t

Re: Newbie suggestion for an implementation - rosettacode pythagorean means

2010-02-25 Thread Aviad Reich
here is the final version of the implementation. http://gist.github.com/313558 again, any thought would be great. Aviad. On 22 February 2010 22:11, Aviad Reich wrote: > I don't mean to signal the end of this thread, but I just wanted to thank > you all for you replies. > I w

Re: Newbie suggestion for an implementation - rosettacode pythagorean means

2010-02-22 Thread Aviad Reich
I don't mean to signal the end of this thread, but I just wanted to thank you all for you replies. I will update the draft (and add Colin and Mikel's infinite seq code as well) possible in a day or two (no at home till then), and post the new code before posting to Rosetta. Cheers, Aviad On 22 F

Newbie suggestion for an implementation - rosettacode pythagorean means

2010-02-21 Thread Aviad Reich
Hi everyone, being a newb to clojure, my ability to contribute to is still limited. However, I thought I'll try starting with something simple. http://rosettacode.org/wiki/Averages/Pythagorean_means seems straightforward enough, but since it's a comparative site, and implementations should be as

Re: newbie encountering java.lang.OutOfMemoryError: Java heap space

2010-02-10 Thread Aviad Reich
ld be missing something. > > (William Hidden) > > > On Feb 10, 10:13 am, Aviad Reich wrote: > > thank you. > > I have "-server" and "-Xmx1024m" set in my 'swank-clojure-extra-vm-args, > but > > the problem remains. > > > > A

Re: newbie encountering java.lang.OutOfMemoryError: Java heap space

2010-02-10 Thread Aviad Reich
אביעד On 10 February 2010 19:54, Aviad Reich wrote: > Thank you all! > > your advice were indeed very helpful! > > I eventually solved it using memoization. and indeed keeping only 3 values > in memory. > (http://clojure-euler.wikispaces.com/Problem+014 - lxmonk, i

Re: newbie encountering java.lang.OutOfMemoryError: Java heap space

2010-02-10 Thread Aviad Reich
ealing with a problems that involve a > lot of memory. > > - Greg > > On Feb 10, 2010, at 10:13 AM, Aviad Reich wrote: > > thank you. > I have "-server" and "-Xmx1024m" set in my 'swank-clojure-extra-vm-args, > but the problem remains. > > Av

Re: newbie encountering java.lang.OutOfMemoryError: Java heap space

2010-02-10 Thread Aviad Reich
thank you. I have "-server" and "-Xmx1024m" set in my 'swank-clojure-extra-vm-args, but the problem remains. Aviad On 10 February 2010 15:57, Joop Kiefte wrote: > (Disclaimer: never tried myself) > http://hausheer.osola.com/docs/5 > > 2010/2/10 Aviad R > > Hi all. >> >> I'm trying to learn c