<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: david2ndaccount</title><link>https://news.ycombinator.com/user?id=david2ndaccount</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Thu, 10 Sep 2026 00:43:00 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=david2ndaccount" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by david2ndaccount in "C extensions, portability, and alternative compilers"]]></title><description><![CDATA[
<p>Use the new standards-conformant preprocessor with `/Zc:preprocessor`<p><a href="https://learn.microsoft.com/en-us/cpp/build/reference/zc-preprocessor?view=msvc-170" rel="nofollow">https://learn.microsoft.com/en-us/cpp/build/reference/zc-pre...</a></p>
]]></description><pubDate>Tue, 26 May 2026 06:05:01 +0000</pubDate><link>https://news.ycombinator.com/item?id=48275621</link><dc:creator>david2ndaccount</dc:creator><comments>https://news.ycombinator.com/item?id=48275621</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48275621</guid></item><item><title><![CDATA[New comment by david2ndaccount in "Use string views instead of passing std:wstring by const&"]]></title><description><![CDATA[
<p>Pascal strings might be the only string design worse than C strings. C Strings at least let you take a zero copy substring of the tail. Pascal strings require a copy for any substring! Strings should be two machine words - length + pointer (aka what is commonly called a string view). This is no different than any other array view. Strings are not a special case.</p>
]]></description><pubDate>Wed, 01 Apr 2026 03:34:32 +0000</pubDate><link>https://news.ycombinator.com/item?id=47596503</link><dc:creator>david2ndaccount</dc:creator><comments>https://news.ycombinator.com/item?id=47596503</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47596503</guid></item><item><title><![CDATA[New comment by david2ndaccount in "TSMC to make advanced AI semiconductors in Japan"]]></title><description><![CDATA[
<p>The world won’t allow a dependence on a single geopolitically threatened entity in the long run, so either they defuse that risk themselves or risk a competitor filling that role. This move is better for TSMC itself.</p>
]]></description><pubDate>Mon, 09 Feb 2026 05:19:45 +0000</pubDate><link>https://news.ycombinator.com/item?id=46941835</link><dc:creator>david2ndaccount</dc:creator><comments>https://news.ycombinator.com/item?id=46941835</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46941835</guid></item><item><title><![CDATA[New comment by david2ndaccount in "C/C++ Embedded Files (2013)"]]></title><description><![CDATA[
<p>If you want to remain portable, write your code in the intersection of the big 3 - GCC, Clang and MSVC - and you’ll be good enough. Other implementations will either be weird enough that many things you’d expect to work won’t or are forced to copy what those 3 do anyway.</p>
]]></description><pubDate>Fri, 26 Dec 2025 18:18:53 +0000</pubDate><link>https://news.ycombinator.com/item?id=46394632</link><dc:creator>david2ndaccount</dc:creator><comments>https://news.ycombinator.com/item?id=46394632</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46394632</guid></item><item><title><![CDATA[New comment by david2ndaccount in "C/C++ Embedded Files (2013)"]]></title><description><![CDATA[
<p>You can apply `#` to __VA_ARGS__, which won’t preserve the exact whitespace, but for many languages it’s good enough. biggest issue is you can’t have `#` in the text.</p>
]]></description><pubDate>Fri, 26 Dec 2025 18:16:11 +0000</pubDate><link>https://news.ycombinator.com/item?id=46394608</link><dc:creator>david2ndaccount</dc:creator><comments>https://news.ycombinator.com/item?id=46394608</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46394608</guid></item><item><title><![CDATA[New comment by david2ndaccount in "How to write generics in C"]]></title><description><![CDATA[
<p>I wrote a similar article in the past: <a href="https://www.davidpriver.com/ctemplates.html" rel="nofollow">https://www.davidpriver.com/ctemplates.html</a><p>I use this technique in my hobby projects as it has worked out the best for me of the options I’ve explored.</p>
]]></description><pubDate>Sat, 15 Nov 2025 15:07:36 +0000</pubDate><link>https://news.ycombinator.com/item?id=45937922</link><dc:creator>david2ndaccount</dc:creator><comments>https://news.ycombinator.com/item?id=45937922</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45937922</guid></item><item><title><![CDATA[New comment by david2ndaccount in "Recursive macros in C, demystified (once the ugly crying stops)"]]></title><description><![CDATA[
<p>Works with MSVC if you add /Zc:preprocessor (to get a standard compliant preprocessor instead of the legacy one).</p>
]]></description><pubDate>Thu, 06 Nov 2025 03:56:20 +0000</pubDate><link>https://news.ycombinator.com/item?id=45831248</link><dc:creator>david2ndaccount</dc:creator><comments>https://news.ycombinator.com/item?id=45831248</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45831248</guid></item><item><title><![CDATA[Samsung Fridge's New Update Gives You Ads While Tracking Your Food]]></title><description><![CDATA[
<p>Article URL: <a href="https://www.howtogeek.com/your-samsung-fridges-new-update-gives-you-ads-while-tracking-your-food/">https://www.howtogeek.com/your-samsung-fridges-new-update-gives-you-ads-while-tracking-your-food/</a></p>
<p>Comments URL: <a href="https://news.ycombinator.com/item?id=45732133">https://news.ycombinator.com/item?id=45732133</a></p>
<p>Points: 2</p>
<p># Comments: 0</p>
]]></description><pubDate>Tue, 28 Oct 2025 12:46:10 +0000</pubDate><link>https://www.howtogeek.com/your-samsung-fridges-new-update-gives-you-ads-while-tracking-your-food/</link><dc:creator>david2ndaccount</dc:creator><comments>https://news.ycombinator.com/item?id=45732133</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45732133</guid></item><item><title><![CDATA[New comment by david2ndaccount in "Writing memory efficient C structs"]]></title><description><![CDATA[
<p>The author relies on the compiler fitting the bitfield in unused padding bytes after “speed”, but that is implementation-defined behavior (almost everything about bitfields is implementation defined). MSVC will align the unsigned bitfield to alignof(unsigned), whereas GCC and clang will use the padding bytes. To portably pack the struct, use unsigned integers and use flags (monster.flags & CAN_FLY instead of monster.can_fly).<p>See <a href="https://c.godbolt.org/z/K7oY77KGj" rel="nofollow">https://c.godbolt.org/z/K7oY77KGj</a></p>
]]></description><pubDate>Wed, 30 Jul 2025 16:13:54 +0000</pubDate><link>https://news.ycombinator.com/item?id=44736118</link><dc:creator>david2ndaccount</dc:creator><comments>https://news.ycombinator.com/item?id=44736118</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=44736118</guid></item><item><title><![CDATA[New comment by david2ndaccount in "Writing memory efficient C structs"]]></title><description><![CDATA[
<p>C23 has _Float16</p>
]]></description><pubDate>Wed, 30 Jul 2025 16:05:38 +0000</pubDate><link>https://news.ycombinator.com/item?id=44735993</link><dc:creator>david2ndaccount</dc:creator><comments>https://news.ycombinator.com/item?id=44735993</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=44735993</guid></item><item><title><![CDATA[New comment by david2ndaccount in "“Reading Rainbow” was created to combat summer reading slumps"]]></title><description><![CDATA[
<p>Summer reading programs are a band-aid on the problem that children shouldn’t have such a long summer break now that air conditioning is common. Spread the breaks out throughout the year if you want to maintain the same number of days off. All evidence shows the summer break is bad for children’s academic achievement (especially poor children), but it is viewed as a perk for the teachers so the teacher’s unions fight against questioning it.</p>
]]></description><pubDate>Thu, 17 Jul 2025 14:56:12 +0000</pubDate><link>https://news.ycombinator.com/item?id=44594108</link><dc:creator>david2ndaccount</dc:creator><comments>https://news.ycombinator.com/item?id=44594108</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=44594108</guid></item><item><title><![CDATA[New comment by david2ndaccount in "Would You Like an IDOR With That? Leaking 64m McDonald's Job Applications"]]></title><description><![CDATA[
<p>> We immediately began disclosure of this issue once we realized the potential impact. Unfortunately, no disclosure contacts were publicly available and we had to resort to emailing random people. The Paradox.ai security page just says that we do not have to worry about security!<p>Amazing.</p>
]]></description><pubDate>Wed, 09 Jul 2025 23:12:13 +0000</pubDate><link>https://news.ycombinator.com/item?id=44515655</link><dc:creator>david2ndaccount</dc:creator><comments>https://news.ycombinator.com/item?id=44515655</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=44515655</guid></item><item><title><![CDATA[New comment by david2ndaccount in "I write type-safe generic data structures in C"]]></title><description><![CDATA[
<p>The “typeof on old compilers” section contains the code:<p><pre><code>         (list)->payload = (item); /* just for type checking */\
</code></pre>
That is not a no-op. That is overwriting the list head with your (item). Did you mean to wrap it in an `if(0)`?</p>
]]></description><pubDate>Mon, 30 Jun 2025 22:32:02 +0000</pubDate><link>https://news.ycombinator.com/item?id=44428640</link><dc:creator>david2ndaccount</dc:creator><comments>https://news.ycombinator.com/item?id=44428640</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=44428640</guid></item><item><title><![CDATA[New comment by david2ndaccount in "Variadic Switch"]]></title><description><![CDATA[
<p>In D, you can just do a static foreach over a sequence to generate case labels:<p><a href="https://d.godbolt.org/z/PxWEW14K1" rel="nofollow">https://d.godbolt.org/z/PxWEW14K1</a></p>
]]></description><pubDate>Wed, 14 May 2025 22:31:01 +0000</pubDate><link>https://news.ycombinator.com/item?id=43989858</link><dc:creator>david2ndaccount</dc:creator><comments>https://news.ycombinator.com/item?id=43989858</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=43989858</guid></item><item><title><![CDATA[New comment by david2ndaccount in "DoorDash to acquire Deliveroo"]]></title><description><![CDATA[
<p>Don’t ignore food addiction, the app turns into a button you can press on your phone and in a bit you’ll have a dopamine hit from the food. You don’t have to get dressed or confront the reality of your situation.</p>
]]></description><pubDate>Wed, 07 May 2025 15:42:27 +0000</pubDate><link>https://news.ycombinator.com/item?id=43917166</link><dc:creator>david2ndaccount</dc:creator><comments>https://news.ycombinator.com/item?id=43917166</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=43917166</guid></item><item><title><![CDATA[New comment by david2ndaccount in "Driving Compilers (2023)"]]></title><description><![CDATA[
<p>That’s not the point of hello world. It’s not to be as small a valid program as possible. It’s to be a small program that also exercises the needed functionality for using the tool usefully. All of the exercises following that hello world need formatted text, so introducing puts would just add confusion and wouldn’t verify that you have a working printf.</p>
]]></description><pubDate>Mon, 05 May 2025 14:30:29 +0000</pubDate><link>https://news.ycombinator.com/item?id=43895559</link><dc:creator>david2ndaccount</dc:creator><comments>https://news.ycombinator.com/item?id=43895559</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=43895559</guid></item><item><title><![CDATA[New comment by david2ndaccount in "Converting a Git repo from tabs to spaces (2016)"]]></title><description><![CDATA[
<p>Tabs are a control character and have no business being in a text file. Do you use ascii record separator characters too?</p>
]]></description><pubDate>Fri, 02 May 2025 20:58:56 +0000</pubDate><link>https://news.ycombinator.com/item?id=43874518</link><dc:creator>david2ndaccount</dc:creator><comments>https://news.ycombinator.com/item?id=43874518</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=43874518</guid></item><item><title><![CDATA[New comment by david2ndaccount in "An Introduction to Modern CMake"]]></title><description><![CDATA[
<p>You’re switching to the build system of a different, pre 1.0 programming language that has frequent breaking changes?</p>
]]></description><pubDate>Tue, 15 Apr 2025 20:55:30 +0000</pubDate><link>https://news.ycombinator.com/item?id=43698278</link><dc:creator>david2ndaccount</dc:creator><comments>https://news.ycombinator.com/item?id=43698278</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=43698278</guid></item><item><title><![CDATA[New comment by david2ndaccount in "Better typography with text-wrap pretty"]]></title><description><![CDATA[
<p>This does actually look a lot better. Using the inspector to toggle it on and off, “pretty” does look a lot prettier.</p>
]]></description><pubDate>Tue, 08 Apr 2025 20:30:15 +0000</pubDate><link>https://news.ycombinator.com/item?id=43626139</link><dc:creator>david2ndaccount</dc:creator><comments>https://news.ycombinator.com/item?id=43626139</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=43626139</guid></item><item><title><![CDATA[New comment by david2ndaccount in "WorstFit: Unveiling Hidden Transformers in Windows ANSI"]]></title><description><![CDATA[
<p>Backslash is a valid path character (you can use / or \ as the path separator on windows) so if the backslash isn’t actually escaping anything it is left as-is.</p>
]]></description><pubDate>Fri, 10 Jan 2025 06:15:22 +0000</pubDate><link>https://news.ycombinator.com/item?id=42653103</link><dc:creator>david2ndaccount</dc:creator><comments>https://news.ycombinator.com/item?id=42653103</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=42653103</guid></item></channel></rss>