TIDE
Languages

Gleam

Installing Gleam on Ubuntu in TIDE

Gleam

Gleam is a friendly, type-safe functional programming language that runs on the Erlang VM (BEAM) and JavaScript runtimes.

Installation

First, install Erlang/OTP dependencies:

apt update
apt install -y erlang-dev rebar3 curl tar

Next, download the latest Gleam compiler binary from GitHub releases:

curl -fsSL https://github.com/gleam-lang/gleam/releases/latest/download/gleam-v1.3.0-x86_64-unknown-linux-musl.tar.gz | tar -xz -C /usr/local/bin

Verify installation:

gleam --version

Hello World Example

Create a new Gleam project:

gleam new hello_tide
cd hello_tide

Inside src/hello_tide.gleam:

src/hello_tide.gleam
import gleam/io

pub fn main() {
  io.println("Hello, TIDE!")
}

Running the Code

Run the Gleam project using the Gleam toolchain:

gleam run

Official Resources

On this page