assbuttbuttass
Joined 5 years ago
Karma
1,347
Submissions
435
Member since
Aug 6
https://news.ycombinator.com/item?id=37272485
View on Hacker NewsJoined 5 years ago
How would you identify the commit that broke the test?
To me, secure boot is the setting that I need to remember to turn off before installing the OS, but I would be willing to be convinced otherwise
type Monad[T any] interface {
Bind[U any](func(T) Monad[U])
}
However this requires the Bind method to be generic, which still isn't allowed in an interfaceIn languages like JavaScript, you have to be careful to avoid blocking the event loop, and use something like worker threads for CPU-intensive tasks. Otherwise you will end up with long tail latencies. In Go, the runtime automatically manages this and can suspend and resume long-running goroutines.
> naively accessing a global value can lead to race conditions
Fair point that the language doesn't automatically catch this, but that's what a mutex is for. In return you get actual parallelism that can use all your CPU cores