Re: Closures eat permgen?

2010-11-18 Thread Matt Fowles
Ken~ The CMS settings are best for low latency applications or applications that want more predictable pause times. They can cause a drop in throughput for scientific computing or for Extract-Transform-Load style programs. CMS is not the default for historical reasons. The permgen sweeping is

Re: Closures eat permgen?

2010-11-17 Thread Matt Fowles
that these settings are very good defaults for high performance systems. Matt On Wed, Nov 17, 2010 at 10:37 PM, Ken Wesson kwess...@gmail.com wrote: On Wed, Nov 17, 2010 at 10:12 PM, Matt Fowles matt.fow...@gmail.com wrote: Ken~ Not sure what jvm args you are running with, but not all GC

Re: how to pass lazy seq to function for processing without keeping the head?

2010-10-27 Thread Matt Fowles
rb~ I believe that local variables are nulled after their last usage to prevent exactly this behavior. In fact, you can find code like: Object dummy(Object o, Object dummy) { return o; } call_stuff(dummy(var, var = null)); In the Clojure source to accomplish this. Matt On Wed, Oct 27, 2010

Re: precise numbers

2010-10-13 Thread Matt Fowles
Felix~ You are correct that the sequence of numbers 0.9 0.99 0.999 ... asymptotically approaches 1; however, the number 0.... (with an infinite number of 9s) is equal to 1. The formal proof of this is fairly tricky as the definition of the real number is usually done as an equivalence

Re: Is it possible in theory to write/modify a Clojure compiler that doesn't

2010-08-30 Thread Matt Fowles
All~ There was a presentation at the JVM language summit about this exact topic. http://wiki.jvmlangsummit.com/Mixed_language_project_compilation_in_Eclipse:_Java_and_Groovy http://wiki.jvmlangsummit.com/Mixed_language_project_compilation_in_Eclipse:_Java_and_GroovyIn fact, the person was

Re: Today's clojure trick question

2010-08-19 Thread Matt Fowles
PM, Armando Blancas armando_blan...@yahoo.comwrote: I don't see what the concern may be. Can you elaborate? On Aug 18, 10:04 am, Matt Fowles matt.fow...@gmail.com wrote: All~ Boolean.valueOf() was added in 1.4. While that seems ancient, some older libraries use 'new Boolean()' because

Re: Today's clojure trick question

2010-08-18 Thread Matt Fowles
All~ Boolean.valueOf() was added in 1.4. While that seems ancient, some older libraries use 'new Boolean()' because they maintain 1.2 compatibility. It seems like Clojure should take more care when it unboxes Booleans... Matt On Wed, Aug 18, 2010 at 12:57 PM, Nicolas Oury

Re: Generics in PersistentXXX classes

2010-08-04 Thread Matt Fowles
Alex~ There is a project on github that does exactly this. http://github.com/krukow/clj-ds I don't know much about the current state of it, but I have plans in the next month or so to try it out at work. http://github.com/krukow/clj-dsMatt On Wed, Aug 4, 2010 at 6:10 AM, Alex Tkachman

Re: starting and getting the most out of concurrent processes

2010-08-04 Thread Matt Fowles
Lee~ Doug Lea (of java.util.Concurrent fame) designed a framework called Fork/Join which is made to separate the idea of work from threads so that things can be parallelized out as much as possible. I don't know clojure that well, but would guess that it has some support for it and that you