Updated
Updated · InfoWorld · Aug 3
Gleam 1.18.0 Adds Record-Field Navigation, Boosting JavaScript Performance
Updated
Updated · InfoWorld · Aug 3

Gleam 1.18.0 Adds Record-Field Navigation, Boosting JavaScript Performance

1 articles · Updated · InfoWorld · Aug 3

Summary

  • Version 1.18.0, released July 29, gives the Gleam language server full record-field support, adding go-to-definition, find-references and rename across declarations, updates and cross-module accesses.
  • Three language-server upgrades drive the release: record-field tooling, renaming for type variables, and module renaming that updates references when a Gleam file is renamed in an editor.
  • JavaScript targets also get a compiler optimization that reuses a single value for equivalent data structures instead of rebuilding instances, which creator Louis Pilfold said testing showed improves performance.
  • The release also adds a code action to generate missing type definitions, expands pattern-match-on-value to function-call results, and lets Git dependencies specify a repository subdirectory path.

Insights

Will Gleam's massive leap in language-server tooling finally help it rival larger ecosystems like Elixir?
Could Gleam's new JavaScript optimization secretly introduce memory retention issues while attempting to boost performance?
What hidden security threat lurked in Gleam before the 1.18.0 update patched its dependency resolution?