From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 9F0867EE5B for ; Sun, 25 May 2014 23:40:01 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of gdsfh1@gmail.com) identity=pra; client-ip=209.85.213.173; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="gdsfh1@gmail.com"; x-sender="gdsfh1@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of gdsfh1@gmail.com designates 209.85.213.173 as permitted sender) identity=mailfrom; client-ip=209.85.213.173; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="gdsfh1@gmail.com"; x-sender="gdsfh1@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-ig0-f173.google.com) identity=helo; client-ip=209.85.213.173; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="gdsfh1@gmail.com"; x-sender="postmaster@mail-ig0-f173.google.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmgCANlhglPRVdWtlGdsb2JhbABYg1lYgmqnCgEGmAoBfAgWDgEBAQEHCwsJEiqCJQEBAQMBEhEdARseAwELBgULAwwCJgICIgERAQUBHAY1iAsBAwkIDaZ4aosngXKDDZhDChknDWSFNhEBAQQMgR6EK4cDggGCdYFLBIobj1iRNhgphGs6 X-IPAS-Result: AmgCANlhglPRVdWtlGdsb2JhbABYg1lYgmqnCgEGmAoBfAgWDgEBAQEHCwsJEiqCJQEBAQMBEhEdARseAwELBgULAwwCJgICIgERAQUBHAY1iAsBAwkIDaZ4aosngXKDDZhDChknDWSFNhEBAQQMgR6EK4cDggGCdYFLBIobj1iRNhgphGs6 X-IronPort-AV: E=Sophos;i="4.98,908,1392159600"; d="scan'208";a="63963984" Received: from mail-ig0-f173.google.com ([209.85.213.173]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 25 May 2014 23:40:00 +0200 Received: by mail-ig0-f173.google.com with SMTP id hn18so2476966igb.6 for ; Sun, 25 May 2014 14:39:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=kUOOJg1xNeXgsKO0RCIKNCEPm8z6/lODyf87wzpOQ5Q=; b=cdqAVSBVnhIo+0EpnE4rqCpOeh6j41BvEAFuS3Ntl1+O4k2pj02BnxsJGUmOX8do+W goK7SaJEFvzQlnwhxyyKDRTxmZ+pyRaaGbR9emvNEU/EhPBV6d17PfB+xiTaV5I56Vm9 eRTiQxUHswz+9f0qDyOwrfNl79X5WXsYH579uzmmHVzvfX6TqQ5Hb8n9wKWUhYe3VTGa zNBNSKJZyyfFhFGjC2w+989yoB1bYcmkf3aKuhhCu/wOYAEr6jw++VAuZXG3xvumOxBv gQv6kELize2Ft5C4tad7RJ+0JSOyi/kPtAimjEnb7SYLA59sYYQ7pcdh1mXnXmgEoaiE 8/6w== MIME-Version: 1.0 X-Received: by 10.50.67.83 with SMTP id l19mr20615698igt.38.1401053999079; Sun, 25 May 2014 14:39:59 -0700 (PDT) Received: by 10.42.190.134 with HTTP; Sun, 25 May 2014 14:39:58 -0700 (PDT) In-Reply-To: <20140525203436.GA24252@delli7.univ-savoie.fr> References: <33BA74EC-E875-437F-A8A0-34011307D21D@inria.fr> <20140525203436.GA24252@delli7.univ-savoie.fr> Date: Mon, 26 May 2014 00:39:58 +0300 Message-ID: From: Dmitry Grebeniuk To: Christophe Raffalli Content-Type: text/plain; charset=UTF-8 Subject: Re: [Caml-list] OCaml release 4.02.0+beta1 > It is painfull with parmap that I modified to handle exception ... without success. I'm working on parallel stuff in OCaml too (but in a more erlang-way than parmap), so I decided to use exceptions for inter-process messages, and serialize them as strings to pass them to other processes: - https://bitbucket.org/gds/parvel/src/17030/src/parvel.ml#cl-126 - https://bitbucket.org/gds/parvel/src/17030/src/parvel.ml#cl-274 It was daunting for me that exceptions are not serializable, but everything that goes into / out of executable is not safe, so I accepted strings as error messages.