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/python-vs-clojure-evolving/ I tried the code in the lambda section and it gives a result that puzzle me. (filter even? (range 10)) compare to python : # evenp = (lambda n: (n % 2) == 0) # filter(evenp,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», continue for a while and stop before completing the sequence. It is also 10x slower compared to python, that manage to complete it successfully. On the other hand, clojure(java) don't take more than 160mo, while python grows to 640mo, but at least give the correct result. I search and readed the groups and I found that this effect happen quite often, and I don't really understand why and I find this behavior "scary". So I have these two questions: 1. Why does it happen? 2. As a beginner, will I have to deal with that kind of error as long as I won't understand the inner working of clojure? Like I would waste time on pointer management while developing with C! Francis -- 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 - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en