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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

JDK 19 Release Notes

264 点作者 ludovicianul超过 2 年前

18 条评论

royjacobs超过 2 年前
The first release to contain bits for Project Loom (the "virtual threads" part of the release notes). That is extremely exciting, since it is designed in a way that mostly allows drop-in replacement of existing threading and thread pool code, without requiring an utterly different programming model like async, coroutines or reactive programming do.
评论 #32912127 未加载
评论 #32910584 未加载
评论 #32911115 未加载
评论 #32913134 未加载
评论 #32910833 未加载
dang超过 2 年前
Related:<p><i>Java record pattern matching in JDK 19</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31378896" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31378896</a> - May 2022 (155 comments)<p><i>Using Java&#x27;s Project Loom to build more reliable distributed systems</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31314006" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31314006</a> - May 2022 (91 comments)<p><i>JEP proposed to target JDK 19: 425: Virtual Threads (Preview)</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31236855" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31236855</a> - May 2022 (212 comments)<p><i>Achieving 5M persistent connections with Project Loom virtual threads</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31214253" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31214253</a> - April 2022 (145 comments)<p><i>Loom: Project Loom Early-Access Builds</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=28191308" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=28191308</a> - Aug 2021 (76 comments)<p><i>Project Loom and Structured Concurrency</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=25300233" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=25300233</a> - Dec 2020 (108 comments)<p><i>Project Loom: Fibers and Continuations for the Java Virtual Machine</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=15599854" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=15599854</a> - Nov 2017 (41 comments)
评论 #32910776 未加载
hn_throwaway_99超过 2 年前
As someone who spent the first 15 years of their career in Java, but has been out of the ecosystem for some time now, it&#x27;s cool to see Java get such big improvements, especially virtual threads.<p>However, given the number of excellent JVM languages, especially Kotlin, I&#x27;m curious what the general consensus is for starting <i>new</i> projects. That is, if I were starting a greenfield project, I think I would definitely use Kotlin over Java - Kotlin doesn&#x27;t have to deal with the backwards compatibility concerns of Java, and thus does away with some of the problematic annoying complexity of Java. E.g. first class language support for nullable&#x2F;optional types I think is critical these days - Java has bolted on an Optional wrapper, but it&#x27;s cumbersome and doesn&#x27;t provide the kind of strong guarantees that a language-implemented version does.<p>So what does the HN community think? Would you use another JVM language over Java if you were starting a new project?
评论 #32915373 未加载
评论 #32914795 未加载
评论 #32918759 未加载
评论 #32914612 未加载
评论 #32929489 未加载
评论 #32914950 未加载
评论 #32914590 未加载
carimura超过 2 年前
Loom is the talk of the town (for great reasons!), but let&#x27;s not forget about Project Amber and Record Patterns [1] ... there&#x27;s an arc of features moving the platform towards a data-oriented programming model. Brian Goetz talks about this quite a bit [2] including the latest 19 launch podcast [3].<p>[1] <a href="https:&#x2F;&#x2F;openjdk.org&#x2F;jeps&#x2F;405" rel="nofollow">https:&#x2F;&#x2F;openjdk.org&#x2F;jeps&#x2F;405</a><p>[2] <a href="https:&#x2F;&#x2F;inside.java&#x2F;u&#x2F;BrianGoetz" rel="nofollow">https:&#x2F;&#x2F;inside.java&#x2F;u&#x2F;BrianGoetz</a><p>[3] <a href="https:&#x2F;&#x2F;inside.java&#x2F;2022&#x2F;09&#x2F;20&#x2F;podcast-026" rel="nofollow">https:&#x2F;&#x2F;inside.java&#x2F;2022&#x2F;09&#x2F;20&#x2F;podcast-026</a>
dbrgn超过 2 年前
Nice new language features for Java users! <i>sobs in Android-Java8</i>
评论 #32911649 未加载
评论 #32910587 未加载
评论 #32911564 未加载
评论 #32914976 未加载
nhoughto超过 2 年前
Virtual threads preview! The beginning of a big change to java!
评论 #32910530 未加载
fny超过 2 年前
It&#x27;s incredible what competition can do to spur innovation. Does everyone remember how stagnant Java had become during the 6-7 era?
评论 #32910479 未加载
评论 #32916522 未加载
评论 #32916399 未加载
评论 #32911853 未加载
评论 #32910826 未加载
评论 #32910470 未加载
fniephaus超过 2 年前
GraalVM JDK19 dev builds are available at <a href="https:&#x2F;&#x2F;github.com&#x2F;graalvm&#x2F;graalvm-ce-dev-builds&#x2F;releases&#x2F;latest" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;graalvm&#x2F;graalvm-ce-dev-builds&#x2F;releases&#x2F;la...</a>.
splix超过 2 年前
Does anyone know if there are any plans to improve typing and null pointer safety in future releases? I tried to google for existing JEPs, but I&#x27;m not sure I&#x27;m using the correct terms.<p>I mean, I&#x27;d like to see better typing because the current generics are too basic, and you always end with casts and `isAssignableFrom`. Is there anyone working on types for Java, like in TypeScript and Rust?<p>Another huge issue for me is null-type safety. The latter is basically the only reason we use Kotlin right now. We would be happy to migrate to the latest Java if it fixes the nulls. I&#x27;m wondering what prevents adding a simple syntax sugar like optional !-suffix for non-nullable definitions. Like `void fooBar(String! path)`, which should prevent at the compiler level from passing a null argument. Could that work?
QuadDamaged超过 2 年前
So... Green threads are back?
评论 #32910660 未加载
评论 #32911387 未加载
thayne超过 2 年前
I think it is funny that originally Java only had green threads, but then they were replaced with native threads, and now java is getting green threads again. Obviously a lot of development has happened in that area since, but still funny.
d4a超过 2 年前
Seems like Java is ported to RISC-V on Linux now
geodel超过 2 年前
Not sure why one would post release notes when release is not out yet. My first instinct would be to download and try out new features, but its just release candidate on OpenJDK site.
评论 #32912669 未加载
moondowner超过 2 年前
I&#x27;m mostly excited about JEP 405: Record Patterns + JEP 425: Virtual Threads.<p><a href="https:&#x2F;&#x2F;openjdk.org&#x2F;jeps&#x2F;405" rel="nofollow">https:&#x2F;&#x2F;openjdk.org&#x2F;jeps&#x2F;405</a> <a href="https:&#x2F;&#x2F;openjdk.org&#x2F;jeps&#x2F;425" rel="nofollow">https:&#x2F;&#x2F;openjdk.org&#x2F;jeps&#x2F;425</a>
Tomte超过 2 年前
Not officially announced. What&#x27;s ready to download is the release candidate from Saturday: <a href="https:&#x2F;&#x2F;jdk.java.net&#x2F;19&#x2F;" rel="nofollow">https:&#x2F;&#x2F;jdk.java.net&#x2F;19&#x2F;</a>
评论 #32910598 未加载
Pet_Ant超过 2 年前
AFAICT there is no major language changes released in JDK 19, only previews.
jxi超过 2 年前
Is it faster?
Nullabillity超过 2 年前
Looks like they just won&#x27;t stop digging the Loom hole deeper, huh.
评论 #32910542 未加载