官术网_书友最值得收藏!

  • Mastering Elixir
  • André Albuquerque Daniel Caixinha
  • 243字
  • 2021-08-05 10:42:44

Elixir and Erlang

Elixir, created by José Valim, runs on the Erlang VM (also known as BEAM). Erlang, developed at Ericsson more than 30 years ago, was created to improve the reliability and scalability of the company's telecom systems. Nowadays, it is used in a number of different settings, from database systems to chat applications. Erlang has fault-tolerance and distribution baked into its design, and is famous for running systems with nine nines of reliability.

Erlang's runtime is natively distributed, given that it was designed to be deployed on multiple telecom switches simultaneously. Programs running on the Erlang VM can take advantage of this by easily distributing an application across multiple nodes, but also across multiple CPUssince multiple cores is just a specific case of a distributed system. This is an incredible selling point of the Erlang VM (and thus of Elixir), since in today's setting CPUs are not getting much faster, and we're instead seeing CPUs with an increasing number of cores coming out.

In this opening chapter, we will be introducing Elixir. Beginning with its data types, we will also look at pattern matching, anonymous and named functions, modules, and some control-flow constructs. Then, we will see how to work with collections, and then we will briefly touch on behaviours and protocols. The chapter will end with an overview of the incredible tooling Elixir provides, along with some ways to exploit the existing interoperability between Elixir and Erlang.

主站蜘蛛池模板: 长泰县| 万载县| 砀山县| 井研县| 彰化县| 延安市| 台前县| 恩施市| 兴化市| 屏东县| 永福县| 民勤县| 旬邑县| 正安县| 南部县| 宝兴县| 德钦县| 迁西县| 蒙城县| 渝中区| 沈阳市| 商水县| 彭阳县| 宝山区| 昌黎县| 太康县| 怀宁县| 阿鲁科尔沁旗| 石城县| 永年县| 民县| 高雄市| 石家庄市| 信宜市| 正定县| 翁牛特旗| 依安县| 饶阳县| 措美县| 石林| 盐池县|