Top all-time · #7629
NRK's Website
Personal blog · nrk.neocities.org/articlesprogramming
NRK's Website is a personal blog at nrk.neocities.org about programming. Since 2023, 10 different Hacker News readers have linked it 19 times, most often “Strlcpy and how CPUs can defy common sense”. It is still writing: the last post was on 2025-06-01, and you can follow it by feed.
Too few sampled comments (1) to say how often HN recommends it.?
Why HN links it
HN commenters link this blog's article on CPU performance versus common sense, arguing that strlen() plus memcpy() beats strlcpy() on superscalar CPUs with branch prediction.
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.
Most-linked posts?
- Strlcpy and how CPUs can defy common sense4 people · 5 mentions · first linked 2024-07-24
- Advent of Code 2024 and BQN2 people · 2 mentions · first linked 2025-01-25
- Hash Based Trees and Tries2 people · 2 mentions · first linked 2023-09-27
- ChibiHash: Small, Fast 64 bit hash function2 people · 2 mentions · first linked 2024-11-17
- I'm not a fan of strlcpy(3)2 people · 2 mentions · first linked 2024-07-13
What Hacker News says?
As discussed a few weeks ago, strlen() + memcpy() is faster than strlcpy() on superscalar platforms with branch prediction. Iterating over the string twice is not a penalty if the alternative hobbles the hardware with more complex code. https://nrk.neocities.org/articles/cpu-vs-common-sense
Comment linking /articles/cpu-vs-common-sense
on “Tony Hawk's Pro Strcpy”Submitted I'm not a fan of strlcpy(3) as a story · 196 points
HN discussionSubmitted Decoding UTF8 with parallel extract as a story · 111 points
HN discussionSubmitted ChibiHash: Small, Fast 64 bit hash function as a story · 104 points
HN discussionSubmitted Detecting if an expression is constant in C as a story · 62 points
HN discussionSubmitted Advent of Code 2024 and BQN as a story · 59 points
HN discussionSubmitted Detecting if an expression is constant in C as a story · 49 points
HN discussionSubmitted Strlcpy and how CPUs can defy common sense as a story · 24 points
HN discussionSubmitted Strlcpy and how CPUs can defy common sense as a story · 7 points
HN discussionSubmitted A gentle introduction to static analyzers for C as a story · 7 points
HN discussionSubmitted Strlcpy and how CPUs can defy common sense as a story · 6 points
HN discussionSubmitted Strlcpy and how CPUs can defy common sense as a story · 5 points
HN discussionSubmitted ChibiHash: Small, Fast 64 bit hash function as a story · 4 points
HN discussionSubmitted I'm Not a Fan of Strlcpy(3) as a story · 4 points
HN discussionSubmitted Immediate Mode Option Parser: Small, Simple, Elegant as a story · 3 points
HN discussionSubmitted Advent of Code 2024 and BQN as a story · 1 points
HN discussionSubmitted Nix-compress: fast LZW decoding via unrolled linked list as a story · 1 points
HN discussionSubmitted Hash Based Trees and Tries as a story · 1 points
HN discussionSubmitted Hash Based Trees and Tries as a story · 1 points
HN discussion