TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Java 24

131 点作者 ludovicianul大约 2 个月前

13 条评论

atomicnumber3大约 2 个月前
SecurityManager dies not with a bang, but a whimper. The professor who taught a generally-misguided Java elective extolled the benefits of the security manager whenever he could. I was tremendously skeptical at the time. I&#x27;m inappropriately smug to have been proven right now, several decades later.<p>I really want structured concurrency out of preview!! I think it helps close one of the last gaps golang has over Java in the ease-of-concurrent-programming side of things. Go makes channels and waitgroups pretty easy. I think structured concurrency is a great side-step of those primitives by actually making the higher-level tasks you use those tools to accomplish easier to write and reason about. Continuing a trend I see where go tends to have somewhat better primitives, but then obstinately does nothing with them to actually make the higher-level tasks easier to accomplish.<p>No pinning virtual threads is huge. Finally you can virtual thread with near-wild abandon, as God intended.<p>Love seeing Streams still getting love. I do a lot of fizzbuzz-esque interviews (the &quot;can you code your way out of a paper bag&quot; type screens) for my company and I think it says a lot that, in general, people who pick Java and use streams pass but people who don&#x27;t use streams often get tripped up in their loop logic and fail (or, even if they don&#x27;t fail per se, don&#x27;t pass). It says a lot about ergonomics and intuitiveness, and also the power of the abstraction to tersely and compactly solve real problems, when a language is a big ally in interviews. And the cool thing about Java streams is that they&#x27;re as powerful as Ruby&#x27;s functional-style operation chaining (arr.map{}.reduce(:+) etc) but they&#x27;re actually performant. I feel it also bears mentioning that people who use Ruby in these interviews, few as they are, almost always pass and do so while writing very few LOC :)
评论 #43400053 未加载
评论 #43400269 未加载
评论 #43400729 未加载
评论 #43401906 未加载
评论 #43400779 未加载
评论 #43401586 未加载
评论 #43401759 未加载
评论 #43401852 未加载
评论 #43400398 未加载
theandrewbailey大约 2 个月前
New features: <a href="https:&#x2F;&#x2F;openjdk.org&#x2F;projects&#x2F;jdk&#x2F;24&#x2F;" rel="nofollow">https:&#x2F;&#x2F;openjdk.org&#x2F;projects&#x2F;jdk&#x2F;24&#x2F;</a>
bullen大约 2 个月前
For ARM32 and Risc-V releases they should appear in the coming days here: <a href="https:&#x2F;&#x2F;bell-sw.com&#x2F;pages&#x2F;downloads" rel="nofollow">https:&#x2F;&#x2F;bell-sw.com&#x2F;pages&#x2F;downloads</a><p>Raspberry 2 and Vision Five 2 are very future proof peices of hardware that Oracle and OpenJDK ignores!
dpratt大约 2 个月前
JEP 484: Classfile API is going to be huge. It will take a while for full adoption, but finally being able abstract the backend of ByteBuddy&#x2F;ASM&#x2F;etc will be a gigantic boon. Being able to read&#x2F;write classifies is one of the biggest hurdles at upgrade time.
lordleft大约 2 个月前
Dumb question, but what are the licensing implications between using an OpenJDK vs the official Oracle Release of the JDK?
评论 #43400207 未加载
评论 #43400750 未加载
评论 #43400073 未加载
评论 #43400241 未加载
magicmicah85大约 2 个月前
Java’s version growth has been interesting to watch the past few years. I remember thinking “wow 9 is out, now 10, 11 is an LTS, we’ll go to that”. Still on Java 8. Too much other things to do.
评论 #43400600 未加载
评论 #43400651 未加载
评论 #43403995 未加载
jsiepkes大约 2 个月前
Surprised nobody mentioned JEP 491 [1] yet. Basically it ensures the &quot;synchronized&quot; keyword can no longer mess up virtual threads. That&#x27;s a big win for running existing code in virtual threads.<p>[1] <a href="https:&#x2F;&#x2F;openjdk.org&#x2F;jeps&#x2F;491" rel="nofollow">https:&#x2F;&#x2F;openjdk.org&#x2F;jeps&#x2F;491</a>
re-thc大约 2 个月前
Finally no pinning for virtual threads!
评论 #43399844 未加载
评论 #43400201 未加载
satvikpendem大约 2 个月前
How is Java these days compared to Kotlin, comparing latest versions of both? I know Java continues to improve and take features from Kotlin but Kotlin is also improving itself.
评论 #43400483 未加载
评论 #43400445 未加载
评论 #43400571 未加载
评论 #43401126 未加载
评论 #43400641 未加载
评论 #43404655 未加载
pjmlp大约 2 个月前
Already installed, GraalVM is also available for Java 24.<p>Lots of goodies.
guybedo大约 2 个月前
nice discussion, fwiw i added a structured summary here <a href="https:&#x2F;&#x2F;extraakt.com&#x2F;extraakts&#x2F;java-24-discussion-features-virtual-threads-and-ecosystem" rel="nofollow">https:&#x2F;&#x2F;extraakt.com&#x2F;extraakts&#x2F;java-24-discussion-features-v...</a>
learncomputer大约 2 个月前
Java 24 already? What’s the standout feature this time—anything that makes it worth upgrading from 21? Always cool to see how it keeps evolving.
评论 #43400009 未加载
评论 #43400040 未加载
评论 #43400141 未加载
0x1ceb00da大约 2 个月前
I stopped following java ecosystem closely around the time java 9 was released (last new thing I remember is the introduction of modules). How much has the language&#x2F;bytecode&#x2F;VM changed since then? What would be the best resources to catch up that won&#x27;t take too much of my time?
评论 #43409537 未加载