An early prototype forced Valim to decide which parts of a programming platform a new language should change.

By April 2011, José Valim had a version of Elixir he could use in his own projects. Using it exposed a problem. Every Erlang module he wanted to call needed an Elixir wrapper. Erlang and Elixir already ran on the same virtual machine, yet access to Erlang’s libraries depended on someone writing and maintaining adapters. As Valim put it in his May 2012 release notes, “we would always play catch up with Erlang.” By then he had rewritten the language. [1]

The rewrite answered a question that had followed Valim from his work on Ruby on Rails. How much of a programming platform should change to make concurrent software easier to build? He chose to keep the parts of Erlang that governed how work runs and how failures spread. He concentrated Elixir’s changes on how developers express, extend, and ship that work. The result was a language with room to develop its own libraries and tools while drawing on decades of work in telecommunications. [1] [2] [3]

What Rails sent him looking for

Valim recalls working to make Rails safe to use across threads and seeing bug reports tied to bursts of concurrent requests. Those reports were difficult to reproduce because the failure could depend on which operations overlapped. As multicore machines became commonplace, getting useful work out of several cores meant confronting those timing problems more often. Immutability appealed to him because it removed one source of such failures. Two threads cannot overwrite the same immutable value. [2]

Erlang offered a way to structure entire applications around that idea. Its designers at Ericsson had faced a different problem in telecommunications. How could a system keep serving users when some of its software failed? Their answer put lightweight processes at the center of the design. The virtual machine, known as BEAM, schedules those processes and can run independent ones in parallel across cores. Processes ordinarily keep their state to themselves and exchange messages. OTP, the libraries and conventions developed alongside Erlang, adds a way to organize those processes into supervision trees. A supervisor can restart a failed worker according to a declared policy. [3] [4]

For a web developer, the connection between concurrency and recovery was practical. A hypothetical service might give each connected client its own process, so separate clients can make progress independently. If a session crashes, the application can choose to restart that worker alone. What the replacement can recover depends on where the application kept the session’s state. Anything held only in the dead process is lost. A supervisor can also shut itself down when failures exceed its restart limit, leaving recovery to a higher level if one is configured. The framework gives developers a place to express these decisions. The application still has to make them. [3] [4]

Making a new language inside an existing system

Writing applications directly in Erlang would have provided the same runtime and supervision model. Valim wanted more flexibility in how he wrote and extended libraries, along with tools that made everyday development easier. The early prototype showed the cost of pursuing those goals by putting an Elixir interface in front of every Erlang library. After setting the project aside to study other languages, he worked out the basis of the rewrite with help from Yehuda Katz during a visit to San Francisco in October 2011. Plataformatec, a software consultancy Valim co-founded, sponsored the work in 2012. Early users helped revise design and syntax choices before the May release. [1] [5] [6]

In the resulting design, an Elixir developer could call an Erlang module directly. For example, :queue.in(item, queue) calls the Erlang standard library’s queue insertion function. Projects gained access to existing libraries without waiting for equivalent Elixir APIs. That choice also exposed Elixir programmers to Erlang’s conventions and documentation when using those libraries. [7]

Valim looked elsewhere for the features he wanted to add. Clojure helped inform Elixir’s protocols, which let a library specify an operation and let another developer implement it for a new data type. A custom collection that implements Enumerable, for example, can be traversed by standard functions that already work with lists and ranges. Lisp-style macros addressed a different need. They let libraries work with a structured representation of Elixir code at compile time, making specialized syntax possible and adding a layer readers may have to trace. Ruby’s influence remained visible in the syntax and in Valim’s attention to how programmers use a language day to day. [5] [8] [9]

By the time Elixir 1.0 arrived in September 2014, it shipped with Mix for building projects and managing dependencies, ExUnit for testing, and IEx for interactive work. The release credited 189 contributors. Elixir’s case for adoption rested partly on those routines of engineering work. Teams could adopt a different way of building and testing programs while keeping access to existing Erlang code. [10]

What the runtime leaves to engineers

Discord’s early use of Elixir shows where that bargain paid off and where it required more work. Discord used separate processes for connected user sessions and for its communities, which it calls guilds. When an event occurred in a guild, its process forwarded the update to connected sessions. In a 2017 engineering account, Discord co-founder Stanislav Vishnevskiy described how large guilds began falling behind as the same process had to send an update to thousands of recipients. The runtime could schedule many guilds concurrently. A single busy guild could still accumulate a backlog. [11]

Giving each update its own sender could have changed the order in which a client saw events. Discord grouped recipients by Erlang node and delegated delivery to workers on those nodes, routing each recipient consistently to the same worker. This moved fan-out work off the guild process while preserving the order that clients depended on. A process per guild gave Discord a useful boundary for state and execution. Scaling within that boundary took a second design decision about which work could run independently. [11]

Valim’s choice also made it possible for ideas to travel back into Erlang. In 2018 he co-authored a proposal for a common way to store API documentation across BEAM languages. Erlang/OTP adopted it in release 24, giving tools a common way to retrieve documentation for code written in different languages. It was another instance of the design judgment behind the rewrite. Putting a capability at the shared layer can give a new language room to develop its own tools and make those tools useful beyond the language that prompted them. [12]

Editorial disclosure. OpenAI Codex assisted with source research, analysis, and drafting.

References

  1. José Valim. Elixir v0.5.0 released. Elixir project, May 25, 2012.
  2. Semaphore Uncut. Elixir’s Creator José Valim on the Development of a New Language. Episode 25, edited interview transcript, accessed December 2, 2026.
  3. Joe Armstrong. Making Reliable Distributed Systems in the Presence of Software Errors. Doctoral dissertation, Royal Institute of Technology, 2003.
  4. Elixir project. Supervisor. Elixir 1.18.4 documentation.
  5. Evrone. Interview with José Valim, creator of Elixir. August 2020.
  6. Hugo Baraúna. Introducing Elixir Radar. Plataformatec, January 28, 2015.
  7. Elixir project. Erlang libraries. Elixir 1.18.4 documentation.
  8. Elixir project. Protocols. Elixir 1.18.4 documentation.
  9. Elixir project. Macros. Elixir 1.18.4 documentation.
  10. José Valim. Elixir v1.0 released. Elixir project, September 18, 2014.
  11. Stanislav Vishnevskiy. How Discord Scaled Elixir to 5,000,000 Concurrent Users. Discord Engineering, July 6, 2017.
  12. José Valim, Eric Bailey, and Radek Szymczyszyn. EEP 48: Documentation storage and format. Erlang Enhancement Proposal, 2018. Implemented in OTP 24.