3 ms·
Are there plans to add a WASM backend?
by NonEUCitizen 8y ago
Are there plans to add a WASM backend?
- WalterBright 8y agoNo, but anyone is free to contribute to one. It's Boost licensed, after all!
- giancarlostoro 8y agoI have not yet looked but have any in the community tried? In your expert opinion would it make more sense for a WASM backend to be part or the DUB build process or embedded into DMD itself? I think Rust has some approaches that let you build as an addon to Cargo (the Rust equivalent to DUB) so maybe a similar path might make sense? I do know there are efforts to bake WebAssembly into Rusts compiler down the road though.
- pjmlp 8y agoYes, via ldc (the LLVM backend for D). https://github.com/ldc-developers/ldc/issues/2144 https://github.com/ldc-developers/ldc/issues/2144 https://github.com/cosinus2/dlang-emscripten-demo https://github.com/cosinus2/dlang-emscripten-demo
- giancarlostoro 8y agoThanks for the links, I only ever used DMD and GDC (when I had some odd issue with DMD on some distros) but never LDC definitely checking it out. I'm glad there's a Snap package for it, seems to be the cleaner approach to installing dev tools for me.