Gleam doesn't compile to Erlang source anymore
Article URL: https://gleam.run/news/gleam-doesnt-compile-to-erlang-source-anymore/ Comments URL: https://news.ycombinator.com/item?id=49975619 Points: 256 # Comments: 103
Gleam, a type-safe and scalable language for the Erlang virtual machine and JavaScript runtimes, has released version 1.19.0. The most significant update is the replacement of the Erlang code generator with a new design that outputs Erlang abstract forms instead of Erlang source code. This change brings several benefits, including improved compiler performance, accurate line numbers in crash reports and stacktraces, and enhanced code-quality.
A benchmark comparing Gleam's compilation times to other languages like Erlang, Elixir, and JavaScript was conducted using José Valim's langcompilebench project. The results showed a considerable improvement in Gleam's compilation speed after updating to version 1.19.0. However, it is essential to note that this benchmark is contrived and should not be the sole factor in evaluating a language's performance.
The shift to Erlang abstract forms is a cost-benefit sweet-spot for Gleam, considering the language's community-driven nature and the financial constraints faced by its developers. This decision also aligns with Elixir, which has successfully compiled to Erlang abstract forms. Gleam's continued development and success rely on efficient resource allocation, making the compiled Erlang abstract form the optimal choice at present.
Written by urgent.news from Hacker News Best's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.
This story
This is one outlet's version. Read the fullest account.