News for hackers. Stuff that matters.
Re:The Gleam Programming Language by rkangel on Wednesday January 14, 2026 @09:23AM (#46616369)
In Elixir you just call the Erlang function directly. It's basically the same as calling an Elixir function, just with a different naming convention.

In Gleam, you first have to declare the function type and THEN you can call the function directly.

This is probably the lightest way you can bridge between statically and dynamically typed languages, but it's not the same as Elixir.

Re:The Gleam Programming Language by lpil on Wednesday January 14, 2026 @09:26AM (#46616395)
Sorry, I've been unclear.

The runtime behaviour and cost of calling an Erlang function is the same in Elixir and Gleam, however the syntax is more verbose in Gleam as it asks for type information, while in Elixir this is optional.