Top all-time · #25298
~myrrlyn
Personal blog · myrrlyn.net/blogprogrammingsystems
~myrrlyn is a personal blog at myrrlyn.net about programming and systems. Since 2021, 3 different Hacker News readers have linked it 3 times, most often “Runtime Alias Detection”. No feed was found, so read it on the site itself.
Too few sampled comments (1) to say how often HN recommends it.?
Why HN links it
Linked from the 'Why Not Rust? (2020)' thread. The one comment discusses why bitfields are hard in Rust, citing unaligned layout, odd bit sizes, and conflicts with padding and niche optimisation.
Summarised by Claude from a sample of 1 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
My homepage.
Most-linked posts?
- Runtime Alias Detection2 people · 2 mentions · first linked 2021-04-26
What Hacker News says?
Bitfields are hard! They are potentially unaligned, thus interact poorly with some language features, like pointers and references. And their size isn't a multiple of bytes, unlike any other value, which causes problems as well. They interact poorly with padding and the general idea of Rust ABIs that enables optimizations like reordering fields and using "niches" (invalid values) to find a more compact layout for st…
Comment linking /blog/misc/bitfields-in-rust
on “Why Not Rust? (2020)”Submitted Runtime Alias Detection as a story · 1 points
HN discussionSubmitted Runtime Alias Detection as a story · 1 points
HN discussion