Proposal for porting D runtime to WebAssembly

Johan Engelen j at
Sat Nov 23 10:29:24 UTC 2019

On Saturday, 23 November 2019 at 09:51:13 UTC, Sebastiaan Koppe 
> This is my proposal for porting D runtime to WebAssembly. I 
> would like to ask you to review it. You can find it here: 

Perhaps you can explicitly clarify that "port" in this context 
means that you will add the required version(WebAssembly) blocks 
in the official druntime, rather than in a fork of druntime.
(WebAssembly predefined version now explicitly mentions that it 
is for 32bit. Do you want to broaden this to 64bit aswell, or add 
a new version identifier?)

I read that Clang uses a triple with explicit mention of WASI: 
--target wasm32-wasi
Are you planning for the same with LDC? Will you need a new 
predefined version identifier for WASI-libc? Perhaps group all 
required compiler features in a section (and move the `real` 
story there).

Can you elaborate on how you envision CI testing?
Do you want to add that to LDC testing? (this may also mean that 
you first add a new change to LDC's druntime, confirming 
functionality with LDC CI, and then upstreaming the change)

I'm assuming you already started some work in this area? Where 
can we track it?

Great initiative!

More information about the Digitalmars-d-announce mailing list