Top all-time · #8422
Mark Shroyer
Personal blog · markshroyer.com · on HN as mshroyerprogramming
Mark Shroyer writes mark shroyer, dot com, a personal blog at markshroyer.com about programming. Since 2010, 9 different Hacker News readers have linked it 12 times, most often “Both true and false: a Zen moment with C”. It is still writing: the last post was on 2025-12-17, and you can follow it by feed.
Too few sampled comments (6) to say how often HN recommends it.?
Why HN links it
HN readers link Mark Shroyer's posts on C undefined behaviour and his pointfree library docs, mostly as examples or references. One commenter calls one post on undefined behaviour a good blog post.
Summarised by Claude from a sample of 6 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
Most-linked posts?
- /2012/06/c-both-true-and-false/3 people · 3 mentions · first linked 2018-06-27
- Both true and false: a Zen moment with C2 people · 2 mentions · first linked 2012-06-27
What Hacker News says?
Yes, and you can later do fun things with these functions, it seems: https://markshroyer.com/docs/pointfree/latest/overview.html
Comment linking /docs/pointfree/latest/overview.html
on “Write code. Not too much. Mostly functions.”Submitted In love with the BBC micro:bit as a story · 184 points
HN discussionDoes this example help? http://markshroyer.com/2012/06/c-both-true-and-false/
Comment linking /2012/06/c-both-true-and-false/
on “Proposal for a Friendly Dialect of C”Submitted Both true and false: a Zen moment with C as a story · 177 points
HN discussionSaw your presentation at Montréal-Python, it was very good. Have you played with pointfree ( http://markshroyer.com/docs/pointfree/latest/module.html#mod... )? What do you think about it compared to Moka?
Comment linking /docs/pointfree/latest/module.html
on “Making Coffeescript’s Whitespace More Significant”Submitted Pointfree style in Python as a story · 104 points
HN discussion- Removing Linux NULL pointer check: https://blog.regehr.org/archives/970 - Time traveling undefined behavior: h https://devblogs.microsoft.com/oldnewthing/20140627-00/?p=63... - bool that is both true and false: https://markshroyer.com/2012/06/c-both-true-and-false/ - Turning finite loops into infinite one: https://stackoverflow.com/questions/24296571/why-does-this-l... From: https://twitter.com/shafikyaghmour/stat…
Comment linking /2012/06/c-both-true-and-false/
on “Ask HN: What's your worst undefined C story?”Submitted Microsoft Outlook ruins my evening as a story · 55 points
HN discussion> Consider the following example: if (cond) { A[1] = X; } else { A[0] = X; } > A total license implementation could determine that, in the absence of any undefined behavior, the condition cond must have value 0 or 1. > If undefined behavior occurred somewhere in the integer arithmetic of cond, then cond could end up evaluating to a value other than 0 or 1 I don't even follow this very first example. Neither C nor C+…
Comment linking /2012/06/c-both-true-and-false/
on “Dangerous Optimizations and the Loss of Causality in C and C++ (2010) [pdf]”Submitted Juggling Multiple SSH_AUTH_SOCKs in Tmux as a story · 1 points
HN discussion> If the invalid arithmetic proceeds without crashing, and produces a value in the int32_t i variable, then that issue is settled. The subsequent statement should behave according to accessing that value. The C standard imposes no such constraint on undefined behaviour, neither is it the case that real compilers always behave as if it did. hxhxhrra has already shown this, but here's another good blog post on this ki…
Comment linking /2012/06/c-both-true-and-false/
on “GCC undefined behaviors are getting wild”Submitted Debugging the OpenBSD kernel via QEMU as a story · 1 points
HN discussion