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 21: First Release Candidate

146 pointsby mkurzalmost 2 years ago

12 comments

mattbeealmost 2 years ago
How much old advice on Java concurrency will virtual threads change?<p>I&#x27;m building a course for people who are new to Java concurrency and I&#x27;ve made the assumption that from September, you will almost always _choose_ virtual threads over platform threads. The default virtual thread management surely matches what most people want most of the time (1 worker thread per CPU core, virtual threads on top). It removes a lot of the old worries about management of thread pools and how OS thread implementation details &quot;leak&quot; into Java.<p>It&#x27;s brought it much closer to how I&#x27;d written coaching material for multithreading in Go, but the Executor abstractions will still let Java programmers shift over from platform threads at their own pace.
评论 #37127241 未加载
评论 #37129525 未加载
评论 #37127225 未加载
评论 #37129479 未加载
评论 #37127323 未加载
rr808almost 2 years ago
Looking forward to Loom so that I can stop having to work on these async codebases. I have no idea why people looked at nodejs and thought it was a good framework to copy. (Sure maybe there is some high performance computing unlocked but most people dont need it, and most teams end up with a rats next of complexity)
评论 #37127960 未加载
dangalmost 2 years ago
Recent and related:<p><i>Java 21: What’s New?</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=37067491">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=37067491</a> - Aug 2023 (255 comments)
trhhowaway232almost 2 years ago
I&#x27;m glad Java is returning to its original design with userland threads.<p>Java users can finally have some decent readable concurrent I&#x2F;O without the blight of reactive.<p>This is a huge win.
评论 #37129779 未加载
qlkjwenfalmost 2 years ago
C# introduced async&#x2F;await like 20 years ago and java still doesn&#x27;t have it yet... I hope in the next 20 years they will finally find time to implement this feature.
评论 #37130808 未加载
评论 #37131617 未加载
评论 #37144215 未加载
philonoistalmost 2 years ago
I trying to decide between Kotlin and Java 21. Please suggest me the advantages of Kotlin over Java 21.
评论 #37148683 未加载
评论 #37131048 未加载
naboghalmost 2 years ago
I&#x27;m a bit out of the loop on new Java features so I was reading <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Java_version_history" rel="nofollow noreferrer">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Java_version_history</a><p>And string templates looked exciting to me. But after skimming <a href="https:&#x2F;&#x2F;openjdk.org&#x2F;jeps&#x2F;430" rel="nofollow noreferrer">https:&#x2F;&#x2F;openjdk.org&#x2F;jeps&#x2F;430</a><p>it sounds like they want to avoid backticks for &quot;safety&quot;? Like we can already use the plus operator to append strings why would it be any less safe to give us an ergonomic way to do that? Oh well, Java isn&#x27;t exactly known for being ergonomic.
评论 #37127178 未加载
评论 #37127152 未加载
BaculumMeumEstalmost 2 years ago
will jdk21 present any opportunities for improvement in Clojure? like any part of core.async&#x27;s implementation for example?
yafetnalmost 2 years ago
Can someone please explain how Project Loom and virtual threads in the JVM affect Kotlin’s coroutines?
评论 #37128259 未加载
评论 #37127973 未加载
评论 #37127874 未加载
评论 #37130826 未加载
mkurzalmost 2 years ago
Features can be found here: <a href="https:&#x2F;&#x2F;openjdk.org&#x2F;projects&#x2F;jdk&#x2F;21&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;openjdk.org&#x2F;projects&#x2F;jdk&#x2F;21&#x2F;</a>
评论 #37127165 未加载
trolliedalmost 2 years ago
Features listed here: <a href="https:&#x2F;&#x2F;openjdk.org&#x2F;projects&#x2F;jdk&#x2F;21&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;openjdk.org&#x2F;projects&#x2F;jdk&#x2F;21&#x2F;</a>
评论 #37127687 未加载
focomalmost 2 years ago
Beside legacy code, in what context would you start a new project un java?
评论 #37127644 未加载
评论 #37127285 未加载
评论 #37127164 未加载
评论 #37127305 未加载
评论 #37127169 未加载
评论 #37127202 未加载
评论 #37127281 未加载
评论 #37127251 未加载
评论 #37127168 未加载
评论 #37127905 未加载
评论 #37127657 未加载
评论 #37127480 未加载
评论 #37131007 未加载
评论 #37131638 未加载
评论 #37127289 未加载
评论 #37127228 未加载