4 ms·
Is there any documentation on "Zero cost interop with Erlang, Elixir, etc" mentioned on the home page? I'd definitely be really interested if it can be integrat
by mcintyre1994 5y ago
Is there any documentation on "Zero cost interop with Erlang, Elixir, etc" mentioned on the home page? I'd definitely be really interested if it can be integrated with eg. a Phoenix project.
- tynanbe 5y agoYou might be looking for https://gleam.run/book/tour/external-functions.html 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.
- lpil 5y agoIf you're familiar with Elixir you can call Gleam functions the same way as Erlang functions. Gleam compiles to typical Erlang code, and you can even read the compiled output to get a better idea of how it works. Later we will have more docs on how to work with Gleam from Elixir specifically, thank you.