Slowly bringing elixir in

106 views
Skip to first unread message

Greg Young

unread,
Jul 6, 2015, 9:28:33 AM7/6/15
to elixir-l...@googlegroups.com
I have been wanting to start using elixir professionally. I already
have a few erlang projects I work on. I don't want to rewrite these in
elixir

What strategies have people used for trying to bring in elixir on an
existing erlang project? One idea I have been looking at is to put
unit tests in elixir (it seems quite nice for that).

Does anyone have any experience / ideas on this?

Cheers,

Greg

--
Studying for the Turing test

Sonny Scroggin

unread,
Jul 6, 2015, 12:09:02 PM7/6/15
to elixir-l...@googlegroups.com
Maybe create a new mix project and include your existing Erlang code in src. Or if the existing Erlang code is an OTP application you could add it as a dependency.

--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/CAC9RQthQfkgLsnXUnJCw3hXf3%3DFVySnROv6w7cg7ZEXN%3Dg%3D5sg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Onorio Catenacci

unread,
Jul 6, 2015, 3:15:04 PM7/6/15
to elixir-l...@googlegroups.com
I was told by a fellow in Columbus, Ohio that some of the Erlang shops in that neck of the woods are looking at Elixir solely for the fact Mix makes building the app and running unit tests against it lots easier.  So I think you're headed in the right direction by adding the unit tests in Elixir.  

Another thing you might try--try adding doc for your Erlang project via an Elixir file wrapping the Erlang code.  I mean put your example code (i. e. how to use the API) in the Elixir code.  I know you can generate some docs in Erlang code but this would give you the added advantage of being able to run doctests against your documentation.

Hope it helps!

--
Onorio

Greg Young

unread,
Jul 6, 2015, 3:52:57 PM7/6/15
to elixir-l...@googlegroups.com
Thats a great idea! thanks!
> --
> You received this message because you are subscribed to the Google Groups
> "elixir-lang-talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to elixir-lang-ta...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-talk/83388b72-4fc8-4be8-8d7d-545ad6a1db4d%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



Alex Shneyderman

unread,
Jul 6, 2015, 6:28:39 PM7/6/15
to elixir-l...@googlegroups.com
I have been working on a multi-app project where one of the apps  is written almost entirely in elixir. We use derivative of erlang.mk that was adjusted a bit to bring that one elixir app into the fold for building and running tests. The interoperability is seamless, the only thing to do is to bring tooling on erlang side up-to what you'd expect on the elixir side. But all of that is manageable. 

From the experience above, I'd claim you will have easier time if you start with elixir and mix in Erlang as you need. Umbrella app, for example, where some of the apps are erlang and others elixir, should be rather simple. 

Cheers,
Alex. 


On Monday, July 6, 2015 at 9:28:33 AM UTC-4, Greg Young wrote:
Reply all
Reply to author
Forward
0 new messages