Hi Andrei, The short answer is "You cannot". The closest you can get is copy-in/copy-out, zero-copy sharing would make garbage collection impossible because data would be shared between heaps.
[Self-Promotion Warning] I have written a native C addon (GitHub <https://github.com/SyntheticSemantics/ems>, npm <https://www.npmjs.com/package/ems>) for Node called Extended Memory Semantics (EMS) that implements the copy-in/copy-out object sharing model, and also manages atomic access to the data. It was designed for a persistent data model more than streaming, but may still be useful to you depending on how WORM your data is. -Jace -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/5036cd5a-8b5f-490f-aa16-31b7eb49b3f9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
