HNHacker News
TopNewBestAskShowJobs

spider-mario

418 karma · joined July 18, 2019

submissionscomments
spider-mario··on Microsoft Word for Windows 1.1a, Native X64 Port
Tried to build it but it references a `cmake/GenerateMenuHelpHeader.cmake` that seems to be absent from the repository?
spider-mario··on SwiftUI After 7 Years
… Or perhaps I too would be interested to know what you allege is faster on your 2019 MacBook? Or was it only ever meant as “random noise opining” and nothing more?
spider-mario··on Show HN: Maple-Preview – Ternary 20B MoE running at 120 tok/s on a iPhone
Maybe we don’t necessarily expect them to answer from their own knowledge, but to either do that or say “I don’t know”.
spider-mario··on SwiftUI After 7 Years
On the contrary, they care enough about facts not to take a random, implausible and unsubstantiated claim at face value. Please don’t resort to Bulverism.
spider-mario··on SwiftUI After 7 Years
You are the one refusing to give any detail whatsoever (e.g. what task?) to substantiate your claim.
spider-mario··on SwiftUI After 7 Years
> I’m not trying to prove anything…?

That’s exactly the point. Why would you expect others to even entertain a vague claim like that if you give them no reason to find it plausible? “Just test it yourself” (test what?) i.e. “prove me right yourself” is not going to be very successful.

spider-mario··on SwiftUI After 7 Years
You’re shifting the burden of proof. You made a claim and refused to substantiate it in any way whatsoever.
spider-mario··on More German than many Germans
> Being French, I have a hard time understanding why you wouldn't.

I too am French and I’m more puzzled by you than by the driver. Am I secretly German?

spider-mario··on Kimi K3 Architecture Overview and Notes
Isn’t this a bit like saying “ ‘open object files are not open source’ is a complete misunderstanding” because “You can’t rebuild the executable from scratch, but you can’t do this even with the source code anyway (because of build nondeterminism / compiler versions / etc.)”?
spider-mario··on Kimi-K3 Releases on HuggingFace 7/27
Jumbling together year, month and day and having to separate them by counting digits is not an improvement for human readability. (And you have the year wrong.) Any of “27 July 2026”, “July 27, 2026” or “2026-07-27” would be superior.
spider-mario··on Introduction to Data-Oriented Design [pdf]
> ECS

“Entity Component System”, for those like me who didn’t immediately think of it.

spider-mario··on SIMD for Collision
> But SIMD code is still not write-once-run-everywhere.

Modern, portable SIMD libraries are making it increasingly close to that. Highway is my personal favourite, thanks in part for its support for runtime dispatch.

(Disclaimer: I work at Google, but not on Highway, and am writing in my personal capacity.)

spider-mario··on Humans haven't stopped evolving
A lot of cheese is naturally lactose-free. That’s not really where most of the “danger” is for people who don’t tolerate lactose.
spider-mario··on Claude Opus 5
> If you start to drop effort levels, you need to compare to the competition models.

Yes. I advocate for doing that.

> So GPT models on the same ~intelligence level, are then 50% cheaper.

How did you reach this conclusion? Opus 5 high ($1.06) has the same “intelligence index” as GPT 5.6 Sol max ($1.04). Opus 5 medium ($0.62) performs a bit below GPT 5.6 Sol xhigh ($0.68) but slightly above GPT 5.6 Sol high ($0.45).

spider-mario··on Claude Opus 5
Your numbers are for “max”. Opus 5.0 “max” is $2.03. Opus 5.0 “high” (competitive with Claude 4.8 “max” on that index) is $1.06, less than the $1.80 you are quoting for 4.8 max.

That the most expensive variant is expensive doesn’t really tell us much.

spider-mario··on Everyone should know SIMD
Forgot to add: using Highway also means that you can detect and take advantage of e.g. AVX2 or AVX-512 in one binary that still works on CPUs without those instruction sets, whereas relying on autovectorisation would mean having to build with `-mavx2`, `-mavx512`, etc. which means that pretty much no one who relies on prebuilt binaries would get them.
spider-mario··on Everyone should know SIMD
> How is that different from any other compiler optimization?

When it can be single-handedly responsible for an 8× speedup, you might not want to rely as much on the compiler as in the case of smaller, cumulative optimisations.

> And what is the alternative? Handroll manual SIMD code for every possible architecture you may target?

Use a library like Highway? https://github.com/google/highway

spider-mario··on Everyone should know SIMD
> HN has a fetish for SIMD, but if you are hand-rolling SIMD and you aren't writing an explicit acceleration library, you're doing it wrong. Like, 100% of the time.

What if the “explicit acceleration library” for what you need to do doesn’t exist?

spider-mario··on Everyone should know SIMD
> You really should see if you can get the compiler to auto-vectorize first (possibly padding data structures and loops) before you write anything by hand.

Counterpoint: https://pharr.org/matt/blog/2018/04/18/ispc-origins

> I think that the fatal flaw with the approach the compiler team was trying to make work was best diagnosed by T. Foley, who’s full of great insights about this stuff: auto-vectorization is not a programming model.

> The problem with an auto-vectorizer is that as long as vectorization can fail (and it will), then if you’re a programmer who actually cares about what code the compiler generates for your program, you must come to deeply understand the auto-vectorizer. Then, when it fails to vectorize code you want to be vectorized, you can either poke it in the right ways or change your program in the right ways so that it works for you again. This is a horrible way to program; it’s all alchemy and guesswork and you need to become deeply specialized about the nuances of a single compiler’s implementation—something you wouldn’t otherwise need to care about one bit.

> And God help you when they release a new version of the compiler with changes to the auto-vectorizer’s implementation.

> With a proper programming model, then the programmer learns the model (which is hopefully fairly clean), one or more compilers implement it, the generated code is predictable (no performance cliffs), and everyone’s happy.

spider-mario··on Everyone should know SIMD
It really doesn’t take much complexity at all for autovectorisation to fail.
spider-mario··on Everyone should know SIMD
There is some discussion of the possible options here: https://github.com/google/highway#strip-mining-loops
spider-mario··on Everyone should know SIMD
That can easily cause you to traverse your data several times when once would be enough. Let’s say you wanted to compute “mean of array divided by max in absolute value”.

NumPy-like:

    mean = np.mean(array)
    maximum = np.max(np.abs(array)
    return mean / maximum
As far as I’m aware, that will be evaluated as three traversals.

Highway:

    HWY_FULL(float) d;
    using V = decltype(hn::Zero(d));

    V sum = hn::Zero(d);
    V max = hn::Zero(d);
    hn::Foreach(d, values, N, hn::Zero(d), [&](auto d, auto v) HWY_ATTR {
      sum = hn::Add(sum, v);
      max = hn::Max(max, hn::Abs(v));
    });
    const float mean = hn::ReduceSum(d, sum) / N;
    return mean / hn::ReduceMax(d, max);
Just one pass.

When the actual computation is made so much faster by SIMD, memory bandwidth starts to be a significant bottleneck.

spider-mario··on Everyone should know SIMD
Explicit SIMD doesn’t have to mean hand-crafting assembly (and I don’t think it did in this instance).
spider-mario··on Everyone should know SIMD
> Learning to check the compliers optimization reports is arguably more valuable.

More valuable than learning to write SIMD code? When writing SIMD code is itself the remedy to lousy autovectorisation?

If you can only identify the problem, you’re left with “well, that sucks”.

spider-mario··on Advertise in ChatGPT
Where is the dehumanisation in “I stopped using this because it makes extensive use of a source I consider untrustworthy”? That seems like quite a leap.
spider-mario··on Businesses with ugly AI menu redesigns
Perhaps in part Berkson’s paradox in action? https://en.wikipedia.org/wiki/Berkson's_paradox
spider-mario··on Kimi K3 Is Competitive with Fable; Kimi K3 and Fable Is SoTA
I think the parent is aware and was joking.
spider-mario··on Reviving a 15-year-old netbook with Arch Linux
Mine (Acer Aspire One 756) had an EFI disguised as a BIOS. I only discovered it was EFI after a few years, when I inserted some bootable flash drive, opened the boot menu and saw an EFI entry for the flash drive there. Other than that, it’s as if they were trying to keep the EFI a secret (nothing in the settings hinted at it and I couldn’t get it to boot in EFI mode by default).
spider-mario··on I'm a USB-C Maximalist
Older style? It’s still the case for the charger that came with my M4 MacBook Air.
spider-mario··on C++20 Improved the For-Loop Syntax
Yes. You don’t sound that confused?
← PreviousPage 5 of 10Next →