‹ BackHN Continuity

Thread

Platform-independent SIMD in Go

414 points · 152 comments · yurivish

  1. qprofyeh · · focus · HN ↗
    This feature opens many doors for optimizing low-level performance in Go projects, that are already running multicore. IIRC there aren’t a lot of languages with built-in std lib support for SIMD and variants. Love the way Go is trying new stuff lately.
    1. pjmlp · · focus · HN ↗
      Besides the usual C and C++, we have Java, .NET, D, Zig, Julia, Swift, Rust.

      So yeah, also appreciate having Go in the group instead of manually having to write Assembly.

      However not many languages adopt ways to manually write SIMD, because most of us have no idea how to write good SIMD code in first place, I surely don't.

      1. vlod · · focus · HN ↗
        You probably weren't looking for a tutorial about SIMD, but just in case you were interested, Mitchell [0] did one recently that got on HN [1]

        [0] Mitchell Hashimoto: &quot;Everyone Should Know SIMD&quot; <a href="https:&#x2F;&#x2F;mitchellh.com&#x2F;writing&#x2F;everyone-should-know-simd" rel="nofollow">https:&#x2F;&#x2F;mitchellh.com&#x2F;writing&#x2F;everyone-should-know-simd

        [1] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=49010648">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=49010648

        1. janwas · · focus · HN ↗
          We recently published another: <a href="https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;highway&#x2F;blob&#x2F;master&#x2F;g3doc&#x2F;tutorial.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;google&#x2F;highway&#x2F;blob&#x2F;master&#x2F;g3doc&#x2F;tutorial...
        2. setr · · focus · HN ↗
          I definitely was so... thanks!
        3. pjmlp · · focus · HN ↗
          Thanks, pretty much appreciated, always worth at least to skim through.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.