zlacker

[parent] [thread] 1 comments
1. xedrac+(OP)[view] [source] 2024-01-20 03:45:01
Async is definitely nicer when things are immutable. On modern CPUs, async green threads can easily be backed by different OS threads running in parallel on different CPU cores, making data races a real problem for many languages. Async does not guarantee that things will not be run in parallel, although you shouldn't rely on it for explicit parallelism.
replies(1): >>anon29+A31
2. anon29+A31[view] [source] 2024-01-20 15:29:52
>>xedrac+(OP)
Haskell async is run in IO though in which mutability is allowed. Async itself is mutable.
[go to top]