Gleam编程语言推出v1.18.0版本,重点强化了语言服务器的能力[1]。新版本中,语言服务器现已支持对记录字段的完整操作,包括跳转定义、查找引用和重命名功能[1]。此外,用户可以对类型变量进行重命名,该功能适用于函数、类型和常量中的类型变量[1]。在模块重命名时,系统会自动更新所有相关的导入语句[1]。
编译器的性能也得到显著优化[1]。通过采用内存竞技场技术,代码格式化速度提升了13%,峰值内存占用减少了10%[1]。JavaScript代码生成方面,优化改进了数据单例的使用方式,不再每次都构建新实例[1]。此外,本次更新还包含了多项语言服务器增强功能,涵盖模式匹配、整数进制转换、类型生成和注释处理等方面[1]。
Gleam has released version 1.18.0, introducing significant enhancements to its language server and development tooling [1]. The update brings comprehensive support for record fields within the language server, enabling developers to perform go-to-definition, find-references, and rename operations on record fields [1]. Additionally, the release introduces support for renaming type variables across functions, types, and constants [1].
Module renaming functionality has been expanded to automatically update all import statements when a module is renamed, streamlining refactoring workflows [1]. The compiler has undergone internal optimization through the adoption of memory arena techniques, resulting in a 13% increase in formatting speed and a 10% reduction in peak memory consumption [1]. JavaScript code generation has been improved by utilizing data singletons instead of constructing new instances each time, enhancing runtime efficiency [1]. The language server also includes multiple behavioral improvements covering pattern matching, integer base conversion, missing type generation, and comment transformation [1].