Why you should try the Gleam programming language
Gleam is a functional language that runs on the BEAM[1] virtual machine used by Erlang, and it works with the Erlang and Elixir ecosystem. It can also be compiled to JavaScript and run through Node.js. The author, who mostly writes hobby projects in Rust, says that about 80% of the code they write could be copied to Rust with only syntax changes.
Gleam variables are immutable, and the pipe operator[2] |> passes data as the first argument of the next function. The use construct avoids nested callbacks: use param <- some_func(arg) is equivalent to some_func(arg, fn(param) { ... }). Gleam has no loops, so iteration is done with list functions and recursion is used for the rest. Tail-call optimization[3] lets a recursive call reuse the current stack frame when it is the function's last step.
Gleam is statically typed, and its types combine the enum and struct concepts from Rust. Because the same type definitions can compile to both BEAM and JavaScript, they can be shared between a web frontend and a BEAM backend. A concurrency example shows that a process started with spawn_unlinked can crash without affecting its parent.
Read the original nchagnet.euDiscussion
Discussion
Commenters mostly praise Gleam's type safety and the ease of sharing code between frontend and backend, and one says they write most of their Gleam code with Claude. Others name the lack of currying and a small ecosystem as drawbacks, and one commenter says they will not use the language because of the community's history of activism.
Sources
-
Nicolas Chagnet's Homepage
You should try Gleam
-
KRGeekNews KO
Gleam을 써보자


