Hacker Blogs
Work in progress: 15,409 of 181,233 sites checked so far, more every week · updated 2 Nov 2026Missing a blog? Tell us

Top all-time · #2307

C

C++ Stories

Personal blog · cppstories.comprogramming

C++ Stories is a personal blog at cppstories.com about programming. Since 2020, 35 different Hacker News readers have linked it 143 times, most often “A New Book: Data Member Initialization in Modern C++”. It is still writing: the last post was on 2026-10-11, and you can follow it by feed.

Visit the blog
143mentions?
35HN people?
2020–2026first – last linked?
Links on Hacker News per year · peak 44 in 2022

Stay up-to-date with Modern C++

Most-linked posts?

  1. A New Book: Data Member Initialization in Modern C++
    4 people · 4 mentions · first linked 2022-06-20
  2. How to Stay Sane with Modern C++
    3 people · 3 mentions · first linked 2021-02-28
  3. Understanding std:counting_semaphore and std:binary_semaphore from C++20
    3 people · 3 mentions · first linked 2026-08-08
  4. How to Init a String, Looking for Sanity
    3 people · 3 mentions · first linked 2022-08-29
  5. /2023/init-story-print/
    2 people · 2 mentions · first linked 2023-03-28
  6. Finite State Machine with Std:Variant – Vending Machine
    2 people · 2 mentions · first linked 2023-07-10
  7. How to Improve or Avoid Loops in C++20 23
    2 people · 2 mentions · first linked 2022-09-26
  8. Embracing Modern C++ Safely, Book Review
    2 people · 2 mentions · first linked 2022-05-30
  9. Custom types and std:format from C++20
    2 people · 2 mentions · first linked 2022-07-25
  10. Understanding Std:Shared_mutex from C++17
    2 people · 2 mentions · first linked 2026-02-15

What Hacker News says?

  1. Some of C++ features are great, as recently discussed on the Linux kernel mailing list. However for many of Cs usecases, they are not appropriate, like exceptions and RAII in embedded. Once you start disabling major features those 'power tools' become far less attractive. Also, to extend the metaphor, hand tools are usually obvious and easy to use while power tools can have very long manuals. See for example the 275…

    Comment linking /2022/cpp-init-book/

    on “C23: A Slightly Better C”
  2. Submitted C++26 Contracts: Introduction to Preconditions and Postconditions as a story · 151 points

    HN discussion
  3. So, what programmers wanted (yes, already before C++ got this) was what are called "destructive move semantics". These assignment semantics work how real life works. If I give you this Rubik's Cube now you have the Rubik's Cube and I do not have it any more. This unlocks important optimisations for non-trivial objects which have associated resources, if I can give you a Rubik's Cube then we don't need to clone mine,…

    Comment linking /2023/init-story-print/

    on “In Defense of C++”
  4. Submitted Embracing Modern C++ Safely, Book Review as a story · 135 points

    HN discussion
  5. Isn't that what the linked website is for? https://www.cppstories.com/p/start-here/

    Comment linking /p/start-here/

    on “Curious C++ Lambda Examples: Recursion, constexpr, Containers C++23 included”
  6. Submitted Enum class improvements for C++17, C++20 and C++23 as a story · 103 points

    HN discussion
  7. This book `Embracing Modern C++ safely` just showed up in my book feed, you may find it useful. [1] is a review of the book. [1] https://www.cppstories.com/2022/embracing-modern-cpp-book/

    Comment linking /2022/embracing-modern-cpp-book/

    on “Ask HN: What are some good resources to learn safety-critical C/C++ coding from?”
  8. Submitted C++26: Standard Library Hardening Experiments as a story · 91 points

    HN discussion
  9. Read through https://www.learncpp.com . You'll get a complete refresher on the language, but it will be using modern C++ stuff (modern in this case means C++17). For C++20 and newer, honestly, the only big feature that I ever use is concepts, although I do also use the new struct initialization syntax[0]. [0]: https://www.cppstories.com/2021/designated-init-cpp20/

    Comment linking /2021/designated-init-cpp20/

    on “Ask HN: Catching Up on C++?”
  10. Submitted C++ String Conversion: Exploring std:from_chars in C++17 to C++26 as a story · 77 points

    HN discussion
  11. Here's the direct link to the blog post on the book: https://www.cppstories.com/2023/init-story-print/ And the book at Leanpub: https://leanpub.com/cppinitbook

    Comment linking /2023/init-story-print/

    on “Initialization in Modern C++ (295 pages)”
  12. Submitted Curious C++ Lambda Examples: Recursion, constexpr, Containers C++23 included as a story · 67 points

    HN discussion
  13. It depends on what problem you are trying to solve, your programming style, and the size of your team. I personally will avoid C++ if possible because it has too much complexity, too many "gotchas", and there are better choices available (Rust, Go, Ada, C, etc.). Some people like C++ and that is fine. They can use it. I will use something else if at all possible. https://en.wikipedia.org/wiki/Criticism_of_C%2B%2B ht…

    Comment linking /2022/cpp-init-book/

    on “Ask HN: What’s bad about C++? I kinda like it”
  14. Submitted C++20 Ranges Algorithms – Non-Modifying Operations as a story · 63 points

    HN discussion
  15. There are discussions in many places about this, including right here on HN. I encourage you to Google it. Here are some examples: https://news.ycombinator.com/item?id=24537267 https://www.cppstories.com/2018/01/pimpl/#pros-and-cons It used to be a widely advertised technique maybe a decade ago, but it has long gone out of style.

    Comment linking /2018/01/pimpl/

    on “Speed Up C++ Compilation”
  16. Submitted C++ Software Security Sins: Basic Issues as a story · 57 points

    HN discussion
  17. Sorry, I still don't get how it's different from C++, and my point wasn't about `auto` but rather about `std::vector v2`: std::vector v2 (v1.begin() + 1, v1.begin() + 2); > However, in the provided example, the Rust type checker can use the provided clue to narrow this down to an exact type The Rust example is incomplete and its RHS by the time it gets to `.collect()` within the context of `iterator` has to be bound…

    Comment linking /2021/concepts-intro/

    on “Rust vs. Haskell”
  18. Submitted C++20 Oxymoron: Constexpr Virtual as a story · 54 points

    HN discussion
  19. https://www.cppstories.com/2026/shared_mutex/#newer-concurre... > Since C++17, the concurrency library has expanded significantly. We now have: > ... > safe memory reclamation mechanisms (RCU, hazard pointers in C++26) > These tools focus mostly on thread lifetime, coordination, cancellation or lock-free programming. > std::shared_mutex fills a different role. > It is still a mutual-exclusion primitive, explicitly d…

    Comment linking /2026/shared_mutex/

    on “Understanding Std:Shared_mutex from C++17”
  20. Submitted C++ Templates: How to Iterate through std:tuple: std:apply and More as a story · 47 points

    HN discussion
  21. Less known fact is that it's called C++23 because there are 23 ways to initialize a variable. Of course, it's a joke. In reality C++23 has only 20 ways to initialize a variable: https://www.cppstories.com/2022/init-string-options/ https://blog.tartanllama.xyz/initialization-is-bonkers/

    Comment linking /2022/init-string-options/

    on “Const vs. constexpr vs. consteval vs. constinit in C++20”
  22. Submitted Integer Conversions and Safe Comparisons in C++20 as a story · 46 points

    HN discussion
  23. Submitted Adjacency Matrix and std:mdspan, C++23 as a story · 35 points

    HN discussion
  24. Submitted Implementing Parallel Copy_If in C++ as a story · 29 points

    HN discussion
  25. Submitted All Major C++17 Features You Should Know as a story · 22 points

    HN discussion
  26. Submitted Sfinae, Immediate Context, Operator as a story · 14 points

    HN discussion
  27. Submitted How to join or concat ranges, C++26 as a story · 13 points

    HN discussion
  28. Submitted C++20 Concepts – A Quick Introduction as a story · 8 points

    HN discussion
  29. Submitted C++ Smart Pointer Gotchas (2013) as a story · 5 points

    HN discussion
  30. Submitted Std: Initializer_list in C++ – Caveats and Improvements as a story · 4 points

    HN discussion

Search all of HN for cppstories.com

Linked by the same people?