|
|
|
|
|
by bjoli
21 days ago
|
|
it is like CSP but with first class events. In CSP you have to manage complex protocols yourself, whereas in cml you can compose larger even trees and then do one sync. a classic example of something that is trivial in cml but requires a mediator in CSP or go is two fibers swapping values atomically where a fiber can pull out at any time. in cml it is about 20 lines of code that can be in a library. it composes with other events. in csp it is a "server" that manages the swap which means you lose the sectability. Evert time you want to have any kind of protocol, cml wins. |
|