<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: hxhxhrra</title><link>https://news.ycombinator.com/user?id=hxhxhrra</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Wed, 20 May 2026 21:13:18 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=hxhxhrra" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by hxhxhrra in "Show HN: Kuboble.com – Minimalistic sliding pieces puzzle game"]]></title><description><![CDATA[
<p>Maybe consider a different color palette. I have a red/green color blindness (like ~8% of the male population), and I can only barely differentiate the colors.</p>
]]></description><pubDate>Wed, 08 Feb 2023 10:51:32 +0000</pubDate><link>https://news.ycombinator.com/item?id=34706484</link><dc:creator>hxhxhrra</dc:creator><comments>https://news.ycombinator.com/item?id=34706484</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=34706484</guid></item><item><title><![CDATA[New comment by hxhxhrra in "Falsehoods programmers believe about undefined behavior"]]></title><description><![CDATA[
<p>I wouldn't call some cases of UB like overflowing a signed int or running into a dangling reference "actively pushing the compiler". I'm having a hard time believing you didn't ever run into these or similar issues having "programmed for a long time".<p>For other cases (e.g. aliasing, alignment), I'd agree that one is rather safe as long as the dangerous tools (e.g. reinterpret_cast) are not used.</p>
]]></description><pubDate>Mon, 28 Nov 2022 12:44:25 +0000</pubDate><link>https://news.ycombinator.com/item?id=33772914</link><dc:creator>hxhxhrra</dc:creator><comments>https://news.ycombinator.com/item?id=33772914</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=33772914</guid></item><item><title><![CDATA[New comment by hxhxhrra in "GCC undefined behaviors are getting wild"]]></title><description><![CDATA[
<p>> I don't believe that it does. 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.<p>You may dislike it, but that is not how UB in C and C++ works. See [1] for a guide to UB in C/C++ that may already have been posted elsewhere here.<p>It is a common misconception that UB on a particular operation means "undefined result", but that is not the case. UB means there are no constraints whatsoever on the behavior of the program after UB, often referred to as "may delete all your files". See [2] for a real-world demo doing that.<p>[1] <a href="https://blog.regehr.org/archives/213" rel="nofollow">https://blog.regehr.org/archives/213</a><p>[2] <a href="https://kristerw.blogspot.com/2017/09/why-undefined-behavior-may-call-never.html" rel="nofollow">https://kristerw.blogspot.com/2017/09/why-undefined-behavior...</a></p>
]]></description><pubDate>Mon, 28 Nov 2022 11:54:02 +0000</pubDate><link>https://news.ycombinator.com/item?id=33772485</link><dc:creator>hxhxhrra</dc:creator><comments>https://news.ycombinator.com/item?id=33772485</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=33772485</guid></item><item><title><![CDATA[New comment by hxhxhrra in "GCC undefined behaviors are getting wild"]]></title><description><![CDATA[
<p>As others are pointing out, the C standard does allow this.
There is no safe way to check for undefined behavior (UB) after it has happened, because the whole program is immediately invalidated.<p>This has caused a Linux kernel exploit in the past [1], with GCC removing a null pointer check after a pointer had been dereferenced. Null pointer dereferences are UB, thus GCC was allowed to remove the following check against null. In the kernel, accessing a null ptr is technically fine, so the Linux kernel is now compiled with -fno-delete-null-pointer-checks, extending the list of differences between standard C and Linux kernel C.<p>[1]: <a href="https://lwn.net/Articles/342330/" rel="nofollow">https://lwn.net/Articles/342330/</a></p>
]]></description><pubDate>Mon, 28 Nov 2022 07:13:31 +0000</pubDate><link>https://news.ycombinator.com/item?id=33770589</link><dc:creator>hxhxhrra</dc:creator><comments>https://news.ycombinator.com/item?id=33770589</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=33770589</guid></item><item><title><![CDATA[New comment by hxhxhrra in "Show HN: Twelve Simple Algorithms to Compute Fibonacci Numbers"]]></title><description><![CDATA[
<p>Algorithm fib1 („Dynamic Programming without Memoization“) is just ordinary recursion and <i>not</i> dynamic programming.</p>
]]></description><pubDate>Sun, 01 Mar 2020 10:05:06 +0000</pubDate><link>https://news.ycombinator.com/item?id=22456175</link><dc:creator>hxhxhrra</dc:creator><comments>https://news.ycombinator.com/item?id=22456175</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=22456175</guid></item><item><title><![CDATA[New comment by hxhxhrra in "The On-Line Encyclopedia of Integer Sequences"]]></title><description><![CDATA[
<p>It is hard to overestimate the importance of the OEIS in enumerative combinatorics.<p>I discovered the main results of my PhD thesis essentially as follows:<p>1. Find complicated construction A, hoping to prove some new results.<p>2. Fail to sufficiently understand/analyze A.<p>3. Write computer program to analyze characteristics of A for small n.<p>4. Using OEIS, discover that apparently A is (in some sense) equivalent to some completely different construction B, which is much simpler and well-understood.<p>5. Show desired result as well as further other results using B and variations of it.</p>
]]></description><pubDate>Sun, 27 Oct 2019 20:34:55 +0000</pubDate><link>https://news.ycombinator.com/item?id=21372209</link><dc:creator>hxhxhrra</dc:creator><comments>https://news.ycombinator.com/item?id=21372209</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21372209</guid></item><item><title><![CDATA[New comment by hxhxhrra in "Show HN: Interactive visual solver for the traveling salesman problem"]]></title><description><![CDATA[
<p>This problem is called Chinese Postman Problem and can be solved in polynomial time using matching algorithms:<p><a href="https://en.m.wikipedia.org/wiki/Route_inspection_problem" rel="nofollow">https://en.m.wikipedia.org/wiki/Route_inspection_problem</a></p>
]]></description><pubDate>Wed, 16 Oct 2019 18:21:20 +0000</pubDate><link>https://news.ycombinator.com/item?id=21273612</link><dc:creator>hxhxhrra</dc:creator><comments>https://news.ycombinator.com/item?id=21273612</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=21273612</guid></item></channel></rss>