Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is Erlang said to be more suited for server side programming in webgames than Java and C++?

Tags:

java

c++

erlang

I don't really understand, how can Erlang be more efficient than C++?

like image 970
ieplugin Avatar asked Jul 14 '10 11:07

ieplugin


People also ask

Can Java be used as a server-side language?

As above-mentioned, our top 5 most popular server-side programming languages ​​are Java, C#, PHP, Python, and Node. js. Let's take a closer look at them.

Why is Erlang not popular?

One reason Erlang may be declining is because of newer functional programming languages, such as Elixir or Elm. Although Erlang is certainly useful, it's less accessible for beginners.


1 Answers

Erlang is far less efficient than C++. Erlang's big strength is scalability, not efficiency. It will linearly scale across multiple CPUs and, due to its programming and communications model, will very easily scale across machine clusters.

Just to be clear, Erlang won't scale more than C++; it just scales more easily than C++. A lot more easily. See chapters 5 and 6 of Concurrent Programming in Erlang for a very good explanation of why this is so.

like image 137
Marcelo Cantos Avatar answered Sep 23 '22 17:09

Marcelo Cantos