<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <div class="moz-cite-prefix">If you wanted to convert an Elixir
      module to be an Erlang module that lives in an Erlang/OTP
      application without a runtime dependency on the Elixir runtime,
      you can do that with
      <a class="moz-txt-link-freetext" href="https://github.com/okeuday/reltool_util/blob/master/ex2erl">https://github.com/okeuday/reltool_util/blob/master/ex2erl</a> .  That
      approach would allow you to use Elixir macros and other Elixir
      features without being focused on their implementation.  If you
      use ex2erl, it would be best to keep updating the output with
      future releases of Elixir, but I wouldn't expect breaking changes
      due to a recent Elixir release.<br>
      <br>
      Best Regards,<br>
      Michael<br>
      <br>
      On 9/1/21 4:03 PM, Serge Aleynikov wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CANt451kXHdTQSnBMxuxtg2v6eHL98Fds4i5JqqF_eJQQvZ5zhQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      <div dir="ltr">
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">Is there any
          guideline for making Erlang projects be more Elixir friendly?</div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif"><br>
        </div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">When developing
          an Erlang library, it would be nice to have its functions
          callable from Elixir not like:</div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif"><br>
        </div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">:erl_lib.some_fun()</div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif"><br>
        </div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">but rather</div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif"><br>
        </div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">ErlLib.some_fun()</div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif"><br>
        </div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">without needing
          to write a "glue" module compiled into
          'Elixir.ErlLib.beam'  that would import all functions from
          erl_lib and export them locally?</div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif"><br>
        </div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">Are there more
          requirements of some metadata (e.g. '__info__'/1) to be
          included in the Erlang modules?</div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif"><br>
        </div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">Regards,</div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif"><br>
        </div>
        <div class="gmail_default"
          style="font-family:arial,helvetica,sans-serif">Serge</div>
      </div>
    </blockquote>
    <br>
  </body>
</html>