Proposal for porting D runtime to WebAssembly
Sebastiaan Koppe
mail at skoppe.eu
Sun Nov 24 20:42:24 UTC 2019
On Sunday, 24 November 2019 at 18:46:04 UTC, Jacob Carlborg wrote:
> On 2019-11-23 10:51, 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
>
> What will happen to code that uses TLS? Will it be promoted to
> a global variable or will it fail to compile?
LLVM errors out saying it can't select tls for wasm. We could
modify ldc to not emit TLS instructions under WebAssembly.
But yeah, right now, you need to __gshared everything.
I know.
More information about the Digitalmars-d-announce
mailing list