Aviva Directory » Computers & Internet » Programming » Gleam

The Gleam programming language was created by Louis Pilfold and first released on April 24, 2022.

Gleam is a functional programming language used to build type-safe, scalable systems. Its compiler is written in Rust, and its syntax resembles a mix of Elm and Rust. It compiles to Erlang and JavaScript and has straightforward interop with other BEAM languages like Erlang, Elixir, and LFE.

All data structures in Gleam are immutable and implemented using structural sharing so that they can be efficiently updated. Type safe message passing is implemented in Gleam as a set of libraries, rather than being part of the language itself. This allows programmers to write safe concurrent programs that make use of Erlang's OTP framework while not being locked into one specific approach to typing message passing.

Alpaca and Caramel are similar to Gleam in that both are statically typed languages for the Erlang virtual machine, and inspired by the ML family of languages.

Although Gleam was written in Rust, they are very different languages. Rust is a low-level programming language, while Gleam is a very high-level language. Rust is a hybrid functional and imperative language that makes heavy use of mutable state, while Gleam is a functional language where everything is immutable. Rust compiles to native code, while Gleam runs on the Erlang VM and JavaScript runtimes. Rust is a much larger and more difficult language than Gleam, which was designed to be easy to learn. It is expected that a future release of Gleam will be written in Gleam.

This portion of our web guide focuses on the Gleam programming language, so online resources relating to the language, including compilers, interpreters, editors, IDEs, or other utilities designed to facilitate programming in Gleam, as well as Gleam tutorials, guides, or forums.

 

 

Recommended Resources


Search for Gleam on Google or Bing