Re: newbie python/clojure and java.lang.OutOfMemoryError: Java heap space

2010-01-30 Thread Alex Osborne
Francis Lavoie writes: > (filter even? (range 10)) > > What's puzzle me is that past at certain number (10 millions), clojure > chocks and throw a «java.lang.OutOfMemoryError: Java heap space», > 1. Why does it happen? The JVM puts a limit on the amount of memory that can be used. This is usual

Re: newbie python/clojure and java.lang.OutOfMemoryError: Java heap space

2010-01-28 Thread Richard Newman
What's puzzle me is that past at certain number (10 millions), clojure chocks and throw a «java.lang.OutOfMemoryError: Java heap space», continue for a while and stop before completing the sequence. The JVM puts a limit on the amount of memory that will be allocated. Try adding -Xmx512m to you

newbie python/clojure and java.lang.OutOfMemoryError: Java heap space

2010-01-28 Thread Francis Lavoie
Hi, I've read about clojure and I think it looks great. So I doing some reading about it - in hope I could use it. My programming background is more with python(mostly) and C++. I found that blog post that make a comparison between python and clojure. http://www.bestinclass.dk/index.php/2009/10/p