‹ BackHN Continuity

Thread

The state of SIMD in Rust in 2026

209 points · 65 comments · verdagon

  1. tancop · · focus · HN ↗
    > ... you can just assert that they’re all recent enough to at least have AVX2 that was introduced over 10 years ago, and have the program crash or misbehave if it ever runs on anything without AVX2

    > However, if you are distributing the binaries for other people to run, that’s not really an option.

    This all depends on what kind of software you're making. A lot of games set their requirements about 5 generations back, like FC 27 where the minimum is a Ryzen 1600. That lets them use AVX2 unconditionally and prevent complaints from users who tried to run it with a super old CPU.

    Then you get whole Linux distros like CachyOS and Clear (RIP) that rebuild the world for each architecture level and have them as separate variants. I think it still counts as binaries for other people.

    1. swiftcoder · · focus · HN ↗
      The other good(?) news on this front is that Windows 11 only supports chips with at least AVX2, so if you are willing to cut off everyone on win10 and earlier, you can stick to that
      1. ack_complete · · focus · HN ↗
        Pretty sure it only actually currently needs SSE4, since they started compiling it with POPCNT for x86. The official system requirement is Intel 8th gen CPU, but Intel made Kaby Lake and Coffee Lake CPUs that lack AVX.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.