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.

Encodings for flattened heap values

38 pointsby lichtenberger11 months ago

4 comments

malkia11 months ago
Without reading the whole thing, and with modern C# in mind - would that be "auto-struct" of a Java-class, without say so explicitly?
o11c11 months ago
Whenever I read about Project Valhalla, I&#x27;m always struck by how many of the usual approaches are somehow excluded due to ... the way the JVM has historically worked? Why is that even a concern when you&#x27;re adding new features entirely?<p>The one that jumps out most in this post is that apparently it&#x27;s considered impossible to write to just-allocated memory before transferring control to user code. Preserving the all-zero-means-null rule means that `T`, `Optional&lt;T&gt;`, `Optional&lt;Optional&lt;T&gt;&gt;`, etc. cannot just use a nop conversion when the value (at any level!) is present.<p>Some discussion of `cmpxchg16b` really should be in there. <i>I</i> know why it&#x27;s not suitable but it&#x27;s wrong to claim that only vector registers support wide atomics.
neonsunset11 months ago
Structs. These are called structs. Or value types if you really insist.
secondcoming11 months ago
Why is the header text flattened?