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

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.

主站蜘蛛池模板: 镇康县| 万州区| 陆丰市| 金堂县| 苍溪县| 吴忠市| 宣化县| 遵义县| 汝州市| 电白县| 革吉县| 安岳县| 兴城市| 桂东县| 志丹县| 休宁县| 志丹县| 海门市| 土默特左旗| 临海市| 衡阳市| 永年县| 洛川县| 含山县| 白山市| 宜都市| 商都县| 行唐县| 皋兰县| 武定县| 田林县| 阿荣旗| 鲜城| 吉木乃县| 阿勒泰市| 东山县| 平果县| 简阳市| 巴塘县| 清丰县| 开阳县|