‹ BackHN Continuity

Thread

Fearless SIMD v1.0

318 points · 52 comments · verdagon

  1. Dr_Emann · · focus · HN ↗
    Have been really happy with Fearless simd, I used it to write [memchr-n][1], which searches for instances of an arbitrary set of bytes, with simd, which actually tends to [outperform][2] the rust memchr crate, even for sets of 1-3 bytes (what's supported by memchr)

    [1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;Dr-Emann&#x2F;memchr_n#performance" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Dr-Emann&#x2F;memchr_n#performance [2]: <a href="https:&#x2F;&#x2F;github.com&#x2F;BurntSushi&#x2F;memchr&#x2F;pull&#x2F;241" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;BurntSushi&#x2F;memchr&#x2F;pull&#x2F;241

    1. O3marchnative · · focus · HN ↗
      Out of curiosity, did you try out any other portable simd crates before landing on fearless simd?
      1. Dr_Emann · · focus · HN ↗
        Kinda: Early last year, I had done a little work with direct intrinsics first, then investigated std::simd, but ran into the issue of swizzle_dyn needing to re-compile std. It was actually when I ran across <a href="https:&#x2F;&#x2F;shnatsel.github.io&#x2F;improving-std-simd-swizzle-dyn&#x2F;" rel="nofollow">https:&#x2F;&#x2F;shnatsel.github.io&#x2F;improving-std-simd-swizzle-dyn&#x2F; that got me back into it.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.