top | item 12917002

(no title)

bombtrack | 9 years ago

We use both Erlang and Elixir where I work. We successfully use Erlang libs in our Elixir projects pretty easily. We recently started trying to do the reverse and use an Elixir app inside an existing Erlang app. It has been significantly more work. The main issues have been around dependency management.

I wasn't personally working on this, so I apologize for being fuzzy on the details, but I understand that getting rebar3 to fetch all the deps that would normally be managed by hex was not possible or at least non-trivial. There was talk of having to manually install each dep that you knew the Elixir lib would be requiring.

I think it was sorted into something workable, but if anyone has better understanding I would love to be pointed to some resources!

discuss

order

bombtrack|9 years ago

Had a quick chat this morning with the people that worked on it. The package rebar3_elixir_compile[0] makes this pretty easy. However, our target Elixir lib is not a public hex package, which requires using git submodules.

Not a seamless setup, but it does work. As the sibling comment suggests, perhaps using mix for everything would help.

[0] https://github.com/barrel-db/rebar3_elixir_compile

di4na|9 years ago

Hex is going to be the main repo for erlang to and rebar3 should be good to use it. You could even just use mix to build an erlang project.