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.
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.
Gleam replaces thrown exceptions with a pure Result type and a try/catch syntax that pattern‑matches on Ok/Err. This blog walks through a file‑reading pipeline, shows the generated code, and discusses verbosity, bundle size, and JS interop trade‑offs.
Gleam pairs static types and immutable data with BEAM process isolation. This architecture note covers a minimal actor design, Erlang trust boundaries, and operational checks for fault-tolerant services.