4 ms·
A work around is to pass a foreign function into your asm.js module to do allocations for you, but then you have to either implement your own GC, do reference c
by mnemonik 12y ago
A work around is to pass a foreign function into your asm.js module to do allocations for you, but then you have to either implement your own GC, do reference counting, or just come up with some hand rolled lifetime management.
I'm also interested in how asm.js could be improved in this regard without moving away from its existing barebones model. Would love to hear ideas.
I think the first thing we will see is shared array buffers between workers because games really need that.