r/functionalprogramming • u/ToreroAfterOle • Oct 17 '23
Question Any Game studios/companies using FP languages on the server-side?
I was wondering if anybody knew some that do. You'd think Erlang/Elixir or maybe even Scala would be fairly popular, but even on the server-side C++ (surprised not even Golang or Java seem to be that big) seems to dominate that industry by a huge margin. I know from past research, old job posts, and open source development, these are some companies may have, at least at some point in the past, used FP languages extensively for some services:
- Nintendo - Listed as an Erlang adopter on Erlang's website, but I haven't been able to find any job descriptions on LinkedIn that mention either Erlang or Elixir.
- Riot Games - same as Nintendo
- Square Enix - same as Nintendo and Riot but listed as an Elixir adopter more specifically
- The Pokemon Company International - I saw some job posts that named Scala as the preferred language, but maybe it was more on just the data engineering side?
- Devsisters - Korean mobile games studio that has open sourced some really good functional Scala stuff.
- Dire Wolf Digital - I remember seeing some Scala + Akka job posts on their site 1 or 2 years ago.
and that's pretty much it. Are there any I might be missing?
14
Upvotes
View all comments
Show parent comment
3
u/Glensarge Oct 19 '23
There's a lot of reasons that contribute to how good a language is in x field or how utilised / represented they are. Games in general is a bit of a slow moving industry until recently. People are quite fond of using the same tech they've used for the last 20 years and it also comes from quite a heavy OOP background which is only recently shifting, granted quite drastically, in the last decade.
All of those languages you mentioned are definitely capable of having a seat at the table, and perhaps if they were, they'd inherently get optimised for those usecases too.. Some more than others though, Erlang and more recently OCaml are quite heavily used and have a good ecosystem for distributed systems compared to something like haskell which is a bit naff in comparison
I'm not so sure you can come that close to Go though, you can probably do well enough for most cases, but the thing about Go is that it not only has such a great concurrency model, especially with how it balances goroutines on threads, it's also just fast for a GC language in the first place. With arenas coming around the corner too It will probably jump even further ahead of the curve..
It's also just better for business, there's no effort in learning Go and it's very easy to write production ready, scalable code and distribute it in small runtimes.. Lots of companies (eg Monzo) ship go services in scratch containers. In games where you commonly deal with ephemeral servers, lobbys, instances or spatial servers, having fast startup times and small instances really matters
There's a lot to talk about on this topic, I'm more than happy to discuss it. I work in the games industry and a heavy user of Go, also a haskell elitist so I've spent a lot of time looking in to the viability of stricter FP languages in the industry in general