D Language Foundation Monthly Meeting Summary for December 2022

Adam D Ruppe destructionator at gmail.com
Mon Jan 23 20:43:03 UTC 2023


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

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

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


More information about the Digitalmars-d-announce mailing list