Gleam v1.9.0 Released
Published on: 2025-07-15 04:06:38
Published 08 Mar, 2025 by Louis Pilfold
Gleam is a type-safe and scalable language for the Erlang virtual machine and JavaScript runtimes. Today Gleam v1.9.0 has been published. Let’s take a look!
Echo debug printing
There are debuggers you can use with Gleam, however the most popular ways to understand the runtime behaviour of a Gleam program is through writing tests and through print debugging.
The standard library function io.debug is most commonly used for print debugging. It takes a value of any type, uses target specific runtime reflection to turn it into a string of Gleam syntax, and then prints it to standard-error. This works well, but there are some ways in which this function is not optimal:
Functions don’t know anything about where they are called from, so it’s not possible to print the location of the io.debug call along with the value being printed.
call along with the value being printed. There’s no way for the compiler or build tool to know this is a special funct
... Read full article.