Linked by Thom Holwerda on Thu 6th Sep 2012 21:32 UTC, submitted by MOS6510
Benchmarks "During the 4th Semester of my studies I wrote a small 3d spaceship deathmatch shooter with the D-Programming language. It was created within 3 Months time and allows multiple players to play deathmatch over local area network. All of the code was written with a garbage collector in mind and made wide usage of the D standard library phobos. After the project was finished I noticed how much time is spend every frame for garbage collection, so I decided to create a version of the game which does not use a GC, to improve performance."
Permalink for comment 534142
To read all comments associated with this story, please click here.
GC is for scripting
by Carewolf on Thu 6th Sep 2012 22:05 UTC
Carewolf
Member since:
2005-09-08

Seems like a smart student, but it can not be said often enough, since new programmers are coming out of out of school all the time who haven't learned it yet: Garbage collecting is for interpreted languages and short scripts, not for anything else.

There is no reason to try to argue with this, or waste your time proving it over and over again. We have all been there and have had to learn and accept it, and it is not something better garbage collectors are changing. The only thing changing is how big programs you can build these days with interpreted or semi-interpreted languages.

Edited 2012-09-06 22:06 UTC

Reply Score: 1