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.

JVM Anatomy Quarks

230 pointsby lichtenberger6 months ago

7 comments

quotemstr6 months ago
<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 未加载
lukeh6 months ago
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 未加载
lsuresh6 months ago
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.
exabrial6 months ago
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.
plandis6 months ago
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.
wging6 months ago
Does anyone know why the name of this series was changed from ‘JVM Anatomy Park’?
评论 #42106228 未加载
azinman26 months ago
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 未加载