Live data from Hacker News

14kb WASM game written in D

skoppe.github.io

41–50 of 115 posts

Re: 14kb WASM game written in D

#44
post #24

Also, what is the advantage using D for this? Could this be D's niche market? It looks really exciting.

They’re not the best metrics but the related Spasm toolkit had surprisingly many stars and forks for being D. This was the more interesting tool I discovered here, rather than the JS game port to D, where honestly the impressive part is already done in JS.

So yes it got me thinking the same thing.

https://github.com/skoppe/spasm

Re: 14kb WASM game written in D

#45
post #37

Earlier quoted context omitted.

Yeah I first tried this in Safari and just had a black screen - edge/chrome worked just fine. Notice/pop-up would be helpful

This may be due to requiring WebGL 2 specifically, and not WebGL generally.

It looks like it might be due to Safari pre-15 not supporting WebAssembly.instantiateStreaming().

Re: 14kb WASM game written in D

#47
post #22

Wow, what an impressive game for the web browser, and in such a small size! I'm particularly impressed by the variable lighting of the bullets down hallways, that's really quite masterful work. Kudos! Edit: I am impressed because I'm impressed. I spent a few weekends recently messing around with pygame, and I had a really hard time organizing my code and my thoughts. I do primarily numerical, technical work, and I se…

Impressive? 2011 says hi. "Unreal Engine 3 Support for Adobe Flash Player - Epic Citadel" https://www.youtube.com/watch?v=xzyCTt5KLKU

That's something on the order of ~5,000 times the size and looks extremely bland/boring.

Re: 14kb WASM game written in D

#48

this is great! but ff shows that underrun.wasm is 35KB, what's going on?

headline put the one compressed number instead of the uncompressed number. There's also ~10KB of javascript bridge it requires as well.

Yes. As far as I see index.html + underrun.wasm + l1.png + q2.png combined will compress into about 20.1 KB of ZIP. Still very small, but not 14 KB.
Post reply on HN