Table of Contents
About
Gleam is a new-ish functional programming language that compiles to Erlang and JavaScript. It features a familiar Rust like syntax while being similar to Elm in complexity and in general is a lot of fun to work with.
The problem however is that Gleam does not natively support creating executables.
This note/guide explains how to create a Gleam executable in various ways, along with their advantages and caveats.
I will be using my WIP project to demonstrate the process of creating an executable throughout the guide.
Creating a gleam project
Install gleam by following the instructions here
Create a new project with gleam new
Build the project with gleam build --target=erlang|javascript
... continue reading