Re:JavaScript is Not Web Assembly
by Lerc on Sunday March 31, 2013 @02:37PM
(#5469637)
That is not the only way to do it in Javascript though.
if you allocate an ArrayBuffer then you are dealing with a plain block of bytes that you can treat as points (or anything else).
These are the things that Javascript has been growing to facilitate the idea of js as asm. Emscripten uses ArrayBuffers to allow C to compile to JS without the messiness.
These are the things that Javascript has been growing to facilitate the idea of js as asm. Emscripten uses ArrayBuffers to allow C to compile to JS without the messiness.