3 ms·
I think this gets too many downvotes. Yes, static vs dynamic typing. Yes, imperative vs functional language. On the other hand, CSP is conceptually fairly close
by jupp0r 9y ago
I think this gets too many downvotes. Yes, static vs dynamic typing. Yes, imperative vs functional language. On the other hand, CSP is conceptually fairly close to the Actor Model, so there are definitely similarities. I've written go code that looks similar to Erlang (a go routine receiving messages from an `interface{}` channel in a for loop and then dispatching based on the type.
- zzzcpan 9y agoConceptually they are worlds apart. Supervision trees are even impossible in idiomatic Go.
- jupp0r 9y agoSupervision trees have nothing to do with Actors or CSP. I can recommend reading the original papers. Golang not well supporting supervision trees has more to do with the runtime not allowing to kill a goroutine. See http://www.jerf.org/iri/post/2930 http://www.jerf.org/iri/post/2930