Optimising for maintainability – Gleam in production at Strand

37 Bogdanp 6 8/28/2025, 3:30:52 PM gleam.run ↗

Comments (6)

stephenlf · 1h ago
Beautiful. I’ve taken a few cracks at learning Gleam, but I found I quickly get stuck in abstraction hell—building types on types in types without coding any behavior. I would probably have more success learning Erlang first, just to get a handle on those functional patterns the BEAM was built for. I should take another crack at it.
throwawaymaths · 15m ago
Just FYI: unlike many pure FPs, building types on types is generally not a pattern that you do in erlang (or Elixir) and is largely considered an anti pattern in both communities.

You might not get the "handle" you're looking for?

0cf8612b2e1e · 1h ago
For Gleam//Erlang is there an easy way to package up an executable you can distribute without also shipping Erlang?
lpil · 1h ago
No, the VM needs to be installed on the machine, similar to C#, Java, Python, etc.

There have been some projects for creating self-extracting executable archives for the VM, and some projects for compiling BEAM programs to native code, but nothing has become well established yet.

WJW · 1h ago
You can compile to javascript as well.
giacomocava · 1h ago
Amazing to hear success stories of Gleam in production! Running on the beam really feels like a super power