Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Thoughts on Go vs. Rust vs. Zig. Parent comment
Go is by default not thread safe. Here the author shows that by looping
for { globalVar = &Ptr { val: &myval } globalVar = &Int { val: 42 } }
So I guess go is easier to write, but not with the same level of safety
There are no comments on this comment yet.
Go is by default not thread safe. Here the author shows that by looping
You can create a pointer with value 42 as the type and value are two different words and are not updated atomicallySo I guess go is easier to write, but not with the same level of safety