Re:Why Discord is switching from Go to Rust (2020)
by jhgg on Wednesday April 13, 2022 @04:23PM
(#31019789)
Yes we are using rust in a big way. We have multiple teams now full time working on Rust. It is being used on both the client and server, as native modules, web assembly, and also native rust services and NIFs that embed themselves in our elixir services.
It has been an incredible success. I plan to blog more about it in the coming months. Our usage of Rust is continuing to grow, and if you check out our jobs page, you might notice all backend / infra jobs list Rust in them now :)
I think probably 40% of requests are handled directly by rust services now, with the rest involving one or more rust service called from our Python API layer.
Re:Why Discord is switching from Go to Rust (2020)
by SirGiggles on Friday April 15, 2022 @08:47AM
(#31039583)
Bit of a late reply, but how does Elixir fit into the overall strategy? Is it still like how it is described in previous engineering blogs where it acts as a kind of orchestrator for guilds?
Re:Why Discord is switching from Go to Rust (2020)
by abeltensor on Thursday April 14, 2022 @01:05AM
(#31023587)
I love Rust elixir Nifs. Gives you the best of both worlds to be honest. Highly fault tolerant code with fast computation. Only downside is that it can't really handle extreme crashes like a native process can.
Re:Why Discord is switching from Go to Rust (2020)
by wut42 on Thursday April 14, 2022 @11:05AM
(#31027907)
Erlang/Elixir + Rust is an awesome couple. For the downside you mentioned, depending on the use case, it could be interesting to use Rust as a node: https://github.com/sile/erl_dist
Re:Why Discord is switching from Go to Rust (2020)
by abeltensor on Friday April 15, 2022 @12:11AM
(#31036550)
Very nice. Nodes are great if you want a long running system along side your elixir app.
Re:Why Discord is switching from Go to Rust (2020)
by eatonphil on Wednesday April 13, 2022 @04:09PM
(#31019640)
Their blog doesn't list all articles on a single page (so you could ctrl-f) and doesn't have its own search and doesn't have it's own domain (so googleing `site:discord.com rust` returns a mix of Discord communities and blog posts).
Makes it pretty hard to find stuff!
Re:Why Discord is switching from Go to Rust (2020)
by ajot on Wednesday April 13, 2022 @04:17PM
(#31019726)
You can search "site:discord.com/blog/ rust", it appears to work for me on DuckDuckGo or Google. It seems TFA is the latest article mentioning Rust.
Re:Why Discord is switching from Go to Rust (2020)
by eatonphil on Wednesday April 13, 2022 @04:19PM
(#31019746)
Woah I didn't realize you could filter on paths. I thought `site:` was domain only.
Re:Why Discord is switching from Go to Rust (2020)
by tedunangst on Wednesday April 13, 2022 @04:26PM
(#31019811)
HN site listing is also useless because they host the blog on the same domain as everything else.
Re:Why Discord is switching from Go to Rust (2020)
by faitswulff on Wednesday April 13, 2022 @04:23PM
(#31019785)
Looks like they're still hiring for it: https://www.google.com/search?q=rust+site%3Adiscord.com%2Fjo...
(Anyone know if they're still using Rust?)