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=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id A61D4BC0A for ; Wed, 29 Nov 2006 07:28:14 +0100 (CET) Received: from blizzard.cs.caltech.edu (blizzard.cs.caltech.edu [131.215.44.2]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id kAT6SDVa025776 for ; Wed, 29 Nov 2006 07:28:14 +0100 Received: from localhost (flood.cs.caltech.edu [131.215.44.31]) by blizzard.cs.caltech.edu (Postfix) with ESMTP id 108DE1BBCD2; Tue, 28 Nov 2006 22:28:13 -0800 (PST) Received: from blizzard.cs.caltech.edu ([131.215.44.2]) by localhost (flood.cs.caltech.edu [131.215.44.31]) (amavisd-new, port 10024) with ESMTP id 04391-07; Tue, 28 Nov 2006 22:28:12 -0800 (PST) Received: from [192.168.3.10] (70-32-248-48.ontrca.adelphia.net [70.32.248.48]) by blizzard.cs.caltech.edu (Postfix) with ESMTP id BD2761BBCCC; Tue, 28 Nov 2006 22:28:12 -0800 (PST) Message-ID: <456D287C.1020900@metaprl.org> Date: Tue, 28 Nov 2006 22:28:12 -0800 From: Aleksey Nogin Reply-To: omake-devel@metaprl.org, caml-list@yquem.inria.fr, nogin@metaprl.org Organization: MetaPRL/Mojave Research Group User-Agent: Thunderbird 1.5.0.8 (X11/20061105) MIME-Version: 1.0 To: Vincent Hanquez Cc: Richard Jones , caml-list@yquem.inria.fr, omake-devel@metaprl.org Subject: Re: [Caml-list] Inotify binding References: <20061121201834.GA25644@snarc.org> <20061121235543.GA21480@furbychan.cocan.org> <20061122001645.GA27158@snarc.org> In-Reply-To: <20061122001645.GA27158@snarc.org> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Miltered: at discorde with ID 456D287D.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; 0100,:01 bindings:01 bindings:01 ocaml:01 utilize:98 wrote:01 wrote:01 caml-list:01 binding:02 binding:02 seems:03 aka:04 simpler:04 interface:05 interface:05 On 21.11.2006 16:16, Vincent Hanquez wrote: > On Tue, Nov 21, 2006 at 11:55:46PM +0000, Richard Jones wrote: >> On Tue, Nov 21, 2006 at 09:18:34PM +0100, Vincent Hanquez wrote: >>> I've made a small bindings for inotify, aka linux file system notification >>> new subsystem. >> I think OMake includes bindings for gamin. > > it seems to be talking FAM. Actually, in our LibMojave (which is what OMake uses) we have bindings for: - FAM - Gamin (using either the generic FAM interface, or taking advantage of Gamin extensions) - kqueue (FreeBSD, OS X) - inotify (Linux) - ??? (Win32) - not sure what exactly is used there In all five cases, we provide the _same_ fam-style interface on the OCaml side. We also have OMake autoconf-style scripts that can detect which of the fours notification mechanisms is present on a specific machine and use the appropriate one. > Sounds more like a bad thing than a good thing to me. > Direct inotify binding are much smaller/simpler anyway. That might be true, but only if you happen to be on a machine that provides inotify. We do utilize inotify if it is present, but we also have an option of using one of the other four when there is no inotify. Aleksey