←back to thread

193 points ingve | 1 comments | | HN request time: 0.205s | source
Show context
FuckButtons ◴[] No.43712793[source]
I thought it was a bit odd that the author claims there’s no mutexes in sight, the TVar is effectively a mutex guard unless I’m misunderstanding this? (I’ve written exactly 0 lines of Haskel). Or is the claim that the lack of ceremony and accidental complexity around threading is the real win for concurrency here?
replies(6): >>43713040 #>>43713043 #>>43713044 #>>43713127 #>>43714265 #>>43714335 #
1. pkjens04 ◴[] No.43713043[source]
A mutex locks the thread, which doesn't happen with TVar. For mutexes TMVar would be used.