3 ms·
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 po
by Lerc 14y ago
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.