News for hackers. Stuff that matters.
Re:Rating 26 years of Java changes by stirfish on Sunday October 12, 2025 @12:50AM (#45555324)
You've never used parallel streams? They're my favorite way to do parallel computation in Java, and very easy if you've structured your problem around streams.
Re:Rating 26 years of Java changes by vbezhenar on Monday October 13, 2025 @05:12AM (#45566357)
Code with parallel streams wouldn't even pass my review. The server processes multiple requests simultaneously. It makes no sense to smash all cores in one request. It'll cause bad latency for other requests and will not increase throughput.

There might be use-cases, but I've yet to encounter them.

And when I need parallel computation, I can just use good old ExecutorService. Few more lines, but that's OK for a task that arises once in a 10 years.