Running a D game in the browser
code.alaiwan.org
Running a D game in the browser
1–10 of 17 posts
Re: Running a D game in the browser
#2Re: Running a D game in the browser
#3why would you convert WebAssembly to asm.js?
Re: Running a D game in the browser
#4>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. why would you convert WebAssembly to asm.js?
Re: Running a D game in the browser
#5Re: Running a D game in the browser
#6Re: Running a D game in the browser
#7Re: Running a D game in the browser
#8This 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't even compile on mobile platforms until recently).
Re: Running a D game in the browser
#9>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. why would you convert WebAssembly to asm.js?
For browsers not yet supporting WebAssembly?
Re: Running a D game in the browser
#10>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. This is basically why D is not a good systems programming language. Theoretical GC performance aside, barring a mirac…
And I know that you can disable the GC in D, but it's hard coming up with a good use case for the language that wouldn't be fit better with another smaller, tailored language.