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.
From what I understand a data race on a simple built in feature like an interface pointer can result in a bad address / type pair, which can cause memory safety issues on any future access. I don't think you can get the JVM itself confused about what type a pointer points to.
u8 · · focus · HN ↗
__s · · focus · HN ↗
shikck200 · · focus · HN ↗
So whats your point here? Haskell?
beltsazar · · focus · HN ↗
You said that because you assumed Go is memory-safe in all conditions.
> Go is memory-safe
Yes, but only if there's no data race.
Go is not like Java. Java doesn't guarantee no data race, but when it happens, it's still memory-safe.
shikck200 · · focus · HN ↗
I fail to see how a racy Java program is more memory safe than a racy Go program?
josefx · · focus · HN ↗