Webassembly TodoMVC

Sebastiaan Koppe mail at skoppe.eu
Fri Sep 21 14:01:30 UTC 2018


Hey guys,

Following the D->emscripten->wasm toolchain from CyberShadow and 
Ace17 I created a proof of concept framework for creating single 
page webassembly applications using D's compile time features.

This is a proof of concept to find out what is possible.

At https://skoppe.github.io/d-wasm-todomvc-poc/ you can find a 
working demo and the repo can be found at 
https://github.com/skoppe/d-wasm-todomvc-poc

Here is an example from the readme showing how to use it.

---
struct Button {
   mixin Node!"button";
   @prop innerText = "Click me!";
}
struct App {
   mixin Node!"div";
   @child Button button;
}
mixin Spa!App;
---


More information about the Digitalmars-d-announce mailing list