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 6C4427F79F for ; Sat, 18 Mar 2017 03:24:34 +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-f48.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.48; 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.48 as permitted sender) identity=mailfrom; client-ip=209.85.214.48; 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-f48.google.com) identity=helo; client-ip=209.85.214.48; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="gbikal@gmail.com"; x-sender="postmaster@mail-it0-f48.google.com"; x-conformance=sidf_compatible IronPort-PHdr: =?us-ascii?q?9a23=3AS0Pf8hWOCLt2dWN0ugQJWC08oizV8LGtZVwlr6E/?= =?us-ascii?q?grcLSJyIuqrYbBGHt8tkgFKBZ4jH8fUM07OQ6PG9HzJbqsrR+Fk5M7V0Hycfjs?= =?us-ascii?q?sXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aFRrwLxd6?= =?us-ascii?q?KfroEYDOkcu3y/qy+5rOaAlUmTaxe71/IRG2oAnLt8Qbj4RuJ6kyxxDUvnZGZu?= =?us-ascii?q?NayH9yK1mOhRj8/MCw/JBi8yRUpf0s8tNLXLv5caolU7FWFSwqPG8p6sLlsxnD?= =?us-ascii?q?VhaP6WAHUmoKiBpIAhPK4w/8U5zsryb1rOt92C2dPc3rUbA5XCmp4ql3RBP0ji?= =?us-ascii?q?oMKiU0+3/LhMNukK1boQqhpx1hzI7SfIGVL+d1cqfEcd8HWWZNQsNdWipcCY2+?= =?us-ascii?q?coQPFfIMMuRWr4f9qVUArgawCxewC+700DBEmmX70Lcm3+g9EwzL2hErEdIUsH?= =?us-ascii?q?TTqdX4LLofUeG2zKbSyTXIcvJY2Srn6IjVdBAhruyHULV/ccXKyEkvFBnKjlGL?= =?us-ascii?q?pIzqOjOazOUNs2yB4+V8UuKvjncqpgdsqTahwccsj5PGhoMTyl3c8iV23Jw6Jd?= =?us-ascii?q?i8SEJhZt6kCpRQuzmVN4t3XsMiQ3xotz0gxr0Hvp63ZCcKyJU7xx7fdvyIaJKE?= =?us-ascii?q?7Q7kVOaUOTt4gXNld66lhxa16kigzeP8VtWu3FlWqSpFl9/BvW0O2RzL8sWLVO?= =?us-ascii?q?dx80O71TuM1w3f8P9ILV07mKbBJJMswbg9nYcJv0vZBC/5gkD2gbeWdko6/uio?= =?us-ascii?q?7PzqYrD8qZ+dM494kwD+MrgylsCmD+Q1PQsDU3KU+eS7073j8kn5T6tQgvIqla?= =?us-ascii?q?nZtYjWJcUdpqGnHw9Yypgv5wq7Aju809kVnWMLIExYdB+IlYTkNFLDLOj9Dfil?= =?us-ascii?q?glSslDlrx+rBPr3kGpjNIWPMkLbifbln705R0wUzzdVF6JJVDrENOu78Wkj0tN?= =?us-ascii?q?DAFB82LxS0w/r7CNV6zo4RRXiAAqqdMK/LtV+I5/kvI/WXaY8OuDf9LuAl6OT0?= =?us-ascii?q?gX84n18dZ6ip0oENZHC2BPQ1a3meNFblnNYNWU4OuhE5VPSi3FGYWHtVammpd6?= =?us-ascii?q?cx+jggFIutDsHIQYX705Kb2yLuNJxVb2QOJU2WDHHnP9GLUfYPYSa6LcpokzhC?= =?us-ascii?q?Xr+kHdxynSqyvRP3nuI0ZtHf/TcV4Ne6jIB4?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0ClAAARmsxYfzDWVdFdGwEBAQMBAQEJA?= =?us-ascii?q?QEBFwEBBAEBCgEBgkOBRIEKB4Nbig+RW5AThS+CDh8BDIJAgzYCgnoHPxgBAQE?= =?us-ascii?q?BAQEBAQEBARIBAQkLCwgmMYIzIgGCPwEBAQECAQEiHQEbEgsBAwELBgULAwMEA?= =?us-ascii?q?QEBJwMCAiEBAREBBQELAwEFCAYTGolNAQMNCA6mEz+MA4IEBQEcgwkFg10KGSc?= =?us-ascii?q?NVYI0AQEBAQEBAQEBAQEBAQEBAQEBAQEBFQIGEosrglElgUhDCYJQgl8FiSJhk?= =?us-ascii?q?gw6hnmHGIQxgk+BC41RimCET4JcFB+BFQ8QdkYjFggXFUEXhAcqgg9ANQGJOAE?= =?us-ascii?q?BAQ?= X-IPAS-Result: =?us-ascii?q?A0ClAAARmsxYfzDWVdFdGwEBAQMBAQEJAQEBFwEBBAEBCgE?= =?us-ascii?q?BgkOBRIEKB4Nbig+RW5AThS+CDh8BDIJAgzYCgnoHPxgBAQEBAQEBAQEBARIBA?= =?us-ascii?q?QkLCwgmMYIzIgGCPwEBAQECAQEiHQEbEgsBAwELBgULAwMEAQEBJwMCAiEBARE?= =?us-ascii?q?BBQELAwEFCAYTGolNAQMNCA6mEz+MA4IEBQEcgwkFg10KGScNVYI0AQEBAQEBA?= =?us-ascii?q?QEBAQEBAQEBAQEBAQEBFQIGEosrglElgUhDCYJQgl8FiSJhkgw6hnmHGIQxgk+?= =?us-ascii?q?BC41RimCET4JcFB+BFQ8QdkYjFggXFUEXhAcqgg9ANQGJOAEBAQ?= X-IronPort-AV: E=Sophos;i="5.36,178,1486422000"; d="scan'208,217";a="217166734" Received: from mail-it0-f48.google.com ([209.85.214.48]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 18 Mar 2017 03:24:32 +0100 Received: by mail-it0-f48.google.com with SMTP id m27so40938946iti.0 for ; Fri, 17 Mar 2017 19:24:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ZZTbFu4r6P09BrlwdCXp4e48/SRSdEvZPmZWXzFRqzk=; b=VcVOnhjok8ndYgjXKYbNzQkxkoJhApnoKNLF8JINMGGZMo9ktYQCYVHUhA/+yQ6TUd uAX/IMPpJHfVHX4XWqwjwblTFVcUr/yivgLQ/3/E8Bg5xnSQLWgqyry/cDGrTDw268D+ aCj6MOKqW/nwGsdYvyCjM/A8c+Uq1ACjgU65vofHqKoU/N3R3GMiJjOH+iIw1D6sM67g 1F87BVUrd+WEhJi0MkZwhLF5nWaA1Y7lM785CkOoUjiqzsXrUBRJnZDUv/jx9SZYPX+8 b5+hrl2N6jI3fPlFP0F3QUiR+t/900TSXszK3DOYMNMyvcpsm1Z1FgmHi0e8T4HZdqR3 4p1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ZZTbFu4r6P09BrlwdCXp4e48/SRSdEvZPmZWXzFRqzk=; b=HDLZLQQl/NQ1C/i8+IMMkUNIFUXkAjNKZ+FOQV+yltJHg1kMhVuAJ0LP2OP3L8se7b wkV7axEEqdVmLFrJNv+vhzoXUPesaz9iC/6S8WRfU8UH8TJSWndVgt1Uu7eEvopaFEV6 Er1TTvR2O25TTDYY8bsBNGx10hhQpvOiFVht45IkZ8NOnryefVzQ9Mjqxv4n8pMYTVJJ TnVACII3LxH53RvQlQLVVH5G1VqhqVtg0GQAAoRxZzdksJARIsuec+qdlVLiInVaVX7z R8sZicktgtUzn4ZBvB5DpGy0l9d3E7J1a+6k0nmiWR9IfZKa9C/xyuzAfxTO9rWPUtvc PU+g== X-Gm-Message-State: AFeK/H0hujS04kDnYCTVP7DxUze6MvUUN/KzxVCukfJxvAu8l0fk85wjTutKvMvD3D8k7Wob+zm9HoeKd5L1cQ== X-Received: by 10.107.172.134 with SMTP id v128mr20341262ioe.49.1489803871019; Fri, 17 Mar 2017 19:24:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.167.90 with HTTP; Fri, 17 Mar 2017 19:24:30 -0700 (PDT) In-Reply-To: References: <1110622119.7945294.1489651379371.JavaMail.zimbra@edu.univ-fcomte.fr> From: Bikal Gurung Date: Sat, 18 Mar 2017 02:24:30 +0000 Message-ID: To: David Allsopp Cc: David Scott , "paul.lachat@edu.univ-fcomte.fr" , "caml-list@inria.fr" Content-Type: multipart/alternative; boundary=001a1148d5d48468eb054af7fe74 Subject: Re: [Caml-list] [Question] Named pipe on Windows. --001a1148d5d48468eb054af7fe74 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable That sounds promising. I look forward to your patch. :) On Thu, Mar 16, 2017 at 1:54 PM, David Allsopp wrote: > Yes =E2=80=93 I had patched it for MSVC. The results are very good and at= some > point I=E2=80=99ll package it up properly for merging. > > > > Note that the interop is trickier for the mingw ports because the > resulting executables need to be able to call *into* LXSS. There=E2=80=99= s also > some pain with setting environment variables when calling Win32 processes, > which is why I hadn=E2=80=99t got around to finishing it off. > > > > Cygwin will only truly redundant if/when LXSS is available on all > platforms =E2=80=93 it=E2=80=99s only Windows 10 and not Server 2016 (to = say nothing of > older versions of Windows). > > > > > > --dra > > > > *From:* caml-list-request@inria.fr [mailto:caml-list-request@inria.fr] *On > Behalf Of *Bikal Gurung > *Sent:* 16 March 2017 12:09 > *To:* David Scott ; paul.lachat@edu.univ-fcomte.fr > *Cc:* caml-list@inria.fr > *Subject:* Re: [Caml-list] [Question] Named pipe on Windows. > > > > 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 > > --001a1148d5d48468eb054af7fe74 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
That sounds promising. I look forward to your patch. :)

On Thu, M= ar 16, 2017 at 1:54 PM, David Allsopp <dra-news@metastack.com>= wrote:

Yes =E2=80=93 I had patched it for MSVC. The result= s are very good and at some point I=E2=80=99ll package it up properly for m= erging.

=C2=A0

Note that the interop is trickier for the mingw por= ts because the resulting executables need to be able to call into LXSS. There=E2=80=99s also some pain with setting environment v= ariables when calling Win32 processes, which is why I hadn=E2=80=99t got ar= ound to finishing it off.

=C2=A0

Cygwin will only truly redundant if/when LXSS is av= ailable on all platforms =E2=80=93 it=E2=80=99s only Windows 10 and not Ser= ver 2016 (to say nothing of older versions of Windows).

=C2=A0

=C2=A0

--dra

<= span style=3D"font-size:11.0pt;font-family:"Calibri",sans-serif">= =C2=A0

From: = caml-list-r= equest@inria.fr [mailto:caml-list-request@inria.fr] On Behalf Of Bikal Gurung
Sent: 16 March 2017 12:09
To: David Scott <scott.dj@gmail.com>; paul.lachat@edu.univ-fcomte.fr
Cc: caml-lis= t@inria.fr
Subject: Re: [Caml-list] [Question] Named pipe on Windows.=

=C2=A0

With regards to ocaml on windows, has anyone tried u= sing bash on windows and ocaml built using msvc/mingw?=C2=A0<= /p>

Bash on windows now supports calling native windows = binaries from within the bash shell itself.=C2=A0

=C2=A0

=C2=A0

I am guessing this probably makes Cygwin redundant a= s a ocaml build environment.

=C2=A0

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

Hi,

=C2=A0

On Thu, Mar 16, 2017 at 8:02 AM, <paul.lachat@edu.univ-fcomte.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 o= f Windows.

=C2=A0

I have already find this module h= ttps://opam.ocaml.org/packages/named-pipe/, but it use C,
and I would like to avoid depending on another langage than Ocaml or softwa= re like Cygwin.

=C2=A0

Although I'm one of the authors of that particul= ar library I now prefer to use this other library instead:

=C2=A0

=C2=A0

where "Uwt.Pipe" is a Unix domain socket o= n 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 ver= sion number.

=C2=A0

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" e= tc. I usually install OCaml one Windows using this installer:=

=C2=A0

=C2=A0

-- this installs everything you need (including Cygw= in). 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= .

=C2=A0

Hope this helps a little,

=C2=A0

Dave

=C2=A0


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 ti= me I use one.



=C2=A0

--

Dave Scott


--001a1148d5d48468eb054af7fe74--