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 534183
To read all comments associated with this story, please click here.
RE: yes... but why?
by dorin.lazar on Fri 7th Sep 2012 04:35 UTC in reply to "yes... but why?"
dorin.lazar
Member since:
2006-12-15

Easier or not, the point is: memory management will be in the hands of the programmer. Why should we want that? 10% performance increase?


No, we're talking here about a competent that was able to think about the time the garbage collection eats from his run times.

The programmer that takes garbage collection for granted usually gives much worse times. Think about 100% or 200%. Why? Because someone that doesn't keep in mind the metal under the framework (s)he uses will never be able to understand what a good trade-off is.

I prefer outsource memory management to a bot and use the expensive programmer's time to do something else.


Well, outsourcing will not make you stand out for long. And the quality of a programmer lowers in time as he is used to do it the easy way. In the end, there's a reverse effect of this 'doing the easy way' - in which with the tools the programmer knows (because the lower level will be inaccessible) he will have to do fine-grained work. It's like picking needles with a boxing glove; the framework being a boxing glove, it looks nice and shiny.

But keep in mind. 80% of any project is doing the last 20%. And the last 20% IS picking needles. Or you can deliver 80% of your product, and hope that you'll fool your client next time too. That's what most businesses do today in the western world, so I guess you may be Ok.

Reply Parent Score: 1