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.
  • D Language Fo... Mike Parker via Digitalmars-d-announce
    • Re: D La... Richard (Rikki) Andrew Cattermole via Digitalmars-d-announce
    • Re: D La... Sergey via Digitalmars-d-announce
      • Re: ... Mike Shah via Digitalmars-d-announce
    • Re: D La... Adam D Ruppe via Digitalmars-d-announce
    • Re: D La... ryuukk_ via Digitalmars-d-announce
    • Re: D La... H. S. Teoh via Digitalmars-d-announce
    • Re: D La... Adam D Ruppe via Digitalmars-d-announce
      • Re: ... H. S. Teoh via Digitalmars-d-announce
      • Re: ... Hipreme via Digitalmars-d-announce
    • Re: D La... Ali Çehreli via Digitalmars-d-announce
    • Re: D La... Siarhei Siamashka via Digitalmars-d-announce
      • Re: ... Walter Bright via Digitalmars-d-announce
    • Re: D La... Johan via Digitalmars-d-announce
      • Re: ... Paul Backus via Digitalmars-d-announce
      • Re: ... Walter Bright via Digitalmars-d-announce

Reply via email to