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

后端 未结 3 1589
梦谈多话
梦谈多话 2021-02-02 09:25

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

3条回答
  •  不思量自难忘°
    2021-02-02 09:42

    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.

提交回复
热议问题