<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: thomashabets2</title><link>https://news.ycombinator.com/user?id=thomashabets2</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Sat, 28 Nov 2026 08:30:48 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=thomashabets2" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by thomashabets2 in "Predicting LoRA size for any dataset"]]></title><description><![CDATA[
<p>Microsoft didn't google "LoRa" before choosing the extremely poor name "LoRA" for this completely unrelated thing.<p>Or maybe they didn't find anything, because they used bing?</p>
]]></description><pubDate>Wed, 25 Nov 2026 21:06:49 +0000</pubDate><link>https://news.ycombinator.com/item?id=50647550</link><dc:creator>thomashabets2</dc:creator><comments>https://news.ycombinator.com/item?id=50647550</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50647550</guid></item><item><title><![CDATA[New comment by thomashabets2 in "A thousand fewer paths to root"]]></title><description><![CDATA[
<p>It's a different model of development. One that doesn't invite collaboration outside full timers, or "committers".<p>SVN is CVS done right, but since the model is inherently ineffective for open development, you can't simply fix it.<p>They appear to be doing some NIH with "got" (<a href="https://gameoftrees.org/" rel="nofollow">https://gameoftrees.org/</a>) but it's so aggressively uninviting (see the FAQ) that I don't want to spend any time looking at it, if they don't want me.</p>
]]></description><pubDate>Fri, 06 Nov 2026 10:26:57 +0000</pubDate><link>https://news.ycombinator.com/item?id=50390572</link><dc:creator>thomashabets2</dc:creator><comments>https://news.ycombinator.com/item?id=50390572</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50390572</guid></item><item><title><![CDATA[New comment by thomashabets2 in "A thousand fewer paths to root"]]></title><description><![CDATA[
<p>> There's no fundamental reason why all the checks applied by say, a Rust compiler, couldn't be applied to a piece of C code.<p>I've certainly thought about how to improve my C++ after internalizing Rust. Unfortunately I've come up with very little. For every implementation of a Rust safety, I've come up with a way to easily (accidentally) break it.<p>So <i>in</i> the language, while I'd love to see it, I'm not so sure.<p>Now, if we can just get "a sufficiently smart compiler", then that'd be great. But that's rarely how that works. (cf. <a href="https://wiki.c2.com/?SufficientlySmartCompiler" rel="nofollow">https://wiki.c2.com/?SufficientlySmartCompiler</a>)<p>I've not looked much at formally proven code, but for such code, sure. Note that there are plenty of examples of bugs in formally verified code, too. Partly this is because one formally verified the wrong thing. And aside from that I understand that there are reasons you can't "just" add formal verification to whatever project you have.<p>Maybe AI can write prefect assembly directly. Then we can all stop arguing about languages.<p>But in any case, if you want to make the case against my "nobody can write safe C" (or C without UB), and the argument is that they can, if an AI verifies every line. Then yeah, sure. But 1) who was actually writing the code, then? And 2) to the extent that the human was involved in writing the C, they probably made things worse, not better.<p>Even for AI coding C, there just needs to be one missing thing in the LLM's context, and a buffer could overflow. But for whole classes of bugs (though not all), the difference between Rust-without-unsafe and formally verified doesn't matter. I.e. you don't need formally verified against memory safety if it compiles, and there was no `unsafe` use.<p>> Gotta have developer velocity, right?<p>Not having AI at least review the code delta before pushing a release I would say is misconduct, today. It's the equivalent of editing your Perl cgi-bin in an editor live on the production server. That's not "production".<p>> pick a random open source project,<p>This is what I mean by not being "production". I won't judge anyone live-yoloing their blog, or "it works for my use case, it's GPL, provided AS-IS don't bother me", which is perhaps most opensource. You don't care if it works? Fine.<p>But you <i>do</i> care if it works, and/or is safe, and you push releases without AI review: yer fired.<p>Yes, we have to get from here to there, and I'm not saying release freeze until the entire codebase backlog has been AI-fixed, but yes today you need to have AI review the release <i>delta</i>. Ideally pre-commit.</p>
]]></description><pubDate>Thu, 05 Nov 2026 21:22:58 +0000</pubDate><link>https://news.ycombinator.com/item?id=50384634</link><dc:creator>thomashabets2</dc:creator><comments>https://news.ycombinator.com/item?id=50384634</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50384634</guid></item><item><title><![CDATA[New comment by thomashabets2 in "A thousand fewer paths to root"]]></title><description><![CDATA[
<p>Seems I misremembered. Two reported bugs in find, but didn't want to get yelled at (again) so did not report the cat one. Cat -n is not in any standard, but at least in my opinion there's no way openbsd's behaviour on "cat -n a b" when "a" doesn't end in a newline is desired.<p>Yup, they did merge both find bugs.<p>The ignored ones seem to be my reported doas bug (not security problem, but directly contradicts manage about a config keyword detail) and efiboot.<p>IIRC the latter bug was like... this can <i>never</i> have worked.<p>I just checked the GitHub mirror, and those two are still not picked up.</p>
]]></description><pubDate>Thu, 05 Nov 2026 18:54:42 +0000</pubDate><link>https://news.ycombinator.com/item?id=50382894</link><dc:creator>thomashabets2</dc:creator><comments>https://news.ycombinator.com/item?id=50382894</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50382894</guid></item><item><title><![CDATA[New comment by thomashabets2 in "A thousand fewer paths to root"]]></title><description><![CDATA[
<p>Sigh.<p>Yes, I reported some of them. Some got fixed, some got ignored. You can search my name on openbsd-tech and misc for proof.<p>I found more, but the ratio of ignored to fixed is too high to bother.<p>Years ago I also fixed bugs in the MPLS implementation. Like bugs I found <i>immediately</i> upon using the feature. (IIRC e.g. implicit null was erroneously pushed explicitly)</p>
]]></description><pubDate>Thu, 05 Nov 2026 13:13:11 +0000</pubDate><link>https://news.ycombinator.com/item?id=50378690</link><dc:creator>thomashabets2</dc:creator><comments>https://news.ycombinator.com/item?id=50378690</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50378690</guid></item><item><title><![CDATA[New comment by thomashabets2 in "A thousand fewer paths to root"]]></title><description><![CDATA[
<p>It's not derogatory. Less than 0.1% is accurately described as almost nobody.<p>I like openbsd in theory, but every time I've tried something practical prevents actual use.<p>It's old now, but here are some thoughts of mine from 2019: <a href="https://blog.habets.se/2019/10/OpenBSD-in-2019.html" rel="nofollow">https://blog.habets.se/2019/10/OpenBSD-in-2019.html</a></p>
]]></description><pubDate>Thu, 05 Nov 2026 13:10:34 +0000</pubDate><link>https://news.ycombinator.com/item?id=50378671</link><dc:creator>thomashabets2</dc:creator><comments>https://news.ycombinator.com/item?id=50378671</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50378671</guid></item><item><title><![CDATA[New comment by thomashabets2 in "A thousand fewer paths to root"]]></title><description><![CDATA[
<p>You're painting a picture that code written with love is perfectly safe. It's not.<p>Yes, openbsd has not had a torrent of bugs found, but I would say that the vastly bigger reasons for that are: 1) orders of magnitude people care about burning tokens and money to find the bugs in an OS almost nobody uses, and 2) it's simply much smaller. Can't have Bluetooth bugs if you don't have a Bluetooth stack.<p>I've pointed LLMs at obsd stuff, and even the simplest code, e.g. cat & find, had bugs and buffer overflows.<p>OpenBSD also has a poor patch tracking system, since they're still on CVS. A patch has an extremely good chance of just falling through the cracks. Security or not.<p>So no. Nobody can write safe C. Not hobbyists, and not "those evil corporations".</p>
]]></description><pubDate>Thu, 05 Nov 2026 09:06:42 +0000</pubDate><link>https://news.ycombinator.com/item?id=50376927</link><dc:creator>thomashabets2</dc:creator><comments>https://news.ycombinator.com/item?id=50376927</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50376927</guid></item><item><title><![CDATA[New comment by thomashabets2 in "Software may be getting worse, but it used to be horrible"]]></title><description><![CDATA[
<p>Well, it was a mix. Win32, then the Lotus family just refused to conform.<p>And some others. IP? No, we are a NetWare IPX network!!</p>
]]></description><pubDate>Tue, 27 Oct 2026 13:00:04 +0000</pubDate><link>https://news.ycombinator.com/item?id=50258495</link><dc:creator>thomashabets2</dc:creator><comments>https://news.ycombinator.com/item?id=50258495</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50258495</guid></item><item><title><![CDATA[New comment by thomashabets2 in "Attention people who think UB is fine"]]></title><description><![CDATA[
<p>I believe this is <a href="https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/p1494r5.html" rel="nofollow">https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/p14...</a> and seen in 4.1.2p6 of <a href="https://eel.is/c++draft/intro.abstract" rel="nofollow">https://eel.is/c++draft/intro.abstract</a>, and then p7 lists what the time travel gates (observable behavior) is.<p>Now if this actually made it into the C++26 standard, I've not paid to get the official one, but it's in the N5050 draft: <a href="https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2026/n5050.pdf" rel="nofollow">https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2026/n50...</a></p>
]]></description><pubDate>Mon, 26 Oct 2026 09:51:26 +0000</pubDate><link>https://news.ycombinator.com/item?id=50241367</link><dc:creator>thomashabets2</dc:creator><comments>https://news.ycombinator.com/item?id=50241367</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50241367</guid></item><item><title><![CDATA[New comment by thomashabets2 in "Attention people who think UB is fine"]]></title><description><![CDATA[
<p>Author here.<p>Of course I would also prefer a warning, or at least a guarding trap instruction. And maybe compilers should try harder to be friendly in this way.<p>But they can't be perfect, because the program specified something syntactically valid, but semantically invalid. The module/compiler pass that could theoretically detect it may simply not be issued the necessary information. E.g. a solver may be given the input that a value <i>is</i> in a given range, and from that simplify an operation. If the input is wrong, so is the output.<p>Reminds me of:<p><pre><code>    On two occasions I have been asked, 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
</code></pre>
In the example from the article, though, there could be a pass that simply eliminated dead code. That pass is not a parser of the raw code, so how is it to know that actually, the "dead code" isn't?<p>And a standard that would require dead code elimination to replace not with empty, but with a trap instruction, could go very wrong. You don't want `if (false) { … }` to become `if (false) { trap(); }`. You want it just removed, if a previous pass deemed it dead. Or do you want `int main() { for(;;) {cli_loop();} }` to force adding a trap in the unreachable code after the loop? That's a lot of generated trap instructions.<p>So in general this means solving the halting problem. Yes, specifically in the post's example, "surely a sufficiently smart compiler could detect something this obvious". Maybe so, but how often is the bug actually <i>this</i> obvious?</p>
]]></description><pubDate>Mon, 26 Oct 2026 09:29:06 +0000</pubDate><link>https://news.ycombinator.com/item?id=50241228</link><dc:creator>thomashabets2</dc:creator><comments>https://news.ycombinator.com/item?id=50241228</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50241228</guid></item><item><title><![CDATA[New comment by thomashabets2 in "Physicists trap a single antimatter particle for a month"]]></title><description><![CDATA[
<p>Free Anti Matter!<p>Anti Matter did nothing wrong!</p>
]]></description><pubDate>Sun, 25 Oct 2026 13:30:09 +0000</pubDate><link>https://news.ycombinator.com/item?id=50231373</link><dc:creator>thomashabets2</dc:creator><comments>https://news.ycombinator.com/item?id=50231373</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50231373</guid></item><item><title><![CDATA[New comment by thomashabets2 in "Attention people who think UB is fine"]]></title><description><![CDATA[
<p>To elaborate on the other reply to your comment: In Rust, if you don't use `unsafe` and still manage to trigger UB, then that's a bug in the compiler or the library code you called (which in turn has to have used unsafe somewhere to trigger UB).<p>So the fact that `unreachable!()` does not require the use of the keyword `unsafe` means that it can't be like C++ `std::unreachable()`.</p>
]]></description><pubDate>Sun, 25 Oct 2026 13:17:18 +0000</pubDate><link>https://news.ycombinator.com/item?id=50231256</link><dc:creator>thomashabets2</dc:creator><comments>https://news.ycombinator.com/item?id=50231256</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50231256</guid></item><item><title><![CDATA[New comment by thomashabets2 in "Attention people who think UB is fine"]]></title><description><![CDATA[
<p>Author here.<p>No. That's just one of the MANY ways to trigger UB. In the article I also trigger UB by dereferencing a null pointer instead.<p>In fact, here's an example where calling `unreachable()` and dereferencing a null pointer produce the EXACT same assembly: <a href="https://godbolt.org/z/538qfj9z9" rel="nofollow">https://godbolt.org/z/538qfj9z9</a></p>
]]></description><pubDate>Sun, 25 Oct 2026 13:07:07 +0000</pubDate><link>https://news.ycombinator.com/item?id=50231144</link><dc:creator>thomashabets2</dc:creator><comments>https://news.ycombinator.com/item?id=50231144</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50231144</guid></item><item><title><![CDATA[New comment by thomashabets2 in "Attention people who think UB is fine"]]></title><description><![CDATA[
<p>Author here.<p>Yes, into the shame cube I go. It doesn't change anything, and it applies equally to C and C++, but you are correct. Thanks.</p>
]]></description><pubDate>Sun, 25 Oct 2026 13:02:58 +0000</pubDate><link>https://news.ycombinator.com/item?id=50231109</link><dc:creator>thomashabets2</dc:creator><comments>https://news.ycombinator.com/item?id=50231109</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50231109</guid></item><item><title><![CDATA[New comment by thomashabets2 in "Attention people who think UB is fine"]]></title><description><![CDATA[
<p>C++26, IIRC, adds "no time travel" to C++. But note that your example still creates exploding chocolate, so what do you mean by "immune"? C compiler with -std=c23 -O1 produces literally the exact same assembly output.</p>
]]></description><pubDate>Sun, 25 Oct 2026 12:58:19 +0000</pubDate><link>https://news.ycombinator.com/item?id=50231079</link><dc:creator>thomashabets2</dc:creator><comments>https://news.ycombinator.com/item?id=50231079</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50231079</guid></item><item><title><![CDATA[New comment by thomashabets2 in "Attention people who think UB is fine"]]></title><description><![CDATA[
<p>> This is sort of true, except that behavior can be undefined in the standard but defined in your implementation.<p>But then it's not UB, and not the topic at hand. So I wouldn't call it "sort of true" for a statement about UB, because it doesn't apply to not-UB.<p>It's also different in a consteval context. But that doesn't make it less true outside consteval context.</p>
]]></description><pubDate>Sun, 25 Oct 2026 12:53:49 +0000</pubDate><link>https://news.ycombinator.com/item?id=50231043</link><dc:creator>thomashabets2</dc:creator><comments>https://news.ycombinator.com/item?id=50231043</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50231043</guid></item><item><title><![CDATA[New comment by thomashabets2 in "Attention people who think UB is fine"]]></title><description><![CDATA[
<p>Author here.<p>> "the definition of std::unreachable is: invokes undefined behaviour" does not mean that all undefined behaviour is equivalent to calling std::unreachable.<p>Well, obviously not. The definition of UB is that anything can happen, so by transitive property it means that std::unreachable can trigger any behavior.<p>That's the whole point of UB, and the point of my post: It's UB! You cannot reason about what will happen! The whole point of the post is "No you CANNOT reason about what will happen". So of course I am making no claims about what <i>will</i> happen, just three interesting observations about what did in fact happen when I happened to try it, to prove this point.<p>> If you wanted a trap instruction, maybe this compiler reliably generates one from a hardcoded null deref.<p>No, even in the examples in my post I show that it's not reliable. It's UB!<p>Hell, we get very different output just between -O1 (<a href="https://godbolt.org/z/33e1nGE38" rel="nofollow">https://godbolt.org/z/33e1nGE38</a>) and -O2 (<a href="https://godbolt.org/z/3coTqP31W" rel="nofollow">https://godbolt.org/z/3coTqP31W</a>).</p>
]]></description><pubDate>Sun, 25 Oct 2026 12:45:35 +0000</pubDate><link>https://news.ycombinator.com/item?id=50230977</link><dc:creator>thomashabets2</dc:creator><comments>https://news.ycombinator.com/item?id=50230977</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50230977</guid></item><item><title><![CDATA[New comment by thomashabets2 in "Attention people who think UB is fine"]]></title><description><![CDATA[
<p>Author here: yes and no.<p>UB can also be things that the compiler is unable to express. It's NOT "haha, now I can do anything", it's like asking what the correct answer is to a logically inconsistent question. The compiler cannot even express the question.<p>Let's say the compiler encodes some GC information in the low two bits of int pointers. What does it mean if a function is called with an unaligned pointer, then? Mu, unask the question. It's UB, and no diagnostic required nor even feasible.</p>
]]></description><pubDate>Sat, 24 Oct 2026 14:32:30 +0000</pubDate><link>https://news.ycombinator.com/item?id=50221621</link><dc:creator>thomashabets2</dc:creator><comments>https://news.ycombinator.com/item?id=50221621</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50221621</guid></item><item><title><![CDATA[New comment by thomashabets2 in "Is this the new cyber normal?"]]></title><description><![CDATA[
<p>Vibe coding may produce a lot of code, but I'd say LLMs can already find more than 99% of bugs, and I extrapolate that they therefore won't add them to living systems.<p>But even if new code gets bugs, we run a bug finding pass on the delta. So the vulnporalypse will end.<p>And in my prompts I've seen LLMs find complex interaction bugs that a human would basically never find (and the bug was added by a human).<p>You say polluted by vibe coding. But in terms of bugs, especially in the last like 6 months, you could argue that humans are the polluters.<p>E.g. while I've seen "ai deleted our database", but if what you're saying is true, we should be seeing "AI added this buffer overflow". But we don't, because humans are the polluters of that.<p>Yes, there have been "ai coded up client side password checking", but I've not seen that recently. Only like 6 generations and three years ago.<p>At some point it's like telling the cab driver to just follow Google maps directions. Like... sorry, cabbie (Black Cabs in London with their "the Knowledge" is what I'm thinking), your memorization, while impressive, is worse than the app.<p>The painter, while impressively skilled, is a worse documentarian than the camera.<p>And that point is probably behind us. At least for typing. And it's climbing up in abstractions.</p>
]]></description><pubDate>Sat, 24 Oct 2026 12:09:37 +0000</pubDate><link>https://news.ycombinator.com/item?id=50220509</link><dc:creator>thomashabets2</dc:creator><comments>https://news.ycombinator.com/item?id=50220509</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50220509</guid></item><item><title><![CDATA[New comment by thomashabets2 in "Is this the new cyber normal?"]]></title><description><![CDATA[
<p>It could lead to a mess, sure. But my favourite prompt on an LLM-untouched codebase is along the lines of "find UB and other bugs. If the fix is less than 5 lines, fix it and commit it. One change per commit". Then I of course check the commit history before pushing.<p>My experience over the last couple of years with this type of prompt is that eventually you run out of bugs to find (meaning you reach "I see what you mean, but I disagree").<p>And those fixes don't cause messes.<p>And a new model may find something new, but not even remotely the volume seen the first time. This indicates to me that the supply of bugs is finite, and after this period of house cleaning, it should go down.<p>But anyway, a mess (decoherence) doesn't necessarily mean an exploitable mess.<p>Reading that good article, I find myself thinking that we did not need LLMs to get decoherence in complex software or systems. At least LLMs don't have personal fiefdoms, egos, and company politics adding to encouraging decoherence.</p>
]]></description><pubDate>Sat, 24 Oct 2026 08:30:10 +0000</pubDate><link>https://news.ycombinator.com/item?id=50219274</link><dc:creator>thomashabets2</dc:creator><comments>https://news.ycombinator.com/item?id=50219274</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=50219274</guid></item></channel></rss>