为什么Erlang认为比Java和C ++更适合网络游戏的服务器端编程? [英] Why is Erlang said to be more suited for server side programming in webgames than Java and C++?

查看:399
本文介绍了为什么Erlang认为比Java和C ++更适合网络游戏的服务器端编程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不太明白,Erlang如何比C ++更有效率?

解决方案

Erlang的效率远低于C ++。埃尔朗的大力量是可扩展性,而不是效率。它将跨多个CPU线性扩展,并且由于其编程和通信模型,将非常容易地在机器集群之间扩展。



要清楚,Erlang将不会扩展比C ++更多它比C ++更容易扩展。 A 批次更容易。请参阅 Erlang的并发编程非常好的解释为什么会这样。


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

解决方案

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.

这篇关于为什么Erlang认为比Java和C ++更适合网络游戏的服务器端编程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆