{
  "id": 12368445,
  "title": "Gleam doesn't compile to Erlang source anymore",
  "url": "https://urgent.news/2026/10/06/gleam-doesnt-compile-to-erlang-source-anymore",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-06T08:08:20.000Z",
  "source": {
    "name": "Hacker News",
    "slug": "hacker-news",
    "url": "https://gleam.run/news/gleam-doesnt-compile-to-erlang-source-anymore/"
  },
  "original_language": "en",
  "account": "Gleam, a type-safe and scalable language for Erlang virtual machine and JavaScript runtimes, recently released version 1.19.0. The update brings significant changes to the Erlang code generator, which has seen a complete redesign and now outputs a different format. Instead of generating Erlang source code, it now produces Erlang abstract forms, an intermediate representation used by the Erlang compiler. This change has led to several benefits, including improved compiler performance, accurate line numbers in crash reports and stacktraces, and enhanced code-quality. The benefits are also evident when comparing the compilation times of Gleam with other popular programming languages. The new Erlang code generator has shown a considerable improvement in building the benchmark project, with lower compilation times. When compiling to JavaScript, Gleam's compilation remains fast. While the idea of bypassing the Erlang compiler entirely and generating BEAM bytecode for improved performance is intriguing, it's unlikely due to the dynamic nature of BEAM bytecode and the significant effort required to keep up with its evolution. Gleam's compilation to Erlang abstract forms represents a cost-benefit sweet-spot, providing a reliable foundation for software development.",
  "summary": null,
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}