游戏开发的D编程语言 [英] The D Programming Language for Game Development

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

问题描述

最近我感到不安,因为我达到了C ++(甚至0x)感觉非常有限的地步,所以我开始寻找替代方案。

Recently I've been bothered because I reached a point in which C++ (even 0x) felt very limited, so I started looking for alternatives.

忘记Java, C#,Python或Ruby。我仍然喜欢C ++的低级特性,而且我不喜欢虚拟机。此外,我是游戏引擎开发人员,因此我必须开发必须非常快速的核心例程,最近我一直渴望代码表现力。 C ++对我来说是一种几乎全部的语言,但是在使用模板方面有很多例外,GCC并没有像我希望的那样优化内容。

Forget Java, C#, Python or Ruby. I still like the low-level nature of C++ and I'm not fond of virtual machines. Further, I'm a game engine developer, so I have to develop core routines which must be really fast, and lately I've been hungry for code expressiveness. C++ is an almost-there language for me, but there are many exceptions on how to use templates, and GCC isn't optimizing stuff as well as I'd hoped it would.

所以我正在考虑开始学习D。

So I'm considering to start learning D.

您认为这足以满足我作为游戏开发人员的需求吗?我很警惕,因为我从未听说过将D用于此用途。

Do you think it will suffice my needs as a game developer? I'm wary because I've never heard of D being used for that.

谢谢!

推荐答案

我最近已经学到了很多D自己的知识,尽管还有很多事情要做。根据到目前为止的经验,我会说,尽管语言几乎可以满足所有需求,但是 compilers libraries 目前还不是最好的,所以您永远无法确定编译器是否没有错误(不是)。例如,对于游戏编程,您需要确保垃圾收集正确进行,并且编译器没有错误地优化重要代码...类似的事情可能会让您重新考虑使用语言。但是,我本人认为语言本身是目前最好的语言(这完全是主观的),并且我认为使用它的唯一障碍是缺乏完美的实现,而不是语言本身。

I've learned quite a bit of D myself lately, although there's still more to go. From what I've learned so far, I would say that, while the language is great for practically anything, the compilers and libraries that are out there right now aren't the best, and so you can't ever be sure that the compiler is bug-free (it's not). For game programming, you'd need to be darn sure that garbage collection is happening correctly, for example, and that the compiler isn't incorrectly optimizing away important code... things like this might want to make you re-think using the language. However, I myself think that the language itself is the best out there (this is completely subjective), and I think the only barrier to using it is the lack of a perfect implementation, rather than the language itself.

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

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