News for hackers. Stuff that matters.
Re:A first look at WebAssembly performance by crocodileJS on Thursday February 09, 2017 @05:45AM (#13605994)
You actually can lay things out in memory using Typed Arrays.

There's some overhead to reads/writes though (there is memory safety, after all).

Re:A first look at WebAssembly performance by Klathmon on Thursday February 09, 2017 @01:43PM (#13609595)
What's amazing is that in some engines, if the JIT can determine that you are within the bounds of the array, it can disable those checks for the duration of the loop.

So something like for (x = 0; x < arr.length; x++) {...} can run at pretty much the same speed as C code.