Java 26 Is Here, And With It a Solid Foundation for the Future

26 points by ubernostrum


e3bc54b2

I was really hoping for Structured Concurrency to stabilize, but I guess they want to take their time because this will be how everyone ends up adding cheap concurrency in future.

All in all, Java releases are really cool these days. Solid back-compat, and unlike Go the language is very expressive.

hongminhee

Not a Java person historically, but I keep finding myself nodding at these release posts lately. The language is getting the features it needed without the kind of churn that makes you feel like you're chasing a moving target. I'm at the point of wondering whether I'd actually miss Kotlin if I just used Java 26 for something. Though I suspect I'd find reasons to complain the moment I sat down to write real code.

xnacly

Calling

var client = HttpClient.newHttpClient();
var request = HttpRequest.newBuilder(URI.create("https://hanno.codes")).GET().build();
var response = client.send(request, HttpResponse.BodyHandlers.ofString());

Easy to use is crazy to me, this API is everything BUT easy to use

kraxen72

in general, looks pretty good. happy about more pattern-matching stuff. however, it's just so java to name a thing newVirtualThreadPerTaskExecutor lol.