News for hackers. Stuff that matters.
Re:Effortless Elixir Releases and Deployment by karl_schlagenfu on Saturday August 17, 2019 @01:37AM (#20722317)
Is there a performance difference between Elixir and Erlang? I assume not since they both run on BEAM but I've never dabbled with Elixir.
Re:Effortless Elixir Releases and Deployment by gervu on Saturday August 17, 2019 @01:47AM (#20722356)
Between Elixir and Erlang, there's no difference because it's all BEAM bytecode when it runs.

Between arbitrary individual functions you might encounter, there can be differences, but only in the sense that it could happen between Erlang and Erlang if the functions had different implementations or degrees of optimization or optimization choices.

Worth noting for prospective adopters is that you can seamlessly call Erlang functions from Elixir by adding a : prefix, such as :random.uniform(), and there's no weird overhead or surprises involved.

Re:Effortless Elixir Releases and Deployment by nivertech on Saturday August 17, 2019 @11:04AM (#20724370)
there are might be some minor overhead for Elixir:

- all uppercase elixir atoms / module names adding "Elixir." prefix

- idiomatic Elixir code uses structs (sugar over maps), where Erlang uses records (sugar over tuples)

- some other idiomatic Elixir code has overhead over Erlang, for example access operator []

Re:Effortless Elixir Releases and Deployment by degraafc on Saturday August 17, 2019 @01:46AM (#20722351)
Elixir compiles down to the same Erlang Abstract Format as Erlang itself, so performance should be the same.