3 ms·
It doesn't parallelize just "any" expression though. Only blocking functions, such as those working with IO. Similarly, in JS for example you would use callback
by akovari 6y ago
It doesn't parallelize just "any" expression though. Only blocking functions, such as those working with IO. Similarly, in JS for example you would use callbacks to avoid blocking. In Yatta you don't have to explicitly worry about callbacks, Promises or alike, because they are hidden into the runtime itself.
If you want to parallelize a computation, you can use function async, providing it a lambda, and then yes, Yatta can parallelize that as well (given that there are no other dependencies on it). But this is an explicit thing in control of the programmer.