caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Zheng Li <zheng_li@users.sourceforge.net>
To: caml-list@inria.fr
Subject: Re: [ANN] camlish: a simple module for shell scripting in   OCaml
Date: Mon, 27 Oct 2008 15:35:51 +0100	[thread overview]
Message-ID: <4905D1C7.7090102@users.sourceforge.net> (raw)
In-Reply-To: <caee5ad80810270702u38e64308wa8ef02a833d57b50@mail.gmail.com>

Mikkel Fahnøe Jørgensen wrote:
>>  * The interaction between external commands and OCaml values are
>>    implemented asynchronously inside (but with a synchronous
>>    interface). So it won't get stuck unnecessarily when dealing with
>>    large chunk of input/output.
> 
> Would it be possible to combine this with the LWT thread library?
> http://www.ocsigen.org/lwt

I'm not clear what kind of "combine" you had in mind.

   * If you meant to use them together, I think that's fine. They
are both user level libraries, Lwt has an asynchronous interface,
camlish has a synchronous one, so you can just use camlish API as
common functions application everywhere.

  * If you meant to implement the inside asynchronous mechanics of
camlish on top of Lwt, I did thought of that. Actually, I have
another library called Async does similar thing as Lwt. It's
possible, but not necessary. Besides, the CPS-based approach
always brings some syntactic burdens, which I prefer to avoid.
So finally, the inside implementation of camlish is asynchronous,
while we only expose the synchronous interface to the outside world.

  * Maybe you were though about parallel execution? Pipeline is
parallel already, plus there are two parallel combinators have
been planed (opposite to "&&&", the sequential combinator). I
haven't seen this kind of stuff in other shells, but I think that's
reasonable.

HTH.

--
Zheng


  reply	other threads:[~2008-10-27 14:35 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-27  3:30 Zheng Li
2008-10-27  8:51 ` Sylvain Le Gall
2008-10-27 10:09   ` Zheng Li
2008-10-27 13:11 ` [Caml-list] " Mikkel Fahnøe Jørgensen
2008-10-27 13:15   ` Andre Nathan
2008-10-27 13:18     ` Sylvain Le Gall
2008-10-27 13:21       ` [Caml-list] " Andre Nathan
2008-10-27 13:33         ` Sylvain Le Gall
2008-10-27 13:43     ` [Caml-list] " Mikkel Fahnøe Jørgensen
2008-10-27 14:10   ` Zheng Li
2008-10-27 14:02 ` [Caml-list] " Mikkel Fahnøe Jørgensen
2008-10-27 14:35   ` Zheng Li [this message]
     [not found]     ` <caee5ad80810270745h352a35bye70f9cc045ad441a@mail.gmail.com>
2008-10-27 15:45       ` Zheng Li

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=4905D1C7.7090102@users.sourceforge.net \
    --to=zheng_li@users.sourceforge.net \
    --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).