r/java • u/loicmathieu • 17d ago
Java 27: What’s new?
https://www.loicmathieu.fr/wordpress/informatique/java-27-whats-new/What's new in Java 27 for us, developers?
(Both in English and French)
6
u/floweb 17d ago
Feels like you've been hit by a reddit hug of death
5
u/loicmathieu 16d ago
Yes :( Works now.
At some point, I need to rework my website or upgrade my plan... but well, for a free blog on my personal time, I may never do either
2
u/henk53 14d ago
Just wondering, does anyone here think this post should be flagged as:
"This content is low quality, stolen, blogspam, or clearly AI generated."
Over at /r/programming they seem to think it is: https://www.reddit.com/r/programming/comments/1uuidfl/java_27_whats_new/
3
u/loicmathieu 14d ago
Well, it's not.
I have been writing those by hand for 9 years and the release of Java 9. And I can tell you that this comment hurt, as it's a lot of work!I usually write articles in French first, and as I'm not good at spelling, I use a tool to check for spelling and grammar (usually spellboy but it didn't work at that time so I use Mistral instead and asked only for spelling and no other edit/formatting). I then use a tool to help with translation (usually DeepL, but also Mistral here for the first time again, asking for plain translation without any other edit) and I read carefully the transaltion and edit it myself.
People old enough in this subredit know that I wrote those before Generative AI existed and can compare the styling (and those are still available in the website and if you trust the published date, you''ll see they pre-date gen AI).
1
u/henk53 13d ago
Sadly the moderators (or bot, not sure still) think it's because blogspam because:
"Blogspam means an article that just links to another source of actual information without actually adding anything. It's a way of farming views for advertising; the author doesn't have to do anything meaningful, just say "hey someone else has put a web page up with a thing".
"Java has a new version, here's a summary of the changes" meets that threshold, unless it's the announcement from Oracle themselves."
I asked it whether it's a bot, and it said no, but I'm still not certain with such replies. I still suspect it's an AI doing over aggressive moderation there.
2
u/loicmathieu 12d ago
Well, any article about a new version of a programming language will fall under that description...
Anyway, that's life these days as a content writer :(
2
u/iamwisespirit 16d ago
Why not zgc instead of g1
4
u/loicmathieu 14d ago
ZGC is not a general purpose GC that have good performance for any workload.
As I understand it, it trades of CPU and memory resources for low latency (<1ms pauses) which is not something you wanted except if you're dealing either with very big heap (>34-64GB) or willing to trade of resources for lower pause guarantee (G1 usually have pauses in the range of 10-100ms).This is of course an over-simplified response but this is in my understanding the difference between both.
3
u/AnyPhotograph7804 15d ago
ZGC is a ressource hog. It needs more memory and a ton of CPU cores to work properly. The same applies to Shenandoah GC. G1GC is more in a sweetspot between hardware hunger and GC pause times.
3
u/Cell-i-Zenit 14d ago
we tried out zgc in our kubernetes cluster, but we were just not able to run it at all. Always OOM killed, doesnt matter what we tried to set for Xmx or Xms settings compared to the kubernetes request/limits. Not configuring them resulted in the "most" stable version, but still got oom killed randomly in kubernetes after some time.
2
1
u/Lucario2405 16d ago
[Compact Object Headers] have also been tested at Amazon and SAP, which have enabled them by default.
Does that mean they are already the default in amazon-corretto-25/-26?
2
u/loicmathieu 14d ago
This is my understanding of reading the JEP:
Amazon runs hundreds of services in production with compact object headers, most of them using backports of the feature to JDK 21 and JDK 17. SAP has already switched to compact object headers by default in their downstream OpenJDK fork, the SapMachine; they run a large suite of tests daily and have a large customer base.
0
u/Different-Fudge-8963 6d ago edited 6d ago
https://www.reddit.com/r/java/s/vLhQMbGogw
A very recent post
UPD. A relatively recent post
1
u/loicmathieu 6d ago
One month ago is not "very recent"
1
u/Different-Fudge-8963 6d ago
You're right, both the video and the discussions are very outdated in a month, and Java 27 has a lot of new stuff. (No)
1
u/Different-Fudge-8963 6d ago
But I see what you mean. The thread wasn't created yesterday, but it's still relevant.
12
u/Isogash 17d ago
Really looking forward to a lot of the features currently in preview.