From: Richard Jones <rich@annexia.org>
To: Alan Schmitt <alan.schmitt@polytechnique.org>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] options to write a cross-platform interacting program in OCaml
Date: Tue, 10 Mar 2009 17:19:14 +0000 [thread overview]
Message-ID: <20090310171914.GA25634@annexia.org> (raw)
In-Reply-To: <F14B3166-B02E-4DB3-92B6-5CC838E238E3@polytechnique.org>
On Tue, Mar 10, 2009 at 05:28:11PM +0100, Alan Schmitt wrote:
> I am looking at what options there are to rewrite camlgrenouille, a
> small client for www.grenouille.com that I wrote a while ago, to make
> it more modular (to allow an external UI to the core program) and
> cross-platform (Unix and Windows).
>
> In a nutshell, this program periodically runs some tests. Right now
> its interaction with the outside is fairly limited: the only thing one
> can do is ask it to quit (by doing a ctrl-c which is caught so as to
> clean up before actually quitting). I would like to be able to send it
> more complex commands, which would be driven by a UI separate from the
> program.
>
> The simplest approach seems to be using a socket and a select call
> (with a timeout corresponding to the delay until the next test), but I
> was wondering if there were other options based on threads. For
> instance, could I use lwt under Windows?
For such a simple model I'm pretty certain that using select is going
to be the easiest way.
For the cross-platform bit, don't forget to take a look at the Fedora-
MinGW project.
Rich.
--
Richard Jones
Red Hat
next prev parent reply other threads:[~2009-03-10 17:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-10 16:28 Alan Schmitt
2009-03-10 17:19 ` Richard Jones [this message]
2009-03-10 19:53 ` [Caml-list] " Stéphane Glondu
2009-03-20 14:38 ` Compiling ocaml-ssl under windows (mingw) Alan Schmitt
2009-03-20 15:25 ` [Caml-list] " Jerome Vouillon
2009-03-20 16:14 ` Alan Schmitt
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=20090310171914.GA25634@annexia.org \
--to=rich@annexia.org \
--cc=alan.schmitt@polytechnique.org \
--cc=caml-list@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).