On Tue, Nov 12, 2013 at 1:12 PM, Toni Wagner <[email protected]> wrote:
> The scenario: 2 node instances, A & B,  (same server, different servers - no
> matter). I want to copy a variable (any kind) from A to B.
> As far as i know I have to serialize it, send it, and deserialize it.
> Now my understanding of V8 is basically zero. But shouldn't it be possible
> to get a memory snapshot of any given variable (i guess as a node Buffer?),
> send it directly as a binary stream to another process and put it back into
> memory?
> it would save all that conversion, re-creating the object in v8 (with all
> the analyzing it does to create a pseudo class and whatnot...)? Also, it
> would help my project a lot :)

JS values and objects are intimately tied to the process they're
created in.  What you're suggesting is not possible for arbitrary
values.

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to