Live data from Hacker News

Java 16

jdk.java.net

21–30 of 327 posts

Re: Java 16

#21
post #12

Very cool to see that Scala continues to have a huge impact on Java’s roadmap. Records and Sealed Classes are borrowed from Scala. Could be not the best news for new Scala adoption, but good news for developers having better abstractions in Java Edit: Kotlin, and other languages should also mentioned since they also include similar features. I still think Scala has had the most influence over the years.

I hope they're subsidizing the Scala project, and Kotlin too. Nothing better for a dominant player than having other people scout the territory for you.

Re: Java 16

#22
post #6

OMG I'm old. I thought that Java 9 would be next version.

yeah I'm confused too, so its because Java 9 officially came out September 2017 and they've been releasing very fast but have completely ditched semantic versioning

chart here https://en.wikipedia.org/wiki/Java_version_history

Re: Java 16

#23
post #12

Very cool to see that Scala continues to have a huge impact on Java’s roadmap. Records and Sealed Classes are borrowed from Scala. Could be not the best news for new Scala adoption, but good news for developers having better abstractions in Java Edit: Kotlin, and other languages should also mentioned since they also include similar features. I still think Scala has had the most influence over the years.

I saw someone recently post the idea that Java/Scala/F# almost functioned as LTS/Stable/Dev in reference to how these languages were sharing impact.

Re: Java 16

#25

Curious how many folks here experimented with the now depreciated Ahead-of-Time Compilation feature?

I did, the main issue is that jaotc doesn't do any pruning of the unused methods, so it generates too much assembly code. If i remember correctly, compiling just guava was to close to 1 gig.

GraalVM native image is far better, it "compiles" more slowly but the resulting executable is not too big.

Re: Java 16

#26
post #5

Super interested in https://openjdk.java.net/jeps/386 as alpine linux is at the heart of a lot of docker images. We use ubuntu currently as our base image, but tried to use alpine recently and ran into some issues with musl. Hopefully this version will work better.

I switched to Azul's Zulu[1] build of OpenJDK some time ago specifically for Alpine Linux support and its worked great for me.

[1] https://www.azul.com/downloads/zulu-community/?package=jdk

Re: Java 16

#27
post #12

Very cool to see that Scala continues to have a huge impact on Java’s roadmap. Records and Sealed Classes are borrowed from Scala. Could be not the best news for new Scala adoption, but good news for developers having better abstractions in Java Edit: Kotlin, and other languages should also mentioned since they also include similar features. I still think Scala has had the most influence over the years.

We see similar developments with C# borrowing features from F#, with records in v9, pattern matching, etc.

While it's good for C#/Java, it does make it harder to push for adoption for a language such as Scala and F#. Why bother investing in the languages with a much smaller market share when the big boys adopt good bits and pieces from them constantly?

Re: Java 16

#29
Lots of shiny new toys to play with :) I like playing with new features and pushing to silly limits. Here's some fun things you can do now:

Compiletime checked state machines with Sealed Classes [preview feature] https://benjiweber.co.uk/blog/2020/10/03/sealed-java-state-m...

Autobuilders, Mixins, Conversions & more with Records https://benjiweber.co.uk/blog/2020/09/19/fun-with-java-recor...

Pattern Matching fun https://benjiweber.co.uk/blog/2021/03/14/java-16-pattern-mat...

Re: Java 16

#30
post #5

Super interested in https://openjdk.java.net/jeps/386 as alpine linux is at the heart of a lot of docker images. We use ubuntu currently as our base image, but tried to use alpine recently and ran into some issues with musl. Hopefully this version will work better.

Cool. I love Alpine, it’s incredibly fast and lean. It’s annoying how much software is incompatible with it, so this should help with that.
Post reply on HN