<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: mtklein</title><link>https://news.ycombinator.com/user?id=mtklein</link><description>Hacker News RSS</description><docs>https://hnrss.org/</docs><generator>hnrss v2.1.1</generator><lastBuildDate>Fri, 14 Aug 2026 22:23:04 +0000</lastBuildDate><atom:link href="https://hnrss.org/user?id=mtklein" rel="self" type="application/rss+xml"></atom:link><item><title><![CDATA[New comment by mtklein in "Moving integer division to floating-point is trivial"]]></title><description><![CDATA[
<p>My rule of thumb is that integer ops cost 1 cycle except divides, floats 3 but maybe divide is a bit more, then integer divides are like infinity at 20+ cycles that cannot be amortized by vectorization.<p>When you code simd it's best to assume the integer divide instruction does not exist.  Just an impossibility, if you need to divide ints, rethink your whole program.</p>
]]></description><pubDate>Fri, 14 Aug 2026 19:24:15 +0000</pubDate><link>https://news.ycombinator.com/item?id=49303453</link><dc:creator>mtklein</dc:creator><comments>https://news.ycombinator.com/item?id=49303453</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=49303453</guid></item><item><title><![CDATA[New comment by mtklein in "Moving integer division to floating-point is trivial"]]></title><description><![CDATA[
<p>They're typically like a 3-cycle op, right?  Obviously that's not zero, but as far as floating point ops get it's a cheap as it gets, like an add, mul, fma, that sorta thing.</p>
]]></description><pubDate>Fri, 14 Aug 2026 18:59:30 +0000</pubDate><link>https://news.ycombinator.com/item?id=49303143</link><dc:creator>mtklein</dc:creator><comments>https://news.ycombinator.com/item?id=49303143</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=49303143</guid></item><item><title><![CDATA[New comment by mtklein in "Delta"]]></title><description><![CDATA[
<p>Don't forget SubEthaEdit!  That was the first multiplayer editor I recall.<p>Never found a use for this sort of thing once novelty wore off.  :/</p>
]]></description><pubDate>Thu, 13 Aug 2026 02:10:04 +0000</pubDate><link>https://news.ycombinator.com/item?id=49281058</link><dc:creator>mtklein</dc:creator><comments>https://news.ycombinator.com/item?id=49281058</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=49281058</guid></item><item><title><![CDATA[New comment by mtklein in "The LLM Critics Are Right. I Use LLMs Anyway"]]></title><description><![CDATA[
<p>I don't think there is necessarily one ideal middle ground here.  It still feels to me like what's best is a function that depends on who and when.<p>I see it as something like a personal gradient descent.  You're working on a problem, there are solutions down there somewhere, and you can kind of feel the gradient of the tools-and-techniques ground around you.  Any way you walk means you're investing time improving some skill or another.  So you should go the way that personally feels to you will best get you moving in the direction that you want to go.<p>For some people it's obvious LLMs are competent coders, getting better, sticking around... and those people should lean into that gradient.  For some people what's obvious is nearly the exact opposites of all that, and I'd encourage those people to also follow their gradient/heart/nose down the path of sharpening their personal traditional coding skills.  Some people are in a relatively flat area where nothing is obvious, and need to explore and maybe just keep doing their best to hedge with a bit of both.</p>
]]></description><pubDate>Thu, 16 Jul 2026 12:52:10 +0000</pubDate><link>https://news.ycombinator.com/item?id=48933783</link><dc:creator>mtklein</dc:creator><comments>https://news.ycombinator.com/item?id=48933783</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48933783</guid></item><item><title><![CDATA[New comment by mtklein in "Ask HN: How do you use Vim in the era of AI?"]]></title><description><![CDATA[
<p>Yeah it makes me sad too.  It's a one-way veil, no going back once I experienced the new magic.<p>Sometimes I pop back into a terminal, mkdir, git init, crack my knuckles to do some all-natural hacking and the sadness sets in before the hour is up... "why am I insisting on doing this the long way?  I know this project would be better with me in a different role now."<p>Coding for me has always been a balance of process and ends. Getting done what I wanted done mattered most, but I can't pretend that I didn't also enjoy being the moving parts of that process.  And I am most grateful for what I learned by throwing myself over and over against problems I didn't quite know how to solve.  There's a satisfaction to doing a thing well that I always love being a part of, still do, anything, even doing the dishes or laundry.<p>And just recently with Opus I found myself having some really joyously manic days and weeks, making calls, picking tech, designing APIs, insisting on quality, keeping agents spinning.  But Fable just kind of came in with "oh, I can do that all for you too. You can relax," and that was both exactly what I wanted and what started making me realize this had all finally caught up to me.<p>I never wanted to be management, but I can't unsee that I am more effective now playing Fable's boss than I was the last few months as TLM of a squad of Opuses, and that was more effective than just coding myself the way I love.</p>
]]></description><pubDate>Fri, 10 Jul 2026 23:39:01 +0000</pubDate><link>https://news.ycombinator.com/item?id=48866771</link><dc:creator>mtklein</dc:creator><comments>https://news.ycombinator.com/item?id=48866771</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48866771</guid></item><item><title><![CDATA[New comment by mtklein in "How do you use Vim in the era of AI?"]]></title><description><![CDATA[
<p>On about day 2 of using Fable I realized that the .vimrc I'd been maintaining for 15-20 years would probably never change again.<p>With Opus I still feel like I'm pair coding and want to get in there and make some changes myself, but working with Fable (even Fable managing Opus agents) had me in a completely different mindset, one where I realized I would just be getting in the way.</p>
]]></description><pubDate>Fri, 10 Jul 2026 13:45:45 +0000</pubDate><link>https://news.ycombinator.com/item?id=48859845</link><dc:creator>mtklein</dc:creator><comments>https://news.ycombinator.com/item?id=48859845</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48859845</guid></item><item><title><![CDATA[New comment by mtklein in "The Garbage Collection Handbook: The Art of Automatic Memory Management (2nd Ed) (2023)"]]></title><description><![CDATA[
<p>I have never seen Codex or Claude get manual memory management wrong.  I used to be pretty fastidious about using leak sanitizer or other such tools to catch my own memory management issues, and while not quite useless, that sort of testing has dropped way down my list of worries the more I lean on LLMs.  I am constantly surprised by how many formerly tedious or error prone tasks stopped being either of those, and I expect to see practice shift away from middle-safe languages like C++ to not just much more safe languages like Rust but surprisingly also to much less safe ones like C and platform specific assembly.</p>
]]></description><pubDate>Fri, 26 Jun 2026 01:56:26 +0000</pubDate><link>https://news.ycombinator.com/item?id=48681494</link><dc:creator>mtklein</dc:creator><comments>https://news.ycombinator.com/item?id=48681494</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48681494</guid></item><item><title><![CDATA[New comment by mtklein in "C++26 Shipped a SIMD Library Nobody Asked For"]]></title><description><![CDATA[
<p>Part of that could be ABI constraints.  There are some surprising calling convention differences between a vector and a struct or union with vectors in it, and they vary platform to platform.  E.g. on ARM a struct with two 128-bit vectors will pass in two registers where on x86 it must pass via the stack.<p>Using __attribute__ to tweak calling conventions can often really clean this up, but that's just as obscure and non-portable as the problem it fixes.  So you either end up writing weird non-portable code one way or weird non-portable code another... Code working with these types doesn't get to benefit from zero-cost abstraction to the degree we're used to with normal scalar code.</p>
]]></description><pubDate>Sun, 17 May 2026 10:38:26 +0000</pubDate><link>https://news.ycombinator.com/item?id=48167701</link><dc:creator>mtklein</dc:creator><comments>https://news.ycombinator.com/item?id=48167701</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48167701</guid></item><item><title><![CDATA[New comment by mtklein in "Tesla is recalling its cheaper Cybertruck because the wheels might fall off"]]></title><description><![CDATA[
<p>I hate to admit it, but the Corona "Change your Latitude" ads are what locked it in for me.</p>
]]></description><pubDate>Fri, 08 May 2026 15:08:48 +0000</pubDate><link>https://news.ycombinator.com/item?id=48064291</link><dc:creator>mtklein</dc:creator><comments>https://news.ycombinator.com/item?id=48064291</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=48064291</guid></item><item><title><![CDATA[New comment by mtklein in "It's OK to compare floating-points for equality"]]></title><description><![CDATA[
<p>what I mean here about NaNs is that from a testing perspective, I want to be able to write a test that expects NaN in the same way that I write other expectations, and you can't do that with ==.<p><pre><code>    assert(x == 7);    // fine
    assert(y == NaN);  // never true
    assert(y != y);    // this is what you meant
</code></pre>
so this equiv() helper fixes that,<p><pre><code>    assert(equiv(x, 7));    // fine
    assert(equiv(y, NaN));  // also fine
</code></pre>
now, as far as treating NaNs equivalently, the IEEE 754 float format has a huge number of possible representations of NaN, and if you did something like a bitwise comparison, you might think that 0x7fc00000, 0x7f800001, 0xffc00000, 0x7fc0f00d were all different and not equivalent, but they're all NaNs, and I find that when I'm looking for a NaN, I very rarely care about exactly which one I'm looking at.  So checking (x!=x && y!=y) admits any two NaNs as equivalent.</p>
]]></description><pubDate>Sun, 19 Apr 2026 15:02:10 +0000</pubDate><link>https://news.ycombinator.com/item?id=47824816</link><dc:creator>mtklein</dc:creator><comments>https://news.ycombinator.com/item?id=47824816</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47824816</guid></item><item><title><![CDATA[New comment by mtklein in "It's OK to compare floating-points for equality"]]></title><description><![CDATA[
<p>My preference in tests is a little different than just using IEEE 754 ==,<p><pre><code>    _Bool equiv(float x, float y) {
        return (x <= y && y <= x)
            || (x != x && y != y);
    }
</code></pre>
which both handles NaNs sensibly (all NaNs are equivalent) and won't warn about using == on floats.  I find it also easy to remember how to write when starting a new project.</p>
]]></description><pubDate>Sat, 18 Apr 2026 18:46:47 +0000</pubDate><link>https://news.ycombinator.com/item?id=47818386</link><dc:creator>mtklein</dc:creator><comments>https://news.ycombinator.com/item?id=47818386</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47818386</guid></item><item><title><![CDATA[New comment by mtklein in "Qwen3.6-35B-A3B: Agentic coding power, now open to all"]]></title><description><![CDATA[
<p>Yes, it's a "Brain float", basically an ordinary 32-bit float with the low 16 mantissa bits cut off.  Exact same range as fp32, lower precision, and not the same as the other fp16, which has less exponent and more mantissa.</p>
]]></description><pubDate>Thu, 16 Apr 2026 16:37:40 +0000</pubDate><link>https://news.ycombinator.com/item?id=47795959</link><dc:creator>mtklein</dc:creator><comments>https://news.ycombinator.com/item?id=47795959</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47795959</guid></item><item><title><![CDATA[New comment by mtklein in "Google has the same AI adoption curve as John Deere"]]></title><description><![CDATA[
<p>The closest term I know is "just-so story".</p>
]]></description><pubDate>Mon, 13 Apr 2026 21:00:41 +0000</pubDate><link>https://news.ycombinator.com/item?id=47757754</link><dc:creator>mtklein</dc:creator><comments>https://news.ycombinator.com/item?id=47757754</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47757754</guid></item><item><title><![CDATA[New comment by mtklein in "Waymo Safety Impact"]]></title><description><![CDATA[
<p>I am also not looking forward to the system transitioning from "big experiment, burn money to make it good" to "established business unit, tweak it to death for incrementally more money / personal promotion."  We're still in the honeymoon period and I very much expect to hate Waymo in 10 or 15 years when they reach a steady state.</p>
]]></description><pubDate>Thu, 19 Mar 2026 21:26:31 +0000</pubDate><link>https://news.ycombinator.com/item?id=47446424</link><dc:creator>mtklein</dc:creator><comments>https://news.ycombinator.com/item?id=47446424</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47446424</guid></item><item><title><![CDATA[New comment by mtklein in "AVX2 is slower than SSE2-4.x under Windows ARM emulation"]]></title><description><![CDATA[
<p>If I remember correctly, the AVX2 feature set is a fairly direct upscale of SSE4.1 to 256 bit.  Very few instructions even allowed interaction between the top and bottom 128 bits, I assume to make implementation on existing 128 bit vector units easier.  And the most notable new things that AVX2 added beyond that widening, fp16 conversion and FMA support, are also present in NEON, so I wouldn't expect that to be the issue either.<p>So I'd bet the issue is either newness of the codebase, as the article suggests, or perhaps that it is harder to schedule the work in 256 bit chunks than 128.  It's got to be easier when you've got more than enough NEON q registers to handle the xmms, harder when you've got only exactly enough to pair up for handling ymms?</p>
]]></description><pubDate>Wed, 18 Feb 2026 16:31:46 +0000</pubDate><link>https://news.ycombinator.com/item?id=47062800</link><dc:creator>mtklein</dc:creator><comments>https://news.ycombinator.com/item?id=47062800</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=47062800</guid></item><item><title><![CDATA[New comment by mtklein in "Why medieval city-builder video games are historically inaccurate (2020)"]]></title><description><![CDATA[
<p>I agree with you, but we must admit that The Expanse has all of spaceships bouncing around, explosion sounds, and superhumans.</p>
]]></description><pubDate>Fri, 23 Jan 2026 17:11:27 +0000</pubDate><link>https://news.ycombinator.com/item?id=46734949</link><dc:creator>mtklein</dc:creator><comments>https://news.ycombinator.com/item?id=46734949</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46734949</guid></item><item><title><![CDATA[New comment by mtklein in "Framework Laptop 13 gets ARM processor with 12 cores via upgrade kit"]]></title><description><![CDATA[
<p>This is astonishingly bad power usage for a laptop, a complete dealbreaker: "...early tests show that the SoC already draws about 16 watts at idle..."</p>
]]></description><pubDate>Fri, 05 Dec 2025 16:33:30 +0000</pubDate><link>https://news.ycombinator.com/item?id=46163594</link><dc:creator>mtklein</dc:creator><comments>https://news.ycombinator.com/item?id=46163594</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46163594</guid></item><item><title><![CDATA[New comment by mtklein in "LLVM-MOS – Clang LLVM fork targeting the 6502"]]></title><description><![CDATA[
<p>This was a nice surprise when learning to code for NES, that I could write pretty much normal C and have it work on the 6502.  A lot of tutorials warn you, "prepare for weird code" and this pretty much moots that.</p>
]]></description><pubDate>Sun, 30 Nov 2025 17:53:03 +0000</pubDate><link>https://news.ycombinator.com/item?id=46098813</link><dc:creator>mtklein</dc:creator><comments>https://news.ycombinator.com/item?id=46098813</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=46098813</guid></item><item><title><![CDATA[New comment by mtklein in "Zig is so cool, C is cooler"]]></title><description><![CDATA[
<p>Zig is so good at this, it is also probably the easiest way to cross-compile C.</p>
]]></description><pubDate>Sat, 08 Nov 2025 17:32:13 +0000</pubDate><link>https://news.ycombinator.com/item?id=45858382</link><dc:creator>mtklein</dc:creator><comments>https://news.ycombinator.com/item?id=45858382</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45858382</guid></item><item><title><![CDATA[New comment by mtklein in "CPU cache-friendly data structures in Go"]]></title><description><![CDATA[
<p>I think this is _Alignas/alignas.<p><pre><code>    struct foo {
        _Alignas(64) float x,y;
        _Alignas(64) int     z;
    };
    _Static_assert(sizeof(struct foo) == 192, "");</code></pre></p>
]]></description><pubDate>Thu, 09 Oct 2025 17:51:42 +0000</pubDate><link>https://news.ycombinator.com/item?id=45530875</link><dc:creator>mtklein</dc:creator><comments>https://news.ycombinator.com/item?id=45530875</comments><guid isPermaLink="false">https://news.ycombinator.com/item?id=45530875</guid></item></channel></rss>