Can we ease WASM in D ?

max haughton maxhaton at gmail.com
Wed Nov 16 23:12:59 UTC 2022


On Wednesday, 16 November 2022 at 23:00:40 UTC, Adam D Ruppe 
wrote:
> On Wednesday, 16 November 2022 at 22:51:31 UTC, bioinfornatics 
> wrote:
>> [...]
>
> It would be pretty cool if you could just mark `@wasm` on a 
> function and have it magically convert... the dcompute thing i 
> *think* does something like this. but im not sure.
>
>> [...]
>
> What I've done before (including the webassembly.arsdnet.net 
> website) is have the server call the compiler as-needed when 
> requesting the file, which makes it feel pretty transparent. 
> You might want to do that too, it'd be on the file level 
> instead of on the function level but it works.

This is what it does, albeit with a pretty wacky pipeline because 
GPUs be crazy.


More information about the Digitalmars-d-learn mailing list