Surfing on wave.. WASM

Adam D. Ruppe destructionator at gmail.com
Mon May 27 15:42:16 UTC 2019


On Monday, 27 May 2019 at 15:30:46 UTC, KnightMare wrote:
> proxies of outer objects in wasm space will solve interop from 
> inside.

Yes, I know. In fact, I just wrote that for my blog thing this 
week:


export extern(C) void magic() {
         document.insertAdjacentHTML("beforeend", "cool!<span 
id=\"beans\">beans</span>");

         auto e = document.querySelector("span");
         e.insertAdjacentHTML("beforeend", " man");
}

That D runs as wasm and yields this page: 
http://arsdnet.net/wasm/test.html (see source for the JS glue 
there too)


It is doable and not too bloated, but, I don't love it still and 
it used a couple filthy hacks regardless. idk though I might 
spend more time on it.

Of course, you could use the emscripten thing now to do a bunch 
of in-browser web app stuff.

> with 2 such things Dlang will rise to heaven - scripting, 
> protocol adapters, dynamically types interop, serialization 
> from and to different formats, so formatters, ORM in runtime 
> with schemas from DB-connection, GUI scripts as QML...
> (and we will get C#? :) )

We already have all that stuff fyi.


More information about the Digitalmars-d mailing list