From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id EBACDBB91 for ; Thu, 20 Jan 2005 21:19:44 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j0KKJi11019433 for ; Thu, 20 Jan 2005 21:19:44 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id VAA11359 for ; Thu, 20 Jan 2005 21:19:44 +0100 (MET) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.207]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j0KKJhBs019420 for ; Thu, 20 Jan 2005 21:19:43 +0100 Received: by rproxy.gmail.com with SMTP id c16so32641rne for ; Thu, 20 Jan 2005 12:19:42 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=gfkESieCRHY10Lwz9wndpA2cWYCdXxQERWJPbBYWyD/63soXqQ/F8ix/Bme2s9KUgXroiIWK2rSmBX6sUmdPmxtyC8gpjIOlRLQj7+bOqHVuv96k3I89yFEG/caY0fNcsc4zVwkhJUOZWxCECfQ/R98R+755+zWR6omXmf6Exa0= Received: by 10.38.165.8 with SMTP id n8mr71507rne; Thu, 20 Jan 2005 12:19:42 -0800 (PST) Received: from localhost ([141.155.88.179]) by smtp.gmail.com with ESMTP id 71sm4652rnc.2005.01.20.12.19.42; Thu, 20 Jan 2005 12:19:42 -0800 (PST) Date: Thu, 20 Jan 2005 15:19:36 -0500 From: Markus Mottl To: Alex Baretta Cc: OCaml Subject: Re: [Caml-list] C-threads & callbacks Message-ID: <20050120201936.GA18266@quant3.janestcapital.quant> Mail-Followup-To: Alex Baretta , OCaml References: <20050120182313.GB4919@quant3.janestcapital.quant> <41F00881.60406@barettadeit.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41F00881.60406@barettadeit.com> User-Agent: Mutt/1.4.1i X-Miltered: at concorde with ID 41F01260.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 41F0125F.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; markus:01 mottl:01 markus:01 mottl:01 caml-list:01 baretta:01 wrote:01 ocaml:01 runtime:01 ocaml:01 ...:98 cruel:98 callbacks:01 rewrite:01 tail:01 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.5 required=5.0 tests=INFO_TLD,RCVD_BY_IP autolearn=disabled version=3.0.0 X-Spam-Level: On Thu, 20 Jan 2005, Alex Baretta wrote: > Just a thought: how about running two different processes which share > relevant data through an mmapped file? The C-threads could communicate > with the Ocaml world through this shared memory segment. I am not sure > how much mileage you'll get out of this, but at least you would not have > to rewrite the runtime system... We have also thought about this. It would surely be a working solution and much faster than our current cruel hack of reading data from the tail of a file. But a solution involving only one process would be preferable in the long run. Regards, Markus -- Markus Mottl markus.mottl@gmail.com http://www.ocaml.info