2 ms·
Futures are difficult to use, because if you allocate or you call any of the "forbidden" primitives the thread will block and resume automatically when it is sa
by gus_massa 7y ago
Futures are difficult to use, because if you allocate or you call any of the "forbidden" primitives the thread will block and resume automatically when it is safe to do the operation. They are good for numerical work, but you have to pay a lot of attention writing code with futures.
It's more easy to use places, you can run whatever you want in places, but the communication between places is restricted and they have a big startup time (something like a quarter of a second) so if you create one, ensure that you are going to use it for a long time.