1 / 12

Erlang

Erlang. 2014.3.14 周易. 简介. Erlang 是一种通用的并行 程序设计语言 ,它由 乔 · 阿姆斯特朗 在 瑞典 电信设备制造商 爱立信 所辖的计算机科学研究室开发,目的是创造一种可以应付大规模开发活动的 程序设计语言 和 运行环境 。 Erlang 于 1987 年发布正式版本,最早是爱立信拥有的私有软件,经过十年的发展,于 1998 年发表 开放源代码 版本。. 简介. Paradigm: Multi-paradigm: functional, concurrent

yardley
Télécharger la présentation

Erlang

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Erlang 2014.3.14 周易

  2. 简介 • Erlang是一种通用的并行程序设计语言,它由乔·阿姆斯特朗在瑞典电信设备制造商爱立信所辖的计算机科学研究室开发,目的是创造一种可以应付大规模开发活动的程序设计语言和运行环境。Erlang于1987年发布正式版本,最早是爱立信拥有的私有软件,经过十年的发展,于1998年发表开放源代码版本。

  3. 简介 • Paradigm: Multi-paradigm: functional, concurrent • Appeared in: 1986 • Designed by: Joe Armstrong • Developer: Ericsson • Type: Strong, dynamic • Influenced by: Prolog, SmallTalk • Influenced: F#... • Stable Release: R16B03(11 December 2013) • Website: www.erlang.org

  4. 语言特色 • 进程-消息模型 (Cop面向并发) • 完全无锁(避免分布式系统的顺序瓶颈) • 容错系统(速错,监控) • 代码热更新 • 成熟的库:OTP, Mnesia…

  5. 例1:整数阶乘

  6. 例2:斐波那契数列

  7. 复合函数

  8. 并发编程 并发原语:

  9. 语言特性总结 • 并行程序设计 • 函数式程序设计 • 单次赋值 • 及早求值或严格求值 • 动态数据类型与类型系统 • 快速失败 • 代码热更新 • 脚本语言

  10. THX • Q&A ?

More Related