TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Running a D game in the browser

74 点作者 Halienja将近 9 年前

6 条评论

rubber_duck将近 9 年前
&gt;At the moment, I’m only targetting a tiny subset of the D programming language. The language comes with a runtime, featuring a garbage collector. It’s my first journey to the land of D-asm.js, and there’s no way I’m bringing the D runtime with me – especially if I need to port it to Javascript first.<p>This is basically why D is not a good systems programming language. Theoretical GC performance aside, barring a miracle, they will never have the resources to develop a high quality GC and even less chance to maintain high quality ports across relevant platforms (heck they couldn&#x27;t even compile on mobile platforms until recently).
评论 #12230257 未加载
评论 #12228518 未加载
评论 #12230586 未加载
arunc将近 9 年前
Excellent work, perseverance proves!<p>D is a very good language, avoiding most of the pitfalls of C++. I have wondered why D isn&#x27;t picking up. Even Facebook has abandoned Warp [1]. Other than the lack of corporate backup,<p>The complexity of the language gets out of hold as we move forward.<p>DMD is the official compiler, but it doesn&#x27;t optimize as much as LDC&#x2F;GDC does. LDC&#x2F;GDC is not available on the Enterprise platforms on which C++ is used (at least on the servers with RHEL&#x2F;CentOS).<p>There are 3 different compilers and the resource is not concentrated on improving just one. I agree that competition is good for health, but when things are not picking up why not focus the efforts on making the better the best (probably GDC&#x2F;LDC)?<p>Albeit few community members are very helpful and humble, personal attacks are a common thing in the forum.<p>The forum gives some hints [2], [3]<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;facebookarchive&#x2F;warp" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;facebookarchive&#x2F;warp</a><p>[2] <a href="http:&#x2F;&#x2F;forum.dlang.org&#x2F;post&#x2F;vlosobeqnvfrfuriedpv@forum.dlang.org" rel="nofollow">http:&#x2F;&#x2F;forum.dlang.org&#x2F;post&#x2F;vlosobeqnvfrfuriedpv@forum.dlang...</a><p>[3] <a href="http:&#x2F;&#x2F;forum.dlang.org&#x2F;post&#x2F;hjaiavlfkoamenidomsa@forum.dlang.org" rel="nofollow">http:&#x2F;&#x2F;forum.dlang.org&#x2F;post&#x2F;hjaiavlfkoamenidomsa@forum.dlang...</a>
评论 #12229687 未加载
techgineer将近 9 年前
Great work. 3D with WebGL is necessary for this, and I don&#x27;t think you&#x27;ll run into any issue.
评论 #12230199 未加载
themihai将近 9 年前
&gt;An obvious enhancement would be to use the WebAssembly backend of the upstream LLVM, and then using Emscripten+Binaryen to convert the generated WebAssembly to asm.js.<p>why would you convert WebAssembly to asm.js?
评论 #12227644 未加载
评论 #12230154 未加载
p0nce将近 9 年前
Awesome!
Natsu将近 9 年前
I must read too much manga, I was expecting this to be about Darwin&#x27;s Game, rather than a game translated from D to LLVM to C to ASMJS.