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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

JVM Anatomy Quarks

230 点作者 lichtenberger7 个月前

7 条评论

quotemstr7 个月前
<a href="https:&#x2F;&#x2F;shipilev.net&#x2F;jvm&#x2F;anatomy-quarks&#x2F;17-trust-nonstatic-final-fields&#x2F;" rel="nofollow">https:&#x2F;&#x2F;shipilev.net&#x2F;jvm&#x2F;anatomy-quarks&#x2F;17-trust-nonstatic-f...</a> is a damned shame. User code misses out on an important optimization available only to system-provided classes because certain frameworks have abused JNI and reflection to mutate final fields, which by all rights should be immutable.<p>Platforms, especially compilers and runtimes, need to be absolutely strict in <i>enforcing</i> semantic restrictions so as to preserve optimization opportunities for the future.
评论 #42101948 未加载
评论 #42101455 未加载
评论 #42101406 未加载
评论 #42101463 未加载
评论 #42101402 未加载
评论 #42101399 未加载
评论 #42101848 未加载
lukeh7 个月前
Tangential: Apple has a new Swift Java bridge which is pretty cool, supporting both JNI and Panama. I’ve been porting it to Android this past week.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;swiftlang&#x2F;swift-java">https:&#x2F;&#x2F;github.com&#x2F;swiftlang&#x2F;swift-java</a>
评论 #42106200 未加载
lsuresh7 个月前
Happy to see this gem shared here. I&#x27;ve learnt a lot about the JVM going through these.<p>This article about the &quot;stack allocation&quot; misnomer in Java in particular is one of my favorites: <a href="https:&#x2F;&#x2F;shipilev.net&#x2F;jvm&#x2F;anatomy-quarks&#x2F;18-scalar-replacement&#x2F;" rel="nofollow">https:&#x2F;&#x2F;shipilev.net&#x2F;jvm&#x2F;anatomy-quarks&#x2F;18-scalar-replacemen...</a>. What the JVM really does is escape analysis + scalar replacement.
exabrial7 个月前
I love the &quot;size&quot; of these posts. Kinda neat to just read through one in a few mins and maybe run the bench locally.
plandis7 个月前
If you work for a few years with JVM based languages this set of articles are so interesting! I remember reading through these for the first time several years ago.
wging7 个月前
Does anyone know why the name of this series was changed from ‘JVM Anatomy Park’?
评论 #42106228 未加载
azinman27 个月前
I’ve basically forgotten about Java. It would never occur to me to start a new project in it. Am I the only one? It feels like I’d reach for python if I want fast development and flexibility, Go if I want to handle a bunch of I&#x2F;O concurrency in a garbage collected way, Swift if I want a nice language that’s compiled and balanced, or Rust if I want performance and safety in a compiled language. Those are just my personal leanings. I know kotlin has made Java more ergonomic, and yet….
评论 #42102757 未加载
评论 #42102861 未加载
评论 #42102464 未加载
评论 #42105292 未加载
评论 #42102473 未加载
评论 #42105109 未加载
评论 #42102668 未加载
评论 #42106299 未加载
评论 #42102669 未加载