www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - New Wiki page: Generating WebAssembly with LDC

reply kinke <noone nowhere.com> writes:
The new page [1] shows

* how simple it is to generate WebAssembly from D code starting 
with just-released LDC v1.11-beta2 [2],
* how to load & invoke the generated .wasm with JavaScript, and
* how to call an external JavaScript function from D.

I'll let *you* discover the limits :) - be sure to let us know by 
reporting encountered issues. [3]

[1] https://wiki.dlang.org/Generating_WebAssembly_with_LDC
[2] 
https://github.com/ldc-developers/ldc/releases/tag/v1.11.0-beta2
[3] https://github.com/ldc-developers/ldc/issues
Jul 15 2018
parent Radu <void null.pt> writes:
On Sunday, 15 July 2018 at 19:33:33 UTC, kinke wrote:
 The new page [1] shows

 * how simple it is to generate WebAssembly from D code starting 
 with just-released LDC v1.11-beta2 [2],
 * how to load & invoke the generated .wasm with JavaScript, and
 * how to call an external JavaScript function from D.

 I'll let *you* discover the limits :) - be sure to let us know 
 by reporting encountered issues. [3]

 [1] https://wiki.dlang.org/Generating_WebAssembly_with_LDC
 [2] 
 https://github.com/ldc-developers/ldc/releases/tag/v1.11.0-beta2
 [3] https://github.com/ldc-developers/ldc/issues
Very cool stuff! This is a welcoming addition not only for web browser usage but also other potential embedding usage [1] [1] http://words.steveklabnik.com/webassembly-is-more-than-just-the-web
Jul 16 2018