What makes C++ such a good programming lang for games?

Discussion about everything. New games, 3d math, development tips...
dlangdev
Posts: 1324
Joined: Tue Aug 07, 2007 7:28 pm
Location: Beaverton OR
Contact:

Post by dlangdev »

Halifax: That meant I wrote games in BASIC even before C++ was around to be considered mainstream.

The bottomline is programming languages don't make a good programmer.
Image
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Sure. In the end, it all comes down to instructions in a pipeline. The language and compiler are just intermediaries between design and execution.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Halifax
Posts: 1424
Joined: Sun Apr 29, 2007 10:40 pm
Location: $9D95

Post by Halifax »

dlangdev wrote:Halifax: That meant I wrote games in BASIC even before C++ was around to be considered mainstream.

The bottomline is programming languages don't make a good programmer.
I was just joking around with you. :lol: Couldn't you sense my sarcasim?
rogerborg wrote:Sure. In the end, it all comes down to instructions in a pipeline. The language and compiler are just intermediaries between design and execution.
Yes, that may be true. But that does not mean that all languages are equal. The same could be said for 3d engines, but companies wouldn't dare use TGEA in place of UE3.
TheQuestion = 2B || !2B
Mr. Moxie
Posts: 48
Joined: Thu Dec 06, 2007 7:55 pm
Contact:

Post by Mr. Moxie »

C++ all the way. Some assembly, but I haven't used it in years, last time was on a console bug.

You can always downgrade to a higher level language like C# if needed.
George A Lancaster
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

From a book I'm trying to get:
C++ is the only implementation tool used in this book. You will not find in this book code that implements nifty windowing systems, complex networking libraries, or clever logging mechanisms. Instead, you will find the fundamental components that make it easy to implement all of the above, and much more. C++ has the breadth necessary to make this possible. Its underlying C memory model ensures raw performance, its support for polymorphism enables object-oriented techniques, and its templates unleash an incredible code generation machine.
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
wyrmmage
Posts: 204
Joined: Sun Mar 16, 2008 3:12 am
Contact:

Post by wyrmmage »

I find C++ (and C) useful because it lets you specify how things are done on a very low level, if you want to...if you don't want to, there are libraries that make it fairly easy to have the language perform like a 'higher level' language, like C# or Java. Boost takes care of automatic memory management, if you want that, and the STL lets you get things up and running quickly...if it's too slow, you can always write your own implementation of whatever STL thing you're using. There are networking libraries out there, windowing libraries that are platform independent, yet you can always fall back to plain C/C++ if the library is too slow. Higher level languages don't let you do this (or they do, and you end up having to learn C and C++ anyway so that you can write modules for the higher level language to make it run faster :roll: )
I'm not saying that higher level languages are bad; they are certainly useful in many cases...cases where speed is not required. If you're wanting to make the next-generation game, you're pretty much stuck with C/C++ because it allows you squeeze every last bit of speed from the hardware you're running the game on.
-wyrmmage
Post Reply