28

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

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

Ryan Cromwell
  • 2,613
  • 1
  • 17
  • 33
GabiMe
  • 18,105
  • 28
  • 76
  • 113

2 Answers2

41

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.

José Valim
  • 50,409
  • 12
  • 130
  • 115
4

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

Ryan Cromwell
  • 2,613
  • 1
  • 17
  • 33
  • 1
    Right but is the resulting byte code is as efficient as it could be? – GabiMe Aug 24 '13 at 16:48
  • 7
    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. – Ryan Cromwell Aug 24 '13 at 22:05