TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Evaluating D for games

54 pointsby StylifyYourBlogover 10 years ago

3 comments

pogobonoover 10 years ago
@nogc is still a new addition to the language and phobos is not fully flagged with it. D devs are working on a solution to reduce gc dependence, it&#x27;s just not quite there yet. There are gc-less stdlibs here if you want to avoid phobos: <a href="http://wiki.dlang.org/Libraries_and_Frameworks#Alternative_standard_libraries_.2F_runtimes" rel="nofollow">http:&#x2F;&#x2F;wiki.dlang.org&#x2F;Libraries_and_Frameworks#Alternative_s...</a><p>For game programming you should consider data oriented design. It really helps avoid the gc and makes your code faster and (imo) simpler.<p>Btw: <a href="http://forum.dlang.org/" rel="nofollow">http:&#x2F;&#x2F;forum.dlang.org&#x2F;</a> is a great place to learn about ongoing development or to ask questions.
zokierover 10 years ago
For what it is worth, my understanding is that andralex et al are re-engineering the dlang GC: <a href="http://www.reddit.com/r/programming/comments/2g03af/ds_garbage_collector_problem/ckent8c" rel="nofollow">http:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;programming&#x2F;comments&#x2F;2g03af&#x2F;ds_garba...</a>
评论 #8876392 未加载
snarfyover 10 years ago
This line also makes me sad<p>&gt; Stopping all other threads than the thread currently trying to allocate GC memory<p>This doesn&#x27;t need to be the case, and is one of the strengths of garbage collected languages, IMO. Garbage collection can be performed by another cpu asynchronously, essentially making it free.