‹ BackHN Continuity

Thread

Platform-independent SIMD in Go

414 points · 152 comments · yurivish

  1. u8 · · focus · HN ↗
    This is why I love Go. Nobody was asking for this, but they took the time to do it right and continue to Push go as a memory safe, high-level systems language.
    1. __s · · focus · HN ↗
      go data races aren't memory safe
      1. shikck200 · · focus · HN ↗
        That does not make sense to me. Go is memory-safe, but it does not guarantee data-race freedom.

        So whats your point here? Haskell?

        1. simonask · · focus · HN ↗
          There is no memory safety without freedom from data races. One is a prerequisite of the other. This is why languages like C# throw exceptions on unsynchronized concurrent access to some container types, and treat all property accesses as atomic.
          1. typical182 · · focus · HN ↗
            From the former head of the Go security team [1]:

            > I have never seen real Go code (i.e. not code written purposefully to be exploitable) that was exploitable due to a data race.

            And from tptacek in that same discussion [2]:

            > The fact is that Go doesn't admit memory corruption vulnerabilities, and the way you know that is the fact that there are practically zero exploits for memory corruption vulnerabilities targeting pure Go programs, despite the popularity of the language.

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

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

            1. simonask · · focus · HN ↗
              Memory safety isn’t really about vulnerabilities. This thread is about Go, so I won’t go further into it here.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.