[OT] web assembly memory model

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Sun Jan 4 02:03:16 UTC 2026


On 04/01/2026 8:30 AM, Walter Bright wrote:
> On 1/2/2026 7:57 PM, Richard (Rikki) Andrew Cattermole wrote:
>> The killer though for D is you can't get a pointer with whatever 
>> offset you want into a GC object.
> 
> LDC has a webassembly back end, so it is not a killer.

You have misunderstood the situation.

As far as GC is concerned we are on our own and stuck on linear memory 
aka sbrk, we cannot use WasmGC with our pointers.

Upstream ldc does not have runtime supported and I'm not sure I'd even 
suggest the -betterC support as acceptable.

Having the target enabled isn't the same thing as being a supported target.



More information about the Digitalmars-d mailing list