digitalmars.D.learn - State of D for webassembly
- Chris Piker (10/10) May 17 2021 Hi D
- Adam D. Ruppe (15/18) May 17 2021 There is a partial port of full runtime but it is still alpha
Hi D Our group has some spectragram (aka dynamic spectra) creation algorithms that are fast in Java and since D has many Java-ish concepts it looks like it would be do-able to port the code to D. If I take on this project my target would be to run as a webassembly program. What is the general state of support for GC dependent D-code running as webassembly? If the runtime is not ready that's okay, just wanted to inquire about the state of things. Thanks,
May 17 2021
On Monday, 17 May 2021 at 20:38:12 UTC, Chris Piker wrote:What is the general state of support for GC dependent D-code running as webassembly? If the runtime is not ready that's okay, just wanted to inquire about the state of things.There is a partial port of full runtime but it is still alpha level. A couple people have tried it and there's various bugs they worked through but some remained. I wouldn't recommend using it at this time unless you're prepared to do some specific webassembly hacks and maybe dive into the druntime a bit yourself. on the other hand if you are willing to dive in yourself a bit, you totally can make it work. I have a little website where I compiled some of my games to webasm: http://webassembly.arsdnet.net/ http://webassembly.arsdnet.net/tetris I did it with a custom runtime and a specialized port of my relevant D libraries.
May 17 2021