I know there have been a few mentions of the D programming language around here, but I wanted to bring it up again because D2 was only recently released (beta) I've recently started doing some game development in D2 using Derelict and was wondering if anyone else was in the same position.
So far, I'm really liking the language. It's very clean and simple, and the generic programming support available is just amazing -- it really puts C++ templates to shame. I feel like I can finally write the code I want to write.
Also, the Derelict bindings for OpenGL, GLU, and SDL are great; I've had no problems with them so far.
The only problem with D at the moment is that the compiler and standard library are still quite buggy (e.g. occasionally get wrong code when compiling in release, and parts of the standard library are incomplete). It hasn't been a major issue so far -- I've had bugs that have left me confused for a few hours, but there have been no show-stoppers yet.
So, anyone else using D that would like to share their experiences?
D for games
Started by poita, Jul 30 2010 08:11 PM
4 replies to this topic
#1
Posted 30 July 2010 - 08:11 PM
#2
Posted 30 July 2010 - 09:31 PM
How is the Phobos/Tango war going? Esp. with D2.
#3
Posted 30 July 2010 - 09:49 PM
Apart from the bugs I mentioned, Phobos is a superior library, and it is the standard library. On top of that, Andrei Alexandrescu's book "The D Programming Language" recently came out, which only talks about Phobos.
As far as I can see, there is no discussion of Tango on the forums. It's all Phobos now.
As far as I can see, there is no discussion of Tango on the forums. It's all Phobos now.
#4
Posted 01 August 2010 - 07:12 PM
poita said:
As far as I can see, there is no discussion of Tango on the forums. It's all Phobos now.
That sounds promising. I really liked D when I tried it out a few years ago, but it didn't seem very mature yet.
Do you still have to create a special header file to pull in C libraries?
#5
Posted 02 August 2010 - 07:54 PM
You have to write the function declarations in a D source file. For simple C header files, that usually just means doing a find/replace to change some of the C data types to D (e.g. unsigned int to uint).
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users












