Originally posted by mcloud
View Post
Announcement
Collapse
No announcement yet.
Java 21 / JDK 21 Reaches GA With Virtual Threads, Generational ZGC
Collapse
X
-
Originally posted by bug77 View Post
Well, the world kinda removed SOAP, too, so removing it from core Java was definitely the right thing to do.
If you worry about deployment, you have jlink.
Leave a comment:
-
Do benchmarks against. Oracle java, you will fund out that OpenJDK is trash
Leave a comment:
-
As far as migrating Java versions forward, at a previous job we had many thousands of tests that depended on a floating point rounding bug in Java 7. Of course we didn't know about the bug dependency until we tried to upgrade to 8 and got a wall of red in local builds and continuous integration tests. That took a few months of tedious work to fix.
I think a bigger problem is that a lot of aspect-oriented-programming/bytecode-enhancement libraries have specific dependencies to JDK versions. So you try to upgrade library Foo, and you discover it depends on Bar, and Bar depends on Baz, and Baz does bytecode manipulation and is locked to JDK version X or older. So you upgrade Foo to get a newer version of Baz, and it turns out that the new version of Foo has API changes. You and your teammates all know that eventually moving to a newer JDK version will pay for itself in the dual wins of improved runtime efficiency and more readable and maintainable code. And the sooner you can get to Lambdas/Streams/Records/better case statements/green threads/etc... the less code you'll need to rewrite later.
But selling your manager and the product team on the investment to upgrade Foo so you can upgrade your JDK? Good luck with that. They're not paid to care about an impossible to hard-quantify productivity boost in six months that will give even greater but still impossible to quantify boosts next year. Their performance is measured based on delivering features to customers this quarter.
Leave a comment:
-
Originally posted by deck View PostMy experience has been the opposite, following the JDK upgrade path hit some challenges when upgrading to JDK 9 and JDK 17, but every other version upgrade has been completely painless. Conversely, upgrades with major versions of Python (especially Python2 to Python3) was really painful. For me, the Python upgrades hit compatibility issues both within Python space and within OS space, and trying to run Python2 and Python3 at the same time was a complete disaster.
Leave a comment:
-
Originally posted by luizluca View Post
It is a shame that the Smalltalk team that built Java didn't influence java collections enough since the beginning. The collections in Smalltalk are still ahead of most, if not all, current languages.
Java also still lags behind on expressivity. That's also another Smalltalk characteristic that could make java a much nicer language. What you could write in a couple of lines in Smalltalk will take pages with Java.
Leave a comment:
-
Originally posted by NotMine999 View Post
Seems just as complicated as C++ yet it makes C look rather simple ... almost BASIC.
Leave a comment:
-
Originally posted by jayv View PostHave you tried to read the manual and find the command line args to very likely make your ancient unsupported apps run on a modern JVM? .Code:--add-export=java.desktop/sun.awt.image=ALL-UNNAMED
Leave a comment:
-
Java 21 introduces the notion of sequenced collections
Java also still lags behind on expressivity. That's also another Smalltalk characteristic that could make java a much nicer language. What you could write in a couple of lines in Smalltalk will take pages with Java.
- Likes 2
Leave a comment:
Leave a comment: