title: JavaScript: Web Worker and Typed Arrays
body: <p>I have a web worker (started with <code>new Worker()</code>) that does some processing and is supposed to return a <code>Float32Array</code>.<br>
  It seems however that after the worker <code>postMessage()</code>s the data, it goes through serialization and desirialization to JSON and what I end up with when receiving the message is a plain javascript <code>Array</code> (with all of the properties the original typed array had)</p>
  
  <p>A trivial work around would be to just recreate the typed array from the javascript array but that's wasteful and takes up time and memory.</p>
  
  <p>Is there a better way to do this? Some kind of way to tell the JSON deserialization to instantiate a <code>Float32Array</code> instead of a javascript array? or a way to otherwise transfer the binary data?</p>