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

Top all-time · #8704

S

Shafik Yaghmour

Personal blog · shafik.github.ioprogrammingsystems

Shafik Yaghmour's personal blog at shafik.github.io covers programming and systems. Since 2019, 9 different Hacker News readers have linked it 13 times, most often “Exploring undefined behavior using constexpr”. It is still writing: the last post was on 2025-09-22, and you can follow it by feed.

Visit the blog
13mentions?
9HN people?
2019–2024first – last linked?
Links on Hacker News per year · peak 5 in 2022

Too few sampled comments (3) to say how often HN recommends it.?

Why HN links it

Shafik Yaghmour's posts on C and C++ undefined behavior, constexpr, and GCC behavior. Commenters cite them as supporting references for points about compilers and UB, without evaluating the writing.

Summarised by Claude from a sample of 3 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.

Blog about C++, C, Undefined Behavior and Compilers

Most-linked posts?

  1. Exploring undefined behavior using constexpr
    6 people · 6 mentions · first linked 2019-05-11
  2. The Usual Arithmetic Confusions
    3 people · 3 mentions · first linked 2022-01-01

What Hacker News says?

  1. Triggering UB is a compiler error in constexpr code. https://shafik.github.io/c++/undefined%20behavior/2019/05/11...

    Comment linking /c++/undefined%20behavior/2019/05/11/explporing_undefined_behavior_using_constexpr.html

    on “Learning that you can use unions in C for grouping things into namespaces”
  2. Submitted The Usual Arithmetic Confusions as a story · 44 points

    HN discussion
  3. This is technically correct, but I believe this is also a very buggy area of the compiler and there are cases where it will accept undefined behavior in a constexpr context: https://shafik.github.io/c++/undefined%20behavior/2019/05/11...

    Comment linking /c++/undefined%20behavior/2019/05/11/explporing_undefined_behavior_using_constexpr.html

    on “One Word Broke C”
  4. Submitted Triaging Clang C++ front end bugs as a story · 37 points

    HN discussion
  5. C++ bans undefined behavior in constexpr, so you can force GCC to prove that code has no undefined behavior by sprinkling it in declarations where applicable: https://shafik.github.io/c++/undefined%20behavior/2019/05/11...

    Comment linking /c++/undefined%20behavior/2019/05/11/explporing_undefined_behavior_using_constexpr.html

    on “GCC undefined behaviors are getting wild”
  6. Submitted Exploring undefined behavior using constexpr as a story · 26 points

    HN discussion
  7. Submitted C++ initialization, arrays and lambdas oh my as a story · 5 points

    HN discussion
  8. Submitted Let’s Enumerate the UB as a story · 1 points

    HN discussion
  9. Submitted The Usual Arithmetic Confusions as a story · 1 points

    HN discussion
  10. Submitted The Usual Arithmetic Confusions as a story · 1 points

    HN discussion
  11. Submitted Exploring Undefined Behavior Using Constexpr (2019) as a story · 1 points

    HN discussion
  12. Submitted Is Zero a Butterfly? as a story · 1 points

    HN discussion
  13. Submitted Exploring Undefined Behavior Using Constexpr as a story · 1 points

    HN discussion

Search all of HN for shafik.github.io

Linked by the same people?