‹ BackHN Continuity

Thread

The state of SIMD in Rust in 2026

209 points · 65 comments · verdagon

  1. jedisct1 · · focus · HN ↗
    As someone who had pretty much given up on Rust after being very disappointed with its SIMD support, and had stopped following developments in that area, I was genuinely surprised to see someone announce this today:

    <a href="https:&#x2F;&#x2F;val.markovic.io&#x2F;articles&#x2F;philbin-the-safest-and-fastest-aegis-library" rel="nofollow">https:&#x2F;&#x2F;val.markovic.io&#x2F;articles&#x2F;philbin-the-safest-and-fast...

    Performance is competitive with Zig, without using the &quot;unsafe&quot; keyword or nightly Rust.

    Nice.

    1. syncontrol · · focus · HN ↗
      Thanks, Frank. :)

      NGL, SIMD in Rust has not been a great experience. Philbin uses the &quot;CPU Feature Tokens&quot; pattern that the Fearless SIMD team (which the root article&#x27;s author is a part of) came up with: <a href="https:&#x2F;&#x2F;shnatsel.medium.com&#x2F;safe-simd-in-rust-even-on-the-inside-c6f1ff381828" rel="nofollow">https:&#x2F;&#x2F;shnatsel.medium.com&#x2F;safe-simd-in-rust-even-on-the-in...

      The pattern provides a safe abstraction for runtime CPU detection and SIMD dispatch. It&#x27;s gnarly AF, but Fearless SIMD 1.0 came out a few days ago so people won&#x27;t have to implement it themselves anymore.

      I&#x27;d recommend grabbing that lib and giving SIMD-in-Rust another shot.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.