From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id CE3007F750 for ; Thu, 16 Mar 2017 13:09:14 +0100 (CET) Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=gbikal@gmail.com; spf=Pass smtp.mailfrom=gbikal@gmail.com; spf=None smtp.helo=postmaster@mail-it0-f66.google.com Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of gbikal@gmail.com) identity=pra; client-ip=209.85.214.66; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="gbikal@gmail.com"; x-sender="gbikal@gmail.com"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of gbikal@gmail.com designates 209.85.214.66 as permitted sender) identity=mailfrom; client-ip=209.85.214.66; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="gbikal@gmail.com"; x-sender="gbikal@gmail.com"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail-it0-f66.google.com) identity=helo; client-ip=209.85.214.66; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="gbikal@gmail.com"; x-sender="postmaster@mail-it0-f66.google.com"; x-conformance=sidf_compatible IronPort-PHdr: =?us-ascii?q?9a23=3AUKb7ehZSuUoWOiLpECYOT4z/LSx+4OfEezUN459i?= =?us-ascii?q?sYplN5qZr8uybnLW6fgltlLVR4KTs6sC0LuL9f64EjVZqb+681k6OKRWUBEEjc?= =?us-ascii?q?hE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i764jEdAAjwOhRo?= =?us-ascii?q?LerpBIHSk9631+ev8JHPfglEnjSwbLdyIRmsrAjdqsYajZZ/Jq0s1hbHv3xEdv?= =?us-ascii?q?hMy2h1P1yThRH85smx/J5n7Stdvu8q+tBDX6vnYak2VKRUAzs6PW874s3rrgTD?= =?us-ascii?q?QhCU5nQASGUWkwFHDBbD4RrnQ5r+qCr6tu562CmHIc37SK0/VDq+46t3ThLjlT?= =?us-ascii?q?wKPCAl/m7JlsNwjbpboBO/qBx5347Ue5yeOP5ncq/AYd8WWW9NU8BMXCJDH4y8?= =?us-ascii?q?dZMCAOUPPelar4fzqVgAowagCwawH+7g0CNEi2Xs0KEmz+gsEwfL1xEgEdIUt3?= =?us-ascii?q?TUqc34OboTUeC21qbIySjIYfJL2Tfn9YjIdB8hquyLULJ/asXRyEovGBnBjliL?= =?us-ascii?q?pozlOima1uUJs2SB8+VgUuevhnchpgpsrDavwcIshZPIhoIT0l3E8jl2z5wwJd?= =?us-ascii?q?28UkJ7ZsSkEJRIuyGVNot2XsMiQ3xztyogy70Gvoa3fCcLyJQ7xx7fdueIf5KU?= =?us-ascii?q?7RLkUeadOTJ4hHN5d7KlgBay6k+gyuPgVsWuzFlKqS9Fn9/RvX4Ozxze8taLRu?= =?us-ascii?q?d580u72juC1xrf5v9ZLU07j6bWKp8sz7gtnZQJq0vDBDX5mEDuga+WaEok/u+o?= =?us-ascii?q?5vziYrr8p5+cM5Z4igDiMqgyg8C/D+U1PwkUU2iU/uS807Lj/UnnT7lQkvI2la?= =?us-ascii?q?zZvIjbJcQduKG5HxdY3pg/5xu7FTur09QVkWMZIF5Ydx+LlYnkNlDWLPD9F/i/?= =?us-ascii?q?glCskDlxx/DBO73sGprNIWPCkLfiZ7l971VRyAU2zd9F5pJUDqsNL+70Wk/0rN?= =?us-ascii?q?DYFAM2MxSow+b7D9Vwzp8RVniKAq+dKa/StV6I5vkzI+SXf48UuDP9K+A/6PL0?= =?us-ascii?q?jH85n0Udfaiz0pcNZnC4BKcuH0LMTXPyg9tJKmwNohZ2GPfhj0GeFzJRT3m3Vq?= =?us-ascii?q?M4oDo8DdTiRZ/KW4TrhLWK3C6nNpBaeyZbDFGSVHnjcICYVrECcnG8OMhkxxYF?= =?us-ascii?q?VrGlA6A8zwyou0euxLBmLePQ0iIdvJPnktNy4ruAxlkJ6TVoApHFgCm2RGZukz?= =?us-ascii?q?ZNHmdu0Q=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0BiAAA/f8pYf0LWVdFeHAEBBAEBCgEBF?= =?us-ascii?q?wEBBAEBCgEBgkOBRIEKg2GKD5FYkBGFLoIOLIJAgzYCgwI/GAEBAQEBAQEBAQE?= =?us-ascii?q?BEgEBCQsLCCYxgjMiAYI/AQEBAQIBIx0BGxILAQMBCwYFCw0qAgIhAQERAQUBD?= =?us-ascii?q?gENBgESCIlfAQMNCA6jej+MA4IEBQEcgwkFg14KGScNVYI5AQEBAQEBBAEBAQE?= =?us-ascii?q?BAQEBAQEWAgYSiyuCUSWCC4JZgl8FiSKSaTqGd4cYhC+CT4ELjU+KXIcpM4EVD?= =?us-ascii?q?xB2RiMWCBcVQReEMYIPQDUBiUcBAQE?= X-IPAS-Result: =?us-ascii?q?A0BiAAA/f8pYf0LWVdFeHAEBBAEBCgEBFwEBBAEBCgEBgkO?= =?us-ascii?q?BRIEKg2GKD5FYkBGFLoIOLIJAgzYCgwI/GAEBAQEBAQEBAQEBEgEBCQsLCCYxg?= =?us-ascii?q?jMiAYI/AQEBAQIBIx0BGxILAQMBCwYFCw0qAgIhAQERAQUBDgENBgESCIlfAQM?= =?us-ascii?q?NCA6jej+MA4IEBQEcgwkFg14KGScNVYI5AQEBAQEBBAEBAQEBAQEBAQEWAgYSi?= =?us-ascii?q?yuCUSWCC4JZgl8FiSKSaTqGd4cYhC+CT4ELjU+KXIcpM4EVDxB2RiMWCBcVQRe?= =?us-ascii?q?EMYIPQDUBiUcBAQE?= X-IronPort-AV: E=Sophos;i="5.36,172,1486422000"; d="scan'208,217";a="216966987" Received: from mail-it0-f66.google.com ([209.85.214.66]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 16 Mar 2017 13:09:13 +0100 Received: by mail-it0-f66.google.com with SMTP id y18so1087088itc.2 for ; Thu, 16 Mar 2017 05:09:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=K+EQDEQ8jLSpfM7RwgGQVSkUmKrN4S+YAe4aiBjGHrU=; b=gXplvvlSonQM9wRVco95o+ppBgnGmRKFPfWxENQXy8RfZ66900bwZAWHQNQJtuNO3C 5CkttWwzMw4PoAoMOfvn224H0AvEPrfzl7Bxa/U4jGn8kwREsdgktcq36dm5lpEp7ZXs 8KLmvVOo2HL9ukuLntbh9eT6/XTJaLyVCML03b40f3bfHtBrclpmcl2BjZQCJ7JFxhbt bFizqYIPVNTbKWKeh2wup+rForgzIo41qS6d/LIVheV6HA8Grf0f9jedoGb3qjywTvlx KMoiG2MeXS5q5OhB7pBOVjy9qKyaOAe9Rwvfv9uM+D3R2ZvTwwKDjVHxTCTbEiJFRtgw z4IA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=K+EQDEQ8jLSpfM7RwgGQVSkUmKrN4S+YAe4aiBjGHrU=; b=kkH4STPRyaoImfrZpTdUB8DTwiekHbeWsLB7ZPPoHfRC21xHQxjSM2GpNRawF8WwdV V8CEyOWSy71Nja0ybi4EMNjE0MOUkzhDVKdfxqHGKz9MXBxi1XBkOGUKVXsjfuGzNZDr lcoJ1ZmwyKrwgwN5vIn/8kAHIH/pASbsTk3r8HgygNB7WPa5bGFJmTh50Z2xoqjWo2b/ FBdpqDHpsk8vom3RQPhmXcmiO/vQqB+lV0RFPAaLO8juI9c3YO3YHz2PZ0OLKLMSHcPq zC7df+JLx7sm7oxGsmGJ6pvlDasyWINXftU+Gmd6GAyNbOQWW5N1aJGsUm+1DVFSdfJ6 Av5g== X-Gm-Message-State: AFeK/H1htQJ30cgMGMdu4q/ZWnMzgB44UOMEOG7uPoSrHqFVBB+Fvwka6N+F+8vtbYKCHmoXd/tPfMZrKkOJTQ== X-Received: by 10.36.88.202 with SMTP id f193mr23402553itb.14.1489666152468; Thu, 16 Mar 2017 05:09:12 -0700 (PDT) MIME-Version: 1.0 References: <1110622119.7945294.1489651379371.JavaMail.zimbra@edu.univ-fcomte.fr> In-Reply-To: From: Bikal Gurung Date: Thu, 16 Mar 2017 12:09:01 +0000 Message-ID: To: David Scott , paul.lachat@edu.univ-fcomte.fr Cc: caml-list@inria.fr Content-Type: multipart/alternative; boundary=001a114049c2da1754054ad7ed2f Subject: Re: [Caml-list] [Question] Named pipe on Windows. --001a114049c2da1754054ad7ed2f Content-Type: text/plain; charset=UTF-8 With regards to ocaml on windows, has anyone tried using bash on windows and ocaml built using msvc/mingw? Bash on windows now supports calling native windows binaries from within the bash shell itself. https://msdn.microsoft.com/en-us/commandline/wsl/interop#invoking-windows-binaries-from-wsl I am guessing this probably makes Cygwin redundant as a ocaml build environment. On Thu, 16 Mar 2017 at 09:38, David Scott wrote: > Hi, > > On Thu, Mar 16, 2017 at 8:02 AM, wrote: > > Hello, > > I need to setup communication between two Ocaml processes on Windows. > I think that using the named pipe of Windows is the good method to do this > task. > > But I can't find any module for Ocaml who allow using the system call of > Windows. > > I have already find this module > https://opam.ocaml.org/packages/named-pipe/, but it use C, > and I would like to avoid depending on another langage than Ocaml or > software like Cygwin. > > > Although I'm one of the authors of that particular library I now prefer to > use this other library instead: > > https://github.com/fdopen/uwt > https://opam.ocaml.org/packages/uwt/ > > where "Uwt.Pipe" is a Unix domain socket on Unix and a named pipe on > Windows. I'm very happy with "uwt" -- it seems to be very stable and > reliable, despite the relatively low version number. > > Personally I don't want my final executables to depend on the cygwin.dll > but I don't mind if my development environment uses cygwin for the Unix > utilities like "make", "vi" etc. I usually install OCaml one Windows using > this installer: > > http://fdopen.github.io/opam-repository-mingw/installation/ > > -- this installs everything you need (including Cygwin). I then `opam > install` my dependencies and `make`, like I can on Unix. My resulting .exe > files are independent of cygwin.dll and I ship them as-is. > > Hope this helps a little, > > Dave > > > > Does anybody know a way to use named pipe of Windows in Ocaml ? > > Thank you in advance for your answer ! > > Ps : Sorry if it's the wrong mailing list to ask, it's the first time I > use one. > > > > > -- > Dave Scott > --001a114049c2da1754054ad7ed2f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
With regards to ocaml on windows, has anyone tried using bash on windo= ws and ocaml built using msvc/mingw?=C2=A0
Bash on windows now su= pports calling native windows binaries from within the bash shell itself.= =C2=A0


I am guessing this probably makes Cygwi= n redundant as a ocaml build environment.

On Thu, 16 Mar 2017 at 09:38, David Scott <scott.dj@gmail.com> wrote:
Hi,

On Thu, Mar 16, 2017 at 8= :02 AM, <paul.lachat@edu.univ-fc= omte.fr> wrote:
Hello,

I need to = setup communication between two Ocaml processes on Windows.
I think that using the named pipe of Windows is the good method to = do this task.

But I can'= t find any module for Ocaml who allow using the system call of Windows.

I have already find this module https://opam.ocam= l.org/packages/named-pipe/, but it use C,
and I = would like to avoid depending on another langage than Ocaml or software lik= e Cygwin.

Although I'm one of the authors = of that particular library I now prefer to use this other library instead:<= /div>

https://github.com/fdopen/uwt

where "Uwt.Pipe" is a Uni= x domain socket on Unix and a named pipe on Windows. I'm very happy wit= h "uwt" -- it seems to be very stable and reliable, despite the r= elatively low version number.

Personally I don't want my fina= l executables to depend on the cygwin.dll but I don't mind if my develo= pment environment uses cygwin for the Unix utilities like "make",= "vi" etc. I usually install OCaml one Windows using this install= er:


-- this installs everythin= g you need (including Cygwin). I then `opam install` my dependencies and `m= ake`, like I can on Unix. My resulting .exe files are independent of cygwin= .dll and I ship them as-is.

Hope this helps a little,

D= ave
=C2=A0

Does anybody know a way to use named pipe of Windows in= Ocaml ?

Thank you in advanc= e for your answer !

Ps : Sor= ry if it's the wrong mailing list to ask, it's the first time I use= one.



--
Dave Scott
--001a114049c2da1754054ad7ed2f--