Re:Show HN: Ts-Chan – Go-Like Concurrency Primitives for Typ...
by joeycumines on Tuesday November 07, 2023 @05:05PM
(#38183622)
Concurrency != Parallel execution
[ Parent
| on HN ]
Re:Show HN: Ts-Chan – Go-Like Concurrency Primitives for Typ...
by 29athrowaway on Tuesday November 07, 2023 @11:40PM
(#38186874)
In JS, without worker threads or similar situations, you don't have real race conditions. Therefore, concurrency primitives like mutexes, condition variables, barriers, semaphores, etc. are not necessary.
You can use a global variable and it will be fine because it won't be accessed simultaneously.
So truly what this is is https://www.youtube.com/watch?v=aYSSYm0b2wk
Re:Show HN: Ts-Chan – Go-Like Concurrency Primitives for Typ...
by joeycumines on Wednesday November 08, 2023 @05:44AM
(#38188710)
What makes data races not a "real race condition"?
Anyhow, do what you will. I don't get the impression that you are genuinely interested in this topic.
Re:Show HN: Ts-Chan – Go-Like Concurrency Primitives for Typ...
by 29athrowaway on Wednesday November 08, 2023 @05:50PM
(#38198376)
Thanks for conceding the point. Have fun.