<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Hacker News: rocketrascal</title><link>https://news.ycombinator.com/user?id=rocketrascal</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Wed, 20 May 2026 18:42:45 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=rocketrascal" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by rocketrascal in "Everything in C is undefined behavior"]]></title><description><![CDATA[
<p>Are you sure?<p>>unsequenced side effects on the same scalar object  are UB<p>>6.5.3.3.8 tells us that the evaluations of function arguments are indeterminately sequenced w.r.t. each other.<p>Read 5.1.2.4.3:<p>"If A is not sequenced before or after B, then A and B are <i>unsequenced</i>."<p>"Evaluations A and B are <i>indeterminately sequenced</i> when A is sequenced either before or after B, but it is unspecified which."<p>With a footnote saying this:<p>"9)The executions of unsequenced evaluations can interleave. Indeterminately sequenced evaluations cannot interleave, but can be executed in any order."<p>I.e the standard makes a distinction between "unsequenced" and "indeterminately sequenced".
And with no mention of side effects on "indeterminately sequenced" being UB it leads me to conclude that your example is not UB.</p>
]]></description><pubDate>Wed, 20 May 2026 13:12:43 +0000</pubDate><link>https://news.ycombinator.com/item?id=48207134</link><dc:creator>rocketrascal</dc:creator><comments>https://news.ycombinator.com/item?id=48207134</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48207134</guid></item><item><title><![CDATA[New comment by rocketrascal in "Everything in C is undefined behavior"]]></title><description><![CDATA[
<p>You can't make any useful software in "Portable C" - or any portable language for that matter.<p>Side effects matter, and they are always non-portable/implementation defined/dependent on the hardware.<p>What printf() <i>actaully</i> does is implementation defined - what does "printing mean", does a console even exist? Maybe a user expects it to show graphical ascii/utf8 glyphs on a LCD display? Well, not every computer has that, so now what?</p>
]]></description><pubDate>Wed, 20 May 2026 11:52:58 +0000</pubDate><link>https://news.ycombinator.com/item?id=48206257</link><dc:creator>rocketrascal</dc:creator><comments>https://news.ycombinator.com/item?id=48206257</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48206257</guid></item><item><title><![CDATA[New comment by rocketrascal in "Everything in C is undefined behavior"]]></title><description><![CDATA[
<p>You can fail to verify something which you actually wanted to verify (i.e you made a proof of something else instead of the thing that mattered). See WPA2 KRACK as an example.</p>
]]></description><pubDate>Wed, 20 May 2026 11:34:27 +0000</pubDate><link>https://news.ycombinator.com/item?id=48206091</link><dc:creator>rocketrascal</dc:creator><comments>https://news.ycombinator.com/item?id=48206091</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48206091</guid></item></channel></rss>