Comments on Sept Meeting Notes
Anne van Kesteren
annevk at annevk.nl
Fri Sep 27 08:57:07 PDT 2013
On Fri, Sep 27, 2013 at 11:53 AM, Mark S. Miller <erights at google.com> wrote:
> The structured cloning algorithm is the last thing I want to use to
> communicate between workers. I advise avoiding it like the plague, instead
> serializing to JSON, sending the string, and unserializing on the other
> side. This also keeps the semantics of inter-worker communication aligned
> with the semantics of distributed inter-machine messaging.
"Just use JSON" doesn't work for a large number of use cases — e.g.
when dealing with ArrayBuffer, File objects, or rendering contexts —
structured cloning does.
More information about the es-discuss