title: When to use Float32Array instead of Array in JavaScript
body: <p>When does it make sense to use a <code>Float32Array</code> instead of a standard JavaScript <code>Array</code> for browser applications?</p>
  
  <p>This <a href="http://jsperf.com/float32array-slowness-test/2" rel="noreferrer">performance test</a> shows <code>Float32Array</code> to be, in general, slower - and if I understand correctly a standard <code>Array</code> stores numbers as 64bit - so there is no advantage in precision.</p>
  
  <p>Aside from any possible performance hit, <code>Float32Array</code> also has the disadvantage of readability - having to use a constructor:</p>
  
  <pre><code>a = new Float32Array(2);
  a[0] = 3.5;
  a[1] = 4.5;
  </code></pre>
  
  <p>instead an array literal</p>
  
  <pre><code>a = [3.5, 4.5];
  </code></pre>
  
  <p>I'm asking this because I'm using the library glMatrix which defaults to <code>Float32Array</code> - and wondering if there's any reason I shouldn't force it to use <code>Array</code> instead which will allow me to use array literals.</p>