d*******r 发帖数: 3299 | 1 这里有个挺 Go 的视频
http://devslovebacon.com/conferences/bacon-2013/talks/why-node-
然后,这里有个挺 Scala 的视频
http://boldradius.com/blog-post/U62N9C0AAC8AVoav/the-difference
我表示不太理解上面连接里这一段:
In my understanding, both Go and Scala have built-in concurrency primitives
(plus Akka for Scala), however Scala leans towards the Actor model, while Go
uses the CSP model. One of the benefits of Akka versus the concurrency
primitives in Go is the ability to transparently move actors to different
machines and send messages remotely, and with the ability to control
reliability. With Go, goroutines and channels are forced to stay in a single
process, requiring extra work to scale and without the ability to do so
transparently
Actor 有这么好用? |
c******o 发帖数: 1277 | 2 actor model is inherently distributed, actor communication are async, and by
name, you do not care where the other side is. But for example, actor model
by itself, does not not have reliable (message can lost) message passing.
CSP and actor are equivalently, in the sense, you can implement each other
with added logic and code. It just CSP more tightly coupled, and actor are
more loosely coupled. |
d*******r 发帖数: 3299 | 3 Actor model 这类 prefer immutable 和 copy的,应该更耗费内存吧,我记得底层时
候时候,还有用部分 reference 和 增量 copy 代替全部 copy 的情形.
by
model
【在 c******o 的大作中提到】 : actor model is inherently distributed, actor communication are async, and by : name, you do not care where the other side is. But for example, actor model : by itself, does not not have reliable (message can lost) message passing. : CSP and actor are equivalently, in the sense, you can implement each other : with added logic and code. It just CSP more tightly coupled, and actor are : more loosely coupled.
|
c******o 发帖数: 1277 | 4 actor is not immutable, it does not care. akka is |
d*******r 发帖数: 3299 | 5 大牛觉得学用 Actor 是用 Scala 好呢,还是应该直接用 Erlang? 这2门我都还不会.
【在 c******o 的大作中提到】 : actor is not immutable, it does not care. akka is
|
c******o 发帖数: 1277 | |
p*****2 发帖数: 21240 | 7 erlang好
会.
【在 d*******r 的大作中提到】 : 大牛觉得学用 Actor 是用 Scala 好呢,还是应该直接用 Erlang? 这2门我都还不会.
|
p*****2 发帖数: 21240 | 8 这个确实是很重大的区别
不过go貌似也在做distributed
primitives
Go
【在 d*******r 的大作中提到】 : 这里有个挺 Go 的视频 : http://devslovebacon.com/conferences/bacon-2013/talks/why-node- : 然后,这里有个挺 Scala 的视频 : http://boldradius.com/blog-post/U62N9C0AAC8AVoav/the-difference : 我表示不太理解上面连接里这一段: : In my understanding, both Go and Scala have built-in concurrency primitives : (plus Akka for Scala), however Scala leans towards the Actor model, while Go : uses the CSP model. One of the benefits of Akka versus the concurrency : primitives in Go is the ability to transparently move actors to different : machines and send messages remotely, and with the ability to control
|
f******2 发帖数: 2455 | 9 Akka的分布式投入很大,而且很学术,各种
一致性模型分析了一遍后做的,网上好像有
个连接.
不过我估计go那边的人做出来的会更牛,
更好,工具牛不牛关键因素还是看造工具的人
【在 p*****2 的大作中提到】 : 这个确实是很重大的区别 : 不过go貌似也在做distributed : : primitives : Go
|
d*******r 发帖数: 3299 | 10 二爷又整上 Erlang 了?真是赶不上你的速度呀.
【在 p*****2 的大作中提到】 : erlang好 : : 会.
|
d*******r 发帖数: 3299 | 11 看来还得多 follow 新闻.
【在 f******2 的大作中提到】 : Akka的分布式投入很大,而且很学术,各种 : 一致性模型分析了一遍后做的,网上好像有 : 个连接. : 不过我估计go那边的人做出来的会更牛, : 更好,工具牛不牛关键因素还是看造工具的人
|
p*****2 发帖数: 21240 | 12
随便看了一下,也是门有点恶心的语言。不过如果真是需要actor的话,学学也值了。
【在 d*******r 的大作中提到】 : 二爷又整上 Erlang 了?真是赶不上你的速度呀.
|
H****S 发帖数: 1359 | 13 Actor is the strongest oo abstraction which is kinda ironic lol
by
model
【在 c******o 的大作中提到】 : actor model is inherently distributed, actor communication are async, and by : name, you do not care where the other side is. But for example, actor model : by itself, does not not have reliable (message can lost) message passing. : CSP and actor are equivalently, in the sense, you can implement each other : with added logic and code. It just CSP more tightly coupled, and actor are : more loosely coupled.
|
t***t 发帖数: 6066 | 14 CSP? 通讯顺序进程?太老了吧?而且太底层了吧? |