出版时间:2010-6 出版社:东南大学出版社 作者:Francesco Cesarini,Simon Thompson 页数:470
Tag标签:无
前言
What made us start writing this book in the first place is the enthusiasm we share for Erlang. We wanted to help get the word out, giving back a little of what the community has given to us. Although we both got into Efiang for very different reasons, the end result was the same: lots of fun hours doing lots of fun stuff at a fraction of the effort it would have taken with other languages. And best of all, it is not a tool we use for hobby projects, but one we use on a daily basis in our real jobs! Francesco: Why Erlang? The year was 1994. While studying computer science at Uppsala University, one of the courses I took was on parallel programming. The lecturer held up the first edition of Concurrent Programming in Erlang (Prentice Hall) and said, "Read it." He then held up a handout and added, "These are the exercises, do them," after which Erlang barely got a mention; it was quickly overshadowed with the theory of threads, shared memory,semaphores, and deadlocks. As the main exercise for this course, we had to implement a simulated world inhabited by carrots, rabbits, and wolves. Rabbits would roam this world eating carrots that grew in random patches. When they had eaten enough carrots, the rabbits would get fat and split in two. Wolves ran around eating up the rabbits; if they managed to catch and eat enough rabbits, they would also get fat and split. Rabbits and wolves within a certain distance of each other would broadcast information on food and predators. If a rabbit found a carrot patch, other rabbits would quickly join him. If a wolf found a rabbit,the pack would start chasing it.
内容概要
本书深入介绍了Erlang,这是一门满足高并发、容错和快速响应等苛刻要求的理想编程语言。随着多核CPU以及与之俱来的新并发扩展方式崭露头角,Erlang正在获得更广泛的接受和应用。只要拥有这本指南,无论此前的编程水平或经验如何,你都将学会用Erlang编写复杂的并发程序。 《Erlang编程》由Erlang国际社区的两位领袖级人物基于他们的培训教材撰写,重点解析该语言的语法和语义,并详细阐述模式匹配、严格列表(proper lists)、递归、调试、网络与并发等重要概念的精髓要义。 本书可以帮助你:理解并掌握Erlang的诸多强项,以及其设计者潜心设计的各种特性;学习并发背后的概念和Erlang相应的处理方法;编写高效的Erlang程序,并且保持代码整洁易读;发现Erlang如何满足分布式系统的需求;小试牛刀,添加简单图形用户界面;学习Erlang的追踪机制,用于调试并发和分布式系统;使用内嵌的Mnesia数据库和其他表存储特性。 无论你是新手还是富有经验的Erlang开发者,《Erlang编程》都是案头必备的重要参考资料。
作者简介
作者:(瑞典)塞萨芮利(Francesco Cesarini) (英国)汤普森(Simon Thompson)塞萨芮利(Francesco Cesarini)从事Erlang/OTP教学14年,学生不仅来自高校,还有开发者、测试人员和项目/技术经理。他帮助筹建了爱尔兰、 美国和英国的Erlang开发中心。汤普森(Simon Thompson)是一位来自肯特大学计算实验室的逻辑学与计算方法教授,在过去的25年中,他一直致力于本科生和研究生的计算机教学工作。
书籍目录
ForewordPreface1.Introduction Why Should I Use Erlang? The History of Erlang Erlang's Characteristics High-Level Constructs Concurrent Processes and Message Passing Scalable, Safe, and Efficient Concurrency Soft Real-Time Properties Robustness Distributed Computation Integration and Openness Erlang and Multicore Case Studies The AXD301 ATM Switch CouchDB Comparing Erlang to C++ How Should I Use Erlang?2.Basic Erlang3.Sequential Erlang4.Concurrent Programming5.Process Design Patterns6.Process Error Handing7.Records and Macros8.Software Upgrade9.More Data Types and High-Level Constructs10.ETS and Dets Tables11.Distributed Programming in Erlang12.OTP Behaviors13.Introducing Mnesia14.GUI Programming with wxErlang15.Socket Programming16.Interfacing Erlang with Other Programming Languages17.Trace BIFs,the dbg Tracer,and Match Specifications18.Types and Documentation19.EUnit and Test-Driven Development20.Style and EfficiencyAppendix:Using ErlangIndex
章节摘录
插图:
媒体关注与评论
“尽管我已经使用Erlang多年,但在审读这份手稿的过程中,我还是常常在屏幕上打开该书某些章节,以便编程时引用。不同水平层次的所有Erlang程序员都能在这本颇具价值的好书中找到问题解答和参考材料。” ——Steve Vinoski,“The Functional Web”专栏作家,《IEEE Internet Computing》杂志
编辑推荐
《Erlang编程(影印版)》由东南大学出版社出版。
图书封面
图书标签Tags
无
评论、评分、阅读与下载