Sunday, June 29, 2008

A B C D...

Hello people, today is a great day. Good good, you want me to shut up already don't you ? Well too bad for you, I sure as hell am going to do anything but that. It has recently come to my attention that there are better things than C and C++....

A ?, B ?, AHA!! C, Yes, we can all say that C was the first real good easy to use programming language that gave us great power. After that came C++, brilliant I'd say. However, as strange as it'd seem you'd think there wouldn't be a good alternative. C# Depends mainly on a runtime such as .NET or Mono. As for Java, it is pretty much too slow to design a good next-gen game on it. So I ended up with D. So far it has really been worth my time.

D, which is being developped by Digital Mars is a really nice programming language. Given the fact that it is Digital Mars view of the next C++, you could say it resembles C# and Java a lot. That is a positive thing, but what makes D so special is that it compiles to native machine code and that it is way too easy to use C libraries in it. It has bindings for many populair C/C++ libraries such as OpenAL, OpenGL and SDL. Also, it happens to have bindings for Horde3D. Add a garbage collector to that + a lot of neat features and I happened to fall in love with this programming language. I still need to see if it is up to the big task, if it is fast enough to be used for a real game. After all, garbage collected languages can be a pain in the ass when being used incorrectly !

Pros:
Native code,
Garbage Collector,
Easy to bind with C/C++ libraries.

Cons:
Garbage Collector(Could be slow ?)
Lack of libraries(It has most populair and important libraries, but no language can compare to the number of libraries that C/C++ have.)

Links:
Language Info
C++ Programmers guide to D