News for hackers. Stuff that matters.
Re:Ask HN: If C++ is so bad, what should game developers use? by mrshoe on Sunday October 18, 2009 @05:30PM (#888879)
C++ violates the Zen of Python's axiom that "explicit is better than implicit" all over the place. C does not; it is very explicit.

I would write as much as possible in Python and use C for the performance critical stuff (which, for a game, is a large portion).

Re:Ask HN: If C++ is so bad, what should game developers use? by nickpp on Sunday October 18, 2009 @05:39PM (#888898)
I see that you would, but have you? Or did anybody?
Re:Ask HN: If C++ is so bad, what should game developers use? by mrshoe on Sunday October 18, 2009 @06:10PM (#888951)
I have worked on major console games and written games in both C and C++. I also maintain an open source raytracer which I've implemented in C, C++, D, and python. So yes, I speak from experience.

Eve online is a great example of a game for which almost all game logic is in python (stackless). The "engine" is in C++, I think (not sure on that one). So I would adopt their model but use C instead of C++.

Re:Ask HN: If C++ is so bad, what should game developers use? by bd on Sunday October 18, 2009 @06:13PM (#888957)
Also Civilization 4 used Python extensively:

http://www.python.org/about/quotes/ (look for "Firaxis Games")

Re:Ask HN: If C++ is so bad, what should game developers use? by omouse on Sunday October 18, 2009 @06:39PM (#888992)
I saw a game that used Python (I think, maybe it was Ruby) and then dropped down to C for the high-performance bits and it was still slow as shit because of the Python code.