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

  • 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.

主站蜘蛛池模板: 曲沃县| 延安市| 阿克陶县| 阿图什市| 弥勒县| 佛冈县| 二连浩特市| 启东市| 城固县| 轮台县| 凤庆县| 盐池县| 阳新县| 彝良县| 漠河县| 峡江县| 万山特区| 沙田区| 渝北区| 田阳县| 巴彦淖尔市| 聊城市| 县级市| 应城市| 眉山市| 昌江| 荥经县| 临沭县| 崇礼县| 青神县| 酉阳| 巍山| 廊坊市| 太原市| 昭觉县| 浮梁县| 思南县| 四会市| 万安县| 朝阳市| 临泉县|