TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Java 22 Released

310 pointsby mkurzabout 1 year ago

14 comments

jimbokunabout 1 year ago
Maybe my favorite feature in this release:<p><a href="https:&#x2F;&#x2F;openjdk.org&#x2F;jeps&#x2F;463" rel="nofollow">https:&#x2F;&#x2F;openjdk.org&#x2F;jeps&#x2F;463</a><p>Finally solves the inscrutable Hello World program!<p>Yes, it&#x27;s just ergonomics for early beginners. But could be the difference in whether or not someone new to programming sticks with Java or not.
评论 #39759448 未加载
评论 #39759084 未加载
评论 #39759561 未加载
评论 #39764872 未加载
评论 #39758933 未加载
评论 #39759259 未加载
评论 #39763869 未加载
评论 #39759433 未加载
评论 #39759248 未加载
评论 #39760093 未加载
评论 #39759403 未加载
评论 #39762322 未加载
评论 #39759732 未加载
评论 #39768230 未加载
评论 #39771707 未加载
评论 #39758899 未加载
评论 #39759274 未加载
ecshaferabout 1 year ago
It isn&#x27;t a &quot;Sexy&quot; PL change, but a full foreign function interface will be a huge change. In my experience, relying on the old java JNI based libraries seems to be one of the biggest things that break in upgrades. So I am hoping this will reduce the maintenance burden of Java.
评论 #39759425 未加载
krzykabout 1 year ago
Linkable features <a href="https:&#x2F;&#x2F;openjdk.org&#x2F;projects&#x2F;jdk&#x2F;22&#x2F;" rel="nofollow">https:&#x2F;&#x2F;openjdk.org&#x2F;projects&#x2F;jdk&#x2F;22&#x2F;</a><p>For me personally the most interesting one is JEP461 (Stream Gatherers) <a href="https:&#x2F;&#x2F;openjdk.org&#x2F;jeps&#x2F;461" rel="nofollow">https:&#x2F;&#x2F;openjdk.org&#x2F;jeps&#x2F;461</a><p>This will allow addition of interesting stream operations.
评论 #39763890 未加载
cryptosabout 1 year ago
Although I like Kotlin better, I&#x27;m really impressed how Oracle continues to improve Java. Some developers think Java is an old, cumbersome language, but it is indeed such a productive language and ecosystem with outstanding quality! Java has quite good support for functional programming, concise and immutable structs (called &quot;records&quot;), pattern matching, string templating, virtual threads, structured concurrency (preview for now), a vast ecosystem with outstanding quality, world class documentation, a fast and robust runtime and so on.<p>Even after nearly 30 years, Java is still a good choice to start something new (e.g. a startup).
评论 #39764288 未加载
oaieyabout 1 year ago
Foreign Function Interface is one of the key advantages what C# had over Java (e.g. against huge APIs like Android or macOS). I am really curious how this JEP turns out.
评论 #39757176 未加载
评论 #39757357 未加载
评论 #39756909 未加载
评论 #39760155 未加载
评论 #39766221 未加载
评论 #39758325 未加载
preommrabout 1 year ago
It&#x27;s kind of startling to see how many places still use Java 8, estimated at ~1&#x2F;3 of projects according to a survey i just googled. And something like half that still use java 11.
评论 #39759518 未加载
评论 #39760192 未加载
评论 #39759757 未加载
评论 #39759877 未加载
评论 #39759463 未加载
评论 #39760211 未加载
jmyeetabout 1 year ago
Examples [1] of these features.<p>[1]: <a href="https:&#x2F;&#x2F;www.happycoders.eu&#x2F;java&#x2F;java-22-features&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.happycoders.eu&#x2F;java&#x2F;java-22-features&#x2F;</a>
thisislife2about 1 year ago
Now this may seem like a silly question, but if I only want to run Java apps on macOS, what should I install from MacPorts? Searching for &quot;JRE&quot; gives no results. Searching for OpenJDK gives various options including:<p>- OpenJDK21: <a href="https:&#x2F;&#x2F;ports.macports.org&#x2F;port&#x2F;openjdk21&#x2F;details&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ports.macports.org&#x2F;port&#x2F;openjdk21&#x2F;details&#x2F;</a> , - openjdk21-zulu: <a href="https:&#x2F;&#x2F;ports.macports.org&#x2F;port&#x2F;openjdk21-zulu&#x2F;details&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ports.macports.org&#x2F;port&#x2F;openjdk21-zulu&#x2F;details&#x2F;</a> - openjdk21-oracle: <a href="https:&#x2F;&#x2F;ports.macports.org&#x2F;port&#x2F;openjdk21-oracle&#x2F;details&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ports.macports.org&#x2F;port&#x2F;openjdk21-oracle&#x2F;details&#x2F;</a><p>each of them having <i>so many variants</i> (see the links). What variant needs to be installed to just run a Java app?
评论 #39765977 未加载
didipabout 1 year ago
Sweet, G1 keeps getting better for free. Time to cut a new build tag for this.
pkphilipabout 1 year ago
Interesting to see the developments on the String Templates API using the STR and fmt template processors.
评论 #39756859 未加载
mellingabout 1 year ago
“Vector API (Seventh Incubator)”<p>Seven iterations? What is going on with vectors in Java?
评论 #39756623 未加载
评论 #39756614 未加载
评论 #39756617 未加载
评论 #39756622 未加载
评论 #39759075 未加载
评论 #39756610 未加载
grumpydudeabout 1 year ago
Unrelated to Java, but it’s so refreshing to see a simple HTML page for once
评论 #39760104 未加载
jsnelgroabout 1 year ago
Why would I use Java 22 over Kotlin?
评论 #39761134 未加载
评论 #39763763 未加载
评论 #39767769 未加载
评论 #39768978 未加载
cgijoeabout 1 year ago
So does this fix the crashing issue with macOS Sonoma 14.4? <a href="https:&#x2F;&#x2F;arstechnica.com&#x2F;gadgets&#x2F;2024&#x2F;03&#x2F;usb-hubs-printers-java-and-more-seemingly-broken-by-macos-14-4-update&#x2F;" rel="nofollow">https:&#x2F;&#x2F;arstechnica.com&#x2F;gadgets&#x2F;2024&#x2F;03&#x2F;usb-hubs-printers-ja...</a>
评论 #39759152 未加载
评论 #39759610 未加载