Top all-time · #16472
Xoranth's musings
Personal blog · xoranth.netprogrammingsystems
Xoranth's musings is a personal blog at xoranth.net about programming and systems. Since 2023, 4 different Hacker News readers have linked it 11 times, most often “A look inside memcmp on Intel AVX2 hardware”. The last post was in 2024, but the archive is still widely read.
Most-linked posts?
- A look inside memcmp on Intel AVX2 hardware3 people · 3 mentions · first linked 2023-05-30
- Optimizing the `pext` perfect hash function2 people · 2 mentions · first linked 2023-06-17
What Hacker News says?
Your vanilla Debian box uses BMI2 whenever you do a string comparison, unless you are on a decade old CPU [^0]. The "strange" instructions are actually not that niche, it's just that usage tends to be "indirect" and therefore people don't notice. [^0] E.g. https://xoranth.net/memcmp-avx2
Comment linking /memcmp-avx2
on “Dynamic bit shuffle using AVX-512”Submitted Switch Lowering in GCC as a story · 210 points
HN discussionhttps://xoranth.net/ In-depth blogging about low level optimization. Two posts so far: - https://xoranth.net/memcmp-avx2/ A walkthrough of an highly optimized implementation of string comparisons. - https://xoranth.net/verb-parse/ Micro-optimizing a perfect hash function and memory comparisons. RSS feed: https://xoranth.net/atom.xml (edit: add feed)
Comment linking /atom.xml
on “Ask HN: Could you share your personal blog here?”Submitted A look inside memcmp on Intel AVX2 hardware as a story · 3 points
HN discussionSubmitted A look inside `memcmp` on Intel AVX2 hardware as a story · 2 points
HN discussionSubmitted Optimizing the pext perfect hash function as a story · 1 points
HN discussionSubmitted A look inside `memcmp` on Intel AVX2 hardware as a story · 1 points
HN discussionSubmitted Optimizing the `pext` perfect hash function as a story · 1 points
HN discussion