3 ms·
It seems the main point of this language is implicit concurrency. From what I have read, from the link above, the main idea is that it executes individual expre
by axilmar 6y ago
It seems the main point of this language is implicit concurrency. From what I have read, from the link above, the main idea is that it executes individual expression trees in separate threads, taking care of dependencies between threads and handling promises appropriately.
It's a nice idea on paper, but I wonder how soon developing a "real" application with it will result in performance bottlenecks because the compiler could not capture the intentions of the programmer or the program is really difficult to untangle into different threads of execution.
- akovari 6y agoIt 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.