Better HN
topnewbestaskshowjobs
Log inSign up

tynanbe

5 karma · joined Apr 5, 2018 (8y ago) · 3 submissions

Submissions

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

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

comment 5y ago · link · parent

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.