From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id B7B80BBBB for ; Wed, 1 Mar 2006 12:41:02 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k21Bf1Li002063 for ; Wed, 1 Mar 2006 12:41:01 +0100 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA29977 for ; Wed, 1 Mar 2006 12:41:01 +0100 (MET) Received: from selenite.metnet.navy.mil (selenite.metnet.navy.mil [192.16.167.32]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k21Bew9s002050 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Wed, 1 Mar 2006 12:41:00 +0100 Received: (qmail 8208 invoked by uid 107); 1 Mar 2006 11:40:55 -0000 Received: from vwmetnet.metnet.navy.mil (192.16.167.21) by selenite.metnet.navy.mil with SMTP; 1 Mar 2006 11:40:55 -0000 Received: from Adric.metnet.navy.mil ([152.80.48.103]) by vwmetnet.metnet.navy.mil (NAVGW 2.5.2.9) with SMTP id M2006030111484521649 ; Wed, 01 Mar 2006 11:48:46 GMT Received: by Adric.metnet.navy.mil (Postfix, from userid 760) id 8158BA9D0; Wed, 1 Mar 2006 03:37:20 -0800 (PST) To: till.varoquaux@gmail.com Cc: carette@mcmaster.ca, caml-list@inria.fr In-Reply-To: <9d3ec8300603010126q4086821cp976b082f1b2b7885@mail.gmail.com> Subject: Re: [Caml-list] Native delimited continuations for bytecode OCaml Reply-To: oleg@pobox.com Errors-To: oleg@okmij.org From: oleg@pobox.com Message-Id: <20060301113720.8158BA9D0@Adric.metnet.navy.mil> Date: Wed, 1 Mar 2006 03:37:20 -0800 (PST) X-Miltered: at nez-perce with ID 4405884D.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4405884A.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 delimited:01 bytecode:01 ocaml:01 oleg:01 caml-list:01 alas:01 marshalling:01 low-level:01 integers:01 ocaml:01 wrote:01 abstract:01 abstract:01 exception:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=NO_REAL_NAME autolearn=disabled version=3.0.3 Hello! [I'm not sure if this messages makes it to the caml-list. Sorry] Till Varoquaux wrote: > Can your code be used for unlimited continuation? I am currently > using code that looks somewhat like this: > > [capture continuation and Marshall it out] > [Upon startup of the application, resume from the saved state] Hmm, I have written code to test this interesting application. Alas, when I run it and was writing the captured continuation, I got a problem: Fatal error: exception Invalid_argument("output_value: abstract value (Custom)") I guess the marshalling function isn't happy about abstract values. I really don't know which particular value it is complaining about: the values used by the low-level C code are actually tuples and integers. But there are a lot of abstract values in the delimcc OCaml code, introduced to hide the representation.