首页›发现›编程›Gleam News

Gleam News

每周更新 · 约 0 篇0 人订阅en编程
gleam.run

最近的文章

订阅后,这些文章和以后的新文章都会出现在你的阅读器里

Gleam doesn't compile to Erlang source anymore

AI 摘要Gleam v1.19.0 features a rewritten Erlang code generator that now compiles to Erlang abstract forms instead of Erlang source code, significantly improving build times and making runtime metadata such as stack trace line numbers accurately reference the original Gleam source. The release also brings JavaScript compilation improvements (flatter decision trees and faster short list literals), TypeScript API overloads that preserve type information, and better support for external build tools like Elixir's Mix and Erlang's rebar3. Additional updates include language server support for labels (go-to-definition, references, renaming) and the ability to format Gleam code in the browser via the WebAssembly compiler build.

Gleam Gathering 2027 is coming to London!

AI 摘要Gleam Gathering 2027 is coming to London, with tickets already available and the call for talks now open. The article celebrates the success of the first-ever 100% Gleam conference in Bristol earlier this year, whose 2026 talks have all been released online. Community members are encouraged to submit talk proposals if they have interesting Gleam projects, learnings, libraries, tools, or topics worth sharing.

Help from the Github Security Lab

AI 摘要The Gleam project participated in the 4th GitHub Secure Open Source Fund, which provided a 3-week security training program, a 12-month engagement, and $10,000 in sponsorship, and it turned out the project was already in an excellent security position with no vulnerabilities uncovered. Key takeaways include the value of expert guidance in converting security unknowns into knowns, the importance of evidencing security through policies, documentation, and compliance frameworks rather than just being technically secure, and the striking cost-effectiveness of investing in open source security across the fund's 50 projects.

A field day for Gleam’s language server

AI 摘要Gleam v1.18.0 has been released, bringing major language server improvements such as go-to-definition, find-references, and rename support for record fields, type variable and module renaming with automatic import updates, plus new code actions for pattern matching on values, converting integer bases, generating missing types, and converting comments. The release also delivers performance gains through data singletons that speed up generated JavaScript and compiler memory arenas that make the formatter up to 13% faster, alongside deprecation of ambiguous pipe syntax, git dependency path support, and various Hex package manager improvements.

Single file Gleam BEAM programs with escript

AI 摘要Gleam v1.17.0 has been released, introducing the `gleam export escript` command for bundling BEAM projects into single executable files, alongside JavaScript pattern matching optimisations and various language server improvements such as document highlighting, context-aware type printing, and new code actions. The release also includes build tool enhancements like a quiet development mode, an outdated dependencies summary in `gleam deps outdated`, better Git repository detection for monorepos, and support for `todo` in constant expressions. Additionally, the first videos from the all-Gleam Gleam Gathering conference have been published on YouTube.

JavaScript source maps

AI 摘要Gleam v1.16.0 has been released, introducing JavaScript source maps that enable runtime debugging with proper stack traces and breakpoints, along with package-level fault tolerance so compilation continues past broken modules. The release also brings faster string pattern matching on the JavaScript target (nearly 30% faster for some packages), new compiler warnings and error messages, and multiple language server improvements such as code actions for anonymous functions, function extraction, and type hole replacement.

Upgrading Hex security

AI 摘要Gleam v1.15.0 has been released, featuring upgraded Hex security through a new OAuth2-based authentication system with multi-factor authentication, short-lived tokens, and revocation of legacy tokens. The release also delivers many language server improvements (including code folding, more precise completions, new code actions like extracting anonymous functions and adding missing type parameters), friendlier Hex error messages, JavaScript FFI additions for bit arrays, and package quality checks that reject packages lacking a proper README. Additional changes include snake_case configuration keys in gleam.toml, improved CLI help documentation, and better guard clause ergonomics.

Join us at Gleam Gathering

AI 摘要Gleam Gathering, the first-ever 100% Gleam conference, will take place on 21st February in Bristol, UK, featuring talks from community members and the Gleam core team on topics like compiler optimisation. The event offers opportunities to socialise with the community and will be followed by a trip to a retro-games arcade. A few last-minute tickets are still available for those interested in attending.

The happy holidays release 2025 🎁

AI 摘要This article announces Gleam v1.14.0, a holiday release of the type-safe programming language for the Erlang VM and JavaScript, highlighting features such as @external annotations for external types (enabling precise Erlang and TypeScript type definitions), interference-based pruning extended to int segments, and number normalisation in pattern matching analysis. It also covers numerous compiler and tooling improvements, including better error messages, fault-tolerant analysis, redundant module and detached documentation warnings, record update syntax for constants, latest Elixir support, an outdated dependencies command, and enhanced language server features like new code actions and type-directed autocompletion.

Formalising external APIs

AI 摘要Gleam v1.13.0 has been released, introducing a formalised external API for JavaScript code to safely construct and interact with Gleam data types, alongside a new guide on correctly writing external functions without relying on internal compiler APIs. The release also brings compiler improvements including interference-based pruning that drastically reduces compile times for bit array pattern matching, warnings for unreachable bit array patterns and unused recursive function arguments, and expanded fault-tolerant analysis for the language server. Additional refinements include a better error message for private opaque types with a quick-fix action, deprecation of redundant `_ as x` pattern aliases, new warnings for inefficient uses of `list.length`, and a helpful syntax error for JavaScript developers who mistakenly use `const` inside functions.