r/programming • • Sep 15 '20

Java 15 released!

https://jdk.java.net/15/
214 Upvotes

130 comments sorted by

View all comments

44

u/BoyRobot777 Sep 15 '20 edited Sep 15 '20

12

u/BoyRobot777 Sep 15 '20

Also, records with withers will be quite nice.

24

u/MrDOS Sep 15 '20

381: Remove the Solaris and SPARC Ports

Not with a bang, but with a whimper. RIP.

6

u/[deleted] Sep 16 '20

Somewhere there is someone who is running Solaris in QEMU to keep a legacy Java application with arcane dependencies running. Now the person is solemnly weeping.

1

u/DoListening2 Sep 15 '20 edited Sep 15 '20

Reminds me a bit of immer https://immerjs.github.io/immer/docs/introduction from the JS world, which is pretty nice to use in practice.

Although this doesn't seem to address deep/nested updates in any way (those aren't nearly as important though), so I guess it's more akin to the JS pattern of doing

const newObject = { ...oldObject, field: value, field2: value2 }

in that sense.

3

u/caninerosie Sep 16 '20

what's the difference between Shenandoah and ZGC?

3

u/[deleted] Sep 16 '20

They're both after the same goal of GC without large stop the world pauses, but they have different implementations. Anecdotally I've heard Shenandoah is supposed to be better, we've tried with ZGC a little bit but CPU went through the roof.

5

u/renatoathaydes Sep 15 '20

Didn't Project Loom's preview make the cut?

12

u/TheCountRushmore Sep 15 '20

Nope. Not ready for a preview yet. There are EA builds.

https://jdk.java.net/loom/

5

u/BoyRobot777 Sep 15 '20

Add to what TheCountRushmore said, Ron, lead of Loom project, has stated that:

Loom has been in the works for three years, and I believe you won't need to wait for Preview too long.

Source