Top all-time · #5209
C++ on a Friday
Personal blog · blog.knatten.orgprogramming
C++ on a Friday is a personal blog at blog.knatten.org about programming. Since 2012, 15 different Hacker News readers have linked it 25 times, most often “Lvalues, rvalues, glvalues, prvalues, xvalues, help (2018)”. It is still writing: the last post was on 2025-10-31, and you can follow it by feed.
Too few sampled comments (2) to say how often HN recommends it.?
Why HN links it
HN readers link this blog for its C++ explainers on value categories, such as why a prvalue is not a temporary and the five value types. Commenters cite it on move semantics and copying versus moving.
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.
Most-linked posts?
- Lvalues, rvalues, glvalues, prvalues, xvalues, help (2018)5 people · 5 mentions · first linked 2018-03-09
- The type of char + char4 people · 4 mentions · first linked 2019-05-24
- NDC 2014 will have 13 C++ talks2 people · 2 mentions · first linked 2014-05-12
- A Taxonomy of C++ Types2 people · 2 mentions · first linked 2025-04-25
What Hacker News says?
This is actually a very nice explanation! I also enjoyed the linked article about the 5 value types: https://blog.knatten.org/2018/03/09/lvalues-rvalues-glvalues... . For some reason I never bothered to look up these terms as they sounded so obscure. Turns out the taxonomy is pretty clear and it's just a refinement of the existing two value types (lvalues and rvalues). EDIT: I do think the naming is rather confusing…
Comment linking /2018/03/09/lvalues-rvalues-glvalues-prvalues-xvalues-help/
on “A prvalue is not a temporary”Submitted Lvalues, rvalues, glvalues, prvalues, xvalues, help (2018) as a story · 246 points
HN discussionHe has a good article on that at [1] But here's the gist: sometimes you have an object you want to copy, but then abandon the original. Maybe it's to return an object from a function. Maybe it's to insert the object into a larger structure. In these cases, copying can be expensive and it would be nice if you could just "raid" the original object to steal bits of it and construct the "copy" out of the raided bits. C+…
Comment linking /2018/03/09/lvalues-rvalues-glvalues-prvalues-xvalues-help/
on “A prvalue is not a temporary”Submitted The type of char + char as a story · 57 points
HN discussionSubmitted A prvalue is not a temporary as a story · 42 points
HN discussionSubmitted A prvalue is not a temporary as a story · 37 points
HN discussionSubmitted No-one knows the type of char + char as a story · 3 points
HN discussionSubmitted A Taxonomy of C++ Types as a story · 2 points
HN discussionSubmitted A Taxonomy of C++ Types as a story · 2 points
HN discussionSubmitted I Wrote a C++ Book as a story · 2 points
HN discussionSubmitted We probably shouldn’t have constexpr conditional operator as a story · 2 points
HN discussionSubmitted Microsoft C++ Versions Explained as a story · 2 points
HN discussionSubmitted No-one knows the type of char + char as a story · 2 points
HN discussionSubmitted C++ on a Friday: +“” as a story · 2 points
HN discussionSubmitted C++: lvalues, rvalues, glvalues, prvalues, xvalues, help as a story · 2 points
HN discussionSubmitted Another Reason to Avoid #includes in Headers as a story · 2 points
HN discussionSubmitted References don’t have top-level CV-qualifiers as a story · 1 points
HN discussionSubmitted The difference between no move constructor and a deleted move constructor as a story · 1 points
HN discussionSubmitted No one knows the type of char+char as a story · 1 points
HN discussionSubmitted No-one knows the type of char + char as a story · 1 points
HN discussionSubmitted Help save CppQuiz.org: We’re porting to C++17 as a story · 1 points
HN discussionSubmitted The best explanation of the C++ value categories as a story · 1 points
HN discussionSubmitted NDC 2014 will have 13 C++ talks as a story · 1 points
HN discussionSubmitted Very Strong C++ Track at the NDC Conference as a story · 1 points
HN discussionSubmitted How to avoid includes in headers as a story · 1 points
HN discussion