开发游戏服务器的好语言? [英] Good language to develop a game server in?

查看:95
本文介绍了开发游戏服务器的好语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想知道哪种语言适合开发支持大量(数千)用户的游戏服务器?我涉足了 python,但意识到它会太麻烦,因为它不会跨内核产生线程(意味着 8 核服务器 = 1 核服务器).我也不太喜欢这种语言(那种自我"的东西让我很恶心).

I was just wondering what language would be a good choice for developing a game server to support a large (thousands) number of users? I dabbled in python, but realized that it would just be too much trouble since it doesn't spawn threads across cores (meaning an 8 core server=1 core server). I also didn't really like the language (that "self" stuff grossed me out).

我知道 C++ 是性能方面的工作语言,但我讨厌它.我不想处理它草率的语法,我喜欢我的手被托管语言握住.这让我接触了 C# 和 Java,但我对其他语言持开放态度.我喜欢 .NET 的简单性,但我想知道,速度方面,这是否适合这份工作.请记住,由于这将部署在 Linux 服务器上,它将在 Mono 框架上运行 - 不确定这是否重要.我知道 Java 在语法上与 .Net 非常相似,但我对它的经验有限.是否有任何框架可以帮助它或可以简化开发过程?

I know that C++ is the language for the job in terms of performance, but I hate it. I don't want to deal with its sloppy syntax and I like my hand to be held by managed languages. This brings me to C# and Java, but I am open to other languages. I love the simplicity of .NET, but I was wondering if, speed wise, this would be good for the job. Keep in mind since this will be deployed on a Linux server, it would be running on the Mono framework - not sure if that matters. I know that Java is syntax-wise very similar to .Net, but my experience with it is limited. Are there any frameworks out there for it or anthing to ease in the development?

请帮助我和我挑剔的自己找到解决方案.

Please help me and my picky self arrive on a solution.

更新:我不是故意听起来这么挑剔,我真的不认为我是.我真正排除的唯一语言是 C++,由于可扩展性问题,我不喜欢 Python.我知道进程之间有通信的方式,但是如果我有一个8核服务器,为什么我需要做8个进程?有没有更优雅的解决方案?

UPDATE: I didn't mean to sound so picky, and I really don't think I was. The only language I really excluded was C++, Python I don't like because of the scalability problem. I know that there are ways of communicating between processes, but if I have an 8 core server, why should I need to make 8 processes? Is there a more elegant solution?

推荐答案

Erlang 是一种围绕并发性和分布在多个服务器上而设计的语言,非常适合服务器软件.关于 Erlang 和游戏服务器的一些链接:

Erlang is a language which is designed around concurrency and distribution over several servers, which is perfect for server software. Some links about Erlang and game-servers:

http://www.devmaster.net/articles/mmo-scalable-server/

http://www.erlang-consulting.com/euc2005/mmog/mmog_in_erlang.htm

我正在考虑自己用 Erlang 编写一个游戏服务器.

I'm thinking of writing a game-server in Erlang myself.

这篇关于开发游戏服务器的好语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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