Remix.run Logo
icar 12 hours ago

I would've enjoyed if the solution was proposed in Go as well.

garethrowlands 6 hours ago | parent | next [-]

STM isn't really used in Go like it is in Haskell.

Here's the example from a Go STM package that's based on Haskell STM. It has gotchas that you won't encounter in Haskell though, due to the nature of these languages.

https://github.com/anacrolix/stm/blob/master/cmd/santa-examp...

For the equivalent Haskell, check out the link at the top of the file.

WhyNotHugo 9 hours ago | parent | prev [-]

Indeed, “Software Transactional Memory” sounds like a magic black box. It feels a bit like reading “just use an sql database and transactions”. It’s not really telling me how the problem is solved, just to use someone else’s solution without understating how it’s implemented.

internet_points 8 hours ago | parent [-]

https://www.microsoft.com/en-us/research/wp-content/uploads/...