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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

GraalVM 22.3: JDK 19 builds, jlink support, new monitoring features, and more

37 点作者 fniephaus超过 2 年前

5 条评论

gavinray超过 2 年前
I had a neat conversation with @fniephaus on the GraalVM slack, where I was curious about how the performance of the Native Image mode could be almost an order of magnitude better in the Game of Life demo than JVM JIT mode.<p>He clarified that the GIF showed only the first N seconds of the program running, where the AOT binary required no warmup. But what was really interesting, is his comment about how AOT mode is still able to perform potentially slightly better than JIT:<p><pre><code> &gt; &quot;The GIF is showing the first n seconds, and the JIT just needs noticeable more time to warm up. But even at peak, AOT can outperform JIT although not by an order of magnitude of course.&quot; </code></pre> I asked how this was possible and he shared a great tweet by @AlinaYurenko:<p><a href="https:&#x2F;&#x2F;twitter.com&#x2F;alina_yurenko&#x2F;status&#x2F;1582772754902052864" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;alina_yurenko&#x2F;status&#x2F;1582772754902052864</a><p><pre><code> &gt; AOT can be faster than JIT, because: &gt; - in AOT 100% of the code is compiled (on JIT cold code can still be interpreted) &gt; - some optimizations are only possible under a closed-world assumption (AOT) &gt; - AOT can dedicate time and resources to perform more expensive optimizations</code></pre>
评论 #33341675 未加载
adl超过 2 年前
Per the GraalVM website: &quot;GraalVM JIT and Native Image will become a part of OpenJDK&quot;<p>I understand the Native Image stuff becoming part of OpenJDK, but what does it mean for OpenJDK to get the GraalVM JIT? does it replace the one in OpenJDK? will OpenJDK have two JIT implementations to choose from?
评论 #33336347 未加载
the-alchemist超过 2 年前
From what I&#x27;ve noticed, the Clojure community has embraced GraalVM the most out of any of the Java community. Babashka, think bash+Clojure with built-in JSON+YAML+CSV+REST support, is very popular.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;babashka&#x2F;babashka" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;babashka&#x2F;babashka</a>
评论 #33337025 未加载
ravedave5超过 2 年前
Graal seems to be continually almost ready to use, but never quite there.
评论 #33334076 未加载
评论 #33335555 未加载
评论 #33337835 未加载
评论 #33341767 未加载
alberth超过 2 年前
Can TruffleRuby be a drop in replace for running Rails apps yet?