4 ms·
Go uses CSP concurrency, which is distinct from the Actor model. They're often conflated since the difference is small, but the distinction is relevant here bec
by yepguy 12y ago
Go uses CSP concurrency, which is distinct from the Actor model. They're often conflated since the difference is small, but the distinction is relevant here because it directly addresses your complaint. Namely, synchronization is much easier in CSP since communication is synchronous, so you don't have to build additional abstractions for syncing on top of your asynchronous message passing.
- mateuszf 12y agoAlso ClojureScript core.async uses the same CSP model.
- peterhunt 12y agoCSP is better for sure, but message passing is still a pretty primitive model, synchronous or no. FWIW I like CSP, but promises are great for e.g. fetching data
- pron 12y agoErlang processes (actors) are synchronous as well.