projexsys/Jolt — comment on commit 195780f9bb1287ab1446c436c7a4d1e738580cea
File: index.js line 1841
By michaelsbradleyjr:

@jdalton The idea is to create a poor man's "copy on write", given that JavaScript runtime's don't provide such a thing. This "Jolt" lib provides a data structure called `EventStream`, the instances of which are composed into dependency graphs. My idea is to provide (optional) `copyOnSend` and `copyOnRecv` semantics for nodes in the graphs, so that downstream instances of `EventStream` can safely modify complex data structures without affecting those structures as received by sibling nodes.

At the moment, I'm tinkering.......

I remembered seeing your tweets from several weeks ago regarding a "deep clone" thing you were writing for benchmark.js, and so pulled out what I needed. Earlier tonight I was experimenting with an alternate "deep copy" mechanism which used to be available as part of a library called "OWL JavaScript Utilities". The author's blog is down, and he doesn't have it hosted on GitHub; but some other folks have it embedded in their stuff; see: https://bitbucket.org/ivucica/zxmpp/changeset/989bcdc82009#chg-deepCopy.js

Environments I intend to support are modern browsers and NodeJS.

Do you see any advantage to a more tailored version of your `deepClone` vs. the `deepCopy` thing from OWL?