Gleam 1.10, a brand new launch of the type-safe programming language for the Erlang digital machine and JavaScript runtimes, is now obtainable. The replace options compiler enhancements centering on holding extra data and enhancing exhaustive evaluation. Faster execution of JavaScript code is also highlighted.
Gleam 1.10 was launched April 14; it’s accessible on GitHub.
The compiler on this launch retains extra details about varieties and values and the way they reference one another in Gleam applications, in keeping with a weblog posted by Gleam creator Louis Pilfold. This permits the language server included within the Gleam binary to offer a “find references” characteristic that permits builders to search out the place a kind or worth is utilized in a venture. Also, the extra data has been used to enhance the “rename” language server characteristic. Prior to this, solely module-local varieties and values might be renamed. With the advance, renaming could be carried out throughout all venture modules. Gleam’s builders even have improved the compiler’s unused-code detection, repairing some conditions wherein the compiler would fail in detecting all the unused code.