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.1 required=5.0 tests=AWL,HTML_MESSAGE,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 B2972BC6B for ; Thu, 28 Jun 2007 17:29:48 +0200 (CEST) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.230]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l5SFTlSx002135 for ; Thu, 28 Jun 2007 17:29:48 +0200 Received: by nz-out-0506.google.com with SMTP id s1so307614nze for ; Thu, 28 Jun 2007 08:29:47 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=q7Tz8nKFdS8sAK1/bBxRHDDtYsIYxkhwFgcXqyvoqy892X0Vk9R+01ofxtuuCz7+8Gy0up2C94p3FubNsYxYmJJSwUf2dLjC747OWpFps+Z7RuGYHcKlWv2KbwZeToDosl9Nban1HBQheHnkl5tCY7Xh1n0pxmXxUJ/dbb4/NL4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=fo3Dbiog4bg4Ah/1w0OTQEQGkPi2OjMsPgPTXzoG7WbXsnomlPoT5cUqdYhIktQQ2fQ1RixmQY8Yqph3rgjD2BXMKcO4VWG3pfdWoq+7e1HISm1885GIfB8srQ039dsQoIPlCHMvYxpADNtHZm51gbTol1Dto2+X8i6cAISWlQk= Received: by 10.115.93.16 with SMTP id v16mr1612914wal.1183044586438; Thu, 28 Jun 2007 08:29:46 -0700 (PDT) Received: by 10.115.60.4 with HTTP; Thu, 28 Jun 2007 08:29:46 -0700 (PDT) Message-ID: <9f09a07a0706280829t51db7651qb041089bdd522f7d@mail.gmail.com> Date: Thu, 28 Jun 2007 17:29:46 +0200 From: "Matthieu Dubuget" To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Waiting for float time In-Reply-To: <200706281503.l5SF3wBX032403@waco.inria.fr> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_33220_2837664.1183044586405" References: <4682DCDF.5000301@crans.org> <4682E0A7.7030503@1969web.com> <9f09a07a0706280415m3730487bl9fa9493148c03e9a@mail.gmail.com> <200706281503.l5SF3wBX032403@waco.inria.fr> X-j-chkmail-Score: MSGID : 4683D3EB.003 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 4683D3EB.003 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; matthieu:01 dubuget:01 matthieu:01 dubuget:01 ocaml:01 bug:01 ocaml:01 bug:01 28,:98 28,:98 crans:98 crans:98 beginners:01 beginners:01 wrote:01 ------=_Part_33220_2837664.1183044586405 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 2007/6/28, Bruno Verlyck : > > Date: Thu, 28 Jun 2007 13:15:31 +0200 > From: "Matthieu Dubuget" > > Hi, > 2007/6/28, Karl Zilles : > > sayan@crans.org wrote: > > > I am looking for a floating point version of the function > > > Unix.sleep in order to suspend execution of a program for 0.7s > > Use select with no file_descrs. > Nice! Where are this kind of tricks supposed to be collected? > FAQ, http://www.ocaml-tutorial.org/, ...? > Any book / doc on Unix systems programming ? Fair answer. But I'm sure you understood my question, didn't you? I faced exactly the same problem as S=E9bastien. I had some OCaml code using Thread module, and, Thread.delay. Because of on= e bug in ocaml compilers, I can not use Thread module ( http://caml.inria.fr/mantis/view.php?id=3D4173). Not a very big problem after some thought, because the use of Thread was no= t absolutely necessary when using my Ocaml code wrapped inside a shared library. I then looked for a replacement for Thread.delay. I still needed t= o wait some (small amount of time) without pooling. Sorry if I'm not a unix guru, but the fact is that I did not find the Unix.select solution. So. Suppose there is some short tricks/recipes list about OCaml somewhere: it may save time to beginners looking for such things. I asked the question= , because maybe, there is already such a place? (the caml-list archive since today, at least...) Salutations Matthieu Dubuget ------=_Part_33220_2837664.1183044586405 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

2007/6/28, Bruno Verlyck <Bruno.Verlyck@inria.fr>:=
   Date: Thu, 28 Jun 2007 13:15:31 +0200
   From: &q= uot;Matthieu Dubuget" <matthieu.dubuget@gmail.com>

Hi,
   2007/6/28, = Karl Zilles < zilles@1969web.com>:
   > sayan@crans.org wrote:
   > > I am looking = for a floating point version of the function
   > > Unix= .sleep in order to suspend execution of a program for=20 0.7s
   > Use select with no file_descrs.
   N= ice!  Where are this kind of tricks supposed to be collected?
=    FAQ, http://www.oca= ml-tutorial.org/, ...?
Any book / doc on Unix systems programming ?&= nbsp;

Fair answer. But I'm sure you understood my quest= ion, didn't you?

I faced exactly the same problem as S=E9bastien= .

I had some OCaml code using Thread module, and, Thread.delay. Bec= ause of one bug in ocaml compilers, I can not use Thread module ( http://caml.inri= a.fr/mantis/view.php?id=3D4173).
Not a very big problem after some = thought, because the use of Thread was not absolutely necessary when using = my Ocaml code wrapped inside a shared library. I then looked for a replacem= ent for=20 Thread.delay. I still needed to wait some (small amount of time) without po= oling.

Sorry if I'm not a unix guru, but the fact is that I did = not find the Unix.select solution.

So. Suppose there is some short t= ricks/recipes list about OCaml somewhere: it may save time to beginners loo= king for such things. I asked the question, because maybe, there is already= such a place? (the caml-list archive since today, at least...)

Salutations

Matthieu Dubuget
------=_Part_33220_2837664.1183044586405--