什么是C ++的最佳替代品进行实时图形编程? [英] What's the best alternative to C++ for real-time graphics programming?

查看:196
本文介绍了什么是C ++的最佳替代品进行实时图形编程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

C ++只是吸了过多的时间,使我微管理自己的记忆,让我键入太多(你好的std ::矢量<啄> ::常量性吧= lotsOfThingys.begin ()),并与无聊我长的编译时间。什么是严重的实时图形编程的最好的选择吗?垃圾收集是必须的(这是为了避免它的使用需要时的能力),而且速度必须与C ++的竞争力。对于访问C库一个合理的故事,也是必须的。

C++ just sucks too much of my time by making me micro-manage my own memory, making me type far too much (hello std::vector<Thingy>::const_iterator it = lotsOfThingys.begin()), and boring me with long compile times. What's the single best alternative for serious real-time graphics programming? Garbage collection is a must (as is the ability to avoid its use when necessary), and speed must be competitive with C++. A reasonable story for accessing C libs is also a must.

(全面披露:我有自己的答案,但我很感兴趣,看看别人都认为是很好的替代品,以C ++为实时图形工作)

(Full disclosure: I have my own answer to this, but I'm interested to see what others have found to be good alternatives to C++ for real-time graphics work.)

编辑:感谢大家的深思熟虑的答复。由于实在没有正确回答这个问题,我不会选择任何特定的答案。再说我只是挑语言,我碰巧喜欢作为一个C ++的替代,这不会真的是公平的。

Thanks everyone for the thoughtful replies. Given that there's really no "right" answer to this question I won't be selecting any particular answer. Besides I'd just pick the language I happen to like as a C++ alternative, which wouldn't really be fair.

推荐答案

我不会放弃C ++。事实上,我会考虑增加升压到你的C ++库,这使得语言更有用。你的榜样将成为:

I wouldn't discard C++. In fact, I would consider adding Boost to your C++ library, which makes the language much more usable. Your example would become:

BOOST_FOREACH( Thingy& t, lostOfThingys ) {
    // do something with 't'
}

升压拥有吨的工具,可帮助使C ++一个更好的语言。

Boost has tons of tools that help make C++ a better language.

这篇关于什么是C ++的最佳替代品进行实时图形编程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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