The power of a type system, the expressiveness of functional
programming, and the reliability of the highly concurrent, fault
tolerant Erlang runtime, with a familiar and modern syntax.

import gleam/io

pub fn main() {
  io.println("hello, friend!")
}

Reliable and scalable

Running on the battle-tested Erlang virtual machine that powers
planet-scale systems such as WhatsApp and Ericsson, Gleam is ready for
workloads of any size.

Thanks to a multi-core actor based concurrency system that can run
millions of concurrent tasks, fast immutable data structures, and a
concurrent garbage collector that never stops the world, your service can
scale and stay lightning fast with ease.

fn spawn_task(i) {
  task.async(fn() {
    let n = int.to_string(i)
    io.println("Hello from " <> n)
  })
}

pub fn main() {
  
  list.range(0, 200_000)
  |> list.map(spawn_task)
  |> list.each(task.await_forever)
}

Ready when you are

Gleam comes with compiler, build tool, formatter, editor integrations,
and package manager all built in, so creating a Gleam project is just
running gleam new.

As part of the wider BEAM ecosystem, Gleam programs can use thousands
of published packages, whet