NaCl/Emscripten

via Digitalmars-d digitalmars-d at puremagic.com
Wed Jan 14 15:45:56 PST 2015


On Wednesday, 14 January 2015 at 03:11:41 UTC, Janus wrote:
> On Sunday, 11 January 2015 at 01:33:25 UTC, Ola Fosheim Grøstad 
> wrote:
>> On Sunday, 11 January 2015 at 01:05:59 UTC, Manu via 
>> Digitalmars-d wrote:
>> With asm.js you are also stuck with a fixed size heap
>
> The heap can grow now, see 
> https://github.com/kripken/emscripten/blob/master/ChangeLog.markdown#v1251-1012014
>

Thanks, I've read the source code now. It involves creating a new 
array, then copying the old array into the new one. And it 
probably needs the experimental Ecmascript 7 
ArrayBuffer.transfer() function to be fast. So clearly something 
that only can run when waiting for something (like between levels 
in a game).

> Chrome runs it pretty fast though, sometimes faster than 
> Firefox.

Yes, not if the code is ASM.js, but still good even then.


More information about the Digitalmars-d mailing list