caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: caml-list@inria.fr
Subject: options to write a cross-platform interacting program in OCaml
Date: Tue, 10 Mar 2009 17:28:11 +0100	[thread overview]
Message-ID: <F14B3166-B02E-4DB3-92B6-5CC838E238E3@polytechnique.org> (raw)

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

Hello,

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?

Thanks for any suggestion,

Alan

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

             reply	other threads:[~2009-03-10 16:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-10 16:28 Alan Schmitt [this message]
2009-03-10 17:19 ` [Caml-list] " Richard Jones
2009-03-10 19:53 ` 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=F14B3166-B02E-4DB3-92B6-5CC838E238E3@polytechnique.org \
    --to=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).