HN user

tynanbe

5 karma
Posts0
Comments3
View on HN
No posts found.

Wasm as a compilation target is certainly of interest for the future. This Javascript target will hopefully provide a pragmatic way to write Gleam for a similar set of environments in the meantime, in addition to providing whatever unique opportunities the JS target itself offers.

Gleam 0.15 5 years ago

You might be looking for https://gleam.run/book/tour/external-functions.html

In the other direction, to quickly discover how to call Gleam functions from Erlang/Elixir, one option is to explore your project with IEx's auto-complete functionality; it's the same as using Erlang functions in Elixir, as Gleam compiles to Erlang.