caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Matthieu Dubuget" <matthieu.dubuget@gmail.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Waiting for float time
Date: Thu, 28 Jun 2007 17:29:46 +0200	[thread overview]
Message-ID: <9f09a07a0706280829t51db7651qb041089bdd522f7d@mail.gmail.com> (raw)
In-Reply-To: <200706281503.l5SF3wBX032403@waco.inria.fr>

[-- Attachment #1: Type: text/plain, Size: 1563 bytes --]

2007/6/28, Bruno Verlyck <Bruno.Verlyck@inria.fr>:
>
>    Date: Thu, 28 Jun 2007 13:15:31 +0200
>    From: "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 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ébastien.

I had some OCaml code using Thread module, and, Thread.delay. Because of one
bug in ocaml compilers, I can not use Thread module (
http://caml.inria.fr/mantis/view.php?id=4173).
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 replacement for Thread.delay. I still needed to
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

[-- Attachment #2: Type: text/html, Size: 2233 bytes --]

  reply	other threads:[~2007-06-28 15:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-27 21:55 sayan
2007-06-27 22:11 ` [Caml-list] " Karl Zilles
2007-06-28 11:15   ` Matthieu Dubuget
2007-06-28 15:03     ` Bruno Verlyck, Bruno.Verlyck
2007-06-28 15:29       ` Matthieu Dubuget [this message]
2007-06-28 15:57         ` Bruno Verlyck, Bruno.Verlyck
2007-06-27 22:21 ` Robert Roessler
2007-06-28 10:15   ` sayan
2007-06-28 10:18     ` Vincent Hanquez
2007-06-28 11:18       ` Bünzli Daniel
2007-06-28 11:33   ` Yaron Minsky
2007-06-29 10:17     ` Robert Roessler
2007-06-28 12:50 ` Thomas Fischbacher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9f09a07a0706280829t51db7651qb041089bdd522f7d@mail.gmail.com \
    --to=matthieu.dubuget@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).