Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Why C++?

Name: Anonymous 2011-10-05 1:20

http://www.gamearchitect.net/Articles/WhyC++.html

Nothing succeeds like success. The fact that C++ is the dominant language for game development gives it a lot of inertia. If you want to hire experienced programmers, it's much easier to recruit C++ gurus than it is to find OCaml talent. If you're going to develop for consoles, Microsoft and Sony provide C++ compilers, but for any other language you're on your own. And if you want to link with middleware, most modern game middleware packages--including Gamebryo, Havok, FMOD, SpeedTree and the Unreal Engine--are written in C++. Developing in another language, even C, is a lonely path.

The power of the C++ network effect is not to be underestimated. For example, Naughty Dog used an in-house LISP variant called GOAL (Game Oriented Assembly Lisp) for the Jak and Daxter titles. They had a significant investment in GOAL, for which they'd written their own compiler, linker and debugger. They supported dynamic reloading of code by a running game and reportedly generated tight, efficient assembly. After their acquisition by Sony, however, Naughty Dog were forced to transition to C++ development. "Sony wants us to be able to share code with other studios, and this works both ways - both other studios using our code and vice versa," posted Naughty Dog lead programmer Scott Shumaker.

Name: Anonymous 2011-10-05 1:25

C++ is the dominant language for game development

no, it's the dominant language for console/PC AAA game development. Not all games are big expensive blockbusters. Most of them are casual games on browsers and phones.

Name: Anonymous 2011-10-05 1:34

>>2
I found a game written using functi-anal language:
http://code.google.com/p/masterofmagicclone/source/browse/#git%2Fsrc

the code looks uglier than C/C++. Do we really want that prized functi-anality?

Name: Anonymous 2011-10-05 1:37

C/C++

            times (Run, Length-1) putPixel(X, Y++, Color);


Funct-anal language:

            for run = 0 to length - 1 do
              Allegro.putpixel bitmap !x !y color;
              y := !y + 1
            done

Name: Anonymous 2011-10-05 1:39

the guy writing this article is a moron.

I confess that I haven't worked with aspects or closures enough to even know whether they give great productivity improvements.

I'm skeptical of garbage collection because *stupid reason*

god I hate that shit. RAII IS A STUPID HACK. GET IT THROUGH YOUR THICK SKULLS

Name: Anonymous 2011-10-05 1:41

>>3
man, I don't even know ML and I already prefer this code to C++

Name: Anonymous 2011-10-05 2:14

>>4

doing mutable stuff in ocaml isn't as pretty as C/C++, but it can do it just the same...

Name: Anonymous 2011-10-05 2:15

>>4
macros

macros everywhere!

I don't hate C++, but that example is plain and simply idiotic

Name: Anonymous 2011-10-05 2:36

>>5
he would fit in on /prog/

Name: Anonymous 2011-10-05 3:41

i've fallen in love with XNA/C#. i can't imagine going back to C++ and suffering just for a few measly cycles.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List