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 tarNext, 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/binVerify installation:
gleam --versionHello World Example
Create a new Gleam project:
gleam new hello_tide
cd hello_tideInside 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