Skip to content
BENIBIX Learn

Elixir

Development🔤 LanguagesPopular Languages

Also known as Elixir Language, Elixir Programming

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

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.

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.

Why it matters

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

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 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.
Elixir sits on the functional shelf. It is built on Erlang.

Common mistake

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

Key takeaways

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

Learn it properly