D and WebAssembly (Wasm)

Imperatorn johan_forsberg_86 at hotmail.com
Tue Sep 14 15:35:06 UTC 2021


On Monday, 13 September 2021 at 16:36:10 UTC, Kenneth Dallmann 
wrote:
> 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.

Would be a cool project


More information about the Digitalmars-d mailing list