Proposal for porting D runtime to WebAssembly

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


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

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!
   Johan





More information about the Digitalmars-d-announce mailing list