Skip to content
gleam.run·

🚀Gleam v1.19.0 Boosts Compilation Speed with New Erlang Code Generator

Gleam's new compiler cuts build times for Erlang projects

TL;DR

Gleam v1.19.0 introduces a new Erlang code generator, reducing compilation times for Erlang projects. The update also improves code quality and accuracy of location metadata. Key improvements include a 37% faster compilation time in benchmarks.

Gleam v1.19.0 introduces a new Erlang code generator that significantly speeds up compilation times for projects running on the Erlang virtual machine. This update not only improves performance but also enhances code quality and the accuracy of location metadata. For developers working on large-scale Erlang projects, this means faster build times and more efficient development cycles. The benchmark shows a 37% reduction in compilation time from v1.17.0 to v1.19.0, based on José Valim's langcompilebench project, which measures the time to compile 100 modules each containing 100 functions.

Gleam v1.19.0 Boosts Compilation Speed with New Erlang Code Generator — gleam.run

Key Points

1

Gleam v1.19.0 introduces a new Erlang code generator, improving compilation speed by 37% in benchmarks.

2

The new generator produces Erlang abstract forms, an intermediate representation used by the Erlang compiler.

3

Gleam's location metadata now accurately reflects original source code, enhancing debugging and maintenance.

4

The JavaScript compilation is now instantaneous, with optimizations for decision tree assignments and list literals.

5

The Gleam compiler's code quality has been improved, ensuring more reliable and efficient code generation.

Why It Matters

If you're working on large-scale Erlang projects, Gleam v1.19.0's new code generator reduces build times by 37%, making development cycles more efficient. The improved location metadata accuracy also simplifies debugging and maintenance. Smaller projects might see less impact, but the overall boost in performance and code quality is a win for all Gleam users.

GleamErlangcompilationperformancecode-quality

Comments

Subscribe to join the conversation...

Be the first to comment

Enjoyed this article?

Get it daily. 7am. Free. Reads in 5 minutes.

Join 3,556 builders reading daily.

Also get