caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Nathaniel Gray" <n8gray@gmail.com>
To: "Jonathan T Bryant" <jtbryant@valdosta.edu>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] A Few Questions
Date: Tue, 19 Dec 2006 14:31:42 -0800	[thread overview]
Message-ID: <aee06c9e0612191431i424c56d5hb32a1cf61f471263@mail.gmail.com> (raw)
In-Reply-To: <6471679.1166406715475.JavaMail.jtbryant@valdosta.edu>

On 12/17/06, Jonathan T Bryant <jtbryant@valdosta.edu> wrote:

> 4) I've found that in sending functions across sockets, I can only send
> them between copies of the
> exact same binary image.  Is it possible to marshal functions to
> different binaries of the same code,
> i.e., different platforms?  Again, does native vs. bytecode make a
> difference?

Nope.  From the docs for Marshal.to_channel:

If flags contains Marshal.Closures, functional values will be
marshaled as a position in the code of the program. In this case, the
output of marshaling can only be read back in processes that run
exactly the same program, with exactly the same compiled code. (This
is checked at un-marshaling time, using an MD5 digest of the code
transmitted along with the code position.)

Cheers,
-n8

-- 
>>>-- Nathaniel Gray -- Caltech Computer Science ------>
>>>-- Mojave Project -- http://mojave.cs.caltech.edu -->


      parent reply	other threads:[~2006-12-19 22:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-18  1:51 Jonathan T Bryant
2006-12-18  3:18 ` [Caml-list] " skaller
2006-12-19 22:31 ` Nathaniel Gray [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aee06c9e0612191431i424c56d5hb32a1cf61f471263@mail.gmail.com \
    --to=n8gray@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=jtbryant@valdosta.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).