3 ms·
Shared-memory threads are worse than async/await. I'd rather have GOTO than data races, since, while it might be hard to model in your head, at least it's deter
by notriddle 8y ago
Shared-memory threads are worse than async/await. I'd rather have GOTO than data races, since, while it might be hard to model in your head, at least it's deterministic and using it wrong doesn't cause UB.
p.s. https://vorpus.org/blog/notes-on-structured-concurrency-or-go-statement-considered-harmful/ https://vorpus.org/blog/notes-on-structured-concurrency-or-g...
- spinningslate 8y agoErlang doesn't do shared memory. It's a message passing, shared-nothing model. I believe GO is the same.
- tomjakubowski 8y agoGo is not shared-nothing: if you write a slice to a channel between two goroutines, for example, the memory that the slice references is now shared between the goroutines
- spinningslate 8y agothanks for the correction.