Cloud

Gleam 1.7 brings faster record updates



Gleam 1.7 has arrived with faster record updates and a dynamic coder for a custom type. Overall, the latest version of Gleam touts performance and package publishing improvements.

This latest update to Gleam was announced January 5 and is accessible from GitHub. Created by developer Louis Pilfold, Gleam is described as a type-safe and scalable language for the Erlang virtual machine and JavaScript runtimes.

For faster record updates, the Gleam compiler now “monomorphises” record updates, meaning it generates the most-efficient code to construct the new record on a case-by-case basis, removing the runtime conditional logic and its associated cost entirely. The optimization is for both the Erlang and JavaScript targets. Another benefit of record update monomorphisation is that developers can change parameterized types of a generic record with the update syntax.



READ SOURCE

This website uses cookies. By continuing to use this site, you accept our use of cookies.