28

Elixir seems cool but I wonder about the downsides.. if any..

Are there any other potential downsides when choosing it over erlang ?

2 Answers 2

40

Elixir reuses most of the compilation stack used by Erlang, so our bytecode is in general very close to the one you would get by compiling Erlang itself. In many cases, it just isn't the same because we include some reflection functions like __info__/1 in the compiled module. Also, there is no conversion cost in between calling Erlang and Elixir and it will never be.

Sign up to request clarification or add additional context in comments.

1 Comment

Would like to see benchmarks comparisons of any sort. Could find any
4

Since elixir compiles directly to Beam bytecode, you don't incure any intermediate costs like a jitter if that's your concern.

2 Comments

Right but is the resulting byte code is as efficient as it could be?
I think you'll find this is localized to a) your chosen implementation and b) the constructs you choose in each language. I think you'll find this question hard to answer as a generalization.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.