Packaging a Gleam app into a single executable (2025)
todsacerdoti
85 points
7 comments
March 02, 2026
Related Discussions
Found 5 related stories in 604.1ms across 14,015 title embeddings via pgvector HNSW
- Gleam v1.17.0 figbert · 111 pts · June 02, 2026 · 60% similar
- Gleam Is Now on Tangled nerdypepper · 223 pts · July 18, 2026 · 51% similar
- Gloat compiles Clojure and YAMLScript to Go code, native binaries and WASM adityaathalye · 18 pts · June 18, 2026 · 50% similar
- Glaze by Raycast romac · 208 pts · March 04, 2026 · 47% similar
- I packed 16 GB of GGUF quants into 1.8 GB, losslessly adamdanielsson1 · 11 pts · July 06, 2026 · 46% similar
Discussion Highlights (7 comments)
mmcclure
This is an interesting writeup, albeit not quite what I was hoping for. I love Elixir and have been following Gleam for a while now, so I clicked through hoping this was talking about Gleam baking this into their ecosystem a bit better. I was a little disappointed to see it's ultimately talking about how to build a Gleam project and then use the resulting build ecosystem to create a binary (Gleam -> JS -> JS build tool, or Gleam -> escript -> elixir-burrito). It would have been interesting to see some high level commentary from the author on the results of each one on top of the general workflow. Build time, binary size, startup time, whatever.
lerp-io
bUn Is NoT "FaSTeR" tHan NoDe #5732368444
tbeseda
ratio of upvotes to comments is oddly high...
sltr
I did it with Tauri. ~14MB Windows, macOS, and Linux exe, browser app, iOS, and Android. https://code.slater.dev/doug/praylist/
3eb7988a1663
I am theoretically in love with Gleam - it ticks so many boxes. However, I really want to be able to make CLI applications...packaging up JS is not it. I saw there is an early stage WASM project[0] which has me hopeful. Performance is not a requirement - equivalent to Python is totally fine, I just want that beautiful Gleam syntax. [0] https://github.com/gertvv/gl_wasm
bbkane
Rightly or wrongly, I'd like to see Gleam as a Go competitor for Web apps and CLI apps. Unfortunately, easy cross-compilation to relatively static binaries is a "must" for me. Now that Go gives it to me, I won't really entertain a competitor that doesn't provide a "static build" option. So I'm glad to see this exists, even though it looks pretty janky!
__jonas
Would be great to be able to seamlessly bundle a Gleam app for the Erlang target alongside the BEAM in a single binary, like Burrito but without the extra Elixir code. The BEAM is smaller than most JS engines, you could get a binary of 30-40 MB I believe -- still a fair amount, but much smaller than bun/deno compile.