Choosing Between Gleam Native and JavaScript Compilation Targets
Decide whether to compile Gleam to a standalone BEAM executable or JavaScript based on deployment platform, binary size, and system interoperability needs.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Decide whether to compile Gleam to a standalone BEAM executable or JavaScript based on deployment platform, binary size, and system interoperability needs.
Choose the right Gleam construct for error handling and avoid process panics in production services.
Gleam ships a zero‑dependency test runner that discovers and runs tests in `test/` folders. Learn how to write, run, and tweak tests, and when the built‑in tools hit their limits.
How parametric polymorphism in Gleam lets you write reusable, type-safe code on the BEAM, with a worked Stack example and practical interop notes.
Gleam's Result type replaces exceptions with compile-time-enforced Ok/Err handling. This post shows how pipeline operators compose failures safely, where JavaScript interop breaks the guarantee, and how to verify the compiler actually catches missing branches.
Gleam's Result type and compiler-enforced exhaustiveness prevent runtime errors in production apps, with practical combinators and a worked example for robust error handling.
Learn how to enforce compile‑time error handling in a Gleam HTTP service with the Result type. The article covers design requirements, minimal implementation, trust boundaries, operational checks, and when to rethink the design.
A practical look at using Gleam's custom types and pattern matching to replace exceptions with compile‑time guarantees.
Learn how to implement type-safe concurrent actors in Gleam using gleam/otp, including state management, supervision strategies, and BEAM VM integration.