D Language Foundation Monthly Meeting Summary for December 2022

H. S. Teoh hsteoh at qfbox.info
Mon Jan 23 21:26:56 UTC 2023


On Mon, Jan 23, 2023 at 08:43:03PM +0000, Adam D Ruppe via Digitalmars-d-announce wrote:
> On Monday, 23 January 2023 at 20:06:46 UTC, H. S. Teoh wrote:
> > There should be a tool for auto-generating JS wrappers, perhaps even
> > HTML snippets, so that a user literally can just write:
> > 
> > 	import std;	// OK, maybe import std.wasm or something
> > 	void main() { writeln("Hello, world!");
> > and get a webpage that prints that message in a browser window
> > without writing a single line of JS or HTML.
> 
> http://webassembly.arsdnet.net/
> 
> Paste in
> import std.stdio;
> void main() { writeln("hello world"); }
> 
> to the box on that page
> 
> and get
> http://webassembly.arsdnet.net/usertemp

Ahahahaha...  just like Adam to have already dunnit while I'm still
twiddling my fingers wondering how to go about doing it. :-D  Now all we
need is to package your little page up into a dub package or something
(personally I prefer just a tarball) and we're good to go. :-D


> Webassembly is a trash target but like been there done that.

Yeah TBH after dabbling with it a little I realized just how much it was
still dependent on JS to do the heavy lifting.  You can't even pass
strings across the JS/WASM boundary without truckloads of JS
boilerplate.  The C-like API isn't officially part of the WASM standard
yet, and they're still trying to figure out how GC might work. As far as
I'm concerned, it's still early adopter tech, not yet stable enough for
me to invest in.


> Of course there are some caveats in what works, there have been come
> contributions coming in from hipreme recently to extend it a lil.

Nice.  Can it handle WebGL yet?  I betcha that'd be the second question
a newbie to D would ask after asking about WASM. :-P


T

-- 
I see that you JS got Bach.


More information about the Digitalmars-d-announce mailing list