Took the time and refactored the perlin-noise port in the post to make it look a bit more like JavaScript.<p>As a small side effect I got a 3x speed increase.<p>JS Engines are good at optimizing, but having a senseless 256 copy loop in every call doesn't really work out that well if you can have a memcpy with Array.slice().<p>See: <a href="http://jsperf.com/perlin-noise" rel="nofollow">http://jsperf.com/perlin-noise</a>