D and WebAssembly (Wasm)

Kenneth Dallmann fake at 123.con
Mon Sep 13 16:36:10 UTC 2021


On Monday, 13 September 2021 at 16:29:45 UTC, jfondren wrote:
> On Monday, 13 September 2021 at 16:19:31 UTC, Kenneth Dallmann 
> wrote:
>> Why can't
>> we just compile D code to C, as a compiler output, and then 
>> run that
>> through Emscripten?
>
> The immediate problem is that a D->C compiler does not exist.

I read somewhere that BetterC can though, and maybe that's how it 
works.
Although, with the LLVM you can compile it to Wasm, it just won't 
have
the standard library, a technical nightmare.

Maybe a D to C compiler would be a good project, to increase the 
portability of D.



More information about the Digitalmars-d mailing list