News for hackers. Stuff that matters.
Re:Elixir Is Erlang, not Ruby by dgellow on Monday September 07, 2020 @12:55AM (#24396708)
Discord switched to Rust some time ago: https://blog.discord.com/using-rust-to-scale-elixir-for-11-m...

Still a very impressive use of elixir IMHO.

Re:Elixir Is Erlang, not Ruby by blixtsnabb on Monday September 07, 2020 @01:05AM (#24396738)
The article says nothing about them switching to rust. They implemented a specific data structure in rust using elixir NIFs (native interface). This is equivalent of calling a C library from other languages.
Re:Elixir Is Erlang, not Ruby by nesarkvechnep on Monday September 07, 2020 @01:06AM (#24396742)
"Our core services aren’t written in Rust, they are Elixir-based."

They haven't switched, just use Rust at some places for performance improvements.

Re:Elixir Is Erlang, not Ruby by dgellow on Monday September 07, 2020 @03:00AM (#24397212)
My bad, I visibly remembered the article incorrectly and didn’t take the time to read again when sharing.

Thanks for the correction. Unfortunately I cannot edit my original comment.

Re:Elixir Is Erlang, not Ruby by sodapopcan on Monday September 07, 2020 @01:44AM (#24396898)
Others have already repeatedly mentioned this was a performance optimization. Elixir/Erlang is not particularly good for heavily CPU bound tasks--This is by design. For lack of a better source, here is a post on the Elixir forum from Robert Virding (one of the creators of Erlang) on the subject: https://elixirforum.com/t/on-why-elixir/34038/62
Re:Elixir Is Erlang, not Ruby by xlii on Monday September 07, 2020 @01:08AM (#24396748)
Based on article they didn’t switch to Elixir but instead are using Rust within Elixir in order to solve complex performance issues.