Re: [go-nuts] Channels vs Actors

2018-03-05 Thread Jesper Louis Andersen
To add to Bakul's description: A key difference in an actor-inspired model compared to a CSP-inspired one is that identity is subtly different. In Go, channels have identity and can be referenced. They can have multiple readers and writers. In Erlang, it is processes who has identity and you can s

Re: [go-nuts] Channels vs Actors

2018-03-04 Thread Bakul Shah
Messages get sent to an actor's address and only that actor “reads” from that mailbox. And there is no buffering. Channels don’t run any logic (like an actor), they may be buffered and any goroutine with access to a channel may read from it. All goroutines run in the same address space. As actors d

[go-nuts] Channels vs Actors

2018-03-04 Thread Anto Aravinth
Hello All, I'm new to golang and trying to understand the difference between channels and actors. From my knowledge: 1. Golang support channels, which is concurrently safe 2. Channels can be shared across goroutines that are running. (very much similar to messages) Actors: 1. They are based o