Re: [External] : Re: Fw: New candidate JEP: 485: Stream Gatherers

2024-10-16 Thread Viktor Klang
til/stream/ops/ref> JDK main-line development https://openjdk.org/projects/jdk - openjdk/jdk github.com Cheers, √ Viktor Klang Software Architect, Java Platform Group Oracle From: Cay Horstmann Sent: Tuesday, 15 October 2024 20:19 To: Viktor Klang ; core-li

Re: [External] : Re: Fw: New candidate JEP: 485: Stream Gatherers

2024-10-15 Thread Cay Horstmann
Thanks Viktor, I like your concept of multiple vantage points a lot. Implementor: "use ofGreedy to signal that this operation does not itself initiate short-circuiting" Reviewer: "when you see ofGreedy verify that this operation does not itself initiate short-circuiting" Debugger: "when the ex

Re: Fw: New candidate JEP: 485: Stream Gatherers

2024-10-15 Thread Cay Horstmann
Hi Viktor, thanks again for sharing your design decisions. I agree this is a minor matter because not many programmers will implement gatherers. Let me try to explain my confusion. On 15/10/2024 13:46, Viktor Klang wrote: Making of() the short-name is because it is more capable than ofGreedy(

Re: [External] : Re: Fw: New candidate JEP: 485: Stream Gatherers

2024-10-15 Thread Viktor Klang
have the scars to prove it. 🙂 >3. Here we have two different mechanisms for what streams and collectors >address with a simple and unified approach: flags. I guess it bears repeating: Please see the discussion around why Characteristics didn't make it. 🙂 >I don't stron

Re: Fw: New candidate JEP: 485: Stream Gatherers

2024-10-15 Thread Viktor Klang
atherers will by far outnumber definition of Gatherers, so appropriate emphasis needs to be placed on usage ergonomics, capabilities, and runtime performance. Cheers, √ Viktor Klang Software Architect, Java Platform Group Oracle ____ From: core-libs-dev on behalf

Re: Fw: New candidate JEP: 485: Stream Gatherers

2024-10-14 Thread Cay Horstmann
re Architect, Java Platform Group Oracle ________________ From: jdk-dev on behalf of Cay Horstmann Sent: Friday, 4 October 2024 19:58 To: jdk-dev at openjdk.org Subject: Re: New candidate JEP: 485: Stream Gatherers Hi, I have some belated questions about the des

Fw: New candidate JEP: 485: Stream Gatherers

2024-10-07 Thread Viktor Klang
acle From: jdk-dev on behalf of Cay Horstmann Sent: Friday, 4 October 2024 19:58 To: jdk-...@openjdk.org Subject: Re: New candidate JEP: 485: Stream Gatherers Hi, I have some belated questions about the design choices in this API that I could not find addres

Re: New candidate JEP: 485: Stream Gatherers

2024-09-20 Thread David Alayachew
Nope. Just bring up your experiences with the feature, and if it's valuable enough, they will add it. One good example is Stream::multiMap. Stream came out in Java 8, but that feature came out in Java 16. So, the best thing to focus on is just reporting your experiences as they occur. On Wed, Sep

Re: [External] : Re: New candidate JEP: 485: Stream Gatherers

2024-09-18 Thread Viktor Klang
heers, √ Viktor Klang Software Architect, Java Platform Group Oracle From: Olexandr Rotan Sent: Wednesday, 18 September 2024 14:12 To: David Alayachew Cc: core-libs-dev@openjdk.org ; Viktor Klang ; jdk-...@openjdk.org Subject: [External] : Re: New candidate JEP

Re: New candidate JEP: 485: Stream Gatherers

2024-09-18 Thread Olexandr Rotan
Is in-built gatherers list finalized? I was thinking that Gatherers::uniqueBy(Function) could be very popular among stream users, although it is fairly easy to implement yourself (as well as bunch of currently in-built ones though) On Tue, Sep 3, 2024, 00:59 David Alayachew wrote: > Thanks. Glad

Re: [External] : Re: New candidate JEP: 485: Stream Gatherers

2024-09-18 Thread Viktor Klang
Thanks David! Cheers, √ Viktor Klang Software Architect, Java Platform Group Oracle From: David Alayachew Sent: Monday, 2 September 2024 23:58 To: core-libs-dev@openjdk.org Cc: Viktor Klang ; jdk-...@openjdk.org Subject: [External] : Re: New candidate JEP

Re: New candidate JEP: 485: Stream Gatherers

2024-09-02 Thread David Alayachew
Thanks. Glad to see this finally land. That slidingWindow and other related functions are extremely powerful. On Mon, Sep 2, 2024 at 3:13 PM Mark Reinhold wrote: > https://openjdk.org/jeps/485 > > Summary: Enhance the Stream API to support custom intermediate > operations. This will allow s

New candidate JEP: 485: Stream Gatherers

2024-09-02 Thread Mark Reinhold
https://openjdk.org/jeps/485 Summary: Enhance the Stream API to support custom intermediate operations. This will allow stream pipelines to transform data in ways that are not easily achievable with the existing built-in intermediate operations. - Mark