3 ms·
Ada had only CSP at the start of eighties and then gained mutexes to allow for more expressive and efficient patterns. It is very puzzling for me why Go went w
by _0w8t 4y ago
Ada had only CSP at the start of eighties and then gained mutexes to allow for more expressive and efficient patterns.
It is very puzzling for me why Go went with CSP and added a lot of language support for it like the select operator. А data type like a priority queue to post messages to a thread would serve similar purposes as CSP while allowing for more patterns and simpler reasoning.
- eikenberry 4y agoCSP is a low level concurrency primitive that lets you implement most other systems in it if you want. Implementing a priority queue w/ message passing would be simple.