Erlang has this very pragmatic approach with functional programming: obey its purest principles (referential transparency, avoiding mutable data, etc), but break away from them when real world problems pop up.
Each actor is a separate process in the virtual machine. In a nutshell, if you were an actor in Erlang's world, you would be a lonely person, sitting in a dark room with no window, waiting by your mailbox to get a message. Once you get a message, you react to it in a specific way: you pay the bills when receiving them, you respond to Birthday cards with a "Thank you" letter and you ignore the letters you can't understand.
Erlang's actor model can be imagined as a world where everyone is sitting alone in their own room and can perform a few distinct tasks. Everyone communicates strictly by writing letters and that's it. While it sounds like a boring life (and a new age for the postal service), it means you can ask many people to perform very specific tasks for you, and none of them will ever do something wrong or make mistakes which will have repercussions on the work of others; they may not even know the existence of people other than you (and that's great).
外国人写的真好。。。。。。真形象,一下子觉得erlang好可爱好可爱。
相关推荐
本书是为那些具有命令式语言编程基础知识(例如C / C ++,Java,Python,Ruby等)并且可能会或可能不知道函数式编程(例如Haskell,Scala,Erlang)的人们学习Erlang的一种方法。 ,Clojure,OCaml等)。
学到一些Erlang,以造福所有人! 在Kindle上 这些是我用来生成Kindle支持的.mobi格式的的来源。 下载 这些文件是2015年6月26日... 在Kindle设备上加载build / learn-you-some-erlang.mobi或使用对其进行测试。 屏幕截图
标题“硝烟中的Erlang(ErlangInAnger中文版)”和描述“erlang调优,为learn you some erlang for good的作者出的,里面介绍recon工具”表明本文档是关于Erlang语言的高级应用,特别是在性能调优、生产系统问题诊断...
- ** Learn You Some Erlang**:这是一本在线书籍,深入浅出地介绍了Erlang,适合初学者。 - ** Erlang Pattern**:书籍或文章,介绍Erlang编程模式和最佳实践。 - ** Erlang/OTP设计原则**:深入理解Erlang/OTP...
- **Learn You Some Erlang**: 一本由 Frederic Henry 编写的免费在线书籍,深入浅出地介绍了 Erlang。 - **Erlang in Anger**: Joe Armstrong(Erlang 之父)的一份演讲稿,讲述了如何在生产环境中处理 Erlang 系统...
In some cases, you'll also see examples in Java, JavaScript, and Erlang. Software engineers and architects will learn patterns that address day-to-day distributed development problems in a fault-...