Re: RFR: CR#8004561 : Additional Functional Interfaces and Updates

2012-12-26 Thread Ismael Juma
Peter Levart writes: > I see that (given Function f, g), f.compose(g) means: f⨟g, rather than > f∘g. Would mathematicians complain? For what it's worth, Scala has "andThen" for "f;g" and "compose" for "f∘g". Best, Ismael

Re: JDK 8 code review request for 7075098: Remove unused fdlibm files

2011-08-08 Thread Ismael Juma
Joe Darcy writes: > One of my long-term goals is to finish the > small matter of programming [2] to port FDLIBM from C to Java, which > would immunize the JDK from this class of problem. In case people are not aware, FastMath from Apache commons-math is a pure Java implementation: http://svn.a

Re: Fix for JDK Double.parseDouble infinite loop

2011-02-03 Thread Ismael Juma
Ismael Juma writes: > Also see (filed more than a year ago): > > https://bugs.openjdk.java.net/show_bug.cgi?id=100119 Oops, some of the newer messages were not visible on my reader for some reason. Sorry for the noise. Ismael

Re: Fix for JDK Double.parseDouble infinite loop

2011-02-03 Thread Ismael Juma
Andrew Haley writes: > The post on > http://www.exploringbinary.com/java-hangs-when-converting-2-2250738585072012e- 308/ Also see (filed more than a year ago): https://bugs.openjdk.java.net/show_bug.cgi?id=100119 Best, Ismael

java.lang.reflect.Array.get/set performance

2010-09-10 Thread Ismael Juma
Hey all, The approach used for Arrays in Scala was changed in 2.8 and initially java.lang.reflect.Array.get/set was used in certain cases. That was changed at the end of last year[1] after it was pointed out that the performance of those methods was less than desirable[2]. The interesting conc

Re: Are the faster versions of HashMap and BigInteger going into jdk7?

2009-10-23 Thread Ismael Juma
Hi Paulo, Paulo Levi writes: > http://www.mail-archive.com/core-libs-dev-0nJqbsLSQw0FDOXUYO6UHQ public.gmane.org/msg02147.html >From the email you mention: "I'm not convinced that they are enough better to commit." To me that sounds like it's not going in at all. Ismael

Re: Replacement of Quicksort in java.util.Arrays with Dual-Pivot Quicksort

2009-09-18 Thread Ismael Juma
Hey Vladimir, Vladimir Yaroslavskiy writes: > You are right, the arrays were different: int array was 2'000'000 > and Integer array was 200'000 (and test was run 50 times) - if I > remember correctly. Great, that makes sense. > Now I've run test on the same length 2'000'000 arrays 50 times, >

Re: Replacement of Quicksort in java.util.Arrays with Dual-Pivot

2009-09-17 Thread Ismael Juma
Hi Vladimir, Vladimir Yaroslavskiy writes: >random 01 random 01 > dpq: 1431 dpq: 8017 > tim: 11495 tim: 2717 > jdk: 1552 jdk: 8547 Is the size of the int array different than the size of the j.l.Integer array? I ask because I would be surprised if timso

Re: What methods should go into a java.util.Objects class in JDK 7?

2009-09-09 Thread Ismael Juma
Joe Darcy writes: > A static hashCode method returning 0 for null and the value of > arg.hashCode() has also been suggested. > > A set of > > static int compareTo(int, int) > static int compareTo(long, long) > > > methods probably belongs somewhere in the platform too. Althou

Re: Faster HashMap implementation

2009-07-24 Thread Ismael Juma
Hi Doug, Doug Lea writes: > On further evaluating it (among other possible HashMap replacements), > I'm not convinced that they are enough better to commit. That's a shame. What about that idea of having a factory method that would take a Class object and return an appropriate Map implementation

Re: Faster HashMap implementation

2009-07-02 Thread Ismael Juma
Hi Doug, In a previous message you said: "There are a few remaining things to consider before taking this too seriously as a replacement. I'll be out for 10 days starting tomorrow so probably won't get a chance to do so soon." I now understand the secret behind your productivity levels... someho

Re: Faster HashMap implementation

2009-06-13 Thread Ismael Juma
Hi Doug, Doug Lea writes: > While open-addressing is used in > IdentityHashMap (and in a very specialized form in > ThreadLocal), you cannot live with linear-probed > versions otherwise: Many user-defined hashCodes > (and some JDK-defined ones too!) are not very good. Out of curiosity, do you kn

Re: HashMap implementations and Integer specializations

2008-06-08 Thread Ismael Juma
Martin Buchholz <[EMAIL PROTECTED]> writes: > I was surprised to discover a discussion of > HashMap optimization at the JavaOne talk > http://developers.sun.com/learning/javaoneonline/2008/pdf/TS-6434.pdf > > Did I miss an announcement of that? I noticed a commit related to that a few weeks ago[1