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.
HN user
tynanbe
5 karma
Posts0
Comments3
No posts found.
Gleam 0.16 compiles to JavaScript 5 years ago
Gleam 0.16 compiles to JavaScript 5 years ago
It references module, which can be seen when creating an `external fn` for Erlang or Elixir, for example. https://gleam.run/book/tour/external-functions.html
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.