# Elixir

> A language for apps that run many small jobs at once and must not stop.

**Field:** Software Development  
**Category:** Languages  
**Also known as:** Elixir Language, Elixir Programming

## Think of it like

It is like a beehive. Thousands of tiny bees work at once, and one bad bee does not stop the hive.

## Definition

Elixir is a functional language that runs on the Erlang virtual machine. Erlang was built for phone networks that must never go down. Elixir programs run as many tiny processes at once, each with its own memory. If one crashes, a watcher process starts it again and the rest keep going. It is used for chat apps, live systems and devices.

## Example

A chat app written in Elixir keeps each user's connection in its own tiny process. One crash does not take down the rest.

## Example code

```elixir
[1, 2, 3] |> Enum.map(&(&1 * 2)) |> IO.inspect()   # [2, 4, 6]
```

The pipe passes the list along, doubles it, then prints it.

## Why it matters

Some systems must keep running through errors. Elixir is built around that from the start.

## Common mistake

Catching every error by hand. In Elixir you let a process crash, and a watcher starts it again.

## Three principles

- **Tiny processes.** Thousands run at once.
- **Let it crash.** Supervisors restart failures.
- **Functional.** Data does not change in place.

## Related terms

- [Functional Programming](https://learn.benibix.com/term/development/functional-programming)
- [Concurrency](https://learn.benibix.com/term/development/concurrency)
- [Fault Tolerance](https://learn.benibix.com/term/infrastructure/fault-tolerance)
- [Haskell](https://learn.benibix.com/term/development/haskell)
- [Scala](https://learn.benibix.com/term/development/scala)

## Taught in

- [Haskell, Scala and Elixir](https://learn.benibix.com/learn/development-languages/haskell-scala-and-elixir): Programming Languages, 11/12

![Four labelled shelves of languages. Data science: R, MATLAB and Julia, beside a small bar chart. Functional: Haskell, Scala, Elixir, beside an arrow that turns a list into a new list. Shell and scripting: shell script, PowerShell, Perl and Lua, beside a terminal prompt. Close to the hardware: assembly language and Objective-C, beside a chip and a phone.](https://learn.benibix.com/diagrams/dev4-language-families.svg)

---

Source: https://learn.benibix.com/term/development/elixir
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
