From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id E81F6BC0A for ; Tue, 19 Dec 2006 23:31:50 +0100 (CET) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.238]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id kBJMVncl027194 for ; Tue, 19 Dec 2006 23:31:50 +0100 Received: by wr-out-0506.google.com with SMTP id i2so961444wra for ; Tue, 19 Dec 2006 14:31:49 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hgX8Ul48Ysi7Z5lIcAcPRY3CxZTz5yA6y01GQPHiY5kevRKfnXufLJAmY2Qcuj+ICFAJfAKJSEi487xKaSwm3haHHGVNIhn74Mj487qZMyP1iaF8erYTuv8TPd3TL3ff92RO5DAiaD3PdFCInmp0tpkCkHpYlYkcChKLuz86sdw= Received: by 10.78.142.14 with SMTP id p14mr4508433hud.1166567502512; Tue, 19 Dec 2006 14:31:42 -0800 (PST) Received: by 10.78.198.14 with HTTP; Tue, 19 Dec 2006 14:31:42 -0800 (PST) Message-ID: Date: Tue, 19 Dec 2006 14:31:42 -0800 From: "Nathaniel Gray" To: "Jonathan T Bryant" Subject: Re: [Caml-list] A Few Questions Cc: caml-list@yquem.inria.fr In-Reply-To: <6471679.1166406715475.JavaMail.jtbryant@valdosta.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <6471679.1166406715475.JavaMail.jtbryant@valdosta.edu> X-j-chkmail-Score: MSGID : 45886855.002 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 45886855.002 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; sockets:01 bytecode:01 flags:01 marshaled:01 marshaling:01 cheers:01 closures:01 wrote:01 binaries:01 marshal:01 marshal:01 caml-list:01 functions:01 functions:01 digest:01 On 12/17/06, Jonathan T Bryant 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 -->