Gleam v1.3.0 – Auto-imports and tolerant expressions
Gleam v1.3.0 update includes auto-imports, tolerant expressions, enhanced completions, import cycles diagnostics, syntax warnings, arithmetic support, and JavaScript bundler hints. Contributors improved functionality and user experience significantly.
Read original articleGleam v1.3.0 has been released, introducing new features such as auto-imports and tolerant expressions. The language server now suggests completions for values and types from any module in the project, automatically adding import statements if needed. Tolerant expressions allow the server to work with and understand code even with errors that would typically halt the compiler. Additionally, completion improvements ensure consistent results across different text editors. Import cycles diagnostics have been enhanced, and helpful hidden hovering now displays details of record fields when pattern matching. Syntax warnings and error improvements have been implemented, including warnings for redundant function captures and more informative error messages. Gleam now supports arithmetic operations on floats and ints in case clause guards. Lastly, hints for JavaScript bundlers have been added to aid in dead code elimination. Various contributors have played a significant role in these updates, enhancing the functionality and user experience of Gleam.
Related
Gren 0.4: New Foundations
Gren 0.4 updates its functional language with enhanced core packages, a new compiler, revamped FileSystem API, improved functions, and a community shift to Discord. These updates aim to boost usability and community engagement.
ECMAScript 2024: What's New?
Ecma International approved ECMAScript 2024 with new features like Promise.withResolvers(), /v flag for Unicode properties, ArrayBuffers enhancements, and Atomics.waitAsync(). Notable additions include resizing ArrayBuffers and string well-formedness methods. A book "Exploring JavaScript (ES2024 Edition)" is available.
Reflection for C++26
The P2996R4 document proposes a reduced set of static reflection features in C++26, using constant expressions, a reflection operator, metafunctions, and splicers. Implementation progress is ongoing by Lock3 and EDG.
Bevy 0.14 – Data driven game engine
Bevy 0.14 release includes Virtual Geometry, Sharp Screen Space Reflections, Depth of Field, Motion Blur, Volumetric Fog, and more. Updates also cover Animation Blending, ECS Observers, Color API, and UI improvements.
Using Use in Gleam
Erika Rowland, erikareads, explains the benefits of the "use" expression in Gleam v0.25, replacing "try" for clearer and concise code. It simplifies callback functions, enhances readability, and streamlines error handling.
It’s really great to see some strong contributors alongside Louis :)
I'm only learning Gleam right now but the feature set already feels small, very cohesive and well thought.
Pipelines, function capture, use expression, pattern matching: I wish I could work with this in Python at work :')
That was a few years ago, and looking back I must have been wrong -- but I tried pretty hard. (I successfully learned my way around Haskell and NixOS, which are at least roughly as esoteric, but I thought much better documented. And NicOS isn't even that well documented )
Its had a lot of polish since the last time I ever looked at it, might have to experiment with it. :)
Related
Gren 0.4: New Foundations
Gren 0.4 updates its functional language with enhanced core packages, a new compiler, revamped FileSystem API, improved functions, and a community shift to Discord. These updates aim to boost usability and community engagement.
ECMAScript 2024: What's New?
Ecma International approved ECMAScript 2024 with new features like Promise.withResolvers(), /v flag for Unicode properties, ArrayBuffers enhancements, and Atomics.waitAsync(). Notable additions include resizing ArrayBuffers and string well-formedness methods. A book "Exploring JavaScript (ES2024 Edition)" is available.
Reflection for C++26
The P2996R4 document proposes a reduced set of static reflection features in C++26, using constant expressions, a reflection operator, metafunctions, and splicers. Implementation progress is ongoing by Lock3 and EDG.
Bevy 0.14 – Data driven game engine
Bevy 0.14 release includes Virtual Geometry, Sharp Screen Space Reflections, Depth of Field, Motion Blur, Volumetric Fog, and more. Updates also cover Animation Blending, ECS Observers, Color API, and UI improvements.
Using Use in Gleam
Erika Rowland, erikareads, explains the benefits of the "use" expression in Gleam v0.25, replacing "try" for clearer and concise code. It simplifies callback functions, enhances readability, and streamlines error handling.