Top all-time · #10875
Shahar Mike
Personal blog · shaharmike.comprogrammingsystems
Shahar Mike's personal blog at shaharmike.com covers programming and systems. Since 2016, 7 different Hacker News readers have linked it 8 times. The last post was in 2023, but the archive is still widely read.
Too few sampled comments (2) to say how often HN recommends it.?
Why HN links it
HN readers link Shahar Mike's C++ posts on low-level topics, such as how strings are implemented and how vtables and constructors work. One commenter calls a vtables and constructors post a very nice writeup.
Summarised by Claude from a sample of 2 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
What Hacker News says?
”However, none of them are suitable for general strings where we might have many small ones” That’s where I expected to see the Short String Optimization mentioned. For short strings, it stores the string’s characters in the same memory where, for longer strings, it stores a pointer to the characters (with ‘short’ dependent on the implementation) It also tweaks how either get stored to make it possible (and fast) to…
Comment linking /cpp/std-string/
on “How to implement strings”Submitted Under the hood of C++ lambdas and std::function as a story · 72 points
HN discussionOf course it would, not a lot would run otherwise. Here is very nice writeup about vtables and constructors: https://shaharmike.com/cpp/vtable-part4/
Comment linking /cpp/vtable-part4/
on “Memory safety without lifetime parameters”Submitted Compiling Clang from Scratch as a story · 4 points
HN discussionSubmitted Longest C++ Variable Declaration as a story · 3 points
HN discussionSubmitted C++ vtables – Part 1 – Basics as a story · 3 points
HN discussionSubmitted Exploring std::string as a story · 2 points
HN discussionSubmitted Return Value Optimization as a story · 1 points
HN discussion