Re: 8214761: Bug in parallel Kahan summation implementation

2021-04-03 Thread Chris Dennis
Date: Saturday, April 3, 2021 at 2:35 PM To: Chris Dennis Cc: core-libs-dev Subject: Re: 8214761: Bug in parallel Kahan summation implementation Hey Chris, I don't know exactly what triggers removal of the "oca" and "oca-verify" labels. The only OCA entry for Chris Denn

Re: 8214761: Bug in parallel Kahan summation implementation

2021-04-03 Thread Chris Dennis
A gentle prod. Am I misunderstanding procedure here? From: Chris Dennis Date: Monday, March 22, 2021 at 2:28 PM To: core-libs-dev Subject: 8214761: Bug in parallel Kahan summation implementation I created a PR for 8214761: https://github.com/openjdk/jdk/pull/2988 - but have been stuck waiting

8214761: Bug in parallel Kahan summation implementation

2021-03-22 Thread Chris Dennis
I created a PR for 8214761: https://github.com/openjdk/jdk/pull/2988 - but have been stuck waiting on OCA signatory status to be confirmed. Did something get lost in the shuffle or do I just need to be more patient. Thanks, Chris

Re: RFR 8214761 : Bug in parallel Kahan summation implementation

2020-09-03 Thread Chris Dennis
dennis.0178d0f136e9, mixed mode, sharing) 1.0 + 1.1102230246251565E-16 => 1.0 DoubleStream.of(1.0, 1.1102230246251565E-16).sum() => 0. That's the sum of two positive doubles returning a result smaller than one of the two. Apologies for the zeal, Chris On 8/27/20, 10:52 AM, &

Re: RFR 8214761 : Bug in parallel Kahan summation implementation

2020-08-27 Thread Chris Dennis
Bump... I've run in to this while running tests that check computation results against the expected bounds of a Kahan summation. Any chance that this gets picked up in the near future? Thanks, Chris On 12/13/18, 6:16 PM, "core-libs-dev on behalf of Ivan Gerasimov" wrote: Gentle ping.

Re: RFR: jsr166 integration 2019-02

2019-02-27 Thread Chris Dennis
Hi All, Apologies for dredging up an older mail thread. I lurk and follow along with various JDK development threads and this 166 integration change jumped out at me. I have to confess although I understood the intent of the change and the explanation in the comments, like David I found it very

Re: Collectors.Characteristics.IDENTITY_FINISH Spec Clarification

2018-10-15 Thread Chris Dennis
Is there a more suitable mailing list for this kind of core-libs spec related enquiry to be directed at? Thanks, Chris > On Oct 9, 2018, at 10:48 AM, Chris Dennis wrote: > > I’m attempting to clarify the meaning/intent of the language in the > specification of the ide

Collectors.Characteristics.IDENTITY_FINISH Spec Clarification

2018-10-09 Thread Chris Dennis
.map(a -> (R) a) .orElse(Stream.empty().collect(collector)); } else { return streams.flatMap(identity()).collect(collector); } } Thoughts, opinions? Thanks, Chris Dennis

Re: RFR Re: [PATCH] 8178117: Add public state constructors for Int/Long/DoubleSummaryStatistics

2017-11-02 Thread Chris Dennis
Just to confirm this looks fine to me. From my point of view too much input validation would seem a little odd given that the implementation does nothing to protect itself from overflow in the first place. > On Nov 1, 2017, at 1:21 PM, Paul Sandoz wrote: > > >> On 31 Oct 2017, at 16:46, joe

Re: Confusion (or bugs) regarding the 'UNORDERED' Collector Characteristic

2017-11-02 Thread Chris Dennis
we consider the other collectors missing the unordered attirbute attribute to be a bug then, and get it fixed for 10? > On Nov 1, 2017, at 3:55 PM, Stuart Marks wrote: > > On 10/27/17 1:56 PM, Chris Dennis wrote: >> I’m very confused about what was intended with the ‘UNORD

Confusion (or bugs) regarding the 'UNORDERED' Collector Characteristic

2017-10-27 Thread Chris Dennis
Collectors.toSet(), which although it is explicitly marked as unordered seems like it really shouldn’t be. Whats going on here? Which parts of all this are intended and which (if any) are bugs? Thanks in advance for any enlightenment, Chris Dennis P.S. Coincidentally the unordered toSet

Re: [PATCH] 8178117: Add public state constructors for Int/Long/DoubleSummaryStatistics

2017-04-12 Thread Chris Dennis
internal state then this still works. > On Apr 12, 2017, at 12:27 PM, Peter Levart wrote: > > > > On 04/12/2017 04:41 PM, Peter Levart wrote: >> On 04/11/2017 10:48 PM, Chris Dennis wrote: >>> Color me confused… what would the javadoc on the parameter say? It could

Re: [PATCH] 8178117: Add public state constructors for Int/Long/DoubleSummaryStatistics

2017-04-11 Thread Chris Dennis
gumentException.class, () -> new DoubleSummaryStatistics(-1, 0, 0, 0)); + expectThrows(IllegalArgumentException.class, () -> new DoubleSummaryStatistics(1, 3, 2, 0)); } } > On Apr 11, 2017, at 4:48 PM, Chris Dennis wrote: > > Color me confused… what would the javadoc on

Re: [PATCH] 8178117: Add public state constructors for Int/Long/DoubleSummaryStatistics

2017-04-11 Thread Chris Dennis
unt * max >= sum, count * min <= sum, >> cannot be reliably enforced due to overflow i am inclined to not bother and >> just document. >> >> >> Note this is gonna be blocked from pushing until the new Compatibility and >> Specification Review (CSR) proces

Re: [PATCH] 8178117: Add public state constructors for Int/Long/DoubleSummaryStatistics

2017-04-06 Thread Chris Dennis
ent (in what I presume was an attachment) is > missing. I believe the OpenJDK mailing list servers intentionally strip out > attachments in all emails, which seems to be at odds with the advice given in > http://openjdk.java.net/contribute/. (Either the contribution advice or the &g

[PATCH] 8178117: Add public state constructors for Int/Long/DoubleSummaryStatistics

2017-04-06 Thread Chris Dennis
Hi Paul (et al) Like all things API there are wrinkles here when it comes to implementing. This patch isn’t final, there appears to be no existing test coverage for these classes beyond testing the compensating summation used in the double implementation, and I left off adding any until it was

Re: Java 9 and IntSummaryStatistics et al.

2017-04-05 Thread Chris Dennis
I can do that. I’ve done this before a couple of times, so it should be reasonably familiar. Will attempt to whip something up in the next couple of days. Thanks, Chris > On Apr 5, 2017, at 12:30 PM, Paul Sandoz wrote: > > Hi Chris, > > I logged this issue: > > https://bugs.openjdk.java.n

Re: Java 9 and IntSummaryStatistics et al.

2017-04-05 Thread Chris Dennis
0/2017 03:14 PM, Chris Dennis wrote: >> This is indeed nice… but I presume that we all agree that the best solution >> here would be to allow instantiation of an IntSummaryStatistics object in a >> specific state. > > Of course. I just couldn't resist the challenge of

Re: Java 9 and IntSummaryStatistics et al.

2017-03-30 Thread Chris Dennis
This is indeed nice… but I presume that we all agree that the best solution here would be to allow instantiation of an IntSummaryStatistics object in a specific state. > On Mar 29, 2017, at 2:43 PM, Peter Levart wrote: > > > > On 03/29/2017 06:06 PM, Chris Dennis wrote: &g

Re: Java 9 and IntSummaryStatistics et al.

2017-03-29 Thread Chris Dennis
Stream.summaryStatistics() is implemented as follows: > > public final IntSummaryStatistics summaryStatistics() { > return collect(IntSummaryStatistics::new, IntSummaryStatistics::accept, > IntSummaryStatistics::combine); > } > > Paul. > >> Rémi >&

Java 9 and IntSummaryStatistics et al.

2017-03-28 Thread Chris Dennis
which events are pushed is going to hit this problem - a simple example would be any kind of calculation being performed in advance of stream creation. Right now the lack of interface decoupling here means I have no choice but to ‘brute-force’ all these calculations. Thanks, Chris Dennis

JDK 9 ServiceLoader bug

2017-03-16 Thread Chris Dennis
that this is not necessarily the class loader from which the file was actually loaded.” This will obviously cause confusion for anyone using the ServiceLoader to load singleton services who is not currently in total control of their classpath. Dependencies that are both present and shaded would cause a problem for example. Thanks, Chris Dennis