Elixir

term

programming

Kept in this browser · My desk

The functional language for the Erlang virtual machine created by José Valim from 2011, sponsored by Plataformatec, the Brazilian consultancy he co-founded; version 1.0 was released on 18 September 2014.

Valim pitched Elixir to Plataformatec around February 2012, and it agreed to sponsor it; Valim describes Plataformatec as "a Brazilian consultancy acquired by Nubank" and now leads Dashbit.

What it is. Elixir is a dynamic, functional language designed, in its own words, for building scalable and maintainable applications. It runs on the Erlang virtual machine (VM), and the whole Erlang ecosystem is available to Elixir developers. Elixir leverages the Erlang VM, "known for running low-latency, distributed and fault-tolerant systems". Erlang was developed at the Ericsson Computer Science Laboratory and battle-tested in Ericsson products; its middleware and libraries form the Open Telecom Platform (OTP), released under the Apache License 2.0 since OTP 18.0.

How it works. In Elixir all code runs inside processes. The documentation stresses that these are not operating system processes: they are isolated from each other, run concurrently and communicate only by message passing, and they are so light in memory and processor time that tens or even hundreds of thousands can run at once. A message sent to a process waits in its mailbox until a receive block matches it. Because processes share nothing, a failure in one never corrupts the state of another; links propagate a failure on purpose, and supervisors restart the processes that fail, which is why "failing fast", or "let it crash", is a common philosophy of Elixir software. Rust's reference credits the same Erlang lineage for message passing, linked failure and lightweight concurrency. Around the language, Elixir 1.0 already shipped Mix, the build tool, ExUnit for tests, IEx, the interactive shell, Logger and the EEx templates, and packages come from Hex, the package manager for the Erlang ecosystem.

Origin. José Valim made the initial commit on 9 January 2011 and released v0.3.0 around April 2011. He then found that his first design departed so far from Erlang that every Erlang module needed an Elixir wrapper, so Elixir would always play catch-up, and took a break to study old, new and emerging languages. Around October 2011, during a short stay in San Francisco, he worked out with the help of Yehuda Katz the foundation of a design 100 per cent compatible with Erlang; the new version was started a few days before 2012. Around February 2012 he pitched the language to his company, Plataformatec, which agreed to sponsor it; v0.5.0 was released on 25 May 2012 and v1.0 on 18 September 2014, after 8,005 commits by 189 contributors. Valim was known in the Ruby world first: his public profile lists a Ruby Hero Award for contributions to Ruby open-source projects and Rails and his book Crafting Rails Applications (2013), and he was named Erlang User of the Year in 2015.

Types. Elixir began dynamically typed. In 2022 Valim announced the effort to add set-theoretic types, a paper on the design followed in June 2023, and in June 2026 Elixir v1.20 became "a gradually typed language": it infers and checks types in every program without new annotations, reports dead code and verified bugs, typing violations guaranteed to fail at run time if executed, and keeps a dynamic() type for values checked only at run time. The type system was made possible by a partnership between France's Centre national de la recherche scientifique (CNRS) and Remote, and its development is sponsored by Fresha and Tidewave. The documentation read on 23 November 2026 was for Elixir v1.20.5.

In practice. Phoenix is the language's web framework, and its LiveView builds interactive, real-time applications. Dashbit, the company Valim leads, says it helps startups and enterprises adopt and run Elixir in production and maintains open-source projects such as Broadway, Ecto, Nx and Elixir itself, while taking part in Hex.pm and Phoenix.

What goes wrong. Elixir runs on Erlang/OTP and uses its libraries, so their flaws reach Elixir systems. The Common Vulnerabilities and Exposures (CVE) entry CVE-2025-32433 is the sharpest case: before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20, the SSH (Secure Shell) server in Erlang/OTP could allow unauthenticated remote code execution through a flaw in protocol message handling; it was scored 10.0, and the Cybersecurity and Infrastructure Security Agency (CISA) added it to its Known Exploited Vulnerabilities catalogue on 9 June 2025. The workaround was to disable the SSH server or block access to it with firewall rules. In the code itself, the verified bugs the v1.20 checker now reports are typing violations that, in a dynamically typed program, would only show when executed; and "let it crash" relies on supervisors to restart what fails.

The Brazilian angle. Valim describes Plataformatec, which sponsored Elixir from 2012, as "a Brazilian consultancy acquired by Nubank"; he now leads a small team at Dashbit.

Neighbours. Ruby, the world Valim worked in before Elixir; programming-paradigm, for the functional style; type-system, for its late turn to gradual types; Rust, which credits the same Erlang ideas; and ssh, the protocol of its most serious inherited flaw.

Also known as: elixir language, elixir-lang

Sources

← Back to E Back to the glossary