Live data from Hacker News

Java 25 officially released

mail.openjdk.org

41–50 of 260 posts

Re: Java 25 officially released

#41

Earlier quoted context omitted.

Is Swing good now? Usually when people say Java is good now I assume they're not talking about Swing.

No, swing is pretty out of fashion if not deprecated. I know it pretty well, but still wouldn't choose it if starting a new project today. I'd use Qt, though if you're not comfortable with C++ I've been told JavaFX is pretty good

Swing is standard part of JDK, there is nothing deprecated, it even got a Metal backend.

Re: Java 25 officially released

#42
post #39

More new programs should be written in Java/on the JVM. Most of the reasons Java dropped out of popularity no longer apply, and at this point it is an incredibly stable and mature ecosystem. I can come back to a Clojure program I wrote ten years ago and it runs great , meanwhile a TypeScript program I write 6 months ago requires a bunch of updating and cleanup.

In the circles I see, Java isn't popular because it's verbose and boring to use.

These days I don't see those as significant issues, tbh.

I would prefer a Clojure program, but I'll take Java over Typescript at this point.

Re: Java 25 officially released

#43

recently pulled the trigger on a migration out of jdk8 we decided to bite the bullet and do 21 instead of 17; one of the reasons being 25 being just around the corner. as far as i can tell, the biggest hurdle is 8 to 11 (with the new modules system); but it's smooth sailing from there. the proof-of-concept was done with jdk17, but it worked as-is with jdk21 (except guice which needed a major version bump). (of course…

For us 8 to 17 was tough due to a lot of things you weren’t supposed to be using going away (sun packages). But TONS of libraries did it anyway. And the move from javax to jakarta for a lot of things in there was also tough.

If you could get through that, you’re golden. From what I’ve seen going to 21 or 25 look easy. They’re just adding features, the big upheavals of doing the long needed cleanup are over.

I expect keeping up to date to be far easier from now on.

Re: Java 25 officially released

#44

recently pulled the trigger on a migration out of jdk8 we decided to bite the bullet and do 21 instead of 17; one of the reasons being 25 being just around the corner. as far as i can tell, the biggest hurdle is 8 to 11 (with the new modules system); but it's smooth sailing from there. the proof-of-concept was done with jdk17, but it worked as-is with jdk21 (except guice which needed a major version bump). (of course…

Yeah, Java 9 was the Python 3 moment of the ecosystem, however it has been sorted out for ages.

Re: Java 25 officially released

#45
post #11

What is the current situation of using Java (from legal standpoint)? In open source and in commercial setting? Oracle has a lot of fantastic technology locked up in Java (things like Truffle), how reasonable it is for new projects?

OpenJDK is pretty much open and straight from Oracle.

If you don't like Oracle (and I wouldn't blame you), there are alternatives from parties ranging from the Eclipse Foundation to Microsoft and Amazon that will do the same thing.

As for new projects, Java is here to stay. It's longevity is part of why companies are still using Java 8/11; once you write it, it'll run pretty much forever.

The language lags behind in terms of features compared to pretty much any competitor, but it's functional enough to get anything important done.

I'd personally go Kotlin if you were to rely on the JVM (almost entirely because Java still lacks nullable types which means nullpointerexceptions are _everywhere_) or C# if you don't like the Kotlin syntax, but Java is Good Enough.

Re: Java 25 officially released

#46
post #39

More new programs should be written in Java/on the JVM. Most of the reasons Java dropped out of popularity no longer apply, and at this point it is an incredibly stable and mature ecosystem. I can come back to a Clojure program I wrote ten years ago and it runs great , meanwhile a TypeScript program I write 6 months ago requires a bunch of updating and cleanup.

It is probably more related to people replacing multithreaded services with single-threaded workers.

Re: Java 25 officially released

#47
post #39

More new programs should be written in Java/on the JVM. Most of the reasons Java dropped out of popularity no longer apply, and at this point it is an incredibly stable and mature ecosystem. I can come back to a Clojure program I wrote ten years ago and it runs great , meanwhile a TypeScript program I write 6 months ago requires a bunch of updating and cleanup.

I'm secretly hoping that Kotlin and Compose will bring back Desktop apps on the JVM :-).

Re: Java 25 officially released

#48
post #34
post #5

Java has been such an amazingly solid technological foundation... and for a long, long time! It may not be the most sexy language but it's been a stable one. We have applications created with Java 1.4 running happily on Java 21 LTS and expect to upgrade to this latest LTS (Java 25) soon. Java for the win!

The JVM and its ecosystem can be used from other languages too like Scala which has all the sexy stuff, also clojure et al

And Kotlin!
Post reply on HN