关于你的硕士项目,我建议了解一下 Erlang Web 框架。编程语言Erlang基于Actor模型,并且使用效果很好在可扩展的系统中,包括电话交换机...和 Facebook 消息系统。
There can be many actors. All actors act "at the same time". The concurrency is a key part of this model.
Actors cannot know what other Actors are thinking. The only way to move information is with a message. (no shared state)
Actors can receive messages, and act on them by:
doing computation with the data in them
sending messages to other actors
creating other actors.
ignoring/discarding the message.
This basically makes actors just like... People. People don't know what each other are thinking, they must send messages to convey information, they have the choice of ignoring incoming messages, considering them, or communicating with other people. Random bad things can happen to people. Lots of people all do things at the same time. To handle more load, add more people.
Regarding your masters project, I suggest finding out about the Erlang Web framework. The programming language Erlang is based on the Actor model, and is used to great effect in scalable systems including phone switches... and the Facebook messaging system.
Actors are people doing some work inside their houses. In front of each house, there is a mailbox. In order to communicate with each other and get work done, messages are sent between the actors.
I am not sure that this will be good one, but I'll try:
Let's imagine a classic middle-east marketplace. There are buyers(suppose they are just walking tourists) and sellers. Buyers are walking through marketplace, and sellers cry out name's of theirs goods: Carpets!! Species!!! Horses!!! Сandies!!! Jewels!!! and so on... Some buyers are not interest in specific kind of goods and go to the next store, but some buyers become interested, and ask: "How much is it?", seller: "50$", buyer:"Can you give me a discount?", and so on...
Actors are buyers and sellers here. Sellers are sending messages with types of their goods. Buyer can skip a message, or can send message for asking price.
I would say, "Actors are a simple way to tell computers to do more than one thing at the same time. They are different from other ways to tell computers to do more than one at the same time because they take fewer resources than some of the alternatives and because they are easier for programmers to use correctly than some of the other alternatives."
发布评论
评论(5)
可以有很多演员。所有演员“同时”表演。并发性是该模型的关键部分。
演员无法知道其他演员在想什么。移动信息的唯一方法是使用消息。 (无共享状态)
Actor 可以接收消息,并通过以下方式对其采取行动:
用其中的数据进行计算
向其他参与者发送消息
创建其他演员。
忽略/丢弃消息。
这基本上让演员就像……人一样。人们不知道彼此在想什么,他们必须发送消息来传达信息,他们可以选择忽略传入的消息、考虑它们或与其他人交流。随机的坏事可能会发生在人们身上。很多人同时做事。要处理更多负载,请添加更多人员。
关于你的硕士项目,我建议了解一下 Erlang Web 框架。编程语言Erlang基于Actor模型,并且使用效果很好在可扩展的系统中,包括电话交换机...和 Facebook 消息系统。
There can be many actors. All actors act "at the same time". The concurrency is a key part of this model.
Actors cannot know what other Actors are thinking. The only way to move information is with a message. (no shared state)
Actors can receive messages, and act on them by:
doing computation with the data in them
sending messages to other actors
creating other actors.
ignoring/discarding the message.
This basically makes actors just like... People. People don't know what each other are thinking, they must send messages to convey information, they have the choice of ignoring incoming messages, considering them, or communicating with other people. Random bad things can happen to people. Lots of people all do things at the same time. To handle more load, add more people.
Regarding your masters project, I suggest finding out about the Erlang Web framework. The programming language Erlang is based on the Actor model, and is used to great effect in scalable systems including phone switches... and the Facebook messaging system.
我将尝试一个简单的比喻:
I'll try a simple metaphor:
我不确定这会是一个好的市场,但我会尝试一下:
让我们想象一个经典的中东市场。有买家(假设他们只是步行的游客)和卖家。买家走过市场,卖家大声喊出他们的商品名称:地毯!物种!!!马匹!!!安迪!珠宝!!!等等...有些买家对特定种类的商品不感兴趣,会去下一家商店,但有些买家会感兴趣,并询问:“多少钱?”,卖家:“50$”,买家:“能给我折扣吗?”等等……
演员在这里是买家和卖家。卖家正在发送包含其商品类型的消息。买家可以跳过消息,也可以发送消息询问价格。
I am not sure that this will be good one, but I'll try:
Let's imagine a classic middle-east marketplace. There are buyers(suppose they are just walking tourists) and sellers. Buyers are walking through marketplace, and sellers cry out name's of theirs goods: Carpets!! Species!!! Horses!!! Сandies!!! Jewels!!! and so on... Some buyers are not interest in specific kind of goods and go to the next store, but some buyers become interested, and ask: "How much is it?", seller: "50$", buyer:"Can you give me a discount?", and so on...
Actors are buyers and sellers here. Sellers are sending messages with types of their goods. Buyer can skip a message, or can send message for asking price.
演员 - 我们也可以称之为主体。演员正在用物体做一些事情。
之所以叫演员,是因为是演戏的人。
Actor - is something we can also call subject. Actors are doing something with objects.
Actor is calls so, because it's somebody who acts.
我会说,“Actor 是一种告诉计算机同时做多件事的简单方法。它们与告诉计算机同时做多件事的其他方法不同,因为它们比某些计算机占用的资源更少。的替代方案,因为它们比其他一些替代方案更容易让程序员正确使用。”
I would say, "Actors are a simple way to tell computers to do more than one thing at the same time. They are different from other ways to tell computers to do more than one at the same time because they take fewer resources than some of the alternatives and because they are easier for programmers to use correctly than some of the other alternatives."