From mirageos-devel-bounces@lists.xenproject.org Sun Mar 01 11:41:09 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 01 Mar 2015 11:41:09 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YS2F2-0001fd-Mf; Sun, 01 Mar 2015 11:41:00 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YS2F2-0001dW-77
	for mirageos-devel@lists.xenproject.org; Sun, 01 Mar 2015 11:41:00 +0000
Received: from [85.158.137.68] by server-9.bemta-3.messagelabs.com id
	12/7F-02995-BCAF2F45; Sun, 01 Mar 2015 11:40:59 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-2.tower-31.messagelabs.com!1425210058!11954986!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 23765 invoked from network); 1 Mar 2015 11:40:58 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-2.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 1 Mar 2015 11:40:58 -0000
Received: from [192.168.1.69] (cpc7-cmbg14-2-0-cust238.5-4.cable.virginm.net
	[86.30.244.239]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id dff85ff2;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Sun, 1 Mar 2015 11:40:57 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAG-KTt-4Lg75rbszDcJAERA4Mu6asD=0fkacpYn+BotvYqf0hA@mail.gmail.com>
Date: Sun, 1 Mar 2015 11:40:56 +0000
Message-Id: <65272965-FCF5-456A-A2A4-DBDBDA1CF5B4@recoil.org>
References: <CAG-KTt-4Lg75rbszDcJAERA4Mu6asD=0fkacpYn+BotvYqf0hA@mail.gmail.com>
To: Trevor Smith <trevorsummerssmith@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] ocaml-cohttp, async and https
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 28 Feb 2015, at 14:19, Trevor Smith <trevorsummerssmith@gmail.com> wrote:
> 
> Hello,
> 
> I am not sure if this is the right mailing list for this.
> 
> I am looking to use ocaml cohttp with async and https in a production setting. I could not find any examples online that demonstrate this. Could someone please point me to some examples? I am happy to contribute my findings back into the ocaml-cohttp codebase as an example.

Hi Trevor,

The example webserver in cohttp/bin/cohttp_server_async.ml doesn't currently support SSL, but adding support for it is pretty straightforward.  You just need to pass a ~mode argument to the Server.create with something of this type:

  | `OpenSSL of
    [ `Crt_file_path of string ] *
    [ `Key_file_path of string ]
  | `TCP

It currently defaults to TCP, so just extend the command line parsing to add a key/crt option, and the SSL serving should just work.  Patches very welcome, or if you can't do this then feel free to create an issue on https://github.com/mirage/ocaml-cohttp/issues.

cheers,
Anil
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Sun Mar 01 11:41:09 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 01 Mar 2015 11:41:09 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YS2F2-0001fd-Mf; Sun, 01 Mar 2015 11:41:00 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YS2F2-0001dW-77
	for mirageos-devel@lists.xenproject.org; Sun, 01 Mar 2015 11:41:00 +0000
Received: from [85.158.137.68] by server-9.bemta-3.messagelabs.com id
	12/7F-02995-BCAF2F45; Sun, 01 Mar 2015 11:40:59 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-2.tower-31.messagelabs.com!1425210058!11954986!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 23765 invoked from network); 1 Mar 2015 11:40:58 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-2.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 1 Mar 2015 11:40:58 -0000
Received: from [192.168.1.69] (cpc7-cmbg14-2-0-cust238.5-4.cable.virginm.net
	[86.30.244.239]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id dff85ff2;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Sun, 1 Mar 2015 11:40:57 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAG-KTt-4Lg75rbszDcJAERA4Mu6asD=0fkacpYn+BotvYqf0hA@mail.gmail.com>
Date: Sun, 1 Mar 2015 11:40:56 +0000
Message-Id: <65272965-FCF5-456A-A2A4-DBDBDA1CF5B4@recoil.org>
References: <CAG-KTt-4Lg75rbszDcJAERA4Mu6asD=0fkacpYn+BotvYqf0hA@mail.gmail.com>
To: Trevor Smith <trevorsummerssmith@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] ocaml-cohttp, async and https
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 28 Feb 2015, at 14:19, Trevor Smith <trevorsummerssmith@gmail.com> wrote:
> 
> Hello,
> 
> I am not sure if this is the right mailing list for this.
> 
> I am looking to use ocaml cohttp with async and https in a production setting. I could not find any examples online that demonstrate this. Could someone please point me to some examples? I am happy to contribute my findings back into the ocaml-cohttp codebase as an example.

Hi Trevor,

The example webserver in cohttp/bin/cohttp_server_async.ml doesn't currently support SSL, but adding support for it is pretty straightforward.  You just need to pass a ~mode argument to the Server.create with something of this type:

  | `OpenSSL of
    [ `Crt_file_path of string ] *
    [ `Key_file_path of string ]
  | `TCP

It currently defaults to TCP, so just extend the command line parsing to add a key/crt option, and the SSL serving should just work.  Patches very welcome, or if you can't do this then feel free to create an issue on https://github.com/mirage/ocaml-cohttp/issues.

cheers,
Anil
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Sun Mar 01 14:46:57 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 01 Mar 2015 14:46:57 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YS58q-0001yp-En; Sun, 01 Mar 2015 14:46:48 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <trevorsummerssmith@gmail.com>) id 1YS58p-0001yk-D0
	for mirageos-devel@lists.xenproject.org; Sun, 01 Mar 2015 14:46:47 +0000
Received: from [85.158.137.68] by server-9.bemta-3.messagelabs.com id
	FB/C2-02995-65623F45; Sun, 01 Mar 2015 14:46:46 +0000
X-Env-Sender: trevorsummerssmith@gmail.com
X-Msg-Ref: server-6.tower-31.messagelabs.com!1425221204!7540754!1
X-Originating-IP: [209.85.216.179]
X-SpamReason: No, hits=0.1 required=7.0 tests=HTML_50_60,HTML_MESSAGE
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 3600 invoked from network); 1 Mar 2015 14:46:45 -0000
Received: from mail-qc0-f179.google.com (HELO mail-qc0-f179.google.com)
	(209.85.216.179)
	by server-6.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	1 Mar 2015 14:46:45 -0000
Received: by qcxr5 with SMTP id r5so20895430qcx.13
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 01 Mar 2015 06:46:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:from:date:message-id:subject:to:content-type;
	bh=uWEftygWVEBlbI8+YkEwWR4qEUQl6azPuIgKxH+kHj4=;
	b=n5NKJV2vE4w3g/197bCeBxyTED9stxUGfDQZOHUQI8E9CY1EBnxdVHUxXj4pCJm3qM
	V+salstst7DkS4mHZ+g8i01AHBajg1hwSAYnZdDfsxH+Q8GrK7DuqRk99GJQCW7O/9ro
	Nl6+XTwVt/XM15s0H+vh5ZkORw+OS3/zWPogOXDQsSgqCMOmTe6oiK19AwO9NkuPh0Zp
	etNPvScZs+tNPEhcfXd2V5DctmgEn/N4TPDJ9jvi2QIrhiw31X0UC3TZAYcL10TDEiMF
	JmFADn4dgrmMvD/LEcLXyxtqWfUtCdoqvzWWdV54QoyfdDEbDy924x0/Zgz48BTzLbj6
	78kw==
X-Received: by 10.140.96.139 with SMTP id k11mr42246784qge.102.1425221204078; 
	Sun, 01 Mar 2015 06:46:44 -0800 (PST)
MIME-Version: 1.0
From: Trevor Smith <trevorsummerssmith@gmail.com>
Date: Sun, 01 Mar 2015 14:46:43 +0000
Message-ID: <CAG-KTt825+xO4+zxog_MkMdwXoFniPvOBt5xxcoFxfjbF5jgBA@mail.gmail.com>
To: "mirageos-devel@lists.xenproject.org"
	<mirageos-devel@lists.xenproject.org>, 
	Zachary Newman <znewman01@gmail.com>
Subject: [MirageOS-devel] Help us with OCaml Libuv
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============5346655508844905291=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============5346655508844905291==
Content-Type: multipart/alternative; boundary=001a113a5a7c98749d05103b2bc5

--001a113a5a7c98749d05103b2bc5
Content-Type: text/plain; charset=UTF-8

Hello,

A while back on the OCaml mailing list Anil mentioned that it would be
useful to have a "a Ctypes binding to libuv, since that could provide the
basis for an excellent platform-independent I/O library as an alternative
to the Unix".

Zack and I have done the initial legwork required to get this off the
ground.

We are at a point now where we need some user input. We currently have the
file system module working (tested for our unit tests and some basic
example code). We're looking for anyone who would like to try this code on.
Once we get some feedback, and if this work seems useful to the community,
we will implement the rest of the functionality provided by libuv. We had
targeted the initial work towards "framework users" -- that is, fiber,
mirage, async, lwt, so the api is meant to be straightforward.

Libuv homepage: https://github.com/libuv/libuv
Our port: https://github.com/trevorsummerssmith/ocaml-libuv

Please reach out with questions and if you are interested in using this
work.

Thank you.

Trevor

--001a113a5a7c98749d05103b2bc5
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello,<div><br></div><div>A while back on the OCaml mailin=
g list Anil mentioned that it would be useful to have a &quot;<span style=
=3D"font-size:13.1999998092651px;line-height:19.7999992370605px">a Ctypes b=
inding to libuv, since that could provide the basis for an=C2=A0</span><spa=
n style=3D"font-size:13.1999998092651px;line-height:19.7999992370605px">exc=
ellent platform-independent I/O library as an alternative to the Unix&quot;=
.</span></div><div><span style=3D"font-size:13.1999998092651px;line-height:=
19.7999992370605px"><br></span></div><div><span style=3D"line-height:19.799=
9992370605px">Zack and I have done the initial legwork required to get this=
 off the ground.</span></div><div><span style=3D"line-height:19.79999923706=
05px"><br></span></div><div><span style=3D"line-height:19.7999992370605px">=
We are at a point now where we need some user input. We currently have the =
file system module working (tested for our unit tests and some basic exampl=
e code). We&#39;re looking for anyone who would like to try this code on. O=
nce we get some feedback, and if this work seems useful to the community, w=
e will implement the rest of the functionality provided by libuv. We had ta=
rgeted the initial work towards &quot;framework users&quot; -- that is, fib=
er, mirage, async, lwt, so the api is meant to be straightforward.</span></=
div><div><span style=3D"line-height:19.7999992370605px"><br></span></div><d=
iv><span style=3D"line-height:19.7999992370605px">Libuv homepage:=C2=A0<a h=
ref=3D"https://github.com/libuv/libuv">https://github.com/libuv/libuv</a></=
span></div><div><span style=3D"line-height:19.7999992370605px">Our port:=C2=
=A0<a href=3D"https://github.com/trevorsummerssmith/ocaml-libuv">https://gi=
thub.com/trevorsummerssmith/ocaml-libuv</a></span></div><div><span style=3D=
"line-height:19.7999992370605px"><br></span></div><div><span style=3D"line-=
height:19.7999992370605px">Please reach out with questions and if you are i=
nterested in using this work.</span></div><div><span style=3D"line-height:1=
9.7999992370605px"><br></span></div><div><span style=3D"line-height:19.7999=
992370605px">Thank you.</span></div><div><span style=3D"line-height:19.7999=
992370605px"><br>Trevor</span></div></div>

--001a113a5a7c98749d05103b2bc5--


--===============5346655508844905291==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============5346655508844905291==--


From mirageos-devel-bounces@lists.xenproject.org Sun Mar 01 14:46:57 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 01 Mar 2015 14:46:57 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YS58q-0001yp-En; Sun, 01 Mar 2015 14:46:48 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <trevorsummerssmith@gmail.com>) id 1YS58p-0001yk-D0
	for mirageos-devel@lists.xenproject.org; Sun, 01 Mar 2015 14:46:47 +0000
Received: from [85.158.137.68] by server-9.bemta-3.messagelabs.com id
	FB/C2-02995-65623F45; Sun, 01 Mar 2015 14:46:46 +0000
X-Env-Sender: trevorsummerssmith@gmail.com
X-Msg-Ref: server-6.tower-31.messagelabs.com!1425221204!7540754!1
X-Originating-IP: [209.85.216.179]
X-SpamReason: No, hits=0.1 required=7.0 tests=HTML_50_60,HTML_MESSAGE
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 3600 invoked from network); 1 Mar 2015 14:46:45 -0000
Received: from mail-qc0-f179.google.com (HELO mail-qc0-f179.google.com)
	(209.85.216.179)
	by server-6.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	1 Mar 2015 14:46:45 -0000
Received: by qcxr5 with SMTP id r5so20895430qcx.13
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 01 Mar 2015 06:46:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:from:date:message-id:subject:to:content-type;
	bh=uWEftygWVEBlbI8+YkEwWR4qEUQl6azPuIgKxH+kHj4=;
	b=n5NKJV2vE4w3g/197bCeBxyTED9stxUGfDQZOHUQI8E9CY1EBnxdVHUxXj4pCJm3qM
	V+salstst7DkS4mHZ+g8i01AHBajg1hwSAYnZdDfsxH+Q8GrK7DuqRk99GJQCW7O/9ro
	Nl6+XTwVt/XM15s0H+vh5ZkORw+OS3/zWPogOXDQsSgqCMOmTe6oiK19AwO9NkuPh0Zp
	etNPvScZs+tNPEhcfXd2V5DctmgEn/N4TPDJ9jvi2QIrhiw31X0UC3TZAYcL10TDEiMF
	JmFADn4dgrmMvD/LEcLXyxtqWfUtCdoqvzWWdV54QoyfdDEbDy924x0/Zgz48BTzLbj6
	78kw==
X-Received: by 10.140.96.139 with SMTP id k11mr42246784qge.102.1425221204078; 
	Sun, 01 Mar 2015 06:46:44 -0800 (PST)
MIME-Version: 1.0
From: Trevor Smith <trevorsummerssmith@gmail.com>
Date: Sun, 01 Mar 2015 14:46:43 +0000
Message-ID: <CAG-KTt825+xO4+zxog_MkMdwXoFniPvOBt5xxcoFxfjbF5jgBA@mail.gmail.com>
To: "mirageos-devel@lists.xenproject.org"
	<mirageos-devel@lists.xenproject.org>, 
	Zachary Newman <znewman01@gmail.com>
Subject: [MirageOS-devel] Help us with OCaml Libuv
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============5346655508844905291=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============5346655508844905291==
Content-Type: multipart/alternative; boundary=001a113a5a7c98749d05103b2bc5

--001a113a5a7c98749d05103b2bc5
Content-Type: text/plain; charset=UTF-8

Hello,

A while back on the OCaml mailing list Anil mentioned that it would be
useful to have a "a Ctypes binding to libuv, since that could provide the
basis for an excellent platform-independent I/O library as an alternative
to the Unix".

Zack and I have done the initial legwork required to get this off the
ground.

We are at a point now where we need some user input. We currently have the
file system module working (tested for our unit tests and some basic
example code). We're looking for anyone who would like to try this code on.
Once we get some feedback, and if this work seems useful to the community,
we will implement the rest of the functionality provided by libuv. We had
targeted the initial work towards "framework users" -- that is, fiber,
mirage, async, lwt, so the api is meant to be straightforward.

Libuv homepage: https://github.com/libuv/libuv
Our port: https://github.com/trevorsummerssmith/ocaml-libuv

Please reach out with questions and if you are interested in using this
work.

Thank you.

Trevor

--001a113a5a7c98749d05103b2bc5
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello,<div><br></div><div>A while back on the OCaml mailin=
g list Anil mentioned that it would be useful to have a &quot;<span style=
=3D"font-size:13.1999998092651px;line-height:19.7999992370605px">a Ctypes b=
inding to libuv, since that could provide the basis for an=C2=A0</span><spa=
n style=3D"font-size:13.1999998092651px;line-height:19.7999992370605px">exc=
ellent platform-independent I/O library as an alternative to the Unix&quot;=
.</span></div><div><span style=3D"font-size:13.1999998092651px;line-height:=
19.7999992370605px"><br></span></div><div><span style=3D"line-height:19.799=
9992370605px">Zack and I have done the initial legwork required to get this=
 off the ground.</span></div><div><span style=3D"line-height:19.79999923706=
05px"><br></span></div><div><span style=3D"line-height:19.7999992370605px">=
We are at a point now where we need some user input. We currently have the =
file system module working (tested for our unit tests and some basic exampl=
e code). We&#39;re looking for anyone who would like to try this code on. O=
nce we get some feedback, and if this work seems useful to the community, w=
e will implement the rest of the functionality provided by libuv. We had ta=
rgeted the initial work towards &quot;framework users&quot; -- that is, fib=
er, mirage, async, lwt, so the api is meant to be straightforward.</span></=
div><div><span style=3D"line-height:19.7999992370605px"><br></span></div><d=
iv><span style=3D"line-height:19.7999992370605px">Libuv homepage:=C2=A0<a h=
ref=3D"https://github.com/libuv/libuv">https://github.com/libuv/libuv</a></=
span></div><div><span style=3D"line-height:19.7999992370605px">Our port:=C2=
=A0<a href=3D"https://github.com/trevorsummerssmith/ocaml-libuv">https://gi=
thub.com/trevorsummerssmith/ocaml-libuv</a></span></div><div><span style=3D=
"line-height:19.7999992370605px"><br></span></div><div><span style=3D"line-=
height:19.7999992370605px">Please reach out with questions and if you are i=
nterested in using this work.</span></div><div><span style=3D"line-height:1=
9.7999992370605px"><br></span></div><div><span style=3D"line-height:19.7999=
992370605px">Thank you.</span></div><div><span style=3D"line-height:19.7999=
992370605px"><br>Trevor</span></div></div>

--001a113a5a7c98749d05103b2bc5--


--===============5346655508844905291==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============5346655508844905291==--


From mirageos-devel-bounces@lists.xenproject.org Sun Mar 01 18:47:50 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 01 Mar 2015 18:47:50 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YS8u0-0004jH-Po; Sun, 01 Mar 2015 18:47:44 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <trevorsummerssmith@gmail.com>) id 1YS8tz-0004jA-4C
	for mirageos-devel@lists.xenproject.org; Sun, 01 Mar 2015 18:47:43 +0000
Received: from [193.109.254.147] by server-6.bemta-14.messagelabs.com id
	2A/12-03164-ECE53F45; Sun, 01 Mar 2015 18:47:42 +0000
X-Env-Sender: trevorsummerssmith@gmail.com
X-Msg-Ref: server-15.tower-27.messagelabs.com!1425235660!13726994!1
X-Originating-IP: [209.85.192.42]
X-SpamReason: No, hits=0.4 required=7.0 tests=HTML_30_40,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 4316 invoked from network); 1 Mar 2015 18:47:40 -0000
Received: from mail-qg0-f42.google.com (HELO mail-qg0-f42.google.com)
	(209.85.192.42)
	by server-15.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	1 Mar 2015 18:47:40 -0000
Received: by mail-qg0-f42.google.com with SMTP id z60so3120902qgd.1
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 01 Mar 2015 10:47:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=C+duExL0pm5k9IOss3Ds/I6xZ8FEbx65D7EibDN82qI=;
	b=T1P2Mw6U+om13vz8Lgg3HaoGsu1cY/YS1kSMcFC/+0kGHpg0//9ymR3B+R8aGmrpa1
	7AlALORFMlc0mnZH0NMCdXPgAZXgtQ9Wu6NaNUXIb7npj2aRN6/hLsFWEKYJCKVqzgFg
	EGUa8abEVIamm4PFf2w5rva7sh7ih0rbsRDtCvS4CrnJLMIDkRQ6EvqquEWsWgoxIeS1
	oWQyxokP0kRFdvuQ/M9EoTni6xp/6E36DCuGL8m1s+YcM6uA4tLf2CGiq/4LcrRvhUZn
	N7jKz+BMdndEwj4W0+A687xVTJxxZnlQF/vHazhPL19OuzRtPtceYgZQiqzR2XeI9aby
	mafQ==
MIME-Version: 1.0
X-Received: by 10.140.235.65 with SMTP id g62mr46384433qhc.30.1425235659838;
	Sun, 01 Mar 2015 10:47:39 -0800 (PST)
Received: by 10.229.240.68 with HTTP; Sun, 1 Mar 2015 10:47:39 -0800 (PST)
In-Reply-To: <65272965-FCF5-456A-A2A4-DBDBDA1CF5B4@recoil.org>
References: <CAG-KTt-4Lg75rbszDcJAERA4Mu6asD=0fkacpYn+BotvYqf0hA@mail.gmail.com>
	<65272965-FCF5-456A-A2A4-DBDBDA1CF5B4@recoil.org>
Date: Sun, 1 Mar 2015 13:47:39 -0500
Message-ID: <CAG-KTt9kCyD+YgPGrrrsXAk8FT3C8+OqwBwpyyrY1G0iqWjnvQ@mail.gmail.com>
From: Trevor Smith <trevorsummerssmith@gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] ocaml-cohttp, async and https
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============3801342419855165983=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============3801342419855165983==
Content-Type: multipart/alternative; boundary=001a11355fd239f49f05103e891b

--001a11355fd239f49f05103e891b
Content-Type: text/plain; charset=UTF-8

Thanks Anil!

On Sun, Mar 1, 2015 at 6:40 AM, Anil Madhavapeddy <anil@recoil.org> wrote:

> On 28 Feb 2015, at 14:19, Trevor Smith <trevorsummerssmith@gmail.com>
> wrote:
> >
> > Hello,
> >
> > I am not sure if this is the right mailing list for this.
> >
> > I am looking to use ocaml cohttp with async and https in a production
> setting. I could not find any examples online that demonstrate this. Could
> someone please point me to some examples? I am happy to contribute my
> findings back into the ocaml-cohttp codebase as an example.
>
> Hi Trevor,
>
> The example webserver in cohttp/bin/cohttp_server_async.ml doesn't
> currently support SSL, but adding support for it is pretty
> straightforward.  You just need to pass a ~mode argument to the
> Server.create with something of this type:
>
>   | `OpenSSL of
>     [ `Crt_file_path of string ] *
>     [ `Key_file_path of string ]
>   | `TCP
>
> It currently defaults to TCP, so just extend the command line parsing to
> add a key/crt option, and the SSL serving should just work.  Patches very
> welcome, or if you can't do this then feel free to create an issue on
> https://github.com/mirage/ocaml-cohttp/issues.
>
> cheers,
> Anil

--001a11355fd239f49f05103e891b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Thanks Anil!</div><div class=3D"gmail_extra"><br><div clas=
s=3D"gmail_quote">On Sun, Mar 1, 2015 at 6:40 AM, Anil Madhavapeddy <span d=
ir=3D"ltr">&lt;<a href=3D"mailto:anil@recoil.org" target=3D"_blank">anil@re=
coil.org</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span cl=
ass=3D"">On 28 Feb 2015, at 14:19, Trevor Smith &lt;<a href=3D"mailto:trevo=
rsummerssmith@gmail.com">trevorsummerssmith@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hello,<br>
&gt;<br>
&gt; I am not sure if this is the right mailing list for this.<br>
&gt;<br>
&gt; I am looking to use ocaml cohttp with async and https in a production =
setting. I could not find any examples online that demonstrate this. Could =
someone please point me to some examples? I am happy to contribute my findi=
ngs back into the ocaml-cohttp codebase as an example.<br>
<br>
</span>Hi Trevor,<br>
<br>
The example webserver in cohttp/bin/<a href=3D"http://cohttp_server_async.m=
l" target=3D"_blank">cohttp_server_async.ml</a> doesn&#39;t currently suppo=
rt SSL, but adding support for it is pretty straightforward.=C2=A0 You just=
 need to pass a ~mode argument to the Server.create with something of this =
type:<br>
<br>
=C2=A0 | `OpenSSL of<br>
=C2=A0 =C2=A0 [ `Crt_file_path of string ] *<br>
=C2=A0 =C2=A0 [ `Key_file_path of string ]<br>
=C2=A0 | `TCP<br>
<br>
It currently defaults to TCP, so just extend the command line parsing to ad=
d a key/crt option, and the SSL serving should just work.=C2=A0 Patches ver=
y welcome, or if you can&#39;t do this then feel free to create an issue on=
 <a href=3D"https://github.com/mirage/ocaml-cohttp/issues" target=3D"_blank=
">https://github.com/mirage/ocaml-cohttp/issues</a>.<br>
<br>
cheers,<br>
Anil</blockquote></div><br></div>

--001a11355fd239f49f05103e891b--


--===============3801342419855165983==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============3801342419855165983==--


From mirageos-devel-bounces@lists.xenproject.org Sun Mar 01 18:47:50 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 01 Mar 2015 18:47:50 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YS8u0-0004jH-Po; Sun, 01 Mar 2015 18:47:44 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <trevorsummerssmith@gmail.com>) id 1YS8tz-0004jA-4C
	for mirageos-devel@lists.xenproject.org; Sun, 01 Mar 2015 18:47:43 +0000
Received: from [193.109.254.147] by server-6.bemta-14.messagelabs.com id
	2A/12-03164-ECE53F45; Sun, 01 Mar 2015 18:47:42 +0000
X-Env-Sender: trevorsummerssmith@gmail.com
X-Msg-Ref: server-15.tower-27.messagelabs.com!1425235660!13726994!1
X-Originating-IP: [209.85.192.42]
X-SpamReason: No, hits=0.4 required=7.0 tests=HTML_30_40,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 4316 invoked from network); 1 Mar 2015 18:47:40 -0000
Received: from mail-qg0-f42.google.com (HELO mail-qg0-f42.google.com)
	(209.85.192.42)
	by server-15.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	1 Mar 2015 18:47:40 -0000
Received: by mail-qg0-f42.google.com with SMTP id z60so3120902qgd.1
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 01 Mar 2015 10:47:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=C+duExL0pm5k9IOss3Ds/I6xZ8FEbx65D7EibDN82qI=;
	b=T1P2Mw6U+om13vz8Lgg3HaoGsu1cY/YS1kSMcFC/+0kGHpg0//9ymR3B+R8aGmrpa1
	7AlALORFMlc0mnZH0NMCdXPgAZXgtQ9Wu6NaNUXIb7npj2aRN6/hLsFWEKYJCKVqzgFg
	EGUa8abEVIamm4PFf2w5rva7sh7ih0rbsRDtCvS4CrnJLMIDkRQ6EvqquEWsWgoxIeS1
	oWQyxokP0kRFdvuQ/M9EoTni6xp/6E36DCuGL8m1s+YcM6uA4tLf2CGiq/4LcrRvhUZn
	N7jKz+BMdndEwj4W0+A687xVTJxxZnlQF/vHazhPL19OuzRtPtceYgZQiqzR2XeI9aby
	mafQ==
MIME-Version: 1.0
X-Received: by 10.140.235.65 with SMTP id g62mr46384433qhc.30.1425235659838;
	Sun, 01 Mar 2015 10:47:39 -0800 (PST)
Received: by 10.229.240.68 with HTTP; Sun, 1 Mar 2015 10:47:39 -0800 (PST)
In-Reply-To: <65272965-FCF5-456A-A2A4-DBDBDA1CF5B4@recoil.org>
References: <CAG-KTt-4Lg75rbszDcJAERA4Mu6asD=0fkacpYn+BotvYqf0hA@mail.gmail.com>
	<65272965-FCF5-456A-A2A4-DBDBDA1CF5B4@recoil.org>
Date: Sun, 1 Mar 2015 13:47:39 -0500
Message-ID: <CAG-KTt9kCyD+YgPGrrrsXAk8FT3C8+OqwBwpyyrY1G0iqWjnvQ@mail.gmail.com>
From: Trevor Smith <trevorsummerssmith@gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] ocaml-cohttp, async and https
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============3801342419855165983=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============3801342419855165983==
Content-Type: multipart/alternative; boundary=001a11355fd239f49f05103e891b

--001a11355fd239f49f05103e891b
Content-Type: text/plain; charset=UTF-8

Thanks Anil!

On Sun, Mar 1, 2015 at 6:40 AM, Anil Madhavapeddy <anil@recoil.org> wrote:

> On 28 Feb 2015, at 14:19, Trevor Smith <trevorsummerssmith@gmail.com>
> wrote:
> >
> > Hello,
> >
> > I am not sure if this is the right mailing list for this.
> >
> > I am looking to use ocaml cohttp with async and https in a production
> setting. I could not find any examples online that demonstrate this. Could
> someone please point me to some examples? I am happy to contribute my
> findings back into the ocaml-cohttp codebase as an example.
>
> Hi Trevor,
>
> The example webserver in cohttp/bin/cohttp_server_async.ml doesn't
> currently support SSL, but adding support for it is pretty
> straightforward.  You just need to pass a ~mode argument to the
> Server.create with something of this type:
>
>   | `OpenSSL of
>     [ `Crt_file_path of string ] *
>     [ `Key_file_path of string ]
>   | `TCP
>
> It currently defaults to TCP, so just extend the command line parsing to
> add a key/crt option, and the SSL serving should just work.  Patches very
> welcome, or if you can't do this then feel free to create an issue on
> https://github.com/mirage/ocaml-cohttp/issues.
>
> cheers,
> Anil

--001a11355fd239f49f05103e891b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Thanks Anil!</div><div class=3D"gmail_extra"><br><div clas=
s=3D"gmail_quote">On Sun, Mar 1, 2015 at 6:40 AM, Anil Madhavapeddy <span d=
ir=3D"ltr">&lt;<a href=3D"mailto:anil@recoil.org" target=3D"_blank">anil@re=
coil.org</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span cl=
ass=3D"">On 28 Feb 2015, at 14:19, Trevor Smith &lt;<a href=3D"mailto:trevo=
rsummerssmith@gmail.com">trevorsummerssmith@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hello,<br>
&gt;<br>
&gt; I am not sure if this is the right mailing list for this.<br>
&gt;<br>
&gt; I am looking to use ocaml cohttp with async and https in a production =
setting. I could not find any examples online that demonstrate this. Could =
someone please point me to some examples? I am happy to contribute my findi=
ngs back into the ocaml-cohttp codebase as an example.<br>
<br>
</span>Hi Trevor,<br>
<br>
The example webserver in cohttp/bin/<a href=3D"http://cohttp_server_async.m=
l" target=3D"_blank">cohttp_server_async.ml</a> doesn&#39;t currently suppo=
rt SSL, but adding support for it is pretty straightforward.=C2=A0 You just=
 need to pass a ~mode argument to the Server.create with something of this =
type:<br>
<br>
=C2=A0 | `OpenSSL of<br>
=C2=A0 =C2=A0 [ `Crt_file_path of string ] *<br>
=C2=A0 =C2=A0 [ `Key_file_path of string ]<br>
=C2=A0 | `TCP<br>
<br>
It currently defaults to TCP, so just extend the command line parsing to ad=
d a key/crt option, and the SSL serving should just work.=C2=A0 Patches ver=
y welcome, or if you can&#39;t do this then feel free to create an issue on=
 <a href=3D"https://github.com/mirage/ocaml-cohttp/issues" target=3D"_blank=
">https://github.com/mirage/ocaml-cohttp/issues</a>.<br>
<br>
cheers,<br>
Anil</blockquote></div><br></div>

--001a11355fd239f49f05103e891b--


--===============3801342419855165983==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============3801342419855165983==--


From mirageos-devel-bounces@lists.xenproject.org Mon Mar 02 02:07:24 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 02 Mar 2015 02:07:24 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YSFlP-0004sZ-0d; Mon, 02 Mar 2015 02:07:19 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <daniel.buenzli@erratique.ch>) id 1YSFlN-0004sU-MR
	for mirageos-devel@lists.xenproject.org; Mon, 02 Mar 2015 02:07:17 +0000
Received: from [193.109.254.147] by server-7.bemta-14.messagelabs.com id
	EF/88-03172-4D5C3F45; Mon, 02 Mar 2015 02:07:16 +0000
X-Env-Sender: daniel.buenzli@erratique.ch
X-Msg-Ref: server-3.tower-27.messagelabs.com!1425262035!13677790!1
X-Originating-IP: [74.55.86.74]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNzQuNTUuODYuNzQgPT4gMzA4NTYz\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 22888 invoked from network); 2 Mar 2015 02:07:16 -0000
Received: from mail6.webfaction.com (HELO smtp.webfaction.com) (74.55.86.74)
	by server-3.tower-27.messagelabs.com with SMTP;
	2 Mar 2015 02:07:16 -0000
Received: from [172.20.10.2]
	(254.235.197.178.dynamic.wless.lssmb00p-cgnat.res.cust.swisscom.ch
	[178.197.235.254])
	by smtp.webfaction.com (Postfix) with ESMTP id D012A20D6BA3
	for <mirageos-devel@lists.xenproject.org>;
	Mon,  2 Mar 2015 02:07:14 +0000 (UTC)
Date: Mon, 2 Mar 2015 03:07:11 +0100
From: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
To: "mirageos-devel@lists.xenproject.org"
Message-ID: <2A0347CF598A4081B45318903375F7A9@erratique.ch>
In-Reply-To: <87lhk4csew.fsf@study.localdomain>
References: <CAG4opy9mf+NEhYAs-tj0JYNocVS0dGU9oxqam+hqFK5ZJq7VLg@mail.gmail.com>
	<20150202.014549.1883720051237442569.Christophe.Troestler@umons.ac.be>
	<CAG4opy9X-rg5qY+Yu0c-OJ8NumJSAPMVLr01xoHt99y9_i==8w@mail.gmail.com>
	<20150204.001614.26478837567139584.Christophe.Troestler@umons.ac.be>
	<CAG4opy8uTBQS4cM75dYEm=Jsa3078wMPNW+BQEHNsu7Mb4OJ8Q@mail.gmail.com>
	<87oap97rvw.fsf@study.localdomain>
	<CAG4opy9e5iq7rMPrSDzqiPbJZeJe8Wctg0trc1CbFZJG8ARNqw@mail.gmail.com>
	<87lhk4csew.fsf@study.localdomain>
X-Mailer: sparrow 1.6.4 (build 1178)
MIME-Version: 1.0
Content-Disposition: inline
Subject: Re: [MirageOS-devel] Error handling in Mirage - request for
 comments!
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Since I have been devising error handling combinators initially for assemblage and that I'm now using them in other projects, it seems in the end that having a basic result package maybe useful. I have devised one here:  

http://erratique.ch/software/result

Comments on the interface are welcome (use the github bt). Example of use can be seen here [1]. One thing that may change is that the type Result.result will maybe switch to a regular variant.

Best,

Daniel

[1] https://github.com/dbuenzli/bos/blob/97ae720554cba69d77005365f2a619db82f9670d/src/bos_os.ml



_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Mon Mar 02 02:07:24 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 02 Mar 2015 02:07:24 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YSFlP-0004sZ-0d; Mon, 02 Mar 2015 02:07:19 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <daniel.buenzli@erratique.ch>) id 1YSFlN-0004sU-MR
	for mirageos-devel@lists.xenproject.org; Mon, 02 Mar 2015 02:07:17 +0000
Received: from [193.109.254.147] by server-7.bemta-14.messagelabs.com id
	EF/88-03172-4D5C3F45; Mon, 02 Mar 2015 02:07:16 +0000
X-Env-Sender: daniel.buenzli@erratique.ch
X-Msg-Ref: server-3.tower-27.messagelabs.com!1425262035!13677790!1
X-Originating-IP: [74.55.86.74]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNzQuNTUuODYuNzQgPT4gMzA4NTYz\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 22888 invoked from network); 2 Mar 2015 02:07:16 -0000
Received: from mail6.webfaction.com (HELO smtp.webfaction.com) (74.55.86.74)
	by server-3.tower-27.messagelabs.com with SMTP;
	2 Mar 2015 02:07:16 -0000
Received: from [172.20.10.2]
	(254.235.197.178.dynamic.wless.lssmb00p-cgnat.res.cust.swisscom.ch
	[178.197.235.254])
	by smtp.webfaction.com (Postfix) with ESMTP id D012A20D6BA3
	for <mirageos-devel@lists.xenproject.org>;
	Mon,  2 Mar 2015 02:07:14 +0000 (UTC)
Date: Mon, 2 Mar 2015 03:07:11 +0100
From: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
To: "mirageos-devel@lists.xenproject.org"
Message-ID: <2A0347CF598A4081B45318903375F7A9@erratique.ch>
In-Reply-To: <87lhk4csew.fsf@study.localdomain>
References: <CAG4opy9mf+NEhYAs-tj0JYNocVS0dGU9oxqam+hqFK5ZJq7VLg@mail.gmail.com>
	<20150202.014549.1883720051237442569.Christophe.Troestler@umons.ac.be>
	<CAG4opy9X-rg5qY+Yu0c-OJ8NumJSAPMVLr01xoHt99y9_i==8w@mail.gmail.com>
	<20150204.001614.26478837567139584.Christophe.Troestler@umons.ac.be>
	<CAG4opy8uTBQS4cM75dYEm=Jsa3078wMPNW+BQEHNsu7Mb4OJ8Q@mail.gmail.com>
	<87oap97rvw.fsf@study.localdomain>
	<CAG4opy9e5iq7rMPrSDzqiPbJZeJe8Wctg0trc1CbFZJG8ARNqw@mail.gmail.com>
	<87lhk4csew.fsf@study.localdomain>
X-Mailer: sparrow 1.6.4 (build 1178)
MIME-Version: 1.0
Content-Disposition: inline
Subject: Re: [MirageOS-devel] Error handling in Mirage - request for
 comments!
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Since I have been devising error handling combinators initially for assemblage and that I'm now using them in other projects, it seems in the end that having a basic result package maybe useful. I have devised one here:  

http://erratique.ch/software/result

Comments on the interface are welcome (use the github bt). Example of use can be seen here [1]. One thing that may change is that the type Result.result will maybe switch to a regular variant.

Best,

Daniel

[1] https://github.com/dbuenzli/bos/blob/97ae720554cba69d77005365f2a619db82f9670d/src/bos_os.ml



_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 03 15:06:15 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 03 Mar 2015 15:06:15 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YSoOf-0003Iv-Iy; Tue, 03 Mar 2015 15:06:09 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <daniel.buenzli@erratique.ch>) id 1YSoOe-0003Iq-Ft
	for mirageos-devel@lists.xenproject.org; Tue, 03 Mar 2015 15:06:08 +0000
Received: from [193.109.254.147] by server-5.bemta-14.messagelabs.com id
	91/ED-03170-FDDC5F45; Tue, 03 Mar 2015 15:06:07 +0000
X-Env-Sender: daniel.buenzli@erratique.ch
X-Msg-Ref: server-14.tower-27.messagelabs.com!1425395166!14317546!1
X-Originating-IP: [74.55.86.74]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNzQuNTUuODYuNzQgPT4gMzA4NTYz\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 5252 invoked from network); 3 Mar 2015 15:06:06 -0000
Received: from mail6.webfaction.com (HELO smtp.webfaction.com) (74.55.86.74)
	by server-14.tower-27.messagelabs.com with SMTP;
	3 Mar 2015 15:06:06 -0000
Received: from [172.20.10.2]
	(102.234.197.178.dynamic.wless.lssmb00p-cgnat.res.cust.swisscom.ch
	[178.197.234.102])
	by smtp.webfaction.com (Postfix) with ESMTP id 8682E20D11F7
	for <mirageos-devel@lists.xenproject.org>;
	Tue,  3 Mar 2015 15:06:05 +0000 (UTC)
Date: Tue, 3 Mar 2015 16:06:01 +0100
From: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Message-ID: <A63173B0742143F7811BC5457D3E3DD3@erratique.ch>
In-Reply-To: <2A0347CF598A4081B45318903375F7A9@erratique.ch>
References: <CAG4opy9mf+NEhYAs-tj0JYNocVS0dGU9oxqam+hqFK5ZJq7VLg@mail.gmail.com>
	<20150202.014549.1883720051237442569.Christophe.Troestler@umons.ac.be>
	<CAG4opy9X-rg5qY+Yu0c-OJ8NumJSAPMVLr01xoHt99y9_i==8w@mail.gmail.com>
	<20150204.001614.26478837567139584.Christophe.Troestler@umons.ac.be>
	<CAG4opy8uTBQS4cM75dYEm=Jsa3078wMPNW+BQEHNsu7Mb4OJ8Q@mail.gmail.com>
	<87oap97rvw.fsf@study.localdomain>
	<CAG4opy9e5iq7rMPrSDzqiPbJZeJe8Wctg0trc1CbFZJG8ARNqw@mail.gmail.com>
	<87lhk4csew.fsf@study.localdomain>
	<2A0347CF598A4081B45318903375F7A9@erratique.ch>
X-Mailer: sparrow 1.6.4 (build 1178)
MIME-Version: 1.0
Content-Disposition: inline
Subject: Re: [MirageOS-devel] Error handling in Mirage - request for
 comments!
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

TGUgbHVuZGksIDIgbWFycyAyMDE1IMOgIDAzOjA3LCBEYW5pZWwgQsO8bnpsaSBhIMOpY3JpdCA6
Cj4gT25lIHRoaW5nIHRoYXQgbWF5IGNoYW5nZSBpcyB0aGF0IHRoZSB0eXBlIFJlc3VsdC5yZXN1
bHQgd2lsbCBtYXliZSBzd2l0Y2ggdG8gYSByZWd1bGFyIHZhcmlhbnQuCgpUaGlzIGhhcyBub3cg
YmVlbiBkb25lIHNpbmNlIGl0IHNlZW1zIHBsYXVzaWJsZSB3ZSdsbCBnZXQgc3VjaCBhIHJlc3Vs
dCB0eXBlIGluIHBlcnZhc2l2ZXMgaW4gdGhlIGZ1dHVyZSAoY29udmVyc2lvbiBmdW5jdGlvbnMg
dG8gcG9seXZhciByZXN1bHRzIGFyZSBwcm92aWRlZCkuICAKCkFuZCB0aGUgcGFja2FnZSBpcyBu
b3cgbmFtZWQgcmVzdWx0diB0byBhdm9pZCBzcXVhdHRpbmcgYSBwb3NzaWJseSBjb3ZldGVkIHRv
cGxldmVsIG5hbWUuICAKCmh0dHA6Ly9lcnJhdGlxdWUuY2gvc29mdHdhcmUvcmVzdWx0dgoKQmVz
dCwKCkRhbmllbAoKCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fXwpNaXJhZ2VPUy1kZXZlbCBtYWlsaW5nIGxpc3QKTWlyYWdlT1MtZGV2ZWxAbGlzdHMueGVu
cHJvamVjdC5vcmcKaHR0cDovL2xpc3RzLnhlbnByb2plY3Qub3JnL2NnaS1iaW4vbWFpbG1hbi9s
aXN0aW5mby9taXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 03 15:06:15 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 03 Mar 2015 15:06:15 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YSoOf-0003Iv-Iy; Tue, 03 Mar 2015 15:06:09 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <daniel.buenzli@erratique.ch>) id 1YSoOe-0003Iq-Ft
	for mirageos-devel@lists.xenproject.org; Tue, 03 Mar 2015 15:06:08 +0000
Received: from [193.109.254.147] by server-5.bemta-14.messagelabs.com id
	91/ED-03170-FDDC5F45; Tue, 03 Mar 2015 15:06:07 +0000
X-Env-Sender: daniel.buenzli@erratique.ch
X-Msg-Ref: server-14.tower-27.messagelabs.com!1425395166!14317546!1
X-Originating-IP: [74.55.86.74]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNzQuNTUuODYuNzQgPT4gMzA4NTYz\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 5252 invoked from network); 3 Mar 2015 15:06:06 -0000
Received: from mail6.webfaction.com (HELO smtp.webfaction.com) (74.55.86.74)
	by server-14.tower-27.messagelabs.com with SMTP;
	3 Mar 2015 15:06:06 -0000
Received: from [172.20.10.2]
	(102.234.197.178.dynamic.wless.lssmb00p-cgnat.res.cust.swisscom.ch
	[178.197.234.102])
	by smtp.webfaction.com (Postfix) with ESMTP id 8682E20D11F7
	for <mirageos-devel@lists.xenproject.org>;
	Tue,  3 Mar 2015 15:06:05 +0000 (UTC)
Date: Tue, 3 Mar 2015 16:06:01 +0100
From: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Message-ID: <A63173B0742143F7811BC5457D3E3DD3@erratique.ch>
In-Reply-To: <2A0347CF598A4081B45318903375F7A9@erratique.ch>
References: <CAG4opy9mf+NEhYAs-tj0JYNocVS0dGU9oxqam+hqFK5ZJq7VLg@mail.gmail.com>
	<20150202.014549.1883720051237442569.Christophe.Troestler@umons.ac.be>
	<CAG4opy9X-rg5qY+Yu0c-OJ8NumJSAPMVLr01xoHt99y9_i==8w@mail.gmail.com>
	<20150204.001614.26478837567139584.Christophe.Troestler@umons.ac.be>
	<CAG4opy8uTBQS4cM75dYEm=Jsa3078wMPNW+BQEHNsu7Mb4OJ8Q@mail.gmail.com>
	<87oap97rvw.fsf@study.localdomain>
	<CAG4opy9e5iq7rMPrSDzqiPbJZeJe8Wctg0trc1CbFZJG8ARNqw@mail.gmail.com>
	<87lhk4csew.fsf@study.localdomain>
	<2A0347CF598A4081B45318903375F7A9@erratique.ch>
X-Mailer: sparrow 1.6.4 (build 1178)
MIME-Version: 1.0
Content-Disposition: inline
Subject: Re: [MirageOS-devel] Error handling in Mirage - request for
 comments!
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

TGUgbHVuZGksIDIgbWFycyAyMDE1IMOgIDAzOjA3LCBEYW5pZWwgQsO8bnpsaSBhIMOpY3JpdCA6
Cj4gT25lIHRoaW5nIHRoYXQgbWF5IGNoYW5nZSBpcyB0aGF0IHRoZSB0eXBlIFJlc3VsdC5yZXN1
bHQgd2lsbCBtYXliZSBzd2l0Y2ggdG8gYSByZWd1bGFyIHZhcmlhbnQuCgpUaGlzIGhhcyBub3cg
YmVlbiBkb25lIHNpbmNlIGl0IHNlZW1zIHBsYXVzaWJsZSB3ZSdsbCBnZXQgc3VjaCBhIHJlc3Vs
dCB0eXBlIGluIHBlcnZhc2l2ZXMgaW4gdGhlIGZ1dHVyZSAoY29udmVyc2lvbiBmdW5jdGlvbnMg
dG8gcG9seXZhciByZXN1bHRzIGFyZSBwcm92aWRlZCkuICAKCkFuZCB0aGUgcGFja2FnZSBpcyBu
b3cgbmFtZWQgcmVzdWx0diB0byBhdm9pZCBzcXVhdHRpbmcgYSBwb3NzaWJseSBjb3ZldGVkIHRv
cGxldmVsIG5hbWUuICAKCmh0dHA6Ly9lcnJhdGlxdWUuY2gvc29mdHdhcmUvcmVzdWx0dgoKQmVz
dCwKCkRhbmllbAoKCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fXwpNaXJhZ2VPUy1kZXZlbCBtYWlsaW5nIGxpc3QKTWlyYWdlT1MtZGV2ZWxAbGlzdHMueGVu
cHJvamVjdC5vcmcKaHR0cDovL2xpc3RzLnhlbnByb2plY3Qub3JnL2NnaS1iaW4vbWFpbG1hbi9s
aXN0aW5mby9taXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 03 22:32:04 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 03 Mar 2015 22:32:04 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YSvM5-00076Q-Na; Tue, 03 Mar 2015 22:31:57 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <agarwal1975@gmail.com>) id 1YSvM3-00075c-M0
	for MirageOS-devel@lists.xenproject.org; Tue, 03 Mar 2015 22:31:56 +0000
Received: from [193.109.254.147] by server-1.bemta-14.messagelabs.com id
	0B/C0-02601-A5636F45; Tue, 03 Mar 2015 22:31:54 +0000
X-Env-Sender: agarwal1975@gmail.com
X-Msg-Ref: server-6.tower-27.messagelabs.com!1425421913!14393955!1
X-Originating-IP: [209.85.212.171]
X-SpamReason: No, hits=0.9 required=7.0 tests=HTML_40_50,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 339 invoked from network); 3 Mar 2015 22:31:53 -0000
Received: from mail-wi0-f171.google.com (HELO mail-wi0-f171.google.com)
	(209.85.212.171)
	by server-6.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	3 Mar 2015 22:31:53 -0000
Received: by wivz2 with SMTP id z2so7112009wiv.0
	for <MirageOS-devel@lists.xenproject.org>;
	Tue, 03 Mar 2015 14:31:53 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type;
	bh=228Cmi9utldMpumosytj9ibtz4TZSf7ccDzuUsUmU8w=;
	b=SECwm9CNeWVOs0wYgmgESslv2MWGqeCHZr6yB//HmFDIT2rDvpJVmT+hAKQceF1y8W
	NE24BxmKg1zw4kFnKypBC/BVSxnnQAIO/HolKLPXjD/35w3qQh0JXTDciCtbgvGCL/5M
	ZYLD0GqNHw5iGcfk25FDJAbkUM5rdiQmpWa6N8ALl2cvJXMGupqb6lhTqB5uGMfR/VkN
	czrJqDH5AGUGiS/cP0Nd24GR1OE5QkB45WTzhb0r3QiR8EYuJe9pxvn1pN66oBBLMmL5
	0d05Bf2jpTyGRiBhmPn/vzVhdOVY2nTiG9X5LWkhIMShoPEGds831rSZgtlRMxW1/R94
	vaww==
X-Received: by 10.180.97.106 with SMTP id dz10mr6838872wib.33.1425421913270;
	Tue, 03 Mar 2015 14:31:53 -0800 (PST)
MIME-Version: 1.0
Received: by 10.27.15.72 with HTTP; Tue, 3 Mar 2015 14:31:33 -0800 (PST)
In-Reply-To: <CAFzWkZFQrQOZQSO_0UZoxrsr2zFPE+6XFq5Vv6wGr7iJ-ARkWA@mail.gmail.com>
References: <CAFzWkZGq54ogqtweyNNnVSR89K41pEuGkUPF+i3Y2brneHN9YQ@mail.gmail.com>
	<073A0B5C-531B-4B7B-ABA3-1D8A0EC4C4BA@recoil.org>
	<CAFzWkZFQrQOZQSO_0UZoxrsr2zFPE+6XFq5Vv6wGr7iJ-ARkWA@mail.gmail.com>
From: Ashish Agarwal <agarwal1975@gmail.com>
Date: Tue, 3 Mar 2015 17:31:33 -0500
Message-ID: <CAMu2m2KTSbcVn=DM3mMNYNNcYDJE-=P8gCYbKieAOfi2ifgiJw@mail.gmail.com>
To: Anand Patil <anand.prabhakar.patil@gmail.com>
Cc: Thomas Gazagnaire <thomas@gazagnaire.org>,
	"mirageos-devel@lists.xenproject.org"
	<MirageOS-devel@lists.xenproject.org>, Anil Madhavapeddy <anil@recoil.org>
Subject: Re: [MirageOS-devel] COW XML questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============3788926253680919216=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============3788926253680919216==
Content-Type: multipart/alternative; boundary=f46d0442712ecbb35b051069e699

--f46d0442712ecbb35b051069e699
Content-Type: text/plain; charset=UTF-8

Hi Anand. Any progress on this? Is your repo public? Thanks.


On Tue, Jan 6, 2015 at 1:32 PM, Anand Patil <anand.prabhakar.patil@gmail.com
> wrote:

> Hi Anil and Thomas, thanks for the pointers. I'll keep plugging away
> at this and will let you know how I get on.
>
> Anand
>
> On Tue, Jan 6, 2015 at 7:43 AM, Anil Madhavapeddy <anil@recoil.org> wrote:
> > On 5 Jan 2015, at 05:56, Anand Patil <anand.prabhakar.patil@gmail.com>
> wrote:
> >
> >> In order to learn OCaml and thence Mirage, I've been working a little
> >> bit on an automatically generated, complete AWS client along the lines
> >> of https://github.com/stripe/aws-go using camlp4. I've got the types
> >> generated, and now need to generate to/from XML functions for each
> >> record type.
> >>
> >
> > Incidentally, this would be awesomely useful to have.  You might also
> > want to look at Jyotsna Prakash's (manually written) bindings for
> > helper functions that might come in useful:
> >
> > https://github.com/moonlightdrive/ocaml-ec2
> >
> > Feel free to ask here if you run into any blockers.
> >
> > -anil
> >
>
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>

--f46d0442712ecbb35b051069e699
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi Anand. Any progress on this? Is your repo public? Thank=
s.<div><br></div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_q=
uote">On Tue, Jan 6, 2015 at 1:32 PM, Anand Patil <span dir=3D"ltr">&lt;<a =
href=3D"mailto:anand.prabhakar.patil@gmail.com" target=3D"_blank">anand.pra=
bhakar.patil@gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_=
quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1=
ex">Hi Anil and Thomas, thanks for the pointers. I&#39;ll keep plugging awa=
y<br>
at this and will let you know how I get on.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
Anand<br>
</font></span><div class=3D"HOEnZb"><div class=3D"h5"><br>
On Tue, Jan 6, 2015 at 7:43 AM, Anil Madhavapeddy &lt;<a href=3D"mailto:ani=
l@recoil.org">anil@recoil.org</a>&gt; wrote:<br>
&gt; On 5 Jan 2015, at 05:56, Anand Patil &lt;<a href=3D"mailto:anand.prabh=
akar.patil@gmail.com">anand.prabhakar.patil@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; In order to learn OCaml and thence Mirage, I&#39;ve been working a=
 little<br>
&gt;&gt; bit on an automatically generated, complete AWS client along the l=
ines<br>
&gt;&gt; of <a href=3D"https://github.com/stripe/aws-go" target=3D"_blank">=
https://github.com/stripe/aws-go</a> using camlp4. I&#39;ve got the types<b=
r>
&gt;&gt; generated, and now need to generate to/from XML functions for each=
<br>
&gt;&gt; record type.<br>
&gt;&gt;<br>
&gt;<br>
&gt; Incidentally, this would be awesomely useful to have.=C2=A0 You might =
also<br>
&gt; want to look at Jyotsna Prakash&#39;s (manually written) bindings for<=
br>
&gt; helper functions that might come in useful:<br>
&gt;<br>
&gt; <a href=3D"https://github.com/moonlightdrive/ocaml-ec2" target=3D"_bla=
nk">https://github.com/moonlightdrive/ocaml-ec2</a><br>
&gt;<br>
&gt; Feel free to ask here if you run into any blockers.<br>
&gt;<br>
&gt; -anil<br>
&gt;<br>
<br>
_______________________________________________<br>
MirageOS-devel mailing list<br>
<a href=3D"mailto:MirageOS-devel@lists.xenproject.org">MirageOS-devel@lists=
.xenproject.org</a><br>
<a href=3D"http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-de=
vel" target=3D"_blank">http://lists.xenproject.org/cgi-bin/mailman/listinfo=
/mirageos-devel</a><br>
</div></div></blockquote></div><br></div>

--f46d0442712ecbb35b051069e699--


--===============3788926253680919216==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============3788926253680919216==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 03 22:32:04 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 03 Mar 2015 22:32:04 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YSvM5-00076Q-Na; Tue, 03 Mar 2015 22:31:57 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <agarwal1975@gmail.com>) id 1YSvM3-00075c-M0
	for MirageOS-devel@lists.xenproject.org; Tue, 03 Mar 2015 22:31:56 +0000
Received: from [193.109.254.147] by server-1.bemta-14.messagelabs.com id
	0B/C0-02601-A5636F45; Tue, 03 Mar 2015 22:31:54 +0000
X-Env-Sender: agarwal1975@gmail.com
X-Msg-Ref: server-6.tower-27.messagelabs.com!1425421913!14393955!1
X-Originating-IP: [209.85.212.171]
X-SpamReason: No, hits=0.9 required=7.0 tests=HTML_40_50,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 339 invoked from network); 3 Mar 2015 22:31:53 -0000
Received: from mail-wi0-f171.google.com (HELO mail-wi0-f171.google.com)
	(209.85.212.171)
	by server-6.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	3 Mar 2015 22:31:53 -0000
Received: by wivz2 with SMTP id z2so7112009wiv.0
	for <MirageOS-devel@lists.xenproject.org>;
	Tue, 03 Mar 2015 14:31:53 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type;
	bh=228Cmi9utldMpumosytj9ibtz4TZSf7ccDzuUsUmU8w=;
	b=SECwm9CNeWVOs0wYgmgESslv2MWGqeCHZr6yB//HmFDIT2rDvpJVmT+hAKQceF1y8W
	NE24BxmKg1zw4kFnKypBC/BVSxnnQAIO/HolKLPXjD/35w3qQh0JXTDciCtbgvGCL/5M
	ZYLD0GqNHw5iGcfk25FDJAbkUM5rdiQmpWa6N8ALl2cvJXMGupqb6lhTqB5uGMfR/VkN
	czrJqDH5AGUGiS/cP0Nd24GR1OE5QkB45WTzhb0r3QiR8EYuJe9pxvn1pN66oBBLMmL5
	0d05Bf2jpTyGRiBhmPn/vzVhdOVY2nTiG9X5LWkhIMShoPEGds831rSZgtlRMxW1/R94
	vaww==
X-Received: by 10.180.97.106 with SMTP id dz10mr6838872wib.33.1425421913270;
	Tue, 03 Mar 2015 14:31:53 -0800 (PST)
MIME-Version: 1.0
Received: by 10.27.15.72 with HTTP; Tue, 3 Mar 2015 14:31:33 -0800 (PST)
In-Reply-To: <CAFzWkZFQrQOZQSO_0UZoxrsr2zFPE+6XFq5Vv6wGr7iJ-ARkWA@mail.gmail.com>
References: <CAFzWkZGq54ogqtweyNNnVSR89K41pEuGkUPF+i3Y2brneHN9YQ@mail.gmail.com>
	<073A0B5C-531B-4B7B-ABA3-1D8A0EC4C4BA@recoil.org>
	<CAFzWkZFQrQOZQSO_0UZoxrsr2zFPE+6XFq5Vv6wGr7iJ-ARkWA@mail.gmail.com>
From: Ashish Agarwal <agarwal1975@gmail.com>
Date: Tue, 3 Mar 2015 17:31:33 -0500
Message-ID: <CAMu2m2KTSbcVn=DM3mMNYNNcYDJE-=P8gCYbKieAOfi2ifgiJw@mail.gmail.com>
To: Anand Patil <anand.prabhakar.patil@gmail.com>
Cc: Thomas Gazagnaire <thomas@gazagnaire.org>,
	"mirageos-devel@lists.xenproject.org"
	<MirageOS-devel@lists.xenproject.org>, Anil Madhavapeddy <anil@recoil.org>
Subject: Re: [MirageOS-devel] COW XML questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============3788926253680919216=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============3788926253680919216==
Content-Type: multipart/alternative; boundary=f46d0442712ecbb35b051069e699

--f46d0442712ecbb35b051069e699
Content-Type: text/plain; charset=UTF-8

Hi Anand. Any progress on this? Is your repo public? Thanks.


On Tue, Jan 6, 2015 at 1:32 PM, Anand Patil <anand.prabhakar.patil@gmail.com
> wrote:

> Hi Anil and Thomas, thanks for the pointers. I'll keep plugging away
> at this and will let you know how I get on.
>
> Anand
>
> On Tue, Jan 6, 2015 at 7:43 AM, Anil Madhavapeddy <anil@recoil.org> wrote:
> > On 5 Jan 2015, at 05:56, Anand Patil <anand.prabhakar.patil@gmail.com>
> wrote:
> >
> >> In order to learn OCaml and thence Mirage, I've been working a little
> >> bit on an automatically generated, complete AWS client along the lines
> >> of https://github.com/stripe/aws-go using camlp4. I've got the types
> >> generated, and now need to generate to/from XML functions for each
> >> record type.
> >>
> >
> > Incidentally, this would be awesomely useful to have.  You might also
> > want to look at Jyotsna Prakash's (manually written) bindings for
> > helper functions that might come in useful:
> >
> > https://github.com/moonlightdrive/ocaml-ec2
> >
> > Feel free to ask here if you run into any blockers.
> >
> > -anil
> >
>
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>

--f46d0442712ecbb35b051069e699
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi Anand. Any progress on this? Is your repo public? Thank=
s.<div><br></div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_q=
uote">On Tue, Jan 6, 2015 at 1:32 PM, Anand Patil <span dir=3D"ltr">&lt;<a =
href=3D"mailto:anand.prabhakar.patil@gmail.com" target=3D"_blank">anand.pra=
bhakar.patil@gmail.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_=
quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1=
ex">Hi Anil and Thomas, thanks for the pointers. I&#39;ll keep plugging awa=
y<br>
at this and will let you know how I get on.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
Anand<br>
</font></span><div class=3D"HOEnZb"><div class=3D"h5"><br>
On Tue, Jan 6, 2015 at 7:43 AM, Anil Madhavapeddy &lt;<a href=3D"mailto:ani=
l@recoil.org">anil@recoil.org</a>&gt; wrote:<br>
&gt; On 5 Jan 2015, at 05:56, Anand Patil &lt;<a href=3D"mailto:anand.prabh=
akar.patil@gmail.com">anand.prabhakar.patil@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; In order to learn OCaml and thence Mirage, I&#39;ve been working a=
 little<br>
&gt;&gt; bit on an automatically generated, complete AWS client along the l=
ines<br>
&gt;&gt; of <a href=3D"https://github.com/stripe/aws-go" target=3D"_blank">=
https://github.com/stripe/aws-go</a> using camlp4. I&#39;ve got the types<b=
r>
&gt;&gt; generated, and now need to generate to/from XML functions for each=
<br>
&gt;&gt; record type.<br>
&gt;&gt;<br>
&gt;<br>
&gt; Incidentally, this would be awesomely useful to have.=C2=A0 You might =
also<br>
&gt; want to look at Jyotsna Prakash&#39;s (manually written) bindings for<=
br>
&gt; helper functions that might come in useful:<br>
&gt;<br>
&gt; <a href=3D"https://github.com/moonlightdrive/ocaml-ec2" target=3D"_bla=
nk">https://github.com/moonlightdrive/ocaml-ec2</a><br>
&gt;<br>
&gt; Feel free to ask here if you run into any blockers.<br>
&gt;<br>
&gt; -anil<br>
&gt;<br>
<br>
_______________________________________________<br>
MirageOS-devel mailing list<br>
<a href=3D"mailto:MirageOS-devel@lists.xenproject.org">MirageOS-devel@lists=
.xenproject.org</a><br>
<a href=3D"http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-de=
vel" target=3D"_blank">http://lists.xenproject.org/cgi-bin/mailman/listinfo=
/mirageos-devel</a><br>
</div></div></blockquote></div><br></div>

--f46d0442712ecbb35b051069e699--


--===============3788926253680919216==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============3788926253680919216==--


From mirageos-devel-bounces@lists.xenproject.org Wed Mar 04 00:02:03 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 04 Mar 2015 00:02:03 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YSwlA-0004pr-V4; Wed, 04 Mar 2015 00:01:56 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anand.prabhakar.patil@gmail.com>) id 1YSwl9-0004lz-D4
	for MirageOS-devel@lists.xenproject.org; Wed, 04 Mar 2015 00:01:55 +0000
Received: from [85.158.137.68] by server-17.bemta-3.messagelabs.com id
	72/A3-02896-17B46F45; Wed, 04 Mar 2015 00:01:53 +0000
X-Env-Sender: anand.prabhakar.patil@gmail.com
X-Msg-Ref: server-4.tower-31.messagelabs.com!1425427312!12732704!1
X-Originating-IP: [209.85.215.46]
X-SpamReason: No, hits=0.6 required=7.0 tests=MAILTO_TO_SPAM_ADDR, RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 26493 invoked from network); 4 Mar 2015 00:01:53 -0000
Received: from mail-la0-f46.google.com (HELO mail-la0-f46.google.com)
	(209.85.215.46)
	by server-4.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	4 Mar 2015 00:01:53 -0000
Received: by labgq15 with SMTP id gq15so41111883lab.6
	for <MirageOS-devel@lists.xenproject.org>;
	Tue, 03 Mar 2015 16:01:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type;
	bh=I5dsWgDMGe2ilxk/4eV6ohN1bmbxAS3nrXGxl3Q6qtI=;
	b=mX6J1ideIXcbAN3SV72Aq7M9LGqzmXqPunDJt455dbsPlwF/pyDfZc+VLEaNsPJaut
	twfH7OClp49qKlpNxOMPaKQ4hW44bvNXLjINs2aaJ5cHkg62GMClA1mH+nTgspe/x4Vo
	XEG8geQ48oKMbHA/Lx9e4J/GUE1+xSIXKbWria/ManC16ny3xHfbZ3gaA3RIvcNrE6//
	GDSureoCptyv6h3XrfcBMHdc6yjWOX0HLl6ZCT2fzOOqrV+w44vPi0u9VnutKDV6wa2x
	xyaRs+19lKQa1xlo8yVj6BR/Pm0ZK8G2PqrTSh9LFu8hZBmlOSxmPbZPmKUBoisfBaYY
	SpyQ==
X-Received: by 10.112.150.73 with SMTP id ug9mr1108708lbb.31.1425427312239;
	Tue, 03 Mar 2015 16:01:52 -0800 (PST)
MIME-Version: 1.0
Received: by 10.114.84.38 with HTTP; Tue, 3 Mar 2015 16:01:30 -0800 (PST)
In-Reply-To: <CAMu2m2KTSbcVn=DM3mMNYNNcYDJE-=P8gCYbKieAOfi2ifgiJw@mail.gmail.com>
References: <CAFzWkZGq54ogqtweyNNnVSR89K41pEuGkUPF+i3Y2brneHN9YQ@mail.gmail.com>
	<073A0B5C-531B-4B7B-ABA3-1D8A0EC4C4BA@recoil.org>
	<CAFzWkZFQrQOZQSO_0UZoxrsr2zFPE+6XFq5Vv6wGr7iJ-ARkWA@mail.gmail.com>
	<CAMu2m2KTSbcVn=DM3mMNYNNcYDJE-=P8gCYbKieAOfi2ifgiJw@mail.gmail.com>
From: Anand Patil <anand.prabhakar.patil@gmail.com>
Date: Tue, 3 Mar 2015 16:01:30 -0800
Message-ID: <CAFzWkZGPuMvu-zRY-YfMo2y9+Lcw5XCPGqVRD0fymeCuRa5sLQ@mail.gmail.com>
To: Ashish Agarwal <agarwal1975@gmail.com>
Cc: Thomas Gazagnaire <thomas@gazagnaire.org>,
	"mirageos-devel@lists.xenproject.org"
	<MirageOS-devel@lists.xenproject.org>, Anil Madhavapeddy <anil@recoil.org>
Subject: Re: [MirageOS-devel] COW XML questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi Ashish,

I knew this day would come. :) I'm still making progress, but haven't
had too much time available for hobby projects lately, so it's slow.
The current state is at https://github.com/apatil/auto-aws .

It would be fun to work together with someone on this, either from
what I have or from scratch.

Anand

On Tue, Mar 3, 2015 at 2:31 PM, Ashish Agarwal <agarwal1975@gmail.com> wrote:
> Hi Anand. Any progress on this? Is your repo public? Thanks.
>
>
> On Tue, Jan 6, 2015 at 1:32 PM, Anand Patil
> <anand.prabhakar.patil@gmail.com> wrote:
>>
>> Hi Anil and Thomas, thanks for the pointers. I'll keep plugging away
>> at this and will let you know how I get on.
>>
>> Anand
>>
>> On Tue, Jan 6, 2015 at 7:43 AM, Anil Madhavapeddy <anil@recoil.org> wrote:
>> > On 5 Jan 2015, at 05:56, Anand Patil <anand.prabhakar.patil@gmail.com>
>> > wrote:
>> >
>> >> In order to learn OCaml and thence Mirage, I've been working a little
>> >> bit on an automatically generated, complete AWS client along the lines
>> >> of https://github.com/stripe/aws-go using camlp4. I've got the types
>> >> generated, and now need to generate to/from XML functions for each
>> >> record type.
>> >>
>> >
>> > Incidentally, this would be awesomely useful to have.  You might also
>> > want to look at Jyotsna Prakash's (manually written) bindings for
>> > helper functions that might come in useful:
>> >
>> > https://github.com/moonlightdrive/ocaml-ec2
>> >
>> > Feel free to ask here if you run into any blockers.
>> >
>> > -anil
>> >
>>
>> _______________________________________________
>> MirageOS-devel mailing list
>> MirageOS-devel@lists.xenproject.org
>> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>
>

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 04 00:02:03 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 04 Mar 2015 00:02:03 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YSwlA-0004pr-V4; Wed, 04 Mar 2015 00:01:56 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anand.prabhakar.patil@gmail.com>) id 1YSwl9-0004lz-D4
	for MirageOS-devel@lists.xenproject.org; Wed, 04 Mar 2015 00:01:55 +0000
Received: from [85.158.137.68] by server-17.bemta-3.messagelabs.com id
	72/A3-02896-17B46F45; Wed, 04 Mar 2015 00:01:53 +0000
X-Env-Sender: anand.prabhakar.patil@gmail.com
X-Msg-Ref: server-4.tower-31.messagelabs.com!1425427312!12732704!1
X-Originating-IP: [209.85.215.46]
X-SpamReason: No, hits=0.6 required=7.0 tests=MAILTO_TO_SPAM_ADDR, RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 26493 invoked from network); 4 Mar 2015 00:01:53 -0000
Received: from mail-la0-f46.google.com (HELO mail-la0-f46.google.com)
	(209.85.215.46)
	by server-4.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	4 Mar 2015 00:01:53 -0000
Received: by labgq15 with SMTP id gq15so41111883lab.6
	for <MirageOS-devel@lists.xenproject.org>;
	Tue, 03 Mar 2015 16:01:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type;
	bh=I5dsWgDMGe2ilxk/4eV6ohN1bmbxAS3nrXGxl3Q6qtI=;
	b=mX6J1ideIXcbAN3SV72Aq7M9LGqzmXqPunDJt455dbsPlwF/pyDfZc+VLEaNsPJaut
	twfH7OClp49qKlpNxOMPaKQ4hW44bvNXLjINs2aaJ5cHkg62GMClA1mH+nTgspe/x4Vo
	XEG8geQ48oKMbHA/Lx9e4J/GUE1+xSIXKbWria/ManC16ny3xHfbZ3gaA3RIvcNrE6//
	GDSureoCptyv6h3XrfcBMHdc6yjWOX0HLl6ZCT2fzOOqrV+w44vPi0u9VnutKDV6wa2x
	xyaRs+19lKQa1xlo8yVj6BR/Pm0ZK8G2PqrTSh9LFu8hZBmlOSxmPbZPmKUBoisfBaYY
	SpyQ==
X-Received: by 10.112.150.73 with SMTP id ug9mr1108708lbb.31.1425427312239;
	Tue, 03 Mar 2015 16:01:52 -0800 (PST)
MIME-Version: 1.0
Received: by 10.114.84.38 with HTTP; Tue, 3 Mar 2015 16:01:30 -0800 (PST)
In-Reply-To: <CAMu2m2KTSbcVn=DM3mMNYNNcYDJE-=P8gCYbKieAOfi2ifgiJw@mail.gmail.com>
References: <CAFzWkZGq54ogqtweyNNnVSR89K41pEuGkUPF+i3Y2brneHN9YQ@mail.gmail.com>
	<073A0B5C-531B-4B7B-ABA3-1D8A0EC4C4BA@recoil.org>
	<CAFzWkZFQrQOZQSO_0UZoxrsr2zFPE+6XFq5Vv6wGr7iJ-ARkWA@mail.gmail.com>
	<CAMu2m2KTSbcVn=DM3mMNYNNcYDJE-=P8gCYbKieAOfi2ifgiJw@mail.gmail.com>
From: Anand Patil <anand.prabhakar.patil@gmail.com>
Date: Tue, 3 Mar 2015 16:01:30 -0800
Message-ID: <CAFzWkZGPuMvu-zRY-YfMo2y9+Lcw5XCPGqVRD0fymeCuRa5sLQ@mail.gmail.com>
To: Ashish Agarwal <agarwal1975@gmail.com>
Cc: Thomas Gazagnaire <thomas@gazagnaire.org>,
	"mirageos-devel@lists.xenproject.org"
	<MirageOS-devel@lists.xenproject.org>, Anil Madhavapeddy <anil@recoil.org>
Subject: Re: [MirageOS-devel] COW XML questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi Ashish,

I knew this day would come. :) I'm still making progress, but haven't
had too much time available for hobby projects lately, so it's slow.
The current state is at https://github.com/apatil/auto-aws .

It would be fun to work together with someone on this, either from
what I have or from scratch.

Anand

On Tue, Mar 3, 2015 at 2:31 PM, Ashish Agarwal <agarwal1975@gmail.com> wrote:
> Hi Anand. Any progress on this? Is your repo public? Thanks.
>
>
> On Tue, Jan 6, 2015 at 1:32 PM, Anand Patil
> <anand.prabhakar.patil@gmail.com> wrote:
>>
>> Hi Anil and Thomas, thanks for the pointers. I'll keep plugging away
>> at this and will let you know how I get on.
>>
>> Anand
>>
>> On Tue, Jan 6, 2015 at 7:43 AM, Anil Madhavapeddy <anil@recoil.org> wrote:
>> > On 5 Jan 2015, at 05:56, Anand Patil <anand.prabhakar.patil@gmail.com>
>> > wrote:
>> >
>> >> In order to learn OCaml and thence Mirage, I've been working a little
>> >> bit on an automatically generated, complete AWS client along the lines
>> >> of https://github.com/stripe/aws-go using camlp4. I've got the types
>> >> generated, and now need to generate to/from XML functions for each
>> >> record type.
>> >>
>> >
>> > Incidentally, this would be awesomely useful to have.  You might also
>> > want to look at Jyotsna Prakash's (manually written) bindings for
>> > helper functions that might come in useful:
>> >
>> > https://github.com/moonlightdrive/ocaml-ec2
>> >
>> > Feel free to ask here if you run into any blockers.
>> >
>> > -anil
>> >
>>
>> _______________________________________________
>> MirageOS-devel mailing list
>> MirageOS-devel@lists.xenproject.org
>> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>
>

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 04 15:12:43 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 04 Mar 2015 15:12:43 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YTAyR-0005dI-Um; Wed, 04 Mar 2015 15:12:35 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YTAyQ-0005dD-FF
	for mirageos-devel@lists.xenproject.org; Wed, 04 Mar 2015 15:12:34 +0000
Received: from [193.109.254.147] by server-8.bemta-14.messagelabs.com id
	9B/FB-03168-1E027F45; Wed, 04 Mar 2015 15:12:33 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-8.tower-27.messagelabs.com!1425481949!14672025!1
X-Originating-IP: [209.85.217.170]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 30638 invoked from network); 4 Mar 2015 15:12:30 -0000
Received: from mail-lb0-f170.google.com (HELO mail-lb0-f170.google.com)
	(209.85.217.170)
	by server-8.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	4 Mar 2015 15:12:30 -0000
Received: by lbiz12 with SMTP id z12so21995028lbi.5
	for <mirageos-devel@lists.xenproject.org>;
	Wed, 04 Mar 2015 07:12:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type:content-transfer-encoding;
	bh=RoVWChLSaJleH3ZoHYGjOxhW+ftSKzOlKizwg1bVYBM=;
	b=0AHXQbZuGeQx+HS0zY3O32TChSCXwgc0tt37QpZYJDNWb/a6aiC/OZLJTWTS+tdk0f
	/YDXkehGOlnRcMPbq4RWPNsiGutE65cOfkms3h2Xrc+BQaabM7isMHiDUQRZkRQ4tSNq
	ER0b+k6k08RHYwf8LyeqoFUuPdgd/BQNOjqsrtZRQZ9PkvvU5lmVSdhRJjBLEFWjUogF
	/23pXxGhuXZqcAIiVTomxFasTh/mdpJ1AhTe0l9VcBGpVWrDqGcSiBhBaV+4SSv9ON8E
	5kuj5u2lRb1wib+RCfJZxZVHI/GYvH5+5oS+/DkQEcnzaonjS75M2gLUMRL8YOYgB2U/
	RI/Q==
MIME-Version: 1.0
X-Received: by 10.112.147.66 with SMTP id ti2mr3987479lbb.124.1425481949294;
	Wed, 04 Mar 2015 07:12:29 -0800 (PST)
Received: by 10.25.207.17 with HTTP; Wed, 4 Mar 2015 07:12:29 -0800 (PST)
In-Reply-To: <CAG4opy-okAA=DiAJ_YyZot3zG8-0m1-HcMqnEdtPMf-QUExPvg@mail.gmail.com>
References: <CAG4opy8k+tgKwfwMfaGzc3m-Tc_JjbkPPWEbqbwDwMBO5vpUtA@mail.gmail.com>
	<8CEDB416-6238-4888-BA4B-B7305FDDE2D9@gazagnaire.org>
	<9349273A-0BB4-40C4-BF06-4307085AA90C@recoil.org>
	<B9F83982-F46E-4B60-B115-4D8D189C09FE@gazagnaire.org>
	<47D39FA3-050E-46E6-89D2-4253484E24A8@gazagnaire.org>
	<CAG4opy8ThEq3-bgXxnijqJ40QTLAqcw=fR5MrWcx-b82k=9WkQ@mail.gmail.com>
	<DUB128-W26232CC9AC746CDC3756C7B4160@phx.gbl>
	<CAG4opy-okAA=DiAJ_YyZot3zG8-0m1-HcMqnEdtPMf-QUExPvg@mail.gmail.com>
Date: Wed, 4 Mar 2015 15:12:29 +0000
Message-ID: <CAG4opy9cSA0wrihBUc2ByV2vEPyqkQBSavkwZJDxCxxr=LJiEQ@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Irmin API newbie questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

T24gMjQgRmVicnVhcnkgMjAxNSBhdCAxMzozNywgVGhvbWFzIExlb25hcmQgPHRhbGV4NUBnbWFp
bC5jb20+IHdyb3RlOgo+IE9uIDI0IEZlYnJ1YXJ5IDIwMTUgYXQgMTM6MzQsIE5pY2sgQmV0dGVy
aWRnZSA8YnV6emhlYXZ5eWVhckBob3RtYWlsLmNvbT4gd3JvdGU6Cj4+Cj4+Pgo+Pj4gTm90ZTog
aXQncyBwcm9iYWJseSB3b3J0aCByZW1vdmluZyAiSXJtaW4gaW5zaWRlIHRoZSBicm93c2VyIiBm
cm9tIHRoZQo+Pj4gUGlvbmVlciBQcm9qZWN0cyBsaXN0IG5vdy4gSXQncyB3b3JraW5nIGZpbmUg
KHdpdGggSFRNTDUgc3RvcmFnZSkuCj4+PiBHZXR0aW5nIGl0IHRvIHdvcmsgaXMganVzdCBhIGNh
c2Ugb2YgbW9kaWZ5aW5nIElybWluIHRvIHVzZSBEYW5pZWwKPj4+IELDvG56bGkncyBwdXJlLU9D
YW1sIGltcGxlbWVudGF0aW9uIG9mIFNIQS0xIGFuZCBpbXBsZW1lbnRpbmcgYSBmZXcgSlMKPj4+
IGhlbHBlcnMgZm9yIGJsaXR0aW5nIHdpdGggYmlnYXJyYXlzLgo+Pj4KPj4KPj4gSXMgdGhpcyB2
aWV3YWJsZSBhbnl3aGVyZT8gSXQgd291bGQgYmUgZ3JlYXQgdG8gaGF2ZSB0aGlzIGZ1bmN0aW9u
YWxpdHkKPj4gYnVpbHQgaW50byBJcm1pbiArIGV4dGVuc2lvbi4KPgo+IFllcywgYWx0aG91Z2gg
SSdtIHBsYW5uaW5nIG9uIGRvaW5nIG1vcmUgdGVzdGluZyBiZWZvcmUgdXBzdHJlYW1pbmcuCj4g
SG93ZXZlciwgZm9yIHRoZSBjdXJpb3VzIHRoZSBjdXJyZW50IHZlcnNpb25zIGNhbiBiZSBmb3Vu
ZCBoZXJlOgo+Cj4gSFRNTCA1IHN0b3JhZ2UgYmFja2VuZCBmb3IgSXJtaW46Cj4KPiBodHRwczov
L2dpdGh1Yi5jb20vdGFsZXg1L2N1ZWtlZXBlci9ibG9iL21hc3Rlci9odG1sX3N0b3JhZ2UubWwK
CkkndmUgbm93IGV4dGVuZGVkIHRoaXMgdG8gc3VwcG9ydCBldmVudHMsIHNvIGlmIHRoZSB1c2Vy
IGhhcyB0aGUgcGFnZQpvcGVuIGluIHR3byB0YWJzIHRoZXkgc3RheSBpbiBzeW5jLiBIb3dldmVy
LCB0aGVyZSdzIHN0aWxsIHRoZSBwcm9ibGVtCnRoYXQgeW91IGNhbid0IHJlbW92ZSBhIHdhdGNo
LCBzbyBvbmNlIHlvdSBzdGFydCB3YXRjaGluZyB5b3UgaGF2ZSB0bwprZWVwIG9uIGRvaW5nIHNv
LiBOb3QgYSBwcm9ibGVtIGZvciBteSBhcHAgKEkganVzdCB3YXRjaCB0aGUgbWFzdGVyCmJyYW5j
aCkgYnV0IG1pZ2h0IGJlIGEgcHJvYmxlbSBpbiBnZW5lcmFsLgoKSSd2ZSBhbHNvIG5vdyBtYWRl
IG15IGFwcCBkbyBtZXJnZXM6IGV2ZXJ5IGl0ZW0gZGlzcGxheWVkIG9uIHRoZQpzY3JlZW4gcmVj
b3JkcyB0aGUgSXJtaW4gY29tbWl0IGZyb20gd2hpY2ggaXQgY2FtZS4gVXN1YWxseSB0aGlzIGlz
CnRoZSBsYXRlc3QgdmVyc2lvbiwgYnV0IGlmIHlvdSdyZSBlLmcuIGVkaXRpbmcgYSBmb3JtIHRo
ZW4gaXQncyB0aGUKdmVyc2lvbiB3aGVuIHlvdSBzdGFydGVkIHRoZSBlZGl0LiBXaGVuIHlvdSBz
dWJtaXQgYSBjaGFuZ2UsIGl0CmNvbW1pdHMgYWdhaW5zdCB0aGF0IHJldmlzaW9uIGFuZCB0aGVu
IG1lcmdlcyB0aGUgcmVzdWx0IGJhY2sgdG8KbWFzdGVyLiBUaGlzIG1lYW5zIHRoYXQgaWYgeW91
IG1ha2UgdHdvIGRpZmZlcmVudCBlZGl0cyB0byBzb21ldGhpbmcKaW4gdHdvIHRhYnMsIHRoZSBj
b25mbGljdCB3aWxsIGJlIGRldGVjdGVkIGluc3RlYWQgb2Ygc2lsZW50bHkKZGlzY2FyZGluZyB0
aGUgZmlyc3QgY2hhbmdlLiAoSWRlYWxseSBJIHdhbnQgdG8gcmVzb2x2ZSB0aGUgY29uZmxpY3Rz
LApidXQgZm9yIG5vdyBpdCBqdXN0IGRpc2NhcmRzIHRoZSBzZWNvbmQgY2hhbmdlIGFuZCByZXBv
cnRzIHRoZSBlcnJvcgp0byB0aGUgdXNlcikuCgpJJ20gbm90IHN1cmUgSSdtIHVzaW5nIHRoZSBB
UEkgY29ycmVjdGx5IHRob3VnaC4gSGVyZSdzIG15IGNvZGUgZm9yCm1vbml0b3JpbmcgdGhlIG1h
c3RlciBicmFuY2ggYW5kIHVwZGF0aW5nIHRoZSBkaXNwbGF5IHdoZW4gaXQgY2hhbmdlczoKCmh0
dHBzOi8vZ2l0aHViLmNvbS90YWxleDUvY3Vla2VlcGVyL2Jsb2IvODNhNWUzYzE0NmYyNDA2Yjg0
OTFiMWM5OTE1Y2I3ZmVmNjc1Mzg2OS9ja191cGRhdGUubWwjTDMwCgogIGxldCBtYWtlIH5vbl91
cGRhdGUgYnJhbmNoID0KICAgIGxldCB3YXRjaF90YWdzID0gSS53YXRjaF90YWdzIChicmFuY2gg
IldhdGNoIG1hc3RlciIpIGluCiAgICBnZXRfaGVhZF9jb21taXQgYnJhbmNoID4+PSBmdW4gaW5p
dGlhbF9oZWFkIC0+CiAgICBsZXQgbXV0ZXggPSBMd3RfbXV0ZXguY3JlYXRlICgpIGluCiAgICBt
YXRjaCBJLmJyYW5jaCAoYnJhbmNoICJHZXQgYnJhbmNoIG5hbWUiKSB3aXRoCiAgICB8IGBIZWFk
IF8gLT4gZmFpbHdpdGggIk5vdCBhIHRhZyEiCiAgICB8IGBUYWcgYnJhbmNoX25hbWUgLT4KICAg
IGxldCB0ID0gewogICAgICBicmFuY2g7CiAgICAgIGhlYWQgPSBpbml0aWFsX2hlYWQ7CiAgICAg
IHVwZGF0ZWQgPSBMd3RfY29uZGl0aW9uLmNyZWF0ZSAoKTsKICAgICAgbXV0ZXg7CiAgICB9IGlu
CiAgICBhc3luYyAoZnVuICgpIC0+CiAgICAgIG9uX3VwZGF0ZSA+Pj0gZnVuIG9uX3VwZGF0ZSAt
PgogICAgICB3YXRjaF90YWdzIHw+IEx3dF9zdHJlYW0uaXRlcl9zIChmdW5jdGlvbgogICAgICAg
IHwgKG4sIFNvbWUgX2NvbW1pdCkgd2hlbiBuID0gYnJhbmNoX25hbWUgLT4KICAgICAgICAgICAg
KCogKGlnbm9yZSB0aGUgY29tbWl0IElEIGluIHRoZSB1cGRhdGUgbWVzc2FnZTsgd2Ugd2FudAp0
aGUgbGF0ZXN0KSAqKQogICAgICAgICAgICBMd3RfbXV0ZXgud2l0aF9sb2NrIHQubXV0ZXggKGZ1
biAoKSAtPgogICAgICAgICAgICAgIEkuaGVhZCAoYnJhbmNoICJHZXQgbGF0ZXN0IGNvbW1pdCIp
ID4+PSBmdW5jdGlvbgogICAgICAgICAgICAgIHwgTm9uZSAtPiBDa191dGlscy5lcnJvciAiQnJh
bmNoICclcycgaGFzIGRpc2FwcGVhcmVkISIKYnJhbmNoX25hbWUKICAgICAgICAgICAgICB8IFNv
bWUgaGVhZCAtPgogICAgICAgICAgICAgICAgICBpZiBoZWFkIDw+IHQuaGVhZCB0aGVuICgKICAg
ICAgICAgICAgICAgICAgICB0LmhlYWQgPC0gaGVhZDsKICAgICAgICAgICAgICAgICAgICBvbl91
cGRhdGUgaGVhZCA+Pj0gZnVuICgpIC0+CiAgICAgICAgICAgICAgICAgICAgTHd0X2NvbmRpdGlv
bi5icm9hZGNhc3QgdC51cGRhdGVkICgpOwogICAgICAgICAgICAgICAgICAgIHJldHVybiAoKQog
ICAgICAgICAgICAgICAgICApIGVsc2UgKAogICAgICAgICAgICAgICAgICAgIHJldHVybiAoKQog
ICAgICAgICAgICAgICAgICApCiAgICAgICAgICAgICkKICAgICAgICB8IF8gLT4gcmV0dXJuICgp
CiAgICAgICkKICAgICk7CiAgICByZXR1cm4gdAoKU29tZSBwb2ludHMgeW91IGhhdmUgdG8gd29y
cnkgYWJvdXQgaGVyZToKCi0gSXJtaW4gbWFrZXMgaXQgZWFzeSB0byByZWFkIGRhdGEgZGlyZWN0
bHkgZnJvbSBhIGJyYW5jaCAodGFnKSwgYnV0CnRoaXMgaXMgdXN1YWxseSB1bnNhZmUsIHNpbmNl
IGEgdGFnIGNhbiB1cGRhdGUgd2hpbGUgeW91J3JlIHJlYWRpbmcKaXQuIFRoZXJlZm9yZSwgSSB0
aGluayBJIGFsd2F5cyBoYXZlIHRvIGZpcnN0IGdldCB0aGUgaGVhZCBjb21taXQsCnRoZW4gY3Jl
YXRlIGEgbmV3IHN0b3JlIGZvciB0aGF0IHJldmlzaW9uLCB0aGVuIHJlYWQgZnJvbSB0aGF0LiBJ
dAptaWdodCBiZSBzYWZlciBpZiBhIGJyYW5jaCBqdXN0IHByb3ZpZGVkIGEgd2F5IHRvIGdldCBh
IGNvbW1pdCwgYW5kCnJlYWRzIGhhZCB0byBiZSBkb25lIGZyb20gYSBmaXhlZCBjb21taXQuCgot
IEkgb25seSBuZWVkIHRvIGJlIG5vdGlmaWVkIG9uY2UgYWZ0ZXIgYSBzZXJpZXMgb2YgY2hhbmdl
cy4gSSBkaXNjYXJkCnRoZSBjb21taXQgaW4gdGhlIHdhdGNoIG5vdGlmaWNhdGlvbiBhbmQgYWx3
YXlzIHJlYWQgdGhlIGxhdGVzdC4KT3RoZXJ3aXNlLCBJIG1pZ2h0IHVwZGF0ZSB0aGUgR1VJIHRv
IHNob3cgc3RhbGUgZGF0YS4gU2luY2UgYSBtZXJnZQpjYW4gYWRkIG1hbnkgY29tbWl0cyBhdCBv
bmNlLCB0aGUgc3RyZWFtIEFQSSBkb2Vzbid0IHNlZW0gdXNlZnVsIChpdApzdGlsbCBkb2Vzbid0
IGVuc3VyZSB5b3Ugc2VlIGVhY2ggY29tbWl0IGluZGl2aWR1YWxseSwgaWYgdGhhdCdzIHdoYXQK
eW91IHdhbnRlZCkuCgotIFRoZSBmdW5jdGlvbnMgdGhhdCB1cGRhdGUgdGhlIHN0b3JlIHNob3Vs
ZG4ndCByZXR1cm4gdW50aWwgdGhlCnVwZGF0ZSBoYXMgYmVlbiBzZWUgYnkgdGhlIG1vZGVsICgi
b25fdXBkYXRlIiBoYXMgYmVlbiBjYWxsZWQpLiBJCnRoZXJlZm9yZSBjcmVhdGUgYSBtdXRleCBh
bmQgYSBMd3RfY29uZGl0aW9uIHNvIHRoYXQgdGhlIGNvbW1pdApmdW5jdGlvbnMgY2FuIGJlIHN1
cmUgdGhlaXIgY2hhbmdlIGhhcyBiZWVuIHNlZW4uCgotIEkgd2FzIHVzaW5nIFJlYWN0IHRvIHRy
YWNrIHRoaW5ncywgYnV0IGl0cyB1c2Ugb2Ygd2Vha3JlZnMgY2F1c2VkIGEKbG90IG9mIHByb2Js
ZW1zLCBzbyBJJ3ZlIGdvbmUgYmFjayB0byBpbXBlcmF0aXZlIGNvZGUgYW5kIGNhbGxiYWNrcwpm
b3Igbm93LgoKCkFsbCB0aGUgY29kZSBmb3IgY2hhbmdpbmcgdGhlIG1vZGVsIGdvZXMgdmlhICJt
ZXJnZV90b19tYXN0ZXIiLiBUaGlzCnRha2VzIGEgImJhc2UiIGFyZ3VtZW50ICh0aGUgY29tbWl0
IHdoaWNoIHRoZSB1c2VyIG1hZGUgdGhlIGNoYW5nZQpmcm9tKSwgY3JlYXRlcyBhIHZpZXcgKHRl
bXBvcmFyeSBicmFuY2gpLCBydW5zICJmbiIgdG8gbWFrZSB0aGUKcmVxdWVzdGVkIGNoYW5nZSAo
d2hpY2ggc2hvdWxkIGFsd2F5cyBzdWNjZWVkKSwgbWVyZ2VzIHRoZSB0ZW1wb3JhcnkKYnJhbmNo
IGJhY2sgdG8gbWFzdGVyLCBhbmQgd2FpdHMgZm9yIHRoZSBvbl91cGRhdGUgdG8gbm90aWNlIGl0
OgoKICBsZXQgbWVyZ2VfdG9fbWFzdGVyIHQgfmJhc2Ugfm1zZyBmbiA9CiAgICBsZXQgcGF0aCA9
IEkuS2V5LmVtcHR5IGluCiAgICBSLm1ha2VfdmlldyBiYXNlID4+PSBmdW4gdmlldyAtPgogICAg
Zm4gdmlldyA+Pj0gZnVuIHJlc3VsdCAtPgogICAgTHd0X211dGV4LndpdGhfbG9jayB0Lm11dGV4
IChmdW4gKCkgLT4KICAgICAgKCogQXQgdGhpcyBwb2ludCwgaGVhZCBjYW5ub3QgY29udGFpbiBv
dXIgY29tbWl0IGJlY2F1c2Ugd2UKaGF2ZW4ndCBtYWRlIGl0IHlldCwKICAgICAgICogYW5kIG5v
IHVwZGF0ZXMgY2FuIGhhcHBlbiB3aGlsZSB3ZSBob2xkIHRoZSBsb2NrLiAqKQogICAgICBsZXQg
b2xkX2hlYWQgPSB0LmhlYWQgaW4KICAgICAgbGV0IHVwZGF0ZWQgPSBMd3RfY29uZGl0aW9uLndh
aXQgdC51cGRhdGVkIGluCiAgICAgIFIuVi5tZXJnZV9wYXRoICh0LmJyYW5jaCBtc2cpIHBhdGgg
dmlldyA+Pj0gZnVuY3Rpb24KICAgICAgfCBgQ29uZmxpY3QgbXNnIC0+IENrX3V0aWxzLmVycm9y
ICJDb25mbGljdCBkdXJpbmcgbWVyZ2U6ICVzCihkaXNjYXJkaW5nIGNoYW5nZSkiIG1zZwogICAg
ICB8IGBPayAoKSAtPgogICAgICBJLmhlYWQgKHQuYnJhbmNoICJHZXQgbGF0ZXN0IGNvbW1pdCIp
ID58PSBmdW5jdGlvbgogICAgICB8IFNvbWUgbmV3X2hlYWQgd2hlbiBuZXdfaGVhZCA8PiBvbGRf
aGVhZCAtPgogICAgICAgICAgKCogW3VwZGF0ZWRdIGNhbm5vdCBoYXZlIGZpcmVkIHlldCBiZWNh
dXNlIHdlIHN0aWxsIGhvbGQgdGhlCmxvY2suIFdoZW4gaXQgZG9lcwogICAgICAgICAgICogZmly
ZSBuZXh0LCBpdCBtdXN0IGNvbnRhaW4gb3VyIHVwZGF0ZS4gSXQgbXVzdCBmaXJlIHNvb24sCmFz
IGhlYWQgaGFzIGNoYW5nZWQuICopCiAgICAgICAgICB1cGRhdGVkCiAgICAgIHwgXyAtPgogICAg
ICAgICAgKCogT3VyIGNoYW5nZSBoYWQgbm8gZWZmZWN0LCBzbyBkb24ndCB3YWl0IGZvciBoZWFk
IHRvIG1vdmUuCiAgICAgICAgICAgKiBPciwgdGhlIGJyYW5jaCB3YXMgZGVsZXRlZCAtIG5vIHBv
aW50IHdhaXRpbmcgdGhlbiBlaXRoZXIuICopCiAgICAgICAgICByZXR1cm4gKCkKICAgICkgPj49
IGZ1biB1cGRhdGVkIC0+ICAgICgqIENoYW5nZXMgaGF2ZSBiZWVuIGNvbW1pdHRlZC4gKikKICAg
IHVwZGF0ZWQgPj49IGZ1biAoKSAtPiAgICgqIFtvbl91cGRhdGVdIGhhcyBiZWVuIGNhbGxlZC4g
KikKICAgIHJldHVybiByZXN1bHQKCkRvZXMgdGhpcyBhcHByb2FjaCBzZWVtIHNlbnNpYmxlPyBJ
IGZlZWwgbGlrZSB0aGUgQVBJIHBlcmhhcHMgd2Fzbid0CmludGVuZGVkIHRvIGJlIHVzZWQgdGhp
cyB3YXkuLi4KCkknbSBzdGlsbCB3b3JyaWVkIGFib3V0IGxvc2luZyBkYXRhIGR1ZSB0byByYWNl
cy4gSmF2YVNjcmlwdCAoSSB0aGluaykKZW5zdXJlcyB0aGF0IGFjY2VzcyB0byBsb2NhbCBzdG9y
YWdlIGZyb20gZGlmZmVyZW50IHRocmVhZHMgZG9lc24ndApnZXQgaW50ZXJsZWF2ZWQsIGJ1dCBz
aW5jZSBJcm1pbiB1c2VzIEx3dCB3ZSBkb24ndCBiZW5lZml0IGZyb20gdGhpcy4KSSBzdXNwZWN0
IHRoYXQgaWYgdHdvIHRhYnMgdHJ5IHRvIG1lcmdlIGF0IG9uY2UgdGhlbiBvbmUncyBjb21taXQg
d2lsbApiZSBzaWxlbnRseSBkaXNjYXJkZWQuIFByb2JhYmx5IHRoZSBiYWNrLWVuZCB1cGRhdGUg
ZnVuY3Rpb24gc2hvdWxkCnRha2UgdGhlIGV4cGVjdGVkIG9sZCB2YWx1ZSBhcyBhbiBhcmd1bWVu
dCBzbyBpdCBjYW4gYWJvcnQgaWYgdGhlCnN0YXRlIGhhcyBjaGFuZ2VkIHNpbmNlIHRoZW4uCgpJ
dCB3b3VsZCBhbHNvIGJlIHVzZWZ1bCB0byBnZXQgdGhlIGNvbW1pdCBvYmplY3QgZnJvbSB0aGUg
bWVyZ2UgYmVmb3JlCnVwZGF0aW5nIHRoZSBicmFuY2guIFRoYXQgd2F5LCBJIGNvdWxkIHRyeSBs
b2FkaW5nIGl0IGFzIGEgc2FuaXR5CmNoZWNrIChhbmQgdGh1cyByZWplY3QgYW55IHVwZGF0ZSB0
aGF0IHdvdWxkIHJlc3VsdCBpbiBhbiB1bnJlYWRhYmxlCnN0YXRlKS4gSSBndWVzcyBJIG5lZWQg
dG8gY3JlYXRlIGFub3RoZXIgdGVtcG9yYXJ5IGJyYW5jaCwgbWVyZ2UgdG8KdGhhdCwgdGhlbiBm
b3JjZS11cGRhdGUgbWFzdGVyIHRvIGl0LiBTZWVtcyBsaWtlIGEgbG90IG9mIHdvcmssCnRob3Vn
aC4KCkFueXdheSwgZGVzcGl0ZSB0aGVzZSBtaW5vciBpc3N1ZXMsIElybWluIGlzIHdvcmtpbmcg
Z3JlYXQgc28gZmFyIQoKCi0tIApEciBUaG9tYXMgTGVvbmFyZCAgICAgICAgaHR0cDovLzBpbnN0
YWxsLm5ldC8KR1BHOiA5MjQyIDk4MDcgQzk4NSAzQzA3IDQ0QTYgIDhCOUEgQUUwNyA4MjgwIDU5
QTUgM0NDMQpHUEc6IERBOTggMjVBRSBDQUQwIDg5NzUgN0NEQSAgQkQ4RSAwNzEzIDNGOTYgQ0E3
NCBEOEJBCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpN
aXJhZ2VPUy1kZXZlbCBtYWlsaW5nIGxpc3QKTWlyYWdlT1MtZGV2ZWxAbGlzdHMueGVucHJvamVj
dC5vcmcKaHR0cDovL2xpc3RzLnhlbnByb2plY3Qub3JnL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5m
by9taXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 04 15:12:43 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 04 Mar 2015 15:12:43 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YTAyR-0005dI-Um; Wed, 04 Mar 2015 15:12:35 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YTAyQ-0005dD-FF
	for mirageos-devel@lists.xenproject.org; Wed, 04 Mar 2015 15:12:34 +0000
Received: from [193.109.254.147] by server-8.bemta-14.messagelabs.com id
	9B/FB-03168-1E027F45; Wed, 04 Mar 2015 15:12:33 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-8.tower-27.messagelabs.com!1425481949!14672025!1
X-Originating-IP: [209.85.217.170]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 30638 invoked from network); 4 Mar 2015 15:12:30 -0000
Received: from mail-lb0-f170.google.com (HELO mail-lb0-f170.google.com)
	(209.85.217.170)
	by server-8.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	4 Mar 2015 15:12:30 -0000
Received: by lbiz12 with SMTP id z12so21995028lbi.5
	for <mirageos-devel@lists.xenproject.org>;
	Wed, 04 Mar 2015 07:12:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:content-type:content-transfer-encoding;
	bh=RoVWChLSaJleH3ZoHYGjOxhW+ftSKzOlKizwg1bVYBM=;
	b=0AHXQbZuGeQx+HS0zY3O32TChSCXwgc0tt37QpZYJDNWb/a6aiC/OZLJTWTS+tdk0f
	/YDXkehGOlnRcMPbq4RWPNsiGutE65cOfkms3h2Xrc+BQaabM7isMHiDUQRZkRQ4tSNq
	ER0b+k6k08RHYwf8LyeqoFUuPdgd/BQNOjqsrtZRQZ9PkvvU5lmVSdhRJjBLEFWjUogF
	/23pXxGhuXZqcAIiVTomxFasTh/mdpJ1AhTe0l9VcBGpVWrDqGcSiBhBaV+4SSv9ON8E
	5kuj5u2lRb1wib+RCfJZxZVHI/GYvH5+5oS+/DkQEcnzaonjS75M2gLUMRL8YOYgB2U/
	RI/Q==
MIME-Version: 1.0
X-Received: by 10.112.147.66 with SMTP id ti2mr3987479lbb.124.1425481949294;
	Wed, 04 Mar 2015 07:12:29 -0800 (PST)
Received: by 10.25.207.17 with HTTP; Wed, 4 Mar 2015 07:12:29 -0800 (PST)
In-Reply-To: <CAG4opy-okAA=DiAJ_YyZot3zG8-0m1-HcMqnEdtPMf-QUExPvg@mail.gmail.com>
References: <CAG4opy8k+tgKwfwMfaGzc3m-Tc_JjbkPPWEbqbwDwMBO5vpUtA@mail.gmail.com>
	<8CEDB416-6238-4888-BA4B-B7305FDDE2D9@gazagnaire.org>
	<9349273A-0BB4-40C4-BF06-4307085AA90C@recoil.org>
	<B9F83982-F46E-4B60-B115-4D8D189C09FE@gazagnaire.org>
	<47D39FA3-050E-46E6-89D2-4253484E24A8@gazagnaire.org>
	<CAG4opy8ThEq3-bgXxnijqJ40QTLAqcw=fR5MrWcx-b82k=9WkQ@mail.gmail.com>
	<DUB128-W26232CC9AC746CDC3756C7B4160@phx.gbl>
	<CAG4opy-okAA=DiAJ_YyZot3zG8-0m1-HcMqnEdtPMf-QUExPvg@mail.gmail.com>
Date: Wed, 4 Mar 2015 15:12:29 +0000
Message-ID: <CAG4opy9cSA0wrihBUc2ByV2vEPyqkQBSavkwZJDxCxxr=LJiEQ@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Irmin API newbie questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

T24gMjQgRmVicnVhcnkgMjAxNSBhdCAxMzozNywgVGhvbWFzIExlb25hcmQgPHRhbGV4NUBnbWFp
bC5jb20+IHdyb3RlOgo+IE9uIDI0IEZlYnJ1YXJ5IDIwMTUgYXQgMTM6MzQsIE5pY2sgQmV0dGVy
aWRnZSA8YnV6emhlYXZ5eWVhckBob3RtYWlsLmNvbT4gd3JvdGU6Cj4+Cj4+Pgo+Pj4gTm90ZTog
aXQncyBwcm9iYWJseSB3b3J0aCByZW1vdmluZyAiSXJtaW4gaW5zaWRlIHRoZSBicm93c2VyIiBm
cm9tIHRoZQo+Pj4gUGlvbmVlciBQcm9qZWN0cyBsaXN0IG5vdy4gSXQncyB3b3JraW5nIGZpbmUg
KHdpdGggSFRNTDUgc3RvcmFnZSkuCj4+PiBHZXR0aW5nIGl0IHRvIHdvcmsgaXMganVzdCBhIGNh
c2Ugb2YgbW9kaWZ5aW5nIElybWluIHRvIHVzZSBEYW5pZWwKPj4+IELDvG56bGkncyBwdXJlLU9D
YW1sIGltcGxlbWVudGF0aW9uIG9mIFNIQS0xIGFuZCBpbXBsZW1lbnRpbmcgYSBmZXcgSlMKPj4+
IGhlbHBlcnMgZm9yIGJsaXR0aW5nIHdpdGggYmlnYXJyYXlzLgo+Pj4KPj4KPj4gSXMgdGhpcyB2
aWV3YWJsZSBhbnl3aGVyZT8gSXQgd291bGQgYmUgZ3JlYXQgdG8gaGF2ZSB0aGlzIGZ1bmN0aW9u
YWxpdHkKPj4gYnVpbHQgaW50byBJcm1pbiArIGV4dGVuc2lvbi4KPgo+IFllcywgYWx0aG91Z2gg
SSdtIHBsYW5uaW5nIG9uIGRvaW5nIG1vcmUgdGVzdGluZyBiZWZvcmUgdXBzdHJlYW1pbmcuCj4g
SG93ZXZlciwgZm9yIHRoZSBjdXJpb3VzIHRoZSBjdXJyZW50IHZlcnNpb25zIGNhbiBiZSBmb3Vu
ZCBoZXJlOgo+Cj4gSFRNTCA1IHN0b3JhZ2UgYmFja2VuZCBmb3IgSXJtaW46Cj4KPiBodHRwczov
L2dpdGh1Yi5jb20vdGFsZXg1L2N1ZWtlZXBlci9ibG9iL21hc3Rlci9odG1sX3N0b3JhZ2UubWwK
CkkndmUgbm93IGV4dGVuZGVkIHRoaXMgdG8gc3VwcG9ydCBldmVudHMsIHNvIGlmIHRoZSB1c2Vy
IGhhcyB0aGUgcGFnZQpvcGVuIGluIHR3byB0YWJzIHRoZXkgc3RheSBpbiBzeW5jLiBIb3dldmVy
LCB0aGVyZSdzIHN0aWxsIHRoZSBwcm9ibGVtCnRoYXQgeW91IGNhbid0IHJlbW92ZSBhIHdhdGNo
LCBzbyBvbmNlIHlvdSBzdGFydCB3YXRjaGluZyB5b3UgaGF2ZSB0bwprZWVwIG9uIGRvaW5nIHNv
LiBOb3QgYSBwcm9ibGVtIGZvciBteSBhcHAgKEkganVzdCB3YXRjaCB0aGUgbWFzdGVyCmJyYW5j
aCkgYnV0IG1pZ2h0IGJlIGEgcHJvYmxlbSBpbiBnZW5lcmFsLgoKSSd2ZSBhbHNvIG5vdyBtYWRl
IG15IGFwcCBkbyBtZXJnZXM6IGV2ZXJ5IGl0ZW0gZGlzcGxheWVkIG9uIHRoZQpzY3JlZW4gcmVj
b3JkcyB0aGUgSXJtaW4gY29tbWl0IGZyb20gd2hpY2ggaXQgY2FtZS4gVXN1YWxseSB0aGlzIGlz
CnRoZSBsYXRlc3QgdmVyc2lvbiwgYnV0IGlmIHlvdSdyZSBlLmcuIGVkaXRpbmcgYSBmb3JtIHRo
ZW4gaXQncyB0aGUKdmVyc2lvbiB3aGVuIHlvdSBzdGFydGVkIHRoZSBlZGl0LiBXaGVuIHlvdSBz
dWJtaXQgYSBjaGFuZ2UsIGl0CmNvbW1pdHMgYWdhaW5zdCB0aGF0IHJldmlzaW9uIGFuZCB0aGVu
IG1lcmdlcyB0aGUgcmVzdWx0IGJhY2sgdG8KbWFzdGVyLiBUaGlzIG1lYW5zIHRoYXQgaWYgeW91
IG1ha2UgdHdvIGRpZmZlcmVudCBlZGl0cyB0byBzb21ldGhpbmcKaW4gdHdvIHRhYnMsIHRoZSBj
b25mbGljdCB3aWxsIGJlIGRldGVjdGVkIGluc3RlYWQgb2Ygc2lsZW50bHkKZGlzY2FyZGluZyB0
aGUgZmlyc3QgY2hhbmdlLiAoSWRlYWxseSBJIHdhbnQgdG8gcmVzb2x2ZSB0aGUgY29uZmxpY3Rz
LApidXQgZm9yIG5vdyBpdCBqdXN0IGRpc2NhcmRzIHRoZSBzZWNvbmQgY2hhbmdlIGFuZCByZXBv
cnRzIHRoZSBlcnJvcgp0byB0aGUgdXNlcikuCgpJJ20gbm90IHN1cmUgSSdtIHVzaW5nIHRoZSBB
UEkgY29ycmVjdGx5IHRob3VnaC4gSGVyZSdzIG15IGNvZGUgZm9yCm1vbml0b3JpbmcgdGhlIG1h
c3RlciBicmFuY2ggYW5kIHVwZGF0aW5nIHRoZSBkaXNwbGF5IHdoZW4gaXQgY2hhbmdlczoKCmh0
dHBzOi8vZ2l0aHViLmNvbS90YWxleDUvY3Vla2VlcGVyL2Jsb2IvODNhNWUzYzE0NmYyNDA2Yjg0
OTFiMWM5OTE1Y2I3ZmVmNjc1Mzg2OS9ja191cGRhdGUubWwjTDMwCgogIGxldCBtYWtlIH5vbl91
cGRhdGUgYnJhbmNoID0KICAgIGxldCB3YXRjaF90YWdzID0gSS53YXRjaF90YWdzIChicmFuY2gg
IldhdGNoIG1hc3RlciIpIGluCiAgICBnZXRfaGVhZF9jb21taXQgYnJhbmNoID4+PSBmdW4gaW5p
dGlhbF9oZWFkIC0+CiAgICBsZXQgbXV0ZXggPSBMd3RfbXV0ZXguY3JlYXRlICgpIGluCiAgICBt
YXRjaCBJLmJyYW5jaCAoYnJhbmNoICJHZXQgYnJhbmNoIG5hbWUiKSB3aXRoCiAgICB8IGBIZWFk
IF8gLT4gZmFpbHdpdGggIk5vdCBhIHRhZyEiCiAgICB8IGBUYWcgYnJhbmNoX25hbWUgLT4KICAg
IGxldCB0ID0gewogICAgICBicmFuY2g7CiAgICAgIGhlYWQgPSBpbml0aWFsX2hlYWQ7CiAgICAg
IHVwZGF0ZWQgPSBMd3RfY29uZGl0aW9uLmNyZWF0ZSAoKTsKICAgICAgbXV0ZXg7CiAgICB9IGlu
CiAgICBhc3luYyAoZnVuICgpIC0+CiAgICAgIG9uX3VwZGF0ZSA+Pj0gZnVuIG9uX3VwZGF0ZSAt
PgogICAgICB3YXRjaF90YWdzIHw+IEx3dF9zdHJlYW0uaXRlcl9zIChmdW5jdGlvbgogICAgICAg
IHwgKG4sIFNvbWUgX2NvbW1pdCkgd2hlbiBuID0gYnJhbmNoX25hbWUgLT4KICAgICAgICAgICAg
KCogKGlnbm9yZSB0aGUgY29tbWl0IElEIGluIHRoZSB1cGRhdGUgbWVzc2FnZTsgd2Ugd2FudAp0
aGUgbGF0ZXN0KSAqKQogICAgICAgICAgICBMd3RfbXV0ZXgud2l0aF9sb2NrIHQubXV0ZXggKGZ1
biAoKSAtPgogICAgICAgICAgICAgIEkuaGVhZCAoYnJhbmNoICJHZXQgbGF0ZXN0IGNvbW1pdCIp
ID4+PSBmdW5jdGlvbgogICAgICAgICAgICAgIHwgTm9uZSAtPiBDa191dGlscy5lcnJvciAiQnJh
bmNoICclcycgaGFzIGRpc2FwcGVhcmVkISIKYnJhbmNoX25hbWUKICAgICAgICAgICAgICB8IFNv
bWUgaGVhZCAtPgogICAgICAgICAgICAgICAgICBpZiBoZWFkIDw+IHQuaGVhZCB0aGVuICgKICAg
ICAgICAgICAgICAgICAgICB0LmhlYWQgPC0gaGVhZDsKICAgICAgICAgICAgICAgICAgICBvbl91
cGRhdGUgaGVhZCA+Pj0gZnVuICgpIC0+CiAgICAgICAgICAgICAgICAgICAgTHd0X2NvbmRpdGlv
bi5icm9hZGNhc3QgdC51cGRhdGVkICgpOwogICAgICAgICAgICAgICAgICAgIHJldHVybiAoKQog
ICAgICAgICAgICAgICAgICApIGVsc2UgKAogICAgICAgICAgICAgICAgICAgIHJldHVybiAoKQog
ICAgICAgICAgICAgICAgICApCiAgICAgICAgICAgICkKICAgICAgICB8IF8gLT4gcmV0dXJuICgp
CiAgICAgICkKICAgICk7CiAgICByZXR1cm4gdAoKU29tZSBwb2ludHMgeW91IGhhdmUgdG8gd29y
cnkgYWJvdXQgaGVyZToKCi0gSXJtaW4gbWFrZXMgaXQgZWFzeSB0byByZWFkIGRhdGEgZGlyZWN0
bHkgZnJvbSBhIGJyYW5jaCAodGFnKSwgYnV0CnRoaXMgaXMgdXN1YWxseSB1bnNhZmUsIHNpbmNl
IGEgdGFnIGNhbiB1cGRhdGUgd2hpbGUgeW91J3JlIHJlYWRpbmcKaXQuIFRoZXJlZm9yZSwgSSB0
aGluayBJIGFsd2F5cyBoYXZlIHRvIGZpcnN0IGdldCB0aGUgaGVhZCBjb21taXQsCnRoZW4gY3Jl
YXRlIGEgbmV3IHN0b3JlIGZvciB0aGF0IHJldmlzaW9uLCB0aGVuIHJlYWQgZnJvbSB0aGF0LiBJ
dAptaWdodCBiZSBzYWZlciBpZiBhIGJyYW5jaCBqdXN0IHByb3ZpZGVkIGEgd2F5IHRvIGdldCBh
IGNvbW1pdCwgYW5kCnJlYWRzIGhhZCB0byBiZSBkb25lIGZyb20gYSBmaXhlZCBjb21taXQuCgot
IEkgb25seSBuZWVkIHRvIGJlIG5vdGlmaWVkIG9uY2UgYWZ0ZXIgYSBzZXJpZXMgb2YgY2hhbmdl
cy4gSSBkaXNjYXJkCnRoZSBjb21taXQgaW4gdGhlIHdhdGNoIG5vdGlmaWNhdGlvbiBhbmQgYWx3
YXlzIHJlYWQgdGhlIGxhdGVzdC4KT3RoZXJ3aXNlLCBJIG1pZ2h0IHVwZGF0ZSB0aGUgR1VJIHRv
IHNob3cgc3RhbGUgZGF0YS4gU2luY2UgYSBtZXJnZQpjYW4gYWRkIG1hbnkgY29tbWl0cyBhdCBv
bmNlLCB0aGUgc3RyZWFtIEFQSSBkb2Vzbid0IHNlZW0gdXNlZnVsIChpdApzdGlsbCBkb2Vzbid0
IGVuc3VyZSB5b3Ugc2VlIGVhY2ggY29tbWl0IGluZGl2aWR1YWxseSwgaWYgdGhhdCdzIHdoYXQK
eW91IHdhbnRlZCkuCgotIFRoZSBmdW5jdGlvbnMgdGhhdCB1cGRhdGUgdGhlIHN0b3JlIHNob3Vs
ZG4ndCByZXR1cm4gdW50aWwgdGhlCnVwZGF0ZSBoYXMgYmVlbiBzZWUgYnkgdGhlIG1vZGVsICgi
b25fdXBkYXRlIiBoYXMgYmVlbiBjYWxsZWQpLiBJCnRoZXJlZm9yZSBjcmVhdGUgYSBtdXRleCBh
bmQgYSBMd3RfY29uZGl0aW9uIHNvIHRoYXQgdGhlIGNvbW1pdApmdW5jdGlvbnMgY2FuIGJlIHN1
cmUgdGhlaXIgY2hhbmdlIGhhcyBiZWVuIHNlZW4uCgotIEkgd2FzIHVzaW5nIFJlYWN0IHRvIHRy
YWNrIHRoaW5ncywgYnV0IGl0cyB1c2Ugb2Ygd2Vha3JlZnMgY2F1c2VkIGEKbG90IG9mIHByb2Js
ZW1zLCBzbyBJJ3ZlIGdvbmUgYmFjayB0byBpbXBlcmF0aXZlIGNvZGUgYW5kIGNhbGxiYWNrcwpm
b3Igbm93LgoKCkFsbCB0aGUgY29kZSBmb3IgY2hhbmdpbmcgdGhlIG1vZGVsIGdvZXMgdmlhICJt
ZXJnZV90b19tYXN0ZXIiLiBUaGlzCnRha2VzIGEgImJhc2UiIGFyZ3VtZW50ICh0aGUgY29tbWl0
IHdoaWNoIHRoZSB1c2VyIG1hZGUgdGhlIGNoYW5nZQpmcm9tKSwgY3JlYXRlcyBhIHZpZXcgKHRl
bXBvcmFyeSBicmFuY2gpLCBydW5zICJmbiIgdG8gbWFrZSB0aGUKcmVxdWVzdGVkIGNoYW5nZSAo
d2hpY2ggc2hvdWxkIGFsd2F5cyBzdWNjZWVkKSwgbWVyZ2VzIHRoZSB0ZW1wb3JhcnkKYnJhbmNo
IGJhY2sgdG8gbWFzdGVyLCBhbmQgd2FpdHMgZm9yIHRoZSBvbl91cGRhdGUgdG8gbm90aWNlIGl0
OgoKICBsZXQgbWVyZ2VfdG9fbWFzdGVyIHQgfmJhc2Ugfm1zZyBmbiA9CiAgICBsZXQgcGF0aCA9
IEkuS2V5LmVtcHR5IGluCiAgICBSLm1ha2VfdmlldyBiYXNlID4+PSBmdW4gdmlldyAtPgogICAg
Zm4gdmlldyA+Pj0gZnVuIHJlc3VsdCAtPgogICAgTHd0X211dGV4LndpdGhfbG9jayB0Lm11dGV4
IChmdW4gKCkgLT4KICAgICAgKCogQXQgdGhpcyBwb2ludCwgaGVhZCBjYW5ub3QgY29udGFpbiBv
dXIgY29tbWl0IGJlY2F1c2Ugd2UKaGF2ZW4ndCBtYWRlIGl0IHlldCwKICAgICAgICogYW5kIG5v
IHVwZGF0ZXMgY2FuIGhhcHBlbiB3aGlsZSB3ZSBob2xkIHRoZSBsb2NrLiAqKQogICAgICBsZXQg
b2xkX2hlYWQgPSB0LmhlYWQgaW4KICAgICAgbGV0IHVwZGF0ZWQgPSBMd3RfY29uZGl0aW9uLndh
aXQgdC51cGRhdGVkIGluCiAgICAgIFIuVi5tZXJnZV9wYXRoICh0LmJyYW5jaCBtc2cpIHBhdGgg
dmlldyA+Pj0gZnVuY3Rpb24KICAgICAgfCBgQ29uZmxpY3QgbXNnIC0+IENrX3V0aWxzLmVycm9y
ICJDb25mbGljdCBkdXJpbmcgbWVyZ2U6ICVzCihkaXNjYXJkaW5nIGNoYW5nZSkiIG1zZwogICAg
ICB8IGBPayAoKSAtPgogICAgICBJLmhlYWQgKHQuYnJhbmNoICJHZXQgbGF0ZXN0IGNvbW1pdCIp
ID58PSBmdW5jdGlvbgogICAgICB8IFNvbWUgbmV3X2hlYWQgd2hlbiBuZXdfaGVhZCA8PiBvbGRf
aGVhZCAtPgogICAgICAgICAgKCogW3VwZGF0ZWRdIGNhbm5vdCBoYXZlIGZpcmVkIHlldCBiZWNh
dXNlIHdlIHN0aWxsIGhvbGQgdGhlCmxvY2suIFdoZW4gaXQgZG9lcwogICAgICAgICAgICogZmly
ZSBuZXh0LCBpdCBtdXN0IGNvbnRhaW4gb3VyIHVwZGF0ZS4gSXQgbXVzdCBmaXJlIHNvb24sCmFz
IGhlYWQgaGFzIGNoYW5nZWQuICopCiAgICAgICAgICB1cGRhdGVkCiAgICAgIHwgXyAtPgogICAg
ICAgICAgKCogT3VyIGNoYW5nZSBoYWQgbm8gZWZmZWN0LCBzbyBkb24ndCB3YWl0IGZvciBoZWFk
IHRvIG1vdmUuCiAgICAgICAgICAgKiBPciwgdGhlIGJyYW5jaCB3YXMgZGVsZXRlZCAtIG5vIHBv
aW50IHdhaXRpbmcgdGhlbiBlaXRoZXIuICopCiAgICAgICAgICByZXR1cm4gKCkKICAgICkgPj49
IGZ1biB1cGRhdGVkIC0+ICAgICgqIENoYW5nZXMgaGF2ZSBiZWVuIGNvbW1pdHRlZC4gKikKICAg
IHVwZGF0ZWQgPj49IGZ1biAoKSAtPiAgICgqIFtvbl91cGRhdGVdIGhhcyBiZWVuIGNhbGxlZC4g
KikKICAgIHJldHVybiByZXN1bHQKCkRvZXMgdGhpcyBhcHByb2FjaCBzZWVtIHNlbnNpYmxlPyBJ
IGZlZWwgbGlrZSB0aGUgQVBJIHBlcmhhcHMgd2Fzbid0CmludGVuZGVkIHRvIGJlIHVzZWQgdGhp
cyB3YXkuLi4KCkknbSBzdGlsbCB3b3JyaWVkIGFib3V0IGxvc2luZyBkYXRhIGR1ZSB0byByYWNl
cy4gSmF2YVNjcmlwdCAoSSB0aGluaykKZW5zdXJlcyB0aGF0IGFjY2VzcyB0byBsb2NhbCBzdG9y
YWdlIGZyb20gZGlmZmVyZW50IHRocmVhZHMgZG9lc24ndApnZXQgaW50ZXJsZWF2ZWQsIGJ1dCBz
aW5jZSBJcm1pbiB1c2VzIEx3dCB3ZSBkb24ndCBiZW5lZml0IGZyb20gdGhpcy4KSSBzdXNwZWN0
IHRoYXQgaWYgdHdvIHRhYnMgdHJ5IHRvIG1lcmdlIGF0IG9uY2UgdGhlbiBvbmUncyBjb21taXQg
d2lsbApiZSBzaWxlbnRseSBkaXNjYXJkZWQuIFByb2JhYmx5IHRoZSBiYWNrLWVuZCB1cGRhdGUg
ZnVuY3Rpb24gc2hvdWxkCnRha2UgdGhlIGV4cGVjdGVkIG9sZCB2YWx1ZSBhcyBhbiBhcmd1bWVu
dCBzbyBpdCBjYW4gYWJvcnQgaWYgdGhlCnN0YXRlIGhhcyBjaGFuZ2VkIHNpbmNlIHRoZW4uCgpJ
dCB3b3VsZCBhbHNvIGJlIHVzZWZ1bCB0byBnZXQgdGhlIGNvbW1pdCBvYmplY3QgZnJvbSB0aGUg
bWVyZ2UgYmVmb3JlCnVwZGF0aW5nIHRoZSBicmFuY2guIFRoYXQgd2F5LCBJIGNvdWxkIHRyeSBs
b2FkaW5nIGl0IGFzIGEgc2FuaXR5CmNoZWNrIChhbmQgdGh1cyByZWplY3QgYW55IHVwZGF0ZSB0
aGF0IHdvdWxkIHJlc3VsdCBpbiBhbiB1bnJlYWRhYmxlCnN0YXRlKS4gSSBndWVzcyBJIG5lZWQg
dG8gY3JlYXRlIGFub3RoZXIgdGVtcG9yYXJ5IGJyYW5jaCwgbWVyZ2UgdG8KdGhhdCwgdGhlbiBm
b3JjZS11cGRhdGUgbWFzdGVyIHRvIGl0LiBTZWVtcyBsaWtlIGEgbG90IG9mIHdvcmssCnRob3Vn
aC4KCkFueXdheSwgZGVzcGl0ZSB0aGVzZSBtaW5vciBpc3N1ZXMsIElybWluIGlzIHdvcmtpbmcg
Z3JlYXQgc28gZmFyIQoKCi0tIApEciBUaG9tYXMgTGVvbmFyZCAgICAgICAgaHR0cDovLzBpbnN0
YWxsLm5ldC8KR1BHOiA5MjQyIDk4MDcgQzk4NSAzQzA3IDQ0QTYgIDhCOUEgQUUwNyA4MjgwIDU5
QTUgM0NDMQpHUEc6IERBOTggMjVBRSBDQUQwIDg5NzUgN0NEQSAgQkQ4RSAwNzEzIDNGOTYgQ0E3
NCBEOEJBCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpN
aXJhZ2VPUy1kZXZlbCBtYWlsaW5nIGxpc3QKTWlyYWdlT1MtZGV2ZWxAbGlzdHMueGVucHJvamVj
dC5vcmcKaHR0cDovL2xpc3RzLnhlbnByb2plY3Qub3JnL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5m
by9taXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 04 16:37:08 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 04 Mar 2015 16:37:08 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YTCID-0003hf-KG; Wed, 04 Mar 2015 16:37:05 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <pszmk1@nottingham.ac.uk>) id 1YTCIC-0003hY-85
	for MirageOS-devel@lists.xenproject.org; Wed, 04 Mar 2015 16:37:04 +0000
Received: from [85.158.137.68] by server-10.bemta-3.messagelabs.com id
	B9/24-02745-FA437F45; Wed, 04 Mar 2015 16:37:03 +0000
X-Env-Sender: pszmk1@nottingham.ac.uk
X-Msg-Ref: server-3.tower-31.messagelabs.com!1425487021!13141634!1
X-Originating-IP: [128.243.43.125]
X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 19620 invoked from network); 4 Mar 2015 16:37:01 -0000
Received: from uidappmx02.nottingham.ac.uk (HELO uidappmx02.nottingham.ac.uk)
	(128.243.43.125) by server-3.tower-31.messagelabs.com with SMTP;
	4 Mar 2015 16:37:01 -0000
Received: from uidappmx02.nottingham.ac.uk (localhost.localdomain [127.0.0.1])
	by localhost (Email Security Appliance) with SMTP id
	C27552E86A6_4F734ACB; Wed,  4 Mar 2015 16:37:00 +0000 (GMT)
Received: from smtp3.nottingham.ac.uk (smtp3.nottingham.ac.uk [128.243.44.55])
	by uidappmx02.nottingham.ac.uk (Sophos Email Appliance) with ESMTP
	id 7618C2E8652_4F734ACF; Wed,  4 Mar 2015 16:37:00 +0000 (GMT)
Received: from cirrus.cs.nott.ac.uk ([128.243.23.185])
	by smtp3.nottingham.ac.uk with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128)
	(Exim 4.85) (envelope-from <pszmk1@nottingham.ac.uk>)
	id 1YTCI7-0007Iw-Gu; Wed, 04 Mar 2015 16:37:00 +0000
Message-ID: <54F734A7.90405@nottingham.ac.uk>
Date: Wed, 04 Mar 2015 16:36:55 +0000
From: Masoud Koleini <masoud.koleini@nottingham.ac.uk>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: Richard Mortier <richard.mortier@cl.cam.ac.uk>, 
	David Scott <scott.dj@gmail.com>
References: <CAN2Hq05XvJHCvPoKTFw+Ev4+_UiMHB12b2tE5pDSDp6J=bpqQQ@mail.gmail.com>	<D4442CE5-DE55-4311-8DC6-1A8240EBC98E@recoil.org>	<CAN2Hq0613QH39MhOgxC0YQWH43p3w=Ag=-FtPcnqZMsAynuE1w@mail.gmail.com>	<9C6275D4-2397-45E7-B18A-81A47C317545@recoil.org>	<CAN2Hq06NWvPceFurEDhKkgjxkSHmc_Cp5iEEYPNVJSjqoBNtZQ@mail.gmail.com>	<CAG_esB13xBq08jfhBoz6tbx3d9335mW=Gw7p5tVQpzS=xRHSVQ@mail.gmail.com>
	<CAN2Hq04GEDv8RV85DOomDGy_BN2+=Wh8i-2dJy9R+r-6GdRWhg@mail.gmail.com>
In-Reply-To: <CAN2Hq04GEDv8RV85DOomDGy_BN2+=Wh8i-2dJy9R+r-6GdRWhg@mail.gmail.com>
X-Spam-Score: -1.0 (-)
X-Spam-Report: Spam detection software,
	running on the system "smtp3.nottingham.ac.uk", has
	identified this incoming email as possible spam. The original message
	has been attached to this so you can view it (if it isn't spam) or
	label similar future email.  If you have any questions, see
	the administrator of that system for details.
	Content preview:  Hi all,
	We have now created `mirage-perf` repository that
	provides a simple Mirage performance regression test on XenServer:
	https://github.com/mirage/mirage-perf [...] 
	Content analysis details:   (-1.0 points, 4.0 required)
	pts rule name              description
	---- ----------------------
	--------------------------------------------------
	-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
Cc: mirageos-devel <MirageOS-devel@lists.xenproject.org>,
	Anil Madhavapeddy <anil@recoil.org>
Subject: Re: [MirageOS-devel] performance regression tests
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi all,

We have now created  `mirage-perf` repository that provides a simple 
Mirage performance regression test on XenServer:

https://github.com/mirage/mirage-perf

This version is much simpler than previous one we announced 
(https://github.com/koleini/mirage-perf), and so far uses one single 
unikernel--based on Balraj's iperf--that sends tcp traffic from one 
interface to the second one at highest possible rate, and retrieves 
statistics.

The previous version of mirage-perf runs on Xen Dom0, creates a 
linux-based vm (traffic generator) and a Mirage unikernel, and installs 
off-the-shelf tools to generate and monitor traffic focusing on 
customised performance regression testing of mirage-net-xen.

Please send us any feedback or suggestion for the tests that you thing 
would be useful to add.

Thanks.

On 15/02/15 12:50, Richard Mortier wrote:
> yes, it's still the 2014/15 academic year :p
>
> i suspect i know the answer to this but just in case: i presume by
> "bare metal" you really do mean bare metal? ie., inside a virtualbox
> is not going to work?
>
> masoud-- if that's the case, i'll pick this up with you offline.
> there's a server in nottingham that you should be able to get access
> to and do what you want with. i originally put xen on it by hand and
> used the xm/xl tools, but it sounds like it might be time to wipe it
> and start again with xenserver.
>
>
> On 15 February 2015 at 12:18, David Scott <scott.dj@gmail.com> wrote:
>>
>> On Sun, Feb 15, 2015 at 11:52 AM, Richard Mortier
>> <richard.mortier@cl.cam.ac.uk> wrote:
>>> On 15 February 2015 at 11:28, Anil Madhavapeddy <anil@recoil.org> wrote:
>>>> On 15 Feb 2015, at 11:19, Richard Mortier <richard.mortier@cl.cam.ac.uk>
>>>> wrote:
>>>>> On 15 February 2015 at 11:15, Anil Madhavapeddy <anil@recoil.org>
>>>>> wrote:
>>>>>> This is great to see -- thanks for working on this Masoud!
>>>>>>
>>>>>> In particular, having even a simple iperf test would let us test
>>>>>> several interesting combinations straight away:
>>>>>>
>>>>>> - vary OCaml version (4.01 vs 4.02 is now supported), and there
>>>>>>   is an experimental inlining branch in 4.03dev that could directly
>>>>>>   be tested using this infrastructure.
>>>>> ok-- so i guess that needs a switch/env var to specify the `opam
>>>>> switch` to use?
>>>> Yeah.  Although from the performance scripts' perspective, it's better
>>>> if they just assume that there is a working OPAM environment.  It would
>>>> be easier to control these parameters from outside, and keep the perf
>>>> scripts as easy to run as possible.
>>> ah-- original thinking was to make `mir-perf.sh` a harness that might
>>> be fired by `git-bisect`.
>>>
>>> if it's just to be a script to run a single experiment (parameter set)
>>> in a pre-configured environment, then that's a lot simpler.
>>>
>>>> A couple of other things that might help:
>>>>
>>>> - Luke Dunstan has a rather comprehensive acceptance test suite for
>>>>    MDNS:
>>>> https://github.com/infidel/ocaml-mdns/tree/master/lib_test/acceptance
>>>>
>>>> - OCamlPro has a benchmarking system for core OCaml here that may have
>>>>    some useful libraries: https://github.com/OCamlPro/operf-macro
>>>>
>>>> - Performance tests could be wrapped using Core_bench, which
>>>>    does linear regression across runs.
>>>>
>>>> https://realworldocaml.org/v1/en/html/understanding-the-garbage-collector.html#the-mutable-write-barrier
>>>>
>>> cool, ta.
>>>
>>>>>> - evaluate the impact of some features incoming such as the open
>>>>>>   RFC for checksum offload.
>>>>> how are they specified -- as a PR?
>>>>> in which case, masoud-- i guess that
>>>>> https://help.github.com/articles/checking-out-pull-requests-locally/
>>>>> is a starting point for how to specify a particular PR rather than
>>>>> simply a commit rev.
>>>> Yes, although again this would be better done outside the performance
>>>> harness as an OPAM pin for the local environment.  Just having the
>>>> ability to quickly run a performance test would be invaluable at this
>>>> stage.
>>> so the caller of the script will
>>>
>>> + select their opam switch
>>> + pin any libraries, whether to PRs or particular commit-revs
>>> + record the environment configuration
>>>
>>> + then run the script, specifying the test to run, which will
>>>    + start the unikernel-under-test
>>>    + start any testing-unikernels (eg., iperf-client, iperf-server)
>>>    + collect and record test results
>>>
>>> ...right?
>>>
>>> ultimately i was thinking to have the recorded test results put in a
>>> repo somewhere too, so that they could be visualised, compared to a
>>> benchmark, etc.
>>>
>>>>> just to be clear -- you mean does iperf via unikernels, ie., all the
>>>>> tests that are executed should also be unikernels rather than standard
>>>>> tools so that we don't take dependencies on an underlying platform
>>>>> like the dom0?
>>>> Yes -- Xen unikernels would be the primary target.
>>> cool. less shell hacking, more unikernel hacking :)
>>>
>>>> Starting and stopping VMs in open source Xen can be bit of a pain, so
>>>> it would be ok if the test harness used XenServer (which the ARM SDcard
>>>> images now include).  Jon or Dave could comment on the state of the
>>>> XMLRPC
>>>> OCaml bindings to XenServer...
>>> that would be useful. is it easy to get xenserver installed on x86 as
>>> well? (that's the platform masoud is mostly working on.)
>>
>> x86 as well? What is this, 2014? :-) Your options are:
>>
>> 1. install the latest 6.5 release of xenserver on bare metal
>>
>> Pros: this is well tested and will work very well as a virtualisation
>> platform
>> Cons: it takes over a whole machine. To do unikernel development you'll need
>> to install a dev VM i.e. you can't do it in dom0. It's good practice to
>> leave dom0 alone anyway. Think of it like a black box which can run VMs.
>>
>> 2. build the latest version from source and install on a CentOS 6/7 or maybe
>> Ubuntu box
>>
>> Pros: you can do whatever you want with dom0
>> Cons: some aspect of running VMs/ managing networks / managing storage is
>> bound to not work and you'll need to debug it. There is little automated
>> testing of this configuration, I (also Euan, Jon) try to fix bugs when I/we
>> encounter them on a best-effort basis.
>>
>> If you want to focus on unikernel dev and test, I recommend option 1. If you
>> want a new hobby of debugging VM hosting software, then try option 2.
>>
>> In the long run ... we'll converge option 1 and option 2... but I wouldn't
>> wait.
>>
>> Cheers,
>> Dave
>>
>>>
>>>>> cool... (one day i must learn about the cambridge infrastructure
>>>>> machines :)
>>>> Be careful what you wish for :)
>>> now i'm genuinely curious... :)
>>>
>>> --
>>> Richard Mortier
>>> richard.mortier@cl.cam.ac.uk
>>>
>>> _______________________________________________
>>> MirageOS-devel mailing list
>>> MirageOS-devel@lists.xenproject.org
>>> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>>
>>
>>
>> --
>> Dave Scott
>
>

-- 
Research Fellow
School of Computer Science
University of Nottingham
Nottingham
NG8 1BB





This message and any attachment are intended solely for the addressee
and may contain confidential information. If you have received this
message in error, please send it back to me, and immediately delete it. 

Please do not use, copy or disclose the information contained in this
message or in any attachment.  Any views or opinions expressed by the
author of this email do not necessarily reflect the views of the
University of Nottingham.

This message has been checked for viruses but the contents of an
attachment may still contain software viruses which could damage your
computer system, you are advised to perform your own checks. Email
communications with the University of Nottingham may be monitored as
permitted by UK legislation.


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 04 16:37:08 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 04 Mar 2015 16:37:08 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YTCID-0003hf-KG; Wed, 04 Mar 2015 16:37:05 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <pszmk1@nottingham.ac.uk>) id 1YTCIC-0003hY-85
	for MirageOS-devel@lists.xenproject.org; Wed, 04 Mar 2015 16:37:04 +0000
Received: from [85.158.137.68] by server-10.bemta-3.messagelabs.com id
	B9/24-02745-FA437F45; Wed, 04 Mar 2015 16:37:03 +0000
X-Env-Sender: pszmk1@nottingham.ac.uk
X-Msg-Ref: server-3.tower-31.messagelabs.com!1425487021!13141634!1
X-Originating-IP: [128.243.43.125]
X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 19620 invoked from network); 4 Mar 2015 16:37:01 -0000
Received: from uidappmx02.nottingham.ac.uk (HELO uidappmx02.nottingham.ac.uk)
	(128.243.43.125) by server-3.tower-31.messagelabs.com with SMTP;
	4 Mar 2015 16:37:01 -0000
Received: from uidappmx02.nottingham.ac.uk (localhost.localdomain [127.0.0.1])
	by localhost (Email Security Appliance) with SMTP id
	C27552E86A6_4F734ACB; Wed,  4 Mar 2015 16:37:00 +0000 (GMT)
Received: from smtp3.nottingham.ac.uk (smtp3.nottingham.ac.uk [128.243.44.55])
	by uidappmx02.nottingham.ac.uk (Sophos Email Appliance) with ESMTP
	id 7618C2E8652_4F734ACF; Wed,  4 Mar 2015 16:37:00 +0000 (GMT)
Received: from cirrus.cs.nott.ac.uk ([128.243.23.185])
	by smtp3.nottingham.ac.uk with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128)
	(Exim 4.85) (envelope-from <pszmk1@nottingham.ac.uk>)
	id 1YTCI7-0007Iw-Gu; Wed, 04 Mar 2015 16:37:00 +0000
Message-ID: <54F734A7.90405@nottingham.ac.uk>
Date: Wed, 04 Mar 2015 16:36:55 +0000
From: Masoud Koleini <masoud.koleini@nottingham.ac.uk>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: Richard Mortier <richard.mortier@cl.cam.ac.uk>, 
	David Scott <scott.dj@gmail.com>
References: <CAN2Hq05XvJHCvPoKTFw+Ev4+_UiMHB12b2tE5pDSDp6J=bpqQQ@mail.gmail.com>	<D4442CE5-DE55-4311-8DC6-1A8240EBC98E@recoil.org>	<CAN2Hq0613QH39MhOgxC0YQWH43p3w=Ag=-FtPcnqZMsAynuE1w@mail.gmail.com>	<9C6275D4-2397-45E7-B18A-81A47C317545@recoil.org>	<CAN2Hq06NWvPceFurEDhKkgjxkSHmc_Cp5iEEYPNVJSjqoBNtZQ@mail.gmail.com>	<CAG_esB13xBq08jfhBoz6tbx3d9335mW=Gw7p5tVQpzS=xRHSVQ@mail.gmail.com>
	<CAN2Hq04GEDv8RV85DOomDGy_BN2+=Wh8i-2dJy9R+r-6GdRWhg@mail.gmail.com>
In-Reply-To: <CAN2Hq04GEDv8RV85DOomDGy_BN2+=Wh8i-2dJy9R+r-6GdRWhg@mail.gmail.com>
X-Spam-Score: -1.0 (-)
X-Spam-Report: Spam detection software,
	running on the system "smtp3.nottingham.ac.uk", has
	identified this incoming email as possible spam. The original message
	has been attached to this so you can view it (if it isn't spam) or
	label similar future email.  If you have any questions, see
	the administrator of that system for details.
	Content preview:  Hi all,
	We have now created `mirage-perf` repository that
	provides a simple Mirage performance regression test on XenServer:
	https://github.com/mirage/mirage-perf [...] 
	Content analysis details:   (-1.0 points, 4.0 required)
	pts rule name              description
	---- ----------------------
	--------------------------------------------------
	-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
Cc: mirageos-devel <MirageOS-devel@lists.xenproject.org>,
	Anil Madhavapeddy <anil@recoil.org>
Subject: Re: [MirageOS-devel] performance regression tests
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi all,

We have now created  `mirage-perf` repository that provides a simple 
Mirage performance regression test on XenServer:

https://github.com/mirage/mirage-perf

This version is much simpler than previous one we announced 
(https://github.com/koleini/mirage-perf), and so far uses one single 
unikernel--based on Balraj's iperf--that sends tcp traffic from one 
interface to the second one at highest possible rate, and retrieves 
statistics.

The previous version of mirage-perf runs on Xen Dom0, creates a 
linux-based vm (traffic generator) and a Mirage unikernel, and installs 
off-the-shelf tools to generate and monitor traffic focusing on 
customised performance regression testing of mirage-net-xen.

Please send us any feedback or suggestion for the tests that you thing 
would be useful to add.

Thanks.

On 15/02/15 12:50, Richard Mortier wrote:
> yes, it's still the 2014/15 academic year :p
>
> i suspect i know the answer to this but just in case: i presume by
> "bare metal" you really do mean bare metal? ie., inside a virtualbox
> is not going to work?
>
> masoud-- if that's the case, i'll pick this up with you offline.
> there's a server in nottingham that you should be able to get access
> to and do what you want with. i originally put xen on it by hand and
> used the xm/xl tools, but it sounds like it might be time to wipe it
> and start again with xenserver.
>
>
> On 15 February 2015 at 12:18, David Scott <scott.dj@gmail.com> wrote:
>>
>> On Sun, Feb 15, 2015 at 11:52 AM, Richard Mortier
>> <richard.mortier@cl.cam.ac.uk> wrote:
>>> On 15 February 2015 at 11:28, Anil Madhavapeddy <anil@recoil.org> wrote:
>>>> On 15 Feb 2015, at 11:19, Richard Mortier <richard.mortier@cl.cam.ac.uk>
>>>> wrote:
>>>>> On 15 February 2015 at 11:15, Anil Madhavapeddy <anil@recoil.org>
>>>>> wrote:
>>>>>> This is great to see -- thanks for working on this Masoud!
>>>>>>
>>>>>> In particular, having even a simple iperf test would let us test
>>>>>> several interesting combinations straight away:
>>>>>>
>>>>>> - vary OCaml version (4.01 vs 4.02 is now supported), and there
>>>>>>   is an experimental inlining branch in 4.03dev that could directly
>>>>>>   be tested using this infrastructure.
>>>>> ok-- so i guess that needs a switch/env var to specify the `opam
>>>>> switch` to use?
>>>> Yeah.  Although from the performance scripts' perspective, it's better
>>>> if they just assume that there is a working OPAM environment.  It would
>>>> be easier to control these parameters from outside, and keep the perf
>>>> scripts as easy to run as possible.
>>> ah-- original thinking was to make `mir-perf.sh` a harness that might
>>> be fired by `git-bisect`.
>>>
>>> if it's just to be a script to run a single experiment (parameter set)
>>> in a pre-configured environment, then that's a lot simpler.
>>>
>>>> A couple of other things that might help:
>>>>
>>>> - Luke Dunstan has a rather comprehensive acceptance test suite for
>>>>    MDNS:
>>>> https://github.com/infidel/ocaml-mdns/tree/master/lib_test/acceptance
>>>>
>>>> - OCamlPro has a benchmarking system for core OCaml here that may have
>>>>    some useful libraries: https://github.com/OCamlPro/operf-macro
>>>>
>>>> - Performance tests could be wrapped using Core_bench, which
>>>>    does linear regression across runs.
>>>>
>>>> https://realworldocaml.org/v1/en/html/understanding-the-garbage-collector.html#the-mutable-write-barrier
>>>>
>>> cool, ta.
>>>
>>>>>> - evaluate the impact of some features incoming such as the open
>>>>>>   RFC for checksum offload.
>>>>> how are they specified -- as a PR?
>>>>> in which case, masoud-- i guess that
>>>>> https://help.github.com/articles/checking-out-pull-requests-locally/
>>>>> is a starting point for how to specify a particular PR rather than
>>>>> simply a commit rev.
>>>> Yes, although again this would be better done outside the performance
>>>> harness as an OPAM pin for the local environment.  Just having the
>>>> ability to quickly run a performance test would be invaluable at this
>>>> stage.
>>> so the caller of the script will
>>>
>>> + select their opam switch
>>> + pin any libraries, whether to PRs or particular commit-revs
>>> + record the environment configuration
>>>
>>> + then run the script, specifying the test to run, which will
>>>    + start the unikernel-under-test
>>>    + start any testing-unikernels (eg., iperf-client, iperf-server)
>>>    + collect and record test results
>>>
>>> ...right?
>>>
>>> ultimately i was thinking to have the recorded test results put in a
>>> repo somewhere too, so that they could be visualised, compared to a
>>> benchmark, etc.
>>>
>>>>> just to be clear -- you mean does iperf via unikernels, ie., all the
>>>>> tests that are executed should also be unikernels rather than standard
>>>>> tools so that we don't take dependencies on an underlying platform
>>>>> like the dom0?
>>>> Yes -- Xen unikernels would be the primary target.
>>> cool. less shell hacking, more unikernel hacking :)
>>>
>>>> Starting and stopping VMs in open source Xen can be bit of a pain, so
>>>> it would be ok if the test harness used XenServer (which the ARM SDcard
>>>> images now include).  Jon or Dave could comment on the state of the
>>>> XMLRPC
>>>> OCaml bindings to XenServer...
>>> that would be useful. is it easy to get xenserver installed on x86 as
>>> well? (that's the platform masoud is mostly working on.)
>>
>> x86 as well? What is this, 2014? :-) Your options are:
>>
>> 1. install the latest 6.5 release of xenserver on bare metal
>>
>> Pros: this is well tested and will work very well as a virtualisation
>> platform
>> Cons: it takes over a whole machine. To do unikernel development you'll need
>> to install a dev VM i.e. you can't do it in dom0. It's good practice to
>> leave dom0 alone anyway. Think of it like a black box which can run VMs.
>>
>> 2. build the latest version from source and install on a CentOS 6/7 or maybe
>> Ubuntu box
>>
>> Pros: you can do whatever you want with dom0
>> Cons: some aspect of running VMs/ managing networks / managing storage is
>> bound to not work and you'll need to debug it. There is little automated
>> testing of this configuration, I (also Euan, Jon) try to fix bugs when I/we
>> encounter them on a best-effort basis.
>>
>> If you want to focus on unikernel dev and test, I recommend option 1. If you
>> want a new hobby of debugging VM hosting software, then try option 2.
>>
>> In the long run ... we'll converge option 1 and option 2... but I wouldn't
>> wait.
>>
>> Cheers,
>> Dave
>>
>>>
>>>>> cool... (one day i must learn about the cambridge infrastructure
>>>>> machines :)
>>>> Be careful what you wish for :)
>>> now i'm genuinely curious... :)
>>>
>>> --
>>> Richard Mortier
>>> richard.mortier@cl.cam.ac.uk
>>>
>>> _______________________________________________
>>> MirageOS-devel mailing list
>>> MirageOS-devel@lists.xenproject.org
>>> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>>
>>
>>
>> --
>> Dave Scott
>
>

-- 
Research Fellow
School of Computer Science
University of Nottingham
Nottingham
NG8 1BB





This message and any attachment are intended solely for the addressee
and may contain confidential information. If you have received this
message in error, please send it back to me, and immediately delete it. 

Please do not use, copy or disclose the information contained in this
message or in any attachment.  Any views or opinions expressed by the
author of this email do not necessarily reflect the views of the
University of Nottingham.

This message has been checked for viruses but the contents of an
attachment may still contain software viruses which could damage your
computer system, you are advised to perform your own checks. Email
communications with the University of Nottingham may be monitored as
permitted by UK legislation.


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 04 16:40:29 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 04 Mar 2015 16:40:29 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YTCLU-0003kL-V0; Wed, 04 Mar 2015 16:40:28 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YTCLU-0003kG-6f
	for mirageos-devel@lists.xenproject.org; Wed, 04 Mar 2015 16:40:28 +0000
Received: from [85.158.137.68] by server-8.bemta-3.messagelabs.com id
	82/84-03710-B7537F45; Wed, 04 Mar 2015 16:40:27 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-15.tower-31.messagelabs.com!1425487226!12953424!1
X-Originating-IP: [209.85.212.171]
X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 8918 invoked from network); 4 Mar 2015 16:40:26 -0000
Received: from mail-wi0-f171.google.com (HELO mail-wi0-f171.google.com)
	(209.85.212.171)
	by server-15.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	4 Mar 2015 16:40:26 -0000
Received: by wibbs8 with SMTP id bs8so661139wib.0
	for <mirageos-devel@lists.xenproject.org>;
	Wed, 04 Mar 2015 08:40:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=quGumeU1YDymyUMdWKHU+kf2FfPUnuKA25nsF1vO9RQ=;
	b=WPW8KGFb1fpkVMt0QSFPOXajg6MmmXIpcQb9ipgvqs2a4vxzrsJHoxbXKxuoawqA/f
	lt0qymWKvml3Fz0U6dOl4OSWqe+j+wg18pAqMiYXZnclOcS/EncRlTTWPFZi5K25we9q
	iI8mr4lZtzFV11mV1Q6zI5MdfS1SzZ/52X1uhvU4cIdhGJQ8IId1X+FO3i0Dl6htmGp8
	0Q7qIw2tb6989IWqaXwPqpK5gePTFUsZseiy6lgoUQAHkyhNrnC7qAfFyJHdV+Cwvo2h
	gAh8UYwarCU5dr5ZYOri00yTAuRK92DwWGRCuXfn9RiAaUsA0PmRFpmhAULquFKwZ/7/
	H0jw==
X-Received: by 10.180.206.83 with SMTP id lm19mr14491557wic.41.1425487225574; 
	Wed, 04 Mar 2015 08:40:25 -0800 (PST)
Received: from ?IPv6:2001:630:212:248:f057:44fe:2888:9b7?
	([2001:630:212:248:f057:44fe:2888:9b7])
	by mx.google.com with ESMTPSA id p1sm7803006wib.23.2015.03.04.08.40.24
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Wed, 04 Mar 2015 08:40:24 -0800 (PST)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <CAG4opy9cSA0wrihBUc2ByV2vEPyqkQBSavkwZJDxCxxr=LJiEQ@mail.gmail.com>
Date: Wed, 4 Mar 2015 16:40:24 +0000
Message-Id: <C336E219-E67D-4326-9BB9-E764E3ECC58F@gazagnaire.org>
References: <CAG4opy8k+tgKwfwMfaGzc3m-Tc_JjbkPPWEbqbwDwMBO5vpUtA@mail.gmail.com>
	<8CEDB416-6238-4888-BA4B-B7305FDDE2D9@gazagnaire.org>
	<9349273A-0BB4-40C4-BF06-4307085AA90C@recoil.org>
	<B9F83982-F46E-4B60-B115-4D8D189C09FE@gazagnaire.org>
	<47D39FA3-050E-46E6-89D2-4253484E24A8@gazagnaire.org>
	<CAG4opy8ThEq3-bgXxnijqJ40QTLAqcw=fR5MrWcx-b82k=9WkQ@mail.gmail.com>
	<DUB128-W26232CC9AC746CDC3756C7B4160@phx.gbl>
	<CAG4opy-okAA=DiAJ_YyZot3zG8-0m1-HcMqnEdtPMf-QUExPvg@mail.gmail.com>
	<CAG4opy9cSA0wrihBUc2ByV2vEPyqkQBSavkwZJDxCxxr=LJiEQ@mail.gmail.com>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Irmin API newbie questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

> I've now extended this to support events, so if the user has the page
> open in two tabs they stay in sync. However, there's still the problem
> that you can't remove a watch, so once you start watching you have to
> keep on doing so. Not a problem for my app (I just watch the master
> branch) but might be a problem in general.

Currently, if you do not use an event stream anymore, the stream reader should be GCed automatically which will cause the stream writer (Irmin) to be clean-up on the next write. However I'm not totally sure the readers are properly GCed, so I need to check that before the release[1]. Did you notice some leaks there? But yes, you as don't control when the GC happen it might be better to leave the watch deallocation to the user. I need to think about that.

[1] https://github.com/mirage/irmin/issues/124

> I've also now made my app do merges: every item displayed on the
> screen records the Irmin commit from which it came. Usually this is
> the latest version, but if you're e.g. editing a form then it's the
> version when you started the edit. When you submit a change, it
> commits against that revision and then merges the result back to
> master. This means that if you make two different edits to something
> in two tabs, the conflict will be detected instead of silently
> discarding the first change. (Ideally I want to resolve the conflicts,
> but for now it just discards the second change and reports the error
> to the user).
> 
> I'm not sure I'm using the API correctly though. Here's my code for
> monitoring the master branch and updating the display when it changes:
> 
> https://github.com/talex5/cuekeeper/blob/83a5e3c146f2406b8491b1c9915cb7fef6753869/ck_update.ml#L30
> 
>  let make ~on_update branch =
>    let watch_tags = I.watch_tags (branch "Watch master") in
>    get_head_commit branch >>= fun initial_head ->
>    let mutex = Lwt_mutex.create () in
>    match I.branch (branch "Get branch name") with
>    | `Head _ -> failwith "Not a tag!"
>    | `Tag branch_name ->
>    let t = {
>      branch;
>      head = initial_head;
>      updated = Lwt_condition.create ();
>      mutex;
>    } in
>    async (fun () ->
>      on_update >>= fun on_update ->
>      watch_tags |> Lwt_stream.iter_s (function
>        | (n, Some _commit) when n = branch_name ->
>            (* (ignore the commit ID in the update message; we want
> the latest) *)
>            Lwt_mutex.with_lock t.mutex (fun () ->
>              I.head (branch "Get latest commit") >>= function
>              | None -> Ck_utils.error "Branch '%s' has disappeared!"
> branch_name
>              | Some head ->
>                  if head <> t.head then (
>                    t.head <- head;
>                    on_update head >>= fun () ->
>                    Lwt_condition.broadcast t.updated ();
>                    return ()
>                  ) else (
>                    return ()
>                  )
>            )
>        | _ -> return ()
>      )
>    );
>    return t

Hum, this clearly demonstrates that I need to improve the watch API ... I completely agree that getting the initial head is important: we need something similar to test_and_set at this level I think. I'm happy to move away from Lwt streams and use a more conventional callback API, where it's easier to control the scheduling (ie. hide the stream and expose only your "make" function directly in Irmin). I need to check with Dave what he needs exactly for Xenstore watches...

> Some points you have to worry about here:
> 
> - Irmin makes it easy to read data directly from a branch (tag), but
> this is usually unsafe, since a tag can update while you're reading
> it. Therefore, I think I always have to first get the head commit,
> then create a new store for that revision, then read from that. It
> might be safer if a branch just provided a way to get a commit, and
> reads had to be done from a fixed commit.

Hum, reading a tag should not be unsafe as the RW backend should ensure that updates are atomic. See Get_unix.with_write_file[2] for example where we use the fact that "rename" is the only operation guaranteed to be atomic on POSIX filesystem. Not sure which guarantee do you have for HTML5 local storage though ... I'm afraid you don't have many[3].

[2] https://github.com/mirage/ocaml-git/blob/master/lib/unix/git_unix.ml#L300
[3] http://balpha.de/2012/03/javascript-concurrency-and-locking-the-html5-localstorage/

> - I only need to be notified once after a series of changes. I discard
> the commit in the watch notification and always read the latest.
> Otherwise, I might update the GUI to show stale data. Since a merge
> can add many commits at once, the stream API doesn't seem useful (it
> still doesn't ensure you see each commit individually, if that's what
> you wanted).

In some cases this might be useful (if you store incremental updates that you want to replay) but I agree that this is not terribly useful in the main case.

> - The functions that update the store shouldn't return until the
> update has been see by the model ("on_update" has been called). I
> therefore create a mutex and a Lwt_condition so that the commit
> functions can be sure their change has been seen.

agreed and I think that's a good property to move into the watch API.

> All the code for changing the model goes via "merge_to_master". This
> takes a "base" argument (the commit which the user made the change
> from), creates a view (temporary branch), runs "fn" to make the
> requested change (which should always succeed), merges the temporary
> branch back to master, and waits for the on_update to notice it:
> 
>  let merge_to_master t ~base ~msg fn =
>    let path = I.Key.empty in
>    R.make_view base >>= fun view ->
>    fn view >>= fun result ->
>    Lwt_mutex.with_lock t.mutex (fun () ->
>      (* At this point, head cannot contain our commit because we
> haven't made it yet,
>       * and no updates can happen while we hold the lock. *)
>      let old_head = t.head in
>      let updated = Lwt_condition.wait t.updated in
>      R.V.merge_path (t.branch msg) path view >>= function
>      | `Conflict msg -> Ck_utils.error "Conflict during merge: %s
> (discarding change)" msg
>      | `Ok () ->
>      I.head (t.branch "Get latest commit") >|= function
>      | Some new_head when new_head <> old_head ->
>          (* [updated] cannot have fired yet because we still hold the
> lock. When it does
>           * fire next, it must contain our update. It must fire soon,
> as head has changed. *)
>          updated
>      | _ ->
>          (* Our change had no effect, so don't wait for head to move.
>           * Or, the branch was deleted - no point waiting then either. *)
>          return ()
>    ) >>= fun updated ->    (* Changes have been committed. *)
>    updated >>= fun () ->   (* [on_update] has been called. *)
>    return result
> 
> Does this approach seem sensible? I feel like the API perhaps wasn't
> intended to be used this way...

I can see why you are doing all of this, and this is certainly not optimal for an API point of view. One think I can do to help is to add an invariant to all the high-level updates (such as merge) functions to only perform the whole update only if the head didn't change since the beginning of the operations. It's an easy check to add and it will help a lot to reason on what happens during concurrent updates. The only reason I didn't do it before is that I was worried about starvation issues and other concurrency scheduling related issues - but I guess they are better than data loss ... and we could just picky bag on Lwt_mutex / Lwt_condition properties.

[4] https://github.com/mirage/irmin/issues/157

> I'm still worried about losing data due to races. JavaScript (I think)
> ensures that access to local storage from different threads doesn't
> get interleaved, but since Irmin uses Lwt we don't benefit from this.
> I suspect that if two tabs try to merge at once then one's commit will
> be silently discarded. Probably the back-end update function should
> take the expected old value as an argument so it can abort if the
> state has changed since then.

Not sure to understand what Lwt exactly changes there. I'm happy to modify the signature of the backends to add more checks, but modifying the "RW.update" signature to take an optional current value to test would mean modifying the "Irmin.update" signature as well. Not sure that's exactly what we want. Could add a new "RW.test_and_set" function though.[4] I'll think about it.

[5] https://github.com/mirage/irmin/issues/155

> It would also be useful to get the commit object from the merge before
> updating the branch. That way, I could try loading it as a sanity
> check (and thus reject any update that would result in an unreadable
> state). I guess I need to create another temporary branch, merge to
> that, then force-update master to it. Seems like a lot of work,
> though.

I think it's easy to add a "try_merge" function which do not update the head. The current way to do that is indeed to create a temporary branch.

[6] https://github.com/mirage/irmin/issues/156

> Anyway, despite these minor issues, Irmin is working great so far!

As usual, thanks for the very useful feedback! That'll definitely help improving the watch API and the overhaul usability.

Thomas


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 04 16:40:29 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 04 Mar 2015 16:40:29 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YTCLU-0003kL-V0; Wed, 04 Mar 2015 16:40:28 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YTCLU-0003kG-6f
	for mirageos-devel@lists.xenproject.org; Wed, 04 Mar 2015 16:40:28 +0000
Received: from [85.158.137.68] by server-8.bemta-3.messagelabs.com id
	82/84-03710-B7537F45; Wed, 04 Mar 2015 16:40:27 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-15.tower-31.messagelabs.com!1425487226!12953424!1
X-Originating-IP: [209.85.212.171]
X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 8918 invoked from network); 4 Mar 2015 16:40:26 -0000
Received: from mail-wi0-f171.google.com (HELO mail-wi0-f171.google.com)
	(209.85.212.171)
	by server-15.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	4 Mar 2015 16:40:26 -0000
Received: by wibbs8 with SMTP id bs8so661139wib.0
	for <mirageos-devel@lists.xenproject.org>;
	Wed, 04 Mar 2015 08:40:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=quGumeU1YDymyUMdWKHU+kf2FfPUnuKA25nsF1vO9RQ=;
	b=WPW8KGFb1fpkVMt0QSFPOXajg6MmmXIpcQb9ipgvqs2a4vxzrsJHoxbXKxuoawqA/f
	lt0qymWKvml3Fz0U6dOl4OSWqe+j+wg18pAqMiYXZnclOcS/EncRlTTWPFZi5K25we9q
	iI8mr4lZtzFV11mV1Q6zI5MdfS1SzZ/52X1uhvU4cIdhGJQ8IId1X+FO3i0Dl6htmGp8
	0Q7qIw2tb6989IWqaXwPqpK5gePTFUsZseiy6lgoUQAHkyhNrnC7qAfFyJHdV+Cwvo2h
	gAh8UYwarCU5dr5ZYOri00yTAuRK92DwWGRCuXfn9RiAaUsA0PmRFpmhAULquFKwZ/7/
	H0jw==
X-Received: by 10.180.206.83 with SMTP id lm19mr14491557wic.41.1425487225574; 
	Wed, 04 Mar 2015 08:40:25 -0800 (PST)
Received: from ?IPv6:2001:630:212:248:f057:44fe:2888:9b7?
	([2001:630:212:248:f057:44fe:2888:9b7])
	by mx.google.com with ESMTPSA id p1sm7803006wib.23.2015.03.04.08.40.24
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Wed, 04 Mar 2015 08:40:24 -0800 (PST)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <CAG4opy9cSA0wrihBUc2ByV2vEPyqkQBSavkwZJDxCxxr=LJiEQ@mail.gmail.com>
Date: Wed, 4 Mar 2015 16:40:24 +0000
Message-Id: <C336E219-E67D-4326-9BB9-E764E3ECC58F@gazagnaire.org>
References: <CAG4opy8k+tgKwfwMfaGzc3m-Tc_JjbkPPWEbqbwDwMBO5vpUtA@mail.gmail.com>
	<8CEDB416-6238-4888-BA4B-B7305FDDE2D9@gazagnaire.org>
	<9349273A-0BB4-40C4-BF06-4307085AA90C@recoil.org>
	<B9F83982-F46E-4B60-B115-4D8D189C09FE@gazagnaire.org>
	<47D39FA3-050E-46E6-89D2-4253484E24A8@gazagnaire.org>
	<CAG4opy8ThEq3-bgXxnijqJ40QTLAqcw=fR5MrWcx-b82k=9WkQ@mail.gmail.com>
	<DUB128-W26232CC9AC746CDC3756C7B4160@phx.gbl>
	<CAG4opy-okAA=DiAJ_YyZot3zG8-0m1-HcMqnEdtPMf-QUExPvg@mail.gmail.com>
	<CAG4opy9cSA0wrihBUc2ByV2vEPyqkQBSavkwZJDxCxxr=LJiEQ@mail.gmail.com>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Irmin API newbie questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

> I've now extended this to support events, so if the user has the page
> open in two tabs they stay in sync. However, there's still the problem
> that you can't remove a watch, so once you start watching you have to
> keep on doing so. Not a problem for my app (I just watch the master
> branch) but might be a problem in general.

Currently, if you do not use an event stream anymore, the stream reader should be GCed automatically which will cause the stream writer (Irmin) to be clean-up on the next write. However I'm not totally sure the readers are properly GCed, so I need to check that before the release[1]. Did you notice some leaks there? But yes, you as don't control when the GC happen it might be better to leave the watch deallocation to the user. I need to think about that.

[1] https://github.com/mirage/irmin/issues/124

> I've also now made my app do merges: every item displayed on the
> screen records the Irmin commit from which it came. Usually this is
> the latest version, but if you're e.g. editing a form then it's the
> version when you started the edit. When you submit a change, it
> commits against that revision and then merges the result back to
> master. This means that if you make two different edits to something
> in two tabs, the conflict will be detected instead of silently
> discarding the first change. (Ideally I want to resolve the conflicts,
> but for now it just discards the second change and reports the error
> to the user).
> 
> I'm not sure I'm using the API correctly though. Here's my code for
> monitoring the master branch and updating the display when it changes:
> 
> https://github.com/talex5/cuekeeper/blob/83a5e3c146f2406b8491b1c9915cb7fef6753869/ck_update.ml#L30
> 
>  let make ~on_update branch =
>    let watch_tags = I.watch_tags (branch "Watch master") in
>    get_head_commit branch >>= fun initial_head ->
>    let mutex = Lwt_mutex.create () in
>    match I.branch (branch "Get branch name") with
>    | `Head _ -> failwith "Not a tag!"
>    | `Tag branch_name ->
>    let t = {
>      branch;
>      head = initial_head;
>      updated = Lwt_condition.create ();
>      mutex;
>    } in
>    async (fun () ->
>      on_update >>= fun on_update ->
>      watch_tags |> Lwt_stream.iter_s (function
>        | (n, Some _commit) when n = branch_name ->
>            (* (ignore the commit ID in the update message; we want
> the latest) *)
>            Lwt_mutex.with_lock t.mutex (fun () ->
>              I.head (branch "Get latest commit") >>= function
>              | None -> Ck_utils.error "Branch '%s' has disappeared!"
> branch_name
>              | Some head ->
>                  if head <> t.head then (
>                    t.head <- head;
>                    on_update head >>= fun () ->
>                    Lwt_condition.broadcast t.updated ();
>                    return ()
>                  ) else (
>                    return ()
>                  )
>            )
>        | _ -> return ()
>      )
>    );
>    return t

Hum, this clearly demonstrates that I need to improve the watch API ... I completely agree that getting the initial head is important: we need something similar to test_and_set at this level I think. I'm happy to move away from Lwt streams and use a more conventional callback API, where it's easier to control the scheduling (ie. hide the stream and expose only your "make" function directly in Irmin). I need to check with Dave what he needs exactly for Xenstore watches...

> Some points you have to worry about here:
> 
> - Irmin makes it easy to read data directly from a branch (tag), but
> this is usually unsafe, since a tag can update while you're reading
> it. Therefore, I think I always have to first get the head commit,
> then create a new store for that revision, then read from that. It
> might be safer if a branch just provided a way to get a commit, and
> reads had to be done from a fixed commit.

Hum, reading a tag should not be unsafe as the RW backend should ensure that updates are atomic. See Get_unix.with_write_file[2] for example where we use the fact that "rename" is the only operation guaranteed to be atomic on POSIX filesystem. Not sure which guarantee do you have for HTML5 local storage though ... I'm afraid you don't have many[3].

[2] https://github.com/mirage/ocaml-git/blob/master/lib/unix/git_unix.ml#L300
[3] http://balpha.de/2012/03/javascript-concurrency-and-locking-the-html5-localstorage/

> - I only need to be notified once after a series of changes. I discard
> the commit in the watch notification and always read the latest.
> Otherwise, I might update the GUI to show stale data. Since a merge
> can add many commits at once, the stream API doesn't seem useful (it
> still doesn't ensure you see each commit individually, if that's what
> you wanted).

In some cases this might be useful (if you store incremental updates that you want to replay) but I agree that this is not terribly useful in the main case.

> - The functions that update the store shouldn't return until the
> update has been see by the model ("on_update" has been called). I
> therefore create a mutex and a Lwt_condition so that the commit
> functions can be sure their change has been seen.

agreed and I think that's a good property to move into the watch API.

> All the code for changing the model goes via "merge_to_master". This
> takes a "base" argument (the commit which the user made the change
> from), creates a view (temporary branch), runs "fn" to make the
> requested change (which should always succeed), merges the temporary
> branch back to master, and waits for the on_update to notice it:
> 
>  let merge_to_master t ~base ~msg fn =
>    let path = I.Key.empty in
>    R.make_view base >>= fun view ->
>    fn view >>= fun result ->
>    Lwt_mutex.with_lock t.mutex (fun () ->
>      (* At this point, head cannot contain our commit because we
> haven't made it yet,
>       * and no updates can happen while we hold the lock. *)
>      let old_head = t.head in
>      let updated = Lwt_condition.wait t.updated in
>      R.V.merge_path (t.branch msg) path view >>= function
>      | `Conflict msg -> Ck_utils.error "Conflict during merge: %s
> (discarding change)" msg
>      | `Ok () ->
>      I.head (t.branch "Get latest commit") >|= function
>      | Some new_head when new_head <> old_head ->
>          (* [updated] cannot have fired yet because we still hold the
> lock. When it does
>           * fire next, it must contain our update. It must fire soon,
> as head has changed. *)
>          updated
>      | _ ->
>          (* Our change had no effect, so don't wait for head to move.
>           * Or, the branch was deleted - no point waiting then either. *)
>          return ()
>    ) >>= fun updated ->    (* Changes have been committed. *)
>    updated >>= fun () ->   (* [on_update] has been called. *)
>    return result
> 
> Does this approach seem sensible? I feel like the API perhaps wasn't
> intended to be used this way...

I can see why you are doing all of this, and this is certainly not optimal for an API point of view. One think I can do to help is to add an invariant to all the high-level updates (such as merge) functions to only perform the whole update only if the head didn't change since the beginning of the operations. It's an easy check to add and it will help a lot to reason on what happens during concurrent updates. The only reason I didn't do it before is that I was worried about starvation issues and other concurrency scheduling related issues - but I guess they are better than data loss ... and we could just picky bag on Lwt_mutex / Lwt_condition properties.

[4] https://github.com/mirage/irmin/issues/157

> I'm still worried about losing data due to races. JavaScript (I think)
> ensures that access to local storage from different threads doesn't
> get interleaved, but since Irmin uses Lwt we don't benefit from this.
> I suspect that if two tabs try to merge at once then one's commit will
> be silently discarded. Probably the back-end update function should
> take the expected old value as an argument so it can abort if the
> state has changed since then.

Not sure to understand what Lwt exactly changes there. I'm happy to modify the signature of the backends to add more checks, but modifying the "RW.update" signature to take an optional current value to test would mean modifying the "Irmin.update" signature as well. Not sure that's exactly what we want. Could add a new "RW.test_and_set" function though.[4] I'll think about it.

[5] https://github.com/mirage/irmin/issues/155

> It would also be useful to get the commit object from the merge before
> updating the branch. That way, I could try loading it as a sanity
> check (and thus reject any update that would result in an unreadable
> state). I guess I need to create another temporary branch, merge to
> that, then force-update master to it. Seems like a lot of work,
> though.

I think it's easy to add a "try_merge" function which do not update the head. The current way to do that is indeed to create a temporary branch.

[6] https://github.com/mirage/irmin/issues/156

> Anyway, despite these minor issues, Irmin is working great so far!

As usual, thanks for the very useful feedback! That'll definitely help improving the watch API and the overhaul usability.

Thomas


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 04 17:31:37 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 04 Mar 2015 17:31:37 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YTD8w-0003u8-Dn; Wed, 04 Mar 2015 17:31:34 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <lars.kurth.xen@gmail.com>)
	id 1YTD8u-0003o2-HX; Wed, 04 Mar 2015 17:31:32 +0000
Received: from [85.158.137.68] by server-14.bemta-3.messagelabs.com id
	73/CE-02885-37147F45; Wed, 04 Mar 2015 17:31:31 +0000
X-Env-Sender: lars.kurth.xen@gmail.com
X-Msg-Ref: server-9.tower-31.messagelabs.com!1425490288!9366651!1
X-Originating-IP: [74.125.82.182]
X-SpamReason: No, hits=0.1 required=7.0 tests=HTML_50_60,HTML_MESSAGE
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 17322 invoked from network); 4 Mar 2015 17:31:28 -0000
Received: from mail-we0-f182.google.com (HELO mail-we0-f182.google.com)
	(74.125.82.182)
	by server-9.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	4 Mar 2015 17:31:28 -0000
Received: by wesq59 with SMTP id q59so47892021wes.1;
	Wed, 04 Mar 2015 09:31:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:content-type:subject:date:message-id:cc:to:mime-version;
	bh=t49/7hxrjK3pwdvsWyfwKkQOQhHjgOx1RsyUHkYerd0=;
	b=pZ5uJKTpYbrRwLCYZ9PZON1pGrtqKdCVCHw7Lxg4AXMks1+42C2dZ+Xl5Ez4LOWptL
	1JdUx+Cw4sT063tHymI4WkyHA7ECgAZ10LxnCCxySy6Ez6TaON2SWsULakWcnyddZzKy
	4TFMuSk/SMqCIzWpeTCCCkaIKC5leQMIbxRKULFvvWHW34O+Y3Xr20mjSUL9AraaX3u3
	ZBcnPJkyNjL3h9fSSpDRpS9l/0nEnNQcatwlQPttZwjvgLGgsxHnftW74mwqp1HKH2h0
	THzI2Cj+B3ey3nx5iMhY0KX4iP42416jK+ThVz47KPhFf8gKa9Hu+P5/TRigzKreM0vm
	i0Qg==
X-Received: by 10.194.205.138 with SMTP id lg10mr9870324wjc.130.1425490288129; 
	Wed, 04 Mar 2015 09:31:28 -0800 (PST)
Received: from [192.168.0.8] (97e3cd44.skybroadband.com. [151.227.205.68])
	by mx.google.com with ESMTPSA id
	gf11sm7995380wic.18.2015.03.04.09.31.23
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Wed, 04 Mar 2015 09:31:26 -0800 (PST)
From: Lars Kurth <lars.kurth.xen@gmail.com>
Date: Wed, 4 Mar 2015 17:31:18 +0000
Message-Id: <44A7E990-9056-405D-B619-6695B2204E33@gmail.com>
To: xen-devel <xen-devel@lists.xenproject.org>, xen-api@lists.xenproject.org,
	mirageos-devel <mirageos-devel@lists.xenproject.org>,
	embedded-pv-devel@lists.xenproject.org
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
X-Mailer: Apple Mail (2.2070.6)
Cc: advisory-board@lists.xenproject.org,
	Russ Pavlicek <russell.pavlicek@xenproject.org>
Subject: [MirageOS-devel] GSoC 2015 - Not accepted ... but some mentoring
	organisations which have several Xen related projects in them are
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============6399232535864710881=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============6399232535864710881==
Content-Type: multipart/alternative; boundary="Apple-Mail=_AE147FE4-C337-4AA2-BAB2-AE4136222F15"


--Apple-Mail=_AE147FE4-C337-4AA2-BAB2-AE4136222F15
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hi folks,

just a quick note to let you know that we were not accepted for GSoC =
this year. Do note that the Linux Foundation, OpenStack Foundation and =
many of the other usual suspects have not been accepted this year. We =
will find out more why on Friday. However, there are at least 4 Xen =
related projects that are managed by other
=20
I made a note at the top of =
http://wiki.xenproject.org/wiki/Archived/GSoC_2015 =
<http://wiki.xenproject.org/wiki/Archived/GSoC_2015> to point applicants =
to some of those projects. I have found 5 so far (which may bot be a =
complete list):
Xen based Hypervisor in a Box @ Centos=C2=A0 =
<http://wiki.centos.org/GSoC/2015/Ideas#head-ecb615be72e53950f08df92809020=
721d44c6694>
Xen guest support for OpenBSD @ Open BSD Foundation=C2=A0 =
<http://www.openbsdfoundation.org/gsoc2015.html#xenguest>
3 Xen related projects @ Ganeti =
<https://code.google.com/p/ganeti/wiki/SummerOfCode2015Ideas>
Other projects which were accepted are QEMU =
<https://www.google-melange.com/gsoc/org2/google/gsoc2015/qemu>: note =
that there are no Xen related projects, but given that Xen has good =
relationships with the QEMU community we may be able to get one or two =
projects onto the list if someone steps up and is willing to mentor

Best Regards
Lars=

--Apple-Mail=_AE147FE4-C337-4AA2-BAB2-AE4136222F15
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">Hi folks,<div class=3D""><br class=3D""><div class=3D"">just =
a quick note to let you know that we were not accepted for GSoC this =
year. Do note that the Linux Foundation, OpenStack Foundation and many =
of the other usual suspects have not been accepted this year. We will =
find out more why on Friday. However, there are at least 4 Xen related =
projects that are managed by other</div><div class=3D"">&nbsp;</div><div =
class=3D"">I made a note at the top of <a =
href=3D"http://wiki.xenproject.org/wiki/Archived/GSoC_2015" =
class=3D"">http://wiki.xenproject.org/wiki/Archived/GSoC_2015</a>&nbsp;to =
point applicants to some of those projects. I have found 5 so far (which =
may bot be a complete list):</div></div><div class=3D""><ul class=3D""><li=
 class=3D""><a =
href=3D"http://wiki.centos.org/GSoC/2015/Ideas#head-ecb615be72e53950f08df9=
2809020721d44c6694" class=3D"">Xen based Hypervisor in a Box @ =
Centos&nbsp;</a></li><li class=3D""><a =
href=3D"http://www.openbsdfoundation.org/gsoc2015.html#xenguest" =
class=3D"">Xen guest support for OpenBSD @ Open BSD =
Foundation&nbsp;</a></li><li class=3D""><a =
href=3D"https://code.google.com/p/ganeti/wiki/SummerOfCode2015Ideas" =
class=3D"">3 Xen related projects @ Ganeti</a></li></ul><div =
class=3D"">Other projects which were accepted are&nbsp;<a =
href=3D"https://www.google-melange.com/gsoc/org2/google/gsoc2015/qemu" =
class=3D"">QEMU</a>: note that there are no Xen related projects, but =
given that Xen has good relationships with the QEMU community we may be =
able to get one or two projects onto the list if someone steps up and is =
willing to mentor</div></div><div class=3D""><br class=3D""></div><div =
class=3D"">Best Regards</div><div class=3D"">Lars</div></body></html>=

--Apple-Mail=_AE147FE4-C337-4AA2-BAB2-AE4136222F15--


--===============6399232535864710881==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============6399232535864710881==--


From mirageos-devel-bounces@lists.xenproject.org Wed Mar 04 17:31:37 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 04 Mar 2015 17:31:37 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YTD8w-0003u8-Dn; Wed, 04 Mar 2015 17:31:34 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <lars.kurth.xen@gmail.com>)
	id 1YTD8u-0003o2-HX; Wed, 04 Mar 2015 17:31:32 +0000
Received: from [85.158.137.68] by server-14.bemta-3.messagelabs.com id
	73/CE-02885-37147F45; Wed, 04 Mar 2015 17:31:31 +0000
X-Env-Sender: lars.kurth.xen@gmail.com
X-Msg-Ref: server-9.tower-31.messagelabs.com!1425490288!9366651!1
X-Originating-IP: [74.125.82.182]
X-SpamReason: No, hits=0.1 required=7.0 tests=HTML_50_60,HTML_MESSAGE
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 17322 invoked from network); 4 Mar 2015 17:31:28 -0000
Received: from mail-we0-f182.google.com (HELO mail-we0-f182.google.com)
	(74.125.82.182)
	by server-9.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	4 Mar 2015 17:31:28 -0000
Received: by wesq59 with SMTP id q59so47892021wes.1;
	Wed, 04 Mar 2015 09:31:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:content-type:subject:date:message-id:cc:to:mime-version;
	bh=t49/7hxrjK3pwdvsWyfwKkQOQhHjgOx1RsyUHkYerd0=;
	b=pZ5uJKTpYbrRwLCYZ9PZON1pGrtqKdCVCHw7Lxg4AXMks1+42C2dZ+Xl5Ez4LOWptL
	1JdUx+Cw4sT063tHymI4WkyHA7ECgAZ10LxnCCxySy6Ez6TaON2SWsULakWcnyddZzKy
	4TFMuSk/SMqCIzWpeTCCCkaIKC5leQMIbxRKULFvvWHW34O+Y3Xr20mjSUL9AraaX3u3
	ZBcnPJkyNjL3h9fSSpDRpS9l/0nEnNQcatwlQPttZwjvgLGgsxHnftW74mwqp1HKH2h0
	THzI2Cj+B3ey3nx5iMhY0KX4iP42416jK+ThVz47KPhFf8gKa9Hu+P5/TRigzKreM0vm
	i0Qg==
X-Received: by 10.194.205.138 with SMTP id lg10mr9870324wjc.130.1425490288129; 
	Wed, 04 Mar 2015 09:31:28 -0800 (PST)
Received: from [192.168.0.8] (97e3cd44.skybroadband.com. [151.227.205.68])
	by mx.google.com with ESMTPSA id
	gf11sm7995380wic.18.2015.03.04.09.31.23
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Wed, 04 Mar 2015 09:31:26 -0800 (PST)
From: Lars Kurth <lars.kurth.xen@gmail.com>
Date: Wed, 4 Mar 2015 17:31:18 +0000
Message-Id: <44A7E990-9056-405D-B619-6695B2204E33@gmail.com>
To: xen-devel <xen-devel@lists.xenproject.org>, xen-api@lists.xenproject.org,
	mirageos-devel <mirageos-devel@lists.xenproject.org>,
	embedded-pv-devel@lists.xenproject.org
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
X-Mailer: Apple Mail (2.2070.6)
Cc: advisory-board@lists.xenproject.org,
	Russ Pavlicek <russell.pavlicek@xenproject.org>
Subject: [MirageOS-devel] GSoC 2015 - Not accepted ... but some mentoring
	organisations which have several Xen related projects in them are
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============6399232535864710881=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============6399232535864710881==
Content-Type: multipart/alternative; boundary="Apple-Mail=_AE147FE4-C337-4AA2-BAB2-AE4136222F15"


--Apple-Mail=_AE147FE4-C337-4AA2-BAB2-AE4136222F15
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hi folks,

just a quick note to let you know that we were not accepted for GSoC =
this year. Do note that the Linux Foundation, OpenStack Foundation and =
many of the other usual suspects have not been accepted this year. We =
will find out more why on Friday. However, there are at least 4 Xen =
related projects that are managed by other
=20
I made a note at the top of =
http://wiki.xenproject.org/wiki/Archived/GSoC_2015 =
<http://wiki.xenproject.org/wiki/Archived/GSoC_2015> to point applicants =
to some of those projects. I have found 5 so far (which may bot be a =
complete list):
Xen based Hypervisor in a Box @ Centos=C2=A0 =
<http://wiki.centos.org/GSoC/2015/Ideas#head-ecb615be72e53950f08df92809020=
721d44c6694>
Xen guest support for OpenBSD @ Open BSD Foundation=C2=A0 =
<http://www.openbsdfoundation.org/gsoc2015.html#xenguest>
3 Xen related projects @ Ganeti =
<https://code.google.com/p/ganeti/wiki/SummerOfCode2015Ideas>
Other projects which were accepted are QEMU =
<https://www.google-melange.com/gsoc/org2/google/gsoc2015/qemu>: note =
that there are no Xen related projects, but given that Xen has good =
relationships with the QEMU community we may be able to get one or two =
projects onto the list if someone steps up and is willing to mentor

Best Regards
Lars=

--Apple-Mail=_AE147FE4-C337-4AA2-BAB2-AE4136222F15
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">Hi folks,<div class=3D""><br class=3D""><div class=3D"">just =
a quick note to let you know that we were not accepted for GSoC this =
year. Do note that the Linux Foundation, OpenStack Foundation and many =
of the other usual suspects have not been accepted this year. We will =
find out more why on Friday. However, there are at least 4 Xen related =
projects that are managed by other</div><div class=3D"">&nbsp;</div><div =
class=3D"">I made a note at the top of <a =
href=3D"http://wiki.xenproject.org/wiki/Archived/GSoC_2015" =
class=3D"">http://wiki.xenproject.org/wiki/Archived/GSoC_2015</a>&nbsp;to =
point applicants to some of those projects. I have found 5 so far (which =
may bot be a complete list):</div></div><div class=3D""><ul class=3D""><li=
 class=3D""><a =
href=3D"http://wiki.centos.org/GSoC/2015/Ideas#head-ecb615be72e53950f08df9=
2809020721d44c6694" class=3D"">Xen based Hypervisor in a Box @ =
Centos&nbsp;</a></li><li class=3D""><a =
href=3D"http://www.openbsdfoundation.org/gsoc2015.html#xenguest" =
class=3D"">Xen guest support for OpenBSD @ Open BSD =
Foundation&nbsp;</a></li><li class=3D""><a =
href=3D"https://code.google.com/p/ganeti/wiki/SummerOfCode2015Ideas" =
class=3D"">3 Xen related projects @ Ganeti</a></li></ul><div =
class=3D"">Other projects which were accepted are&nbsp;<a =
href=3D"https://www.google-melange.com/gsoc/org2/google/gsoc2015/qemu" =
class=3D"">QEMU</a>: note that there are no Xen related projects, but =
given that Xen has good relationships with the QEMU community we may be =
able to get one or two projects onto the list if someone steps up and is =
willing to mentor</div></div><div class=3D""><br class=3D""></div><div =
class=3D"">Best Regards</div><div class=3D"">Lars</div></body></html>=

--Apple-Mail=_AE147FE4-C337-4AA2-BAB2-AE4136222F15--


--===============6399232535864710881==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============6399232535864710881==--


From mirageos-devel-bounces@lists.xenproject.org Wed Mar 04 17:40:42 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 04 Mar 2015 17:40:42 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YTDHj-0004wS-PU; Wed, 04 Mar 2015 17:40:39 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <amc79@cam.ac.uk>)
	id 1YTDHi-0004w5-Pl; Wed, 04 Mar 2015 17:40:38 +0000
Received: from [85.158.137.68] by server-4.bemta-3.messagelabs.com id
	9A/8A-03185-59347F45; Wed, 04 Mar 2015 17:40:37 +0000
X-Env-Sender: amc79@cam.ac.uk
X-Msg-Ref: server-3.tower-31.messagelabs.com!1425490836!13161956!1
X-Originating-IP: [131.111.8.151]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogMTMxLjExMS44LjE1MSA9PiAxNDE4OTU=\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 30335 invoked from network); 4 Mar 2015 17:40:37 -0000
Received: from ppsw-51.csi.cam.ac.uk (HELO ppsw-51.csi.cam.ac.uk)
	(131.111.8.151)
	by server-3.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 4 Mar 2015 17:40:37 -0000
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from host81-149-102-120.in-addr.btopenworld.com
	([81.149.102.120]:62968 helo=[10.0.0.31])
	by ppsw-51.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.157]:587)
	with esmtpsa (PLAIN:amc79) (TLSv1:AES128-SHA:128)
	id 1YTDHg-00036d-Wt (Exim 4.82_3-c0e5623)
	(return-path <amc79@cam.ac.uk>); Wed, 04 Mar 2015 17:40:36 +0000
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
From: Amir Chaudhry <amc79@cam.ac.uk>
In-Reply-To: <44A7E990-9056-405D-B619-6695B2204E33@gmail.com>
Date: Wed, 4 Mar 2015 17:40:31 +0000
Message-Id: <B56ADDAA-9770-474F-B70E-A3F7468729DD@cam.ac.uk>
References: <44A7E990-9056-405D-B619-6695B2204E33@gmail.com>
To: Lars Kurth <lars.kurth.xen@gmail.com>
X-Mailer: Apple Mail (2.1510)
Cc: xen-api@lists.xenproject.org, advisory-board@lists.xenproject.org,
	Russ Pavlicek <russell.pavlicek@xenproject.org>,
	embedded-pv-devel@lists.xenproject.org,
	mirageos-devel <mirageos-devel@lists.xenproject.org>,
	xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] GSoC 2015 - Not accepted ... but some
	mentoring organisations which have several Xen related
	projects in them are
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: quoted-printable
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

I noticed this the other day and had a quick scout around.

"Mozilla not accepted for Google Summer of Code 2015"
http://blog.queze.net/post/2015/03/03/Mozilla-not-accepted-for-Google-Summe=
r-of-Code-2015

"Google=92s program is enormously popular, and over-subscribed, meaning Goo=
gle has had to rotate organisation membership"
http://news.open-bio.org/news/2015/03/sadly-obf-not-accepted-for-gsoc-2015/

Very unfortunate as we've had interest in the MirageOS projects.  I wondere=
d about talking to relevant accepted orgs about adding some MirageOS projec=
ts but haven't really had a chance to look into this.

Best wishes,
Amir

On 4 Mar 2015, at 17:31, Lars Kurth <lars.kurth.xen@gmail.com> wrote:

> Hi folks,
> =

> just a quick note to let you know that we were not accepted for GSoC this=
 year. Do note that the Linux Foundation, OpenStack Foundation and many of =
the other usual suspects have not been accepted this year. We will find out=
 more why on Friday. However, there are at least 4 Xen related projects tha=
t are managed by other
>  =

> I made a note at the top of http://wiki.xenproject.org/wiki/Archived/GSoC=
_2015 to point applicants to some of those projects. I have found 5 so far =
(which may bot be a complete list):
> 	=95 Xen based Hypervisor in a Box @ Centos =

> 	=95 Xen guest support for OpenBSD @ Open BSD Foundation =

> 	=95 3 Xen related projects @ Ganeti
> Other projects which were accepted are QEMU: note that there are no Xen r=
elated projects, but given that Xen has good relationships with the QEMU co=
mmunity we may be able to get one or two projects onto the list if someone =
steps up and is willing to mentor
> =

> Best Regards
> Lars
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 04 17:40:42 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 04 Mar 2015 17:40:42 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YTDHj-0004wS-PU; Wed, 04 Mar 2015 17:40:39 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <amc79@cam.ac.uk>)
	id 1YTDHi-0004w5-Pl; Wed, 04 Mar 2015 17:40:38 +0000
Received: from [85.158.137.68] by server-4.bemta-3.messagelabs.com id
	9A/8A-03185-59347F45; Wed, 04 Mar 2015 17:40:37 +0000
X-Env-Sender: amc79@cam.ac.uk
X-Msg-Ref: server-3.tower-31.messagelabs.com!1425490836!13161956!1
X-Originating-IP: [131.111.8.151]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogMTMxLjExMS44LjE1MSA9PiAxNDE4OTU=\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 30335 invoked from network); 4 Mar 2015 17:40:37 -0000
Received: from ppsw-51.csi.cam.ac.uk (HELO ppsw-51.csi.cam.ac.uk)
	(131.111.8.151)
	by server-3.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 4 Mar 2015 17:40:37 -0000
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from host81-149-102-120.in-addr.btopenworld.com
	([81.149.102.120]:62968 helo=[10.0.0.31])
	by ppsw-51.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.157]:587)
	with esmtpsa (PLAIN:amc79) (TLSv1:AES128-SHA:128)
	id 1YTDHg-00036d-Wt (Exim 4.82_3-c0e5623)
	(return-path <amc79@cam.ac.uk>); Wed, 04 Mar 2015 17:40:36 +0000
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
From: Amir Chaudhry <amc79@cam.ac.uk>
In-Reply-To: <44A7E990-9056-405D-B619-6695B2204E33@gmail.com>
Date: Wed, 4 Mar 2015 17:40:31 +0000
Message-Id: <B56ADDAA-9770-474F-B70E-A3F7468729DD@cam.ac.uk>
References: <44A7E990-9056-405D-B619-6695B2204E33@gmail.com>
To: Lars Kurth <lars.kurth.xen@gmail.com>
X-Mailer: Apple Mail (2.1510)
Cc: xen-api@lists.xenproject.org, advisory-board@lists.xenproject.org,
	Russ Pavlicek <russell.pavlicek@xenproject.org>,
	embedded-pv-devel@lists.xenproject.org,
	mirageos-devel <mirageos-devel@lists.xenproject.org>,
	xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] GSoC 2015 - Not accepted ... but some
	mentoring organisations which have several Xen related
	projects in them are
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: quoted-printable
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

I noticed this the other day and had a quick scout around.

"Mozilla not accepted for Google Summer of Code 2015"
http://blog.queze.net/post/2015/03/03/Mozilla-not-accepted-for-Google-Summe=
r-of-Code-2015

"Google=92s program is enormously popular, and over-subscribed, meaning Goo=
gle has had to rotate organisation membership"
http://news.open-bio.org/news/2015/03/sadly-obf-not-accepted-for-gsoc-2015/

Very unfortunate as we've had interest in the MirageOS projects.  I wondere=
d about talking to relevant accepted orgs about adding some MirageOS projec=
ts but haven't really had a chance to look into this.

Best wishes,
Amir

On 4 Mar 2015, at 17:31, Lars Kurth <lars.kurth.xen@gmail.com> wrote:

> Hi folks,
> =

> just a quick note to let you know that we were not accepted for GSoC this=
 year. Do note that the Linux Foundation, OpenStack Foundation and many of =
the other usual suspects have not been accepted this year. We will find out=
 more why on Friday. However, there are at least 4 Xen related projects tha=
t are managed by other
>  =

> I made a note at the top of http://wiki.xenproject.org/wiki/Archived/GSoC=
_2015 to point applicants to some of those projects. I have found 5 so far =
(which may bot be a complete list):
> 	=95 Xen based Hypervisor in a Box @ Centos =

> 	=95 Xen guest support for OpenBSD @ Open BSD Foundation =

> 	=95 3 Xen related projects @ Ganeti
> Other projects which were accepted are QEMU: note that there are no Xen r=
elated projects, but given that Xen has good relationships with the QEMU co=
mmunity we may be able to get one or two projects onto the list if someone =
steps up and is willing to mentor
> =

> Best Regards
> Lars
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 04 18:03:51 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 04 Mar 2015 18:03:51 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YTDe9-0000ge-2s; Wed, 04 Mar 2015 18:03:49 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <lars.kurth.xen@gmail.com>)
	id 1YTDe8-0000gF-2K; Wed, 04 Mar 2015 18:03:48 +0000
Received: from [193.109.254.147] by server-2.bemta-14.messagelabs.com id
	36/05-31919-20947F45; Wed, 04 Mar 2015 18:03:46 +0000
X-Env-Sender: lars.kurth.xen@gmail.com
X-Msg-Ref: server-15.tower-27.messagelabs.com!1425492226!14701372!1
X-Originating-IP: [209.85.212.179]
X-SpamReason: No, hits=0.3 required=7.0 tests=MAILTO_TO_SPAM_ADDR
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 26186 invoked from network); 4 Mar 2015 18:03:46 -0000
Received: from mail-wi0-f179.google.com (HELO mail-wi0-f179.google.com)
	(209.85.212.179)
	by server-15.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	4 Mar 2015 18:03:46 -0000
Received: by wiwh11 with SMTP id h11so32857730wiw.3;
	Wed, 04 Mar 2015 10:03:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=IEZd/R06ZDu9+aGfpFDFSp4wdUz0X9PtXEsPh6J4bCA=;
	b=YlrEz0JWcmXu5fs78lreDA7waEhBSdEcYMcha3RZGlFV+4+w/XLZdnqAKRuEiT/V4/
	4La8MeLZZ1ZPGeWVLyaGj5L2hirGuW0dLBWuzuSeKac5O5mdJClPksPWGLR58O7d/nTr
	QYR7vMi65Z4Vbn3ly7cTdyRzRgxrOnDQzfND5pqNcUCgJ8v680FtRTOt2u0y5PdhvSOP
	V15iJEuLCju83qT4Svt49C2h8/qzCKaDTCnP1xIVi47OH3B49uP5AiIliRkeznafyC0V
	AiITEUWMJYQ/7rngoJuzsuPFyICnW2OBGpT/zHvKjY9u74btoF6cKQ/+iNpW3cZ0RRLp
	zXBQ==
X-Received: by 10.194.122.196 with SMTP id lu4mr10488430wjb.154.1425492225957; 
	Wed, 04 Mar 2015 10:03:45 -0800 (PST)
Received: from [192.168.0.8] (97e3cd44.skybroadband.com. [151.227.205.68])
	by mx.google.com with ESMTPSA id
	lx10sm6984496wjb.17.2015.03.04.10.03.44
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Wed, 04 Mar 2015 10:03:45 -0800 (PST)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Lars Kurth <lars.kurth.xen@gmail.com>
In-Reply-To: <B56ADDAA-9770-474F-B70E-A3F7468729DD@cam.ac.uk>
Date: Wed, 4 Mar 2015 18:03:43 +0000
Message-Id: <1D0B399F-4839-4B68-B8E6-F387D27F5C88@gmail.com>
References: <44A7E990-9056-405D-B619-6695B2204E33@gmail.com>
	<B56ADDAA-9770-474F-B70E-A3F7468729DD@cam.ac.uk>
To: Amir Chaudhry <amc79@cam.ac.uk>
X-Mailer: Apple Mail (2.2070.6)
Cc: xen-api@lists.xenproject.org, advisory-board@lists.xenproject.org,
	Russ Pavlicek <russell.pavlicek@xenproject.org>,
	embedded-pv-devel@lists.xenproject.org,
	mirageos-devel <mirageos-devel@lists.xenproject.org>,
	xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] GSoC 2015 - Not accepted ... but some
	mentoring organisations which have several Xen related
	projects in them are
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: quoted-printable
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


> On 4 Mar 2015, at 17:40, Amir Chaudhry <amc79@cam.ac.uk> wrote:
> =

> I noticed this the other day and had a quick scout around.
> =

> "Mozilla not accepted for Google Summer of Code 2015"
> http://blog.queze.net/post/2015/03/03/Mozilla-not-accepted-for-Google-Sum=
mer-of-Code-2015
> =

> "Google=92s program is enormously popular, and over-subscribed, meaning G=
oogle has had to rotate organisation membership"
> http://news.open-bio.org/news/2015/03/sadly-obf-not-accepted-for-gsoc-201=
5/

I am not particularly surprised. The number of projects is growing, so is c=
ompetition. =


> Very unfortunate as we've had interest in the MirageOS projects.  I wonde=
red about talking to relevant accepted orgs about adding some MirageOS proj=
ects but haven't really had a chance to look into this.

Please go ahead. Of course we will again participate in OPW. I am still one=
 Advisory Board vote short for approval.

Regards
Lars
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 04 18:03:51 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 04 Mar 2015 18:03:51 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YTDe9-0000ge-2s; Wed, 04 Mar 2015 18:03:49 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <lars.kurth.xen@gmail.com>)
	id 1YTDe8-0000gF-2K; Wed, 04 Mar 2015 18:03:48 +0000
Received: from [193.109.254.147] by server-2.bemta-14.messagelabs.com id
	36/05-31919-20947F45; Wed, 04 Mar 2015 18:03:46 +0000
X-Env-Sender: lars.kurth.xen@gmail.com
X-Msg-Ref: server-15.tower-27.messagelabs.com!1425492226!14701372!1
X-Originating-IP: [209.85.212.179]
X-SpamReason: No, hits=0.3 required=7.0 tests=MAILTO_TO_SPAM_ADDR
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 26186 invoked from network); 4 Mar 2015 18:03:46 -0000
Received: from mail-wi0-f179.google.com (HELO mail-wi0-f179.google.com)
	(209.85.212.179)
	by server-15.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	4 Mar 2015 18:03:46 -0000
Received: by wiwh11 with SMTP id h11so32857730wiw.3;
	Wed, 04 Mar 2015 10:03:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=IEZd/R06ZDu9+aGfpFDFSp4wdUz0X9PtXEsPh6J4bCA=;
	b=YlrEz0JWcmXu5fs78lreDA7waEhBSdEcYMcha3RZGlFV+4+w/XLZdnqAKRuEiT/V4/
	4La8MeLZZ1ZPGeWVLyaGj5L2hirGuW0dLBWuzuSeKac5O5mdJClPksPWGLR58O7d/nTr
	QYR7vMi65Z4Vbn3ly7cTdyRzRgxrOnDQzfND5pqNcUCgJ8v680FtRTOt2u0y5PdhvSOP
	V15iJEuLCju83qT4Svt49C2h8/qzCKaDTCnP1xIVi47OH3B49uP5AiIliRkeznafyC0V
	AiITEUWMJYQ/7rngoJuzsuPFyICnW2OBGpT/zHvKjY9u74btoF6cKQ/+iNpW3cZ0RRLp
	zXBQ==
X-Received: by 10.194.122.196 with SMTP id lu4mr10488430wjb.154.1425492225957; 
	Wed, 04 Mar 2015 10:03:45 -0800 (PST)
Received: from [192.168.0.8] (97e3cd44.skybroadband.com. [151.227.205.68])
	by mx.google.com with ESMTPSA id
	lx10sm6984496wjb.17.2015.03.04.10.03.44
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Wed, 04 Mar 2015 10:03:45 -0800 (PST)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Lars Kurth <lars.kurth.xen@gmail.com>
In-Reply-To: <B56ADDAA-9770-474F-B70E-A3F7468729DD@cam.ac.uk>
Date: Wed, 4 Mar 2015 18:03:43 +0000
Message-Id: <1D0B399F-4839-4B68-B8E6-F387D27F5C88@gmail.com>
References: <44A7E990-9056-405D-B619-6695B2204E33@gmail.com>
	<B56ADDAA-9770-474F-B70E-A3F7468729DD@cam.ac.uk>
To: Amir Chaudhry <amc79@cam.ac.uk>
X-Mailer: Apple Mail (2.2070.6)
Cc: xen-api@lists.xenproject.org, advisory-board@lists.xenproject.org,
	Russ Pavlicek <russell.pavlicek@xenproject.org>,
	embedded-pv-devel@lists.xenproject.org,
	mirageos-devel <mirageos-devel@lists.xenproject.org>,
	xen-devel <xen-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] GSoC 2015 - Not accepted ... but some
	mentoring organisations which have several Xen related
	projects in them are
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: quoted-printable
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


> On 4 Mar 2015, at 17:40, Amir Chaudhry <amc79@cam.ac.uk> wrote:
> =

> I noticed this the other day and had a quick scout around.
> =

> "Mozilla not accepted for Google Summer of Code 2015"
> http://blog.queze.net/post/2015/03/03/Mozilla-not-accepted-for-Google-Sum=
mer-of-Code-2015
> =

> "Google=92s program is enormously popular, and over-subscribed, meaning G=
oogle has had to rotate organisation membership"
> http://news.open-bio.org/news/2015/03/sadly-obf-not-accepted-for-gsoc-201=
5/

I am not particularly surprised. The number of projects is growing, so is c=
ompetition. =


> Very unfortunate as we've had interest in the MirageOS projects.  I wonde=
red about talking to relevant accepted orgs about adding some MirageOS proj=
ects but haven't really had a chance to look into this.

Please go ahead. Of course we will again participate in OPW. I am still one=
 Advisory Board vote short for approval.

Regards
Lars
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 05 11:08:55 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 05 Mar 2015 11:08:55 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YTTe5-00048v-VZ; Thu, 05 Mar 2015 11:08:49 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YTTe3-00048q-QI
	for mirageos-devel@lists.xenproject.org; Thu, 05 Mar 2015 11:08:49 +0000
Received: from [85.158.137.68] by server-16.bemta-3.messagelabs.com id
	9A/EB-02745-F3938F45; Thu, 05 Mar 2015 11:08:47 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-11.tower-31.messagelabs.com!1425553722!13344122!1
X-Originating-IP: [209.85.215.41]
X-SpamReason: No, hits=0.8 required=7.0 tests=BODY_RANDOM_LONG,
  RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 24569 invoked from network); 5 Mar 2015 11:08:42 -0000
Received: from mail-la0-f41.google.com (HELO mail-la0-f41.google.com)
	(209.85.215.41)
	by server-11.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	5 Mar 2015 11:08:42 -0000
Received: by lams18 with SMTP id s18so50605719lam.11
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 05 Mar 2015 03:08:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding;
	bh=LLjWQ3VY2LFE0gf3OerRTognMFray4oQFhC1ZrnNV7I=;
	b=Giv/GTvb/93uhkdBj+RXgvlD2rxzmcNQlHPgoTdGO/T5BHiCPKEULXt1vaeet8FaYp
	PZdAybudtpTMqH6aiE56O8O+MnnQZkYuogWHjtL+scd6WS3LjDDhHSTDIC8/E/yUf8uz
	TUl1N/puHy3uj6neSxQdwnYhjhwEYxvPPEG95yiamcW6jVwY9vosMmVv212ga/j44Cu+
	yXi+3A7oBeyyklA9tDVX7iYr9I5M4w8JrIjlu8Lfo1x7drR86sjhmV14zCh4L6/HjLsU
	vENgbKnPOwaE2nYgAlzRxMR8ftvuu9oGOk+fjyD1NMDkDFoYZUmAOiiO1t1ajiEhpMLu
	jWGQ==
MIME-Version: 1.0
X-Received: by 10.153.4.44 with SMTP id cb12mr7402510lad.26.1425553722037;
	Thu, 05 Mar 2015 03:08:42 -0800 (PST)
Received: by 10.25.207.17 with HTTP; Thu, 5 Mar 2015 03:08:41 -0800 (PST)
In-Reply-To: <C336E219-E67D-4326-9BB9-E764E3ECC58F@gazagnaire.org>
References: <CAG4opy8k+tgKwfwMfaGzc3m-Tc_JjbkPPWEbqbwDwMBO5vpUtA@mail.gmail.com>
	<8CEDB416-6238-4888-BA4B-B7305FDDE2D9@gazagnaire.org>
	<9349273A-0BB4-40C4-BF06-4307085AA90C@recoil.org>
	<B9F83982-F46E-4B60-B115-4D8D189C09FE@gazagnaire.org>
	<47D39FA3-050E-46E6-89D2-4253484E24A8@gazagnaire.org>
	<CAG4opy8ThEq3-bgXxnijqJ40QTLAqcw=fR5MrWcx-b82k=9WkQ@mail.gmail.com>
	<DUB128-W26232CC9AC746CDC3756C7B4160@phx.gbl>
	<CAG4opy-okAA=DiAJ_YyZot3zG8-0m1-HcMqnEdtPMf-QUExPvg@mail.gmail.com>
	<CAG4opy9cSA0wrihBUc2ByV2vEPyqkQBSavkwZJDxCxxr=LJiEQ@mail.gmail.com>
	<C336E219-E67D-4326-9BB9-E764E3ECC58F@gazagnaire.org>
Date: Thu, 5 Mar 2015 11:08:41 +0000
Message-ID: <CAG4opy-JO3+Qa+a=VVV5XFvSBpetVkHOHzCxUGjvqEs5UqZ3uQ@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Irmin API newbie questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 4 March 2015 at 16:40, Thomas Gazagnaire <thomas@gazagnaire.org> wrote:
>> I've now extended this to support events, so if the user has the page
>> open in two tabs they stay in sync. However, there's still the problem
>> that you can't remove a watch, so once you start watching you have to
>> keep on doing so. Not a problem for my app (I just watch the master
>> branch) but might be a problem in general.
>
> Currently, if you do not use an event stream anymore, the stream reader should be GCed automatically which will cause the stream writer (Irmin) to be clean-up on the next write. However I'm not totally sure the readers are properly GCed, so I need to check that before the release[1]. Did you notice some leaks there? But yes, you as don't control when the GC happen it might be better to leave the watch deallocation to the user. I need to think about that.
>
> [1] https://github.com/mirage/irmin/issues/124

Sorry, I meant in the back-end. I have:

  let watch_all t =
    ignore (Lazy.force (t.listener));
    W.watch_all t.w

https://github.com/talex5/cuekeeper/blob/354a71805c3fc701b511d0d753524ac49430320b/html_storage.ml#L194

Forcing t.listener does "Dom.addEventListener Dom_html.window
Storage.event", which starts sending things to W.notify. However, I
have no way to know when events aren't needed any more so I can
disable the listener.

It's lazy so that only stores that have been watched at some point
create a listener (Irmin seems to create stores frequently - it looks
like every branch creates a new instance of the back-end, which seems
unnecessary).

>> I've also now made my app do merges: every item displayed on the
>> screen records the Irmin commit from which it came. Usually this is
>> the latest version, but if you're e.g. editing a form then it's the
>> version when you started the edit. When you submit a change, it
>> commits against that revision and then merges the result back to
>> master. This means that if you make two different edits to something
>> in two tabs, the conflict will be detected instead of silently
>> discarding the first change. (Ideally I want to resolve the conflicts,
>> but for now it just discards the second change and reports the error
>> to the user).
>>
>> I'm not sure I'm using the API correctly though. Here's my code for
>> monitoring the master branch and updating the display when it changes:
>>
>> https://github.com/talex5/cuekeeper/blob/83a5e3c146f2406b8491b1c9915cb7fef6753869/ck_update.ml#L30
>>
>>  let make ~on_update branch =
>>    let watch_tags = I.watch_tags (branch "Watch master") in
>>    get_head_commit branch >>= fun initial_head ->
>>    let mutex = Lwt_mutex.create () in
>>    match I.branch (branch "Get branch name") with
>>    | `Head _ -> failwith "Not a tag!"
>>    | `Tag branch_name ->
>>    let t = {
>>      branch;
>>      head = initial_head;
>>      updated = Lwt_condition.create ();
>>      mutex;
>>    } in
>>    async (fun () ->
>>      on_update >>= fun on_update ->
>>      watch_tags |> Lwt_stream.iter_s (function
>>        | (n, Some _commit) when n = branch_name ->
>>            (* (ignore the commit ID in the update message; we want
>> the latest) *)
>>            Lwt_mutex.with_lock t.mutex (fun () ->
>>              I.head (branch "Get latest commit") >>= function
>>              | None -> Ck_utils.error "Branch '%s' has disappeared!"
>> branch_name
>>              | Some head ->
>>                  if head <> t.head then (
>>                    t.head <- head;
>>                    on_update head >>= fun () ->
>>                    Lwt_condition.broadcast t.updated ();
>>                    return ()
>>                  ) else (
>>                    return ()
>>                  )
>>            )
>>        | _ -> return ()
>>      )
>>    );
>>    return t
>
> Hum, this clearly demonstrates that I need to improve the watch API ... I completely agree that getting the initial head is important: we need something similar to test_and_set at this level I think. I'm happy to move away from Lwt streams and use a more conventional callback API, where it's easier to control the scheduling (ie. hide the stream and expose only your "make" function directly in Irmin). I need to check with Dave what he needs exactly for Xenstore watches...
>
>> Some points you have to worry about here:
>>
>> - Irmin makes it easy to read data directly from a branch (tag), but
>> this is usually unsafe, since a tag can update while you're reading
>> it. Therefore, I think I always have to first get the head commit,
>> then create a new store for that revision, then read from that. It
>> might be safer if a branch just provided a way to get a commit, and
>> reads had to be done from a fixed commit.
>
> Hum, reading a tag should not be unsafe as the RW backend should ensure that updates are atomic. See Get_unix.with_write_file[2] for example where we use the fact that "rename" is the only operation guaranteed to be atomic on POSIX filesystem.

That's OK if you're only reading a single key, but usually you'll want
a consistent set of values, all from the same commit. e.g. if I do

  I.read t "key1" >>= fun value1 ->
  I.read t "key2" >>= fun value2 ->

then value1 and value2 will usually but not always be from the same
commit, which is an easy mistake to make. This would be safer:

  Branch.head_commit t >>= fun c ->
  I.read c "key1" >>= fun value1 ->
  I.read c "key2" >>= fun value2 ->

> Not sure which guarantee do you have for HTML5 local storage though ... I'm afraid you don't have many[3].

> [2] https://github.com/mirage/ocaml-git/blob/master/lib/unix/git_unix.ml#L300
> [3] http://balpha.de/2012/03/javascript-concurrency-and-locking-the-html5-localstorage/

I think that only matters when the read and write happen in different
event loop turns. The spec says:

http://www.w3.org/TR/webstorage/#threads

"Because of the use of the storage mutex, multiple browsing contexts
will be able to access the local storage areas simultaneously in such
a manner that scripts cannot detect any concurrent script execution."

So I think I can do an atomic test-and-set, but I can't hold a lock
while waiting for an async event. I'd be happy to have something like:

let rec merge master view =
  Branch.head master >>= fun old_head ->
  let merged = merge old_head view in
  Branch.update_tag master ~from:old_head merged >>= function
  | `Ok -> ()
  | `Out_of_date -> merge master view

>> - I only need to be notified once after a series of changes. I discard
>> the commit in the watch notification and always read the latest.
>> Otherwise, I might update the GUI to show stale data. Since a merge
>> can add many commits at once, the stream API doesn't seem useful (it
>> still doesn't ensure you see each commit individually, if that's what
>> you wanted).
>
> In some cases this might be useful (if you store incremental updates that you want to replay) but I agree that this is not terribly useful in the main case.
>
>> - The functions that update the store shouldn't return until the
>> update has been see by the model ("on_update" has been called). I
>> therefore create a mutex and a Lwt_condition so that the commit
>> functions can be sure their change has been seen.
>
> agreed and I think that's a good property to move into the watch API.

I'm not sure this bit should be moved to the main library. In many
cases you wouldn't care about waiting for the updates to be seen. But
we could have a wrapper for the branch API that provides this
(operations that set the branch pointer don't return until the
notification callback has run, or isn't going to run if the head
didn't move).

>> All the code for changing the model goes via "merge_to_master". This
>> takes a "base" argument (the commit which the user made the change
>> from), creates a view (temporary branch), runs "fn" to make the
>> requested change (which should always succeed), merges the temporary
>> branch back to master, and waits for the on_update to notice it:
>>
>>  let merge_to_master t ~base ~msg fn =
>>    let path = I.Key.empty in
>>    R.make_view base >>= fun view ->
>>    fn view >>= fun result ->
>>    Lwt_mutex.with_lock t.mutex (fun () ->
>>      (* At this point, head cannot contain our commit because we
>> haven't made it yet,
>>       * and no updates can happen while we hold the lock. *)
>>      let old_head = t.head in
>>      let updated = Lwt_condition.wait t.updated in
>>      R.V.merge_path (t.branch msg) path view >>= function
>>      | `Conflict msg -> Ck_utils.error "Conflict during merge: %s
>> (discarding change)" msg
>>      | `Ok () ->
>>      I.head (t.branch "Get latest commit") >|= function
>>      | Some new_head when new_head <> old_head ->
>>          (* [updated] cannot have fired yet because we still hold the
>> lock. When it does
>>           * fire next, it must contain our update. It must fire soon,
>> as head has changed. *)
>>          updated
>>      | _ ->
>>          (* Our change had no effect, so don't wait for head to move.
>>           * Or, the branch was deleted - no point waiting then either. *)
>>          return ()
>>    ) >>= fun updated ->    (* Changes have been committed. *)
>>    updated >>= fun () ->   (* [on_update] has been called. *)
>>    return result
>>
>> Does this approach seem sensible? I feel like the API perhaps wasn't
>> intended to be used this way...
>
> I can see why you are doing all of this, and this is certainly not optimal for an API point of view. One think I can do to help is to add an invariant to all the high-level updates (such as merge) functions to only perform the whole update only if the head didn't change since the beginning of the operations. It's an easy check to add and it will help a lot to reason on what happens during concurrent updates. The only reason I didn't do it before is that I was worried about starvation issues and other concurrency scheduling related issues - but I guess they are better than data loss ... and we could just picky bag on Lwt_mutex / Lwt_condition properties.
>
> [4] https://github.com/mirage/irmin/issues/157
>
>> I'm still worried about losing data due to races. JavaScript (I think)
>> ensures that access to local storage from different threads doesn't
>> get interleaved, but since Irmin uses Lwt we don't benefit from this.
>> I suspect that if two tabs try to merge at once then one's commit will
>> be silently discarded. Probably the back-end update function should
>> take the expected old value as an argument so it can abort if the
>> state has changed since then.
>
> Not sure to understand what Lwt exactly changes there. I'm happy to modify the signature of the backends to add more checks, but modifying the "RW.update" signature to take an optional current value to test would mean modifying the "Irmin.update" signature as well. Not sure that's exactly what we want. Could add a new "RW.test_and_set" function though.[4] I'll think about it.

That would be good.

> [5] https://github.com/mirage/irmin/issues/155
>
>> It would also be useful to get the commit object from the merge before
>> updating the branch. That way, I could try loading it as a sanity
>> check (and thus reject any update that would result in an unreadable
>> state). I guess I need to create another temporary branch, merge to
>> that, then force-update master to it. Seems like a lot of work,
>> though.
>
> I think it's easy to add a "try_merge" function which do not update the head. The current way to do that is indeed to create a temporary branch.
>
> [6] https://github.com/mirage/irmin/issues/156
>
>> Anyway, despite these minor issues, Irmin is working great so far!
>
> As usual, thanks for the very useful feedback! That'll definitely help improving the watch API and the overhaul usability.

Thanks!


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 05 11:08:55 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 05 Mar 2015 11:08:55 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YTTe5-00048v-VZ; Thu, 05 Mar 2015 11:08:49 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YTTe3-00048q-QI
	for mirageos-devel@lists.xenproject.org; Thu, 05 Mar 2015 11:08:49 +0000
Received: from [85.158.137.68] by server-16.bemta-3.messagelabs.com id
	9A/EB-02745-F3938F45; Thu, 05 Mar 2015 11:08:47 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-11.tower-31.messagelabs.com!1425553722!13344122!1
X-Originating-IP: [209.85.215.41]
X-SpamReason: No, hits=0.8 required=7.0 tests=BODY_RANDOM_LONG,
  RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 24569 invoked from network); 5 Mar 2015 11:08:42 -0000
Received: from mail-la0-f41.google.com (HELO mail-la0-f41.google.com)
	(209.85.215.41)
	by server-11.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	5 Mar 2015 11:08:42 -0000
Received: by lams18 with SMTP id s18so50605719lam.11
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 05 Mar 2015 03:08:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding;
	bh=LLjWQ3VY2LFE0gf3OerRTognMFray4oQFhC1ZrnNV7I=;
	b=Giv/GTvb/93uhkdBj+RXgvlD2rxzmcNQlHPgoTdGO/T5BHiCPKEULXt1vaeet8FaYp
	PZdAybudtpTMqH6aiE56O8O+MnnQZkYuogWHjtL+scd6WS3LjDDhHSTDIC8/E/yUf8uz
	TUl1N/puHy3uj6neSxQdwnYhjhwEYxvPPEG95yiamcW6jVwY9vosMmVv212ga/j44Cu+
	yXi+3A7oBeyyklA9tDVX7iYr9I5M4w8JrIjlu8Lfo1x7drR86sjhmV14zCh4L6/HjLsU
	vENgbKnPOwaE2nYgAlzRxMR8ftvuu9oGOk+fjyD1NMDkDFoYZUmAOiiO1t1ajiEhpMLu
	jWGQ==
MIME-Version: 1.0
X-Received: by 10.153.4.44 with SMTP id cb12mr7402510lad.26.1425553722037;
	Thu, 05 Mar 2015 03:08:42 -0800 (PST)
Received: by 10.25.207.17 with HTTP; Thu, 5 Mar 2015 03:08:41 -0800 (PST)
In-Reply-To: <C336E219-E67D-4326-9BB9-E764E3ECC58F@gazagnaire.org>
References: <CAG4opy8k+tgKwfwMfaGzc3m-Tc_JjbkPPWEbqbwDwMBO5vpUtA@mail.gmail.com>
	<8CEDB416-6238-4888-BA4B-B7305FDDE2D9@gazagnaire.org>
	<9349273A-0BB4-40C4-BF06-4307085AA90C@recoil.org>
	<B9F83982-F46E-4B60-B115-4D8D189C09FE@gazagnaire.org>
	<47D39FA3-050E-46E6-89D2-4253484E24A8@gazagnaire.org>
	<CAG4opy8ThEq3-bgXxnijqJ40QTLAqcw=fR5MrWcx-b82k=9WkQ@mail.gmail.com>
	<DUB128-W26232CC9AC746CDC3756C7B4160@phx.gbl>
	<CAG4opy-okAA=DiAJ_YyZot3zG8-0m1-HcMqnEdtPMf-QUExPvg@mail.gmail.com>
	<CAG4opy9cSA0wrihBUc2ByV2vEPyqkQBSavkwZJDxCxxr=LJiEQ@mail.gmail.com>
	<C336E219-E67D-4326-9BB9-E764E3ECC58F@gazagnaire.org>
Date: Thu, 5 Mar 2015 11:08:41 +0000
Message-ID: <CAG4opy-JO3+Qa+a=VVV5XFvSBpetVkHOHzCxUGjvqEs5UqZ3uQ@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Irmin API newbie questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 4 March 2015 at 16:40, Thomas Gazagnaire <thomas@gazagnaire.org> wrote:
>> I've now extended this to support events, so if the user has the page
>> open in two tabs they stay in sync. However, there's still the problem
>> that you can't remove a watch, so once you start watching you have to
>> keep on doing so. Not a problem for my app (I just watch the master
>> branch) but might be a problem in general.
>
> Currently, if you do not use an event stream anymore, the stream reader should be GCed automatically which will cause the stream writer (Irmin) to be clean-up on the next write. However I'm not totally sure the readers are properly GCed, so I need to check that before the release[1]. Did you notice some leaks there? But yes, you as don't control when the GC happen it might be better to leave the watch deallocation to the user. I need to think about that.
>
> [1] https://github.com/mirage/irmin/issues/124

Sorry, I meant in the back-end. I have:

  let watch_all t =
    ignore (Lazy.force (t.listener));
    W.watch_all t.w

https://github.com/talex5/cuekeeper/blob/354a71805c3fc701b511d0d753524ac49430320b/html_storage.ml#L194

Forcing t.listener does "Dom.addEventListener Dom_html.window
Storage.event", which starts sending things to W.notify. However, I
have no way to know when events aren't needed any more so I can
disable the listener.

It's lazy so that only stores that have been watched at some point
create a listener (Irmin seems to create stores frequently - it looks
like every branch creates a new instance of the back-end, which seems
unnecessary).

>> I've also now made my app do merges: every item displayed on the
>> screen records the Irmin commit from which it came. Usually this is
>> the latest version, but if you're e.g. editing a form then it's the
>> version when you started the edit. When you submit a change, it
>> commits against that revision and then merges the result back to
>> master. This means that if you make two different edits to something
>> in two tabs, the conflict will be detected instead of silently
>> discarding the first change. (Ideally I want to resolve the conflicts,
>> but for now it just discards the second change and reports the error
>> to the user).
>>
>> I'm not sure I'm using the API correctly though. Here's my code for
>> monitoring the master branch and updating the display when it changes:
>>
>> https://github.com/talex5/cuekeeper/blob/83a5e3c146f2406b8491b1c9915cb7fef6753869/ck_update.ml#L30
>>
>>  let make ~on_update branch =
>>    let watch_tags = I.watch_tags (branch "Watch master") in
>>    get_head_commit branch >>= fun initial_head ->
>>    let mutex = Lwt_mutex.create () in
>>    match I.branch (branch "Get branch name") with
>>    | `Head _ -> failwith "Not a tag!"
>>    | `Tag branch_name ->
>>    let t = {
>>      branch;
>>      head = initial_head;
>>      updated = Lwt_condition.create ();
>>      mutex;
>>    } in
>>    async (fun () ->
>>      on_update >>= fun on_update ->
>>      watch_tags |> Lwt_stream.iter_s (function
>>        | (n, Some _commit) when n = branch_name ->
>>            (* (ignore the commit ID in the update message; we want
>> the latest) *)
>>            Lwt_mutex.with_lock t.mutex (fun () ->
>>              I.head (branch "Get latest commit") >>= function
>>              | None -> Ck_utils.error "Branch '%s' has disappeared!"
>> branch_name
>>              | Some head ->
>>                  if head <> t.head then (
>>                    t.head <- head;
>>                    on_update head >>= fun () ->
>>                    Lwt_condition.broadcast t.updated ();
>>                    return ()
>>                  ) else (
>>                    return ()
>>                  )
>>            )
>>        | _ -> return ()
>>      )
>>    );
>>    return t
>
> Hum, this clearly demonstrates that I need to improve the watch API ... I completely agree that getting the initial head is important: we need something similar to test_and_set at this level I think. I'm happy to move away from Lwt streams and use a more conventional callback API, where it's easier to control the scheduling (ie. hide the stream and expose only your "make" function directly in Irmin). I need to check with Dave what he needs exactly for Xenstore watches...
>
>> Some points you have to worry about here:
>>
>> - Irmin makes it easy to read data directly from a branch (tag), but
>> this is usually unsafe, since a tag can update while you're reading
>> it. Therefore, I think I always have to first get the head commit,
>> then create a new store for that revision, then read from that. It
>> might be safer if a branch just provided a way to get a commit, and
>> reads had to be done from a fixed commit.
>
> Hum, reading a tag should not be unsafe as the RW backend should ensure that updates are atomic. See Get_unix.with_write_file[2] for example where we use the fact that "rename" is the only operation guaranteed to be atomic on POSIX filesystem.

That's OK if you're only reading a single key, but usually you'll want
a consistent set of values, all from the same commit. e.g. if I do

  I.read t "key1" >>= fun value1 ->
  I.read t "key2" >>= fun value2 ->

then value1 and value2 will usually but not always be from the same
commit, which is an easy mistake to make. This would be safer:

  Branch.head_commit t >>= fun c ->
  I.read c "key1" >>= fun value1 ->
  I.read c "key2" >>= fun value2 ->

> Not sure which guarantee do you have for HTML5 local storage though ... I'm afraid you don't have many[3].

> [2] https://github.com/mirage/ocaml-git/blob/master/lib/unix/git_unix.ml#L300
> [3] http://balpha.de/2012/03/javascript-concurrency-and-locking-the-html5-localstorage/

I think that only matters when the read and write happen in different
event loop turns. The spec says:

http://www.w3.org/TR/webstorage/#threads

"Because of the use of the storage mutex, multiple browsing contexts
will be able to access the local storage areas simultaneously in such
a manner that scripts cannot detect any concurrent script execution."

So I think I can do an atomic test-and-set, but I can't hold a lock
while waiting for an async event. I'd be happy to have something like:

let rec merge master view =
  Branch.head master >>= fun old_head ->
  let merged = merge old_head view in
  Branch.update_tag master ~from:old_head merged >>= function
  | `Ok -> ()
  | `Out_of_date -> merge master view

>> - I only need to be notified once after a series of changes. I discard
>> the commit in the watch notification and always read the latest.
>> Otherwise, I might update the GUI to show stale data. Since a merge
>> can add many commits at once, the stream API doesn't seem useful (it
>> still doesn't ensure you see each commit individually, if that's what
>> you wanted).
>
> In some cases this might be useful (if you store incremental updates that you want to replay) but I agree that this is not terribly useful in the main case.
>
>> - The functions that update the store shouldn't return until the
>> update has been see by the model ("on_update" has been called). I
>> therefore create a mutex and a Lwt_condition so that the commit
>> functions can be sure their change has been seen.
>
> agreed and I think that's a good property to move into the watch API.

I'm not sure this bit should be moved to the main library. In many
cases you wouldn't care about waiting for the updates to be seen. But
we could have a wrapper for the branch API that provides this
(operations that set the branch pointer don't return until the
notification callback has run, or isn't going to run if the head
didn't move).

>> All the code for changing the model goes via "merge_to_master". This
>> takes a "base" argument (the commit which the user made the change
>> from), creates a view (temporary branch), runs "fn" to make the
>> requested change (which should always succeed), merges the temporary
>> branch back to master, and waits for the on_update to notice it:
>>
>>  let merge_to_master t ~base ~msg fn =
>>    let path = I.Key.empty in
>>    R.make_view base >>= fun view ->
>>    fn view >>= fun result ->
>>    Lwt_mutex.with_lock t.mutex (fun () ->
>>      (* At this point, head cannot contain our commit because we
>> haven't made it yet,
>>       * and no updates can happen while we hold the lock. *)
>>      let old_head = t.head in
>>      let updated = Lwt_condition.wait t.updated in
>>      R.V.merge_path (t.branch msg) path view >>= function
>>      | `Conflict msg -> Ck_utils.error "Conflict during merge: %s
>> (discarding change)" msg
>>      | `Ok () ->
>>      I.head (t.branch "Get latest commit") >|= function
>>      | Some new_head when new_head <> old_head ->
>>          (* [updated] cannot have fired yet because we still hold the
>> lock. When it does
>>           * fire next, it must contain our update. It must fire soon,
>> as head has changed. *)
>>          updated
>>      | _ ->
>>          (* Our change had no effect, so don't wait for head to move.
>>           * Or, the branch was deleted - no point waiting then either. *)
>>          return ()
>>    ) >>= fun updated ->    (* Changes have been committed. *)
>>    updated >>= fun () ->   (* [on_update] has been called. *)
>>    return result
>>
>> Does this approach seem sensible? I feel like the API perhaps wasn't
>> intended to be used this way...
>
> I can see why you are doing all of this, and this is certainly not optimal for an API point of view. One think I can do to help is to add an invariant to all the high-level updates (such as merge) functions to only perform the whole update only if the head didn't change since the beginning of the operations. It's an easy check to add and it will help a lot to reason on what happens during concurrent updates. The only reason I didn't do it before is that I was worried about starvation issues and other concurrency scheduling related issues - but I guess they are better than data loss ... and we could just picky bag on Lwt_mutex / Lwt_condition properties.
>
> [4] https://github.com/mirage/irmin/issues/157
>
>> I'm still worried about losing data due to races. JavaScript (I think)
>> ensures that access to local storage from different threads doesn't
>> get interleaved, but since Irmin uses Lwt we don't benefit from this.
>> I suspect that if two tabs try to merge at once then one's commit will
>> be silently discarded. Probably the back-end update function should
>> take the expected old value as an argument so it can abort if the
>> state has changed since then.
>
> Not sure to understand what Lwt exactly changes there. I'm happy to modify the signature of the backends to add more checks, but modifying the "RW.update" signature to take an optional current value to test would mean modifying the "Irmin.update" signature as well. Not sure that's exactly what we want. Could add a new "RW.test_and_set" function though.[4] I'll think about it.

That would be good.

> [5] https://github.com/mirage/irmin/issues/155
>
>> It would also be useful to get the commit object from the merge before
>> updating the branch. That way, I could try loading it as a sanity
>> check (and thus reject any update that would result in an unreadable
>> state). I guess I need to create another temporary branch, merge to
>> that, then force-update master to it. Seems like a lot of work,
>> though.
>
> I think it's easy to add a "try_merge" function which do not update the head. The current way to do that is indeed to create a temporary branch.
>
> [6] https://github.com/mirage/irmin/issues/156
>
>> Anyway, despite these minor issues, Irmin is working great so far!
>
> As usual, thanks for the very useful feedback! That'll definitely help improving the watch API and the overhaul usability.

Thanks!


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 05 11:56:22 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 05 Mar 2015 11:56:22 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YTUO5-0004f7-EZ; Thu, 05 Mar 2015 11:56:21 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YTUO4-0004ev-I2
	for mirageos-devel@lists.xenproject.org; Thu, 05 Mar 2015 11:56:20 +0000
Received: from [193.109.254.147] by server-15.bemta-14.messagelabs.com id
	8F/AE-02770-36448F45; Thu, 05 Mar 2015 11:56:19 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-13.tower-27.messagelabs.com!1425556578!14916079!1
X-Originating-IP: [209.85.212.170]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 14900 invoked from network); 5 Mar 2015 11:56:18 -0000
Received: from mail-wi0-f170.google.com (HELO mail-wi0-f170.google.com)
	(209.85.212.170)
	by server-13.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	5 Mar 2015 11:56:18 -0000
Received: by widem10 with SMTP id em10so37764645wid.5
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 05 Mar 2015 03:56:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=toI1izTGjBhMHRsGtsXWn1J3jeIDXDYmc5aMrNTsTgk=;
	b=FD9YXDdIarONdcL59isrrEUKc1b1QzSxOMb7B0lSIExi7h8m42NFkqjq+uQPRaNWsN
	mhzETyk5U7cyaSNCjK2yUX4C51pq8CIbiWR6a3q8DS9prru7IogOkpngRAJ1IwBMv+Ca
	OVdAjafcGsCOOP285l3Rwv454RLxItMd0w6t5Nsmj1eqvlpyfB7MNjeP/TF12r4u0Ncw
	3oAhuvGSJaV4nWjrhDHVJmeV120llFoejsVPO3XhAqEOyMNAJBdgt0MhKg0hofjAiS/L
	YOM8qLT1lVo5B2e3RWyNDNrxPJSeyURJAbQMXZSUMsqZV6wVfnHsDktdOQ81JkHI2478
	SWmA==
X-Received: by 10.180.189.35 with SMTP id gf3mr21729430wic.5.1425556578594;
	Thu, 05 Mar 2015 03:56:18 -0800 (PST)
Received: from piana.mac.cl.cam.ac.uk (piana.mac.cl.cam.ac.uk. [128.232.56.38])
	by mx.google.com with ESMTPSA id
	nb18sm11335819wic.3.2015.03.05.03.56.16
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Thu, 05 Mar 2015 03:56:17 -0800 (PST)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <CAG4opy-JO3+Qa+a=VVV5XFvSBpetVkHOHzCxUGjvqEs5UqZ3uQ@mail.gmail.com>
Date: Thu, 5 Mar 2015 11:56:18 +0000
Message-Id: <E826B8D0-D5E4-43EE-96A2-66B9EB897CED@gazagnaire.org>
References: <CAG4opy8k+tgKwfwMfaGzc3m-Tc_JjbkPPWEbqbwDwMBO5vpUtA@mail.gmail.com>
	<8CEDB416-6238-4888-BA4B-B7305FDDE2D9@gazagnaire.org>
	<9349273A-0BB4-40C4-BF06-4307085AA90C@recoil.org>
	<B9F83982-F46E-4B60-B115-4D8D189C09FE@gazagnaire.org>
	<47D39FA3-050E-46E6-89D2-4253484E24A8@gazagnaire.org>
	<CAG4opy8ThEq3-bgXxnijqJ40QTLAqcw=fR5MrWcx-b82k=9WkQ@mail.gmail.com>
	<DUB128-W26232CC9AC746CDC3756C7B4160@phx.gbl>
	<CAG4opy-okAA=DiAJ_YyZot3zG8-0m1-HcMqnEdtPMf-QUExPvg@mail.gmail.com>
	<CAG4opy9cSA0wrihBUc2ByV2vEPyqkQBSavkwZJDxCxxr=LJiEQ@mail.gmail.com>
	<C336E219-E67D-4326-9BB9-E764E3ECC58F@gazagnaire.org>
	<CAG4opy-JO3+Qa+a=VVV5XFvSBpetVkHOHzCxUGjvqEs5UqZ3uQ@mail.gmail.com>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Irmin API newbie questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

>>> - Irmin makes it easy to read data directly from a branch (tag), but
>>> this is usually unsafe, since a tag can update while you're reading
>>> it. Therefore, I think I always have to first get the head commit,
>>> then create a new store for that revision, then read from that. It
>>> might be safer if a branch just provided a way to get a commit, and
>>> reads had to be done from a fixed commit.
>> 
>> Hum, reading a tag should not be unsafe as the RW backend should ensure that updates are atomic. See Get_unix.with_write_file[2] for example where we use the fact that "rename" is the only operation guaranteed to be atomic on POSIX filesystem.
> 
> That's OK if you're only reading a single key, but usually you'll want
> a consistent set of values, all from the same commit. e.g. if I do
> 
>  I.read t "key1" >>= fun value1 ->
>  I.read t "key2" >>= fun value2 ->
> 
> then value1 and value2 will usually but not always be from the same
> commit, which is an easy mistake to make. This would be safer:
> 
>  Branch.head_commit t >>= fun c ->
>  I.read c "key1" >>= fun value1 ->
>  I.read c "key2" >>= fun value2 ->

Ha I see, that you want is a transactional sequence of operations. In that case you might want to use views [1]. All the read/write done on that view are guaranteed to be isolated. I still need to ensure that merging back in the store is really atomic (same issue as with all the other high-level operations).

Thomas

[1] http://mirage.github.io/irmin/Irmin.html#VALwith_hrw_view



_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 05 11:56:22 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 05 Mar 2015 11:56:22 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YTUO5-0004f7-EZ; Thu, 05 Mar 2015 11:56:21 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YTUO4-0004ev-I2
	for mirageos-devel@lists.xenproject.org; Thu, 05 Mar 2015 11:56:20 +0000
Received: from [193.109.254.147] by server-15.bemta-14.messagelabs.com id
	8F/AE-02770-36448F45; Thu, 05 Mar 2015 11:56:19 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-13.tower-27.messagelabs.com!1425556578!14916079!1
X-Originating-IP: [209.85.212.170]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 14900 invoked from network); 5 Mar 2015 11:56:18 -0000
Received: from mail-wi0-f170.google.com (HELO mail-wi0-f170.google.com)
	(209.85.212.170)
	by server-13.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	5 Mar 2015 11:56:18 -0000
Received: by widem10 with SMTP id em10so37764645wid.5
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 05 Mar 2015 03:56:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=toI1izTGjBhMHRsGtsXWn1J3jeIDXDYmc5aMrNTsTgk=;
	b=FD9YXDdIarONdcL59isrrEUKc1b1QzSxOMb7B0lSIExi7h8m42NFkqjq+uQPRaNWsN
	mhzETyk5U7cyaSNCjK2yUX4C51pq8CIbiWR6a3q8DS9prru7IogOkpngRAJ1IwBMv+Ca
	OVdAjafcGsCOOP285l3Rwv454RLxItMd0w6t5Nsmj1eqvlpyfB7MNjeP/TF12r4u0Ncw
	3oAhuvGSJaV4nWjrhDHVJmeV120llFoejsVPO3XhAqEOyMNAJBdgt0MhKg0hofjAiS/L
	YOM8qLT1lVo5B2e3RWyNDNrxPJSeyURJAbQMXZSUMsqZV6wVfnHsDktdOQ81JkHI2478
	SWmA==
X-Received: by 10.180.189.35 with SMTP id gf3mr21729430wic.5.1425556578594;
	Thu, 05 Mar 2015 03:56:18 -0800 (PST)
Received: from piana.mac.cl.cam.ac.uk (piana.mac.cl.cam.ac.uk. [128.232.56.38])
	by mx.google.com with ESMTPSA id
	nb18sm11335819wic.3.2015.03.05.03.56.16
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Thu, 05 Mar 2015 03:56:17 -0800 (PST)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <CAG4opy-JO3+Qa+a=VVV5XFvSBpetVkHOHzCxUGjvqEs5UqZ3uQ@mail.gmail.com>
Date: Thu, 5 Mar 2015 11:56:18 +0000
Message-Id: <E826B8D0-D5E4-43EE-96A2-66B9EB897CED@gazagnaire.org>
References: <CAG4opy8k+tgKwfwMfaGzc3m-Tc_JjbkPPWEbqbwDwMBO5vpUtA@mail.gmail.com>
	<8CEDB416-6238-4888-BA4B-B7305FDDE2D9@gazagnaire.org>
	<9349273A-0BB4-40C4-BF06-4307085AA90C@recoil.org>
	<B9F83982-F46E-4B60-B115-4D8D189C09FE@gazagnaire.org>
	<47D39FA3-050E-46E6-89D2-4253484E24A8@gazagnaire.org>
	<CAG4opy8ThEq3-bgXxnijqJ40QTLAqcw=fR5MrWcx-b82k=9WkQ@mail.gmail.com>
	<DUB128-W26232CC9AC746CDC3756C7B4160@phx.gbl>
	<CAG4opy-okAA=DiAJ_YyZot3zG8-0m1-HcMqnEdtPMf-QUExPvg@mail.gmail.com>
	<CAG4opy9cSA0wrihBUc2ByV2vEPyqkQBSavkwZJDxCxxr=LJiEQ@mail.gmail.com>
	<C336E219-E67D-4326-9BB9-E764E3ECC58F@gazagnaire.org>
	<CAG4opy-JO3+Qa+a=VVV5XFvSBpetVkHOHzCxUGjvqEs5UqZ3uQ@mail.gmail.com>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Irmin API newbie questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

>>> - Irmin makes it easy to read data directly from a branch (tag), but
>>> this is usually unsafe, since a tag can update while you're reading
>>> it. Therefore, I think I always have to first get the head commit,
>>> then create a new store for that revision, then read from that. It
>>> might be safer if a branch just provided a way to get a commit, and
>>> reads had to be done from a fixed commit.
>> 
>> Hum, reading a tag should not be unsafe as the RW backend should ensure that updates are atomic. See Get_unix.with_write_file[2] for example where we use the fact that "rename" is the only operation guaranteed to be atomic on POSIX filesystem.
> 
> That's OK if you're only reading a single key, but usually you'll want
> a consistent set of values, all from the same commit. e.g. if I do
> 
>  I.read t "key1" >>= fun value1 ->
>  I.read t "key2" >>= fun value2 ->
> 
> then value1 and value2 will usually but not always be from the same
> commit, which is an easy mistake to make. This would be safer:
> 
>  Branch.head_commit t >>= fun c ->
>  I.read c "key1" >>= fun value1 ->
>  I.read c "key2" >>= fun value2 ->

Ha I see, that you want is a transactional sequence of operations. In that case you might want to use views [1]. All the read/write done on that view are guaranteed to be isolated. I still need to ensure that merging back in the store is really atomic (same issue as with all the other high-level operations).

Thomas

[1] http://mirage.github.io/irmin/Irmin.html#VALwith_hrw_view



_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 05 12:13:06 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 05 Mar 2015 12:13:06 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YTUeF-0008Lf-PN; Thu, 05 Mar 2015 12:13:03 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YTUeE-0008La-Cv
	for mirageos-devel@lists.xenproject.org; Thu, 05 Mar 2015 12:13:02 +0000
Received: from [85.158.139.211] by server-17.bemta-5.messagelabs.com id
	CF/E5-03132-D4848F45; Thu, 05 Mar 2015 12:13:01 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-6.tower-206.messagelabs.com!1425557580!13226711!1
X-Originating-IP: [209.85.215.54]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 25351 invoked from network); 5 Mar 2015 12:13:00 -0000
Received: from mail-la0-f54.google.com (HELO mail-la0-f54.google.com)
	(209.85.215.54)
	by server-6.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	5 Mar 2015 12:13:00 -0000
Received: by labge10 with SMTP id ge10so50902649lab.12
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 05 Mar 2015 04:12:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=JSpM9WYW2j3isLqrmURk2tnuS8V/OQSAMMF8KbiBJqM=;
	b=QGa0cQAlbAh6CWZEgYG/4oT6Fn0mRmVxmy7nsGHLXR+ivGMmFylV2r7kldksvMLAQR
	tGFvy6R2+icM35y3v4tDZX2jBdI7+T7c59/lIf/ElEoqGSKrGFyMqiuePVy7kiSjy2zI
	+UiVDe5BVJAZ9Tz8OvqpiD9K6ZjlnVN9IT2E0/mU30DPqLZlV1AoQRoyVGSBbVqinb9Z
	h9By6PvmjN9CV+kX3cJnLMFiR0eux1Bhlhe2J1rR/JAOlBvY84ObZVGxodWDS8lwQFTu
	Vt3Y8tkbwR+w47WgHhV2lq1uuyNe1wBmkJ16n522pbalrNElVuZNgdM+lho2HJzrnuDb
	tNww==
MIME-Version: 1.0
X-Received: by 10.112.72.35 with SMTP id a3mr7747816lbv.20.1425557579700; Thu,
	05 Mar 2015 04:12:59 -0800 (PST)
Received: by 10.25.207.17 with HTTP; Thu, 5 Mar 2015 04:12:59 -0800 (PST)
In-Reply-To: <E826B8D0-D5E4-43EE-96A2-66B9EB897CED@gazagnaire.org>
References: <CAG4opy8k+tgKwfwMfaGzc3m-Tc_JjbkPPWEbqbwDwMBO5vpUtA@mail.gmail.com>
	<8CEDB416-6238-4888-BA4B-B7305FDDE2D9@gazagnaire.org>
	<9349273A-0BB4-40C4-BF06-4307085AA90C@recoil.org>
	<B9F83982-F46E-4B60-B115-4D8D189C09FE@gazagnaire.org>
	<47D39FA3-050E-46E6-89D2-4253484E24A8@gazagnaire.org>
	<CAG4opy8ThEq3-bgXxnijqJ40QTLAqcw=fR5MrWcx-b82k=9WkQ@mail.gmail.com>
	<DUB128-W26232CC9AC746CDC3756C7B4160@phx.gbl>
	<CAG4opy-okAA=DiAJ_YyZot3zG8-0m1-HcMqnEdtPMf-QUExPvg@mail.gmail.com>
	<CAG4opy9cSA0wrihBUc2ByV2vEPyqkQBSavkwZJDxCxxr=LJiEQ@mail.gmail.com>
	<C336E219-E67D-4326-9BB9-E764E3ECC58F@gazagnaire.org>
	<CAG4opy-JO3+Qa+a=VVV5XFvSBpetVkHOHzCxUGjvqEs5UqZ3uQ@mail.gmail.com>
	<E826B8D0-D5E4-43EE-96A2-66B9EB897CED@gazagnaire.org>
Date: Thu, 5 Mar 2015 12:12:59 +0000
Message-ID: <CAG4opy97_N9W=Aqecu2z_xV4vojd557q+S07L=y8OofDn3sQiQ@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Irmin API newbie questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 5 March 2015 at 11:56, Thomas Gazagnaire <thomas@gazagnaire.org> wrote:
>>>> - Irmin makes it easy to read data directly from a branch (tag), but
>>>> this is usually unsafe, since a tag can update while you're reading
>>>> it. Therefore, I think I always have to first get the head commit,
>>>> then create a new store for that revision, then read from that. It
>>>> might be safer if a branch just provided a way to get a commit, and
>>>> reads had to be done from a fixed commit.
>>>
>>> Hum, reading a tag should not be unsafe as the RW backend should ensure that updates are atomic. See Get_unix.with_write_file[2] for example where we use the fact that "rename" is the only operation guaranteed to be atomic on POSIX filesystem.
>>
>> That's OK if you're only reading a single key, but usually you'll want
>> a consistent set of values, all from the same commit. e.g. if I do
>>
>>  I.read t "key1" >>= fun value1 ->
>>  I.read t "key2" >>= fun value2 ->
>>
>> then value1 and value2 will usually but not always be from the same
>> commit, which is an easy mistake to make. This would be safer:
>>
>>  Branch.head_commit t >>= fun c ->
>>  I.read c "key1" >>= fun value1 ->
>>  I.read c "key2" >>= fun value2 ->
>
> Ha I see, that you want is a transactional sequence of operations. In that case you might want to use views [1]. All the read/write done on that view are guaranteed to be isolated.

Currently, my main code reads a single revision like this:

I.of_head repo task_maker head >>= R.make

And R.make does:

  let make store =
    match I.branch (store "Get commit ID") with
    | `Tag _ -> failwith "Error: store is not fixed (use of_head)!"
    | `Head commit ->

Should I make a view here instead? It looks like View.of_path does a
load of copying. What I want is something that I can be sure will
never change. Neither views nor stores can ensure this I think (both
can be written to). Possibly I should do the "I.of_head" inside
R.make, but then I'd have to give it the repo (config) and task_maker
objects too, which is also ugly.

It seems strange, since the underlying Git model already provides
immutable data structures (blobs, trees, commits), but Irmin seems to
force me to treat everything as mutable.

> I still need to ensure that merging back in the store is really atomic (same issue as with all the other high-level operations).

BTW, I read more of the storage spec and found:

"The use of the storage mutex to avoid race conditions is currently
considered by certain implementors to be too high a performance
burden, to the point where allowing data corruption is considered
preferable."

So some locking will be needed anyway. It would be good to implement
this only in the backend though, and have the rest of Irmin
automatically be safe.

> Thomas
>
> [1] http://mirage.github.io/irmin/Irmin.html#VALwith_hrw_view


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 05 12:13:06 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 05 Mar 2015 12:13:06 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YTUeF-0008Lf-PN; Thu, 05 Mar 2015 12:13:03 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YTUeE-0008La-Cv
	for mirageos-devel@lists.xenproject.org; Thu, 05 Mar 2015 12:13:02 +0000
Received: from [85.158.139.211] by server-17.bemta-5.messagelabs.com id
	CF/E5-03132-D4848F45; Thu, 05 Mar 2015 12:13:01 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-6.tower-206.messagelabs.com!1425557580!13226711!1
X-Originating-IP: [209.85.215.54]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 25351 invoked from network); 5 Mar 2015 12:13:00 -0000
Received: from mail-la0-f54.google.com (HELO mail-la0-f54.google.com)
	(209.85.215.54)
	by server-6.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	5 Mar 2015 12:13:00 -0000
Received: by labge10 with SMTP id ge10so50902649lab.12
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 05 Mar 2015 04:12:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=JSpM9WYW2j3isLqrmURk2tnuS8V/OQSAMMF8KbiBJqM=;
	b=QGa0cQAlbAh6CWZEgYG/4oT6Fn0mRmVxmy7nsGHLXR+ivGMmFylV2r7kldksvMLAQR
	tGFvy6R2+icM35y3v4tDZX2jBdI7+T7c59/lIf/ElEoqGSKrGFyMqiuePVy7kiSjy2zI
	+UiVDe5BVJAZ9Tz8OvqpiD9K6ZjlnVN9IT2E0/mU30DPqLZlV1AoQRoyVGSBbVqinb9Z
	h9By6PvmjN9CV+kX3cJnLMFiR0eux1Bhlhe2J1rR/JAOlBvY84ObZVGxodWDS8lwQFTu
	Vt3Y8tkbwR+w47WgHhV2lq1uuyNe1wBmkJ16n522pbalrNElVuZNgdM+lho2HJzrnuDb
	tNww==
MIME-Version: 1.0
X-Received: by 10.112.72.35 with SMTP id a3mr7747816lbv.20.1425557579700; Thu,
	05 Mar 2015 04:12:59 -0800 (PST)
Received: by 10.25.207.17 with HTTP; Thu, 5 Mar 2015 04:12:59 -0800 (PST)
In-Reply-To: <E826B8D0-D5E4-43EE-96A2-66B9EB897CED@gazagnaire.org>
References: <CAG4opy8k+tgKwfwMfaGzc3m-Tc_JjbkPPWEbqbwDwMBO5vpUtA@mail.gmail.com>
	<8CEDB416-6238-4888-BA4B-B7305FDDE2D9@gazagnaire.org>
	<9349273A-0BB4-40C4-BF06-4307085AA90C@recoil.org>
	<B9F83982-F46E-4B60-B115-4D8D189C09FE@gazagnaire.org>
	<47D39FA3-050E-46E6-89D2-4253484E24A8@gazagnaire.org>
	<CAG4opy8ThEq3-bgXxnijqJ40QTLAqcw=fR5MrWcx-b82k=9WkQ@mail.gmail.com>
	<DUB128-W26232CC9AC746CDC3756C7B4160@phx.gbl>
	<CAG4opy-okAA=DiAJ_YyZot3zG8-0m1-HcMqnEdtPMf-QUExPvg@mail.gmail.com>
	<CAG4opy9cSA0wrihBUc2ByV2vEPyqkQBSavkwZJDxCxxr=LJiEQ@mail.gmail.com>
	<C336E219-E67D-4326-9BB9-E764E3ECC58F@gazagnaire.org>
	<CAG4opy-JO3+Qa+a=VVV5XFvSBpetVkHOHzCxUGjvqEs5UqZ3uQ@mail.gmail.com>
	<E826B8D0-D5E4-43EE-96A2-66B9EB897CED@gazagnaire.org>
Date: Thu, 5 Mar 2015 12:12:59 +0000
Message-ID: <CAG4opy97_N9W=Aqecu2z_xV4vojd557q+S07L=y8OofDn3sQiQ@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Irmin API newbie questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 5 March 2015 at 11:56, Thomas Gazagnaire <thomas@gazagnaire.org> wrote:
>>>> - Irmin makes it easy to read data directly from a branch (tag), but
>>>> this is usually unsafe, since a tag can update while you're reading
>>>> it. Therefore, I think I always have to first get the head commit,
>>>> then create a new store for that revision, then read from that. It
>>>> might be safer if a branch just provided a way to get a commit, and
>>>> reads had to be done from a fixed commit.
>>>
>>> Hum, reading a tag should not be unsafe as the RW backend should ensure that updates are atomic. See Get_unix.with_write_file[2] for example where we use the fact that "rename" is the only operation guaranteed to be atomic on POSIX filesystem.
>>
>> That's OK if you're only reading a single key, but usually you'll want
>> a consistent set of values, all from the same commit. e.g. if I do
>>
>>  I.read t "key1" >>= fun value1 ->
>>  I.read t "key2" >>= fun value2 ->
>>
>> then value1 and value2 will usually but not always be from the same
>> commit, which is an easy mistake to make. This would be safer:
>>
>>  Branch.head_commit t >>= fun c ->
>>  I.read c "key1" >>= fun value1 ->
>>  I.read c "key2" >>= fun value2 ->
>
> Ha I see, that you want is a transactional sequence of operations. In that case you might want to use views [1]. All the read/write done on that view are guaranteed to be isolated.

Currently, my main code reads a single revision like this:

I.of_head repo task_maker head >>= R.make

And R.make does:

  let make store =
    match I.branch (store "Get commit ID") with
    | `Tag _ -> failwith "Error: store is not fixed (use of_head)!"
    | `Head commit ->

Should I make a view here instead? It looks like View.of_path does a
load of copying. What I want is something that I can be sure will
never change. Neither views nor stores can ensure this I think (both
can be written to). Possibly I should do the "I.of_head" inside
R.make, but then I'd have to give it the repo (config) and task_maker
objects too, which is also ugly.

It seems strange, since the underlying Git model already provides
immutable data structures (blobs, trees, commits), but Irmin seems to
force me to treat everything as mutable.

> I still need to ensure that merging back in the store is really atomic (same issue as with all the other high-level operations).

BTW, I read more of the storage spec and found:

"The use of the storage mutex to avoid race conditions is currently
considered by certain implementors to be too high a performance
burden, to the point where allowing data corruption is considered
preferable."

So some locking will be needed anyway. It would be good to implement
this only in the backend though, and have the rest of Irmin
automatically be safe.

> Thomas
>
> [1] http://mirage.github.io/irmin/Irmin.html#VALwith_hrw_view


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 05 14:15:48 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 05 Mar 2015 14:15:48 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YTWYw-00054X-B9; Thu, 05 Mar 2015 14:15:42 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YTWYv-00054S-Rg
	for mirageos-devel@lists.xenproject.org; Thu, 05 Mar 2015 14:15:41 +0000
Received: from [85.158.139.211] by server-1.bemta-5.messagelabs.com id
	99/8B-25903-D0568F45; Thu, 05 Mar 2015 14:15:41 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-12.tower-206.messagelabs.com!1425564940!13269914!1
X-Originating-IP: [74.125.82.43]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 17777 invoked from network); 5 Mar 2015 14:15:40 -0000
Received: from mail-wg0-f43.google.com (HELO mail-wg0-f43.google.com)
	(74.125.82.43)
	by server-12.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	5 Mar 2015 14:15:40 -0000
Received: by wghk14 with SMTP id k14so9862370wgh.7
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 05 Mar 2015 06:15:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=j1GbbKqTOqXWoyf1N8iS/3gu1D6Oas0Z58+IWEG4wl8=;
	b=ym6rgV5mJkdU/faNlcQMw8qeiTeiOO9Q8d36O1hZVA8QL/9WAi7gR5JdKbDbyKNeg6
	N/4gdDJ0RODCELT3WchdMJzlk1G3/JDhpGKy0gM/DPMU4Rc0tRVaaKUR2VS2hiId5uVM
	dLeMlmuviSbr3ZZxaQFenvSfCOwRZVjr8OSFTskoQmu5j8bs7dh9aJQb45AZz2pDogbs
	FbbFLDFuc76gx/gTo1OcvwWJhA48OnlquTmjXGO0IJhh0KNgBH6t8nsbP62bvghsKqJF
	SbWCTUEl0y45ANFAdHRwgh99KoOfr5OEnESYxyegt1rBTiGyu0Y3qUZWS4RN1OecqjXO
	Q9dg==
X-Received: by 10.194.172.9 with SMTP id ay9mr19139309wjc.2.1425564939684;
	Thu, 05 Mar 2015 06:15:39 -0800 (PST)
Received: from ?IPv6:2001:630:212:248:204c:a7cd:6ac4:c570?
	([2001:630:212:248:204c:a7cd:6ac4:c570])
	by mx.google.com with ESMTPSA id
	ub1sm10696910wjc.43.2015.03.05.06.15.38
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Thu, 05 Mar 2015 06:15:38 -0800 (PST)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <CAG4opy97_N9W=Aqecu2z_xV4vojd557q+S07L=y8OofDn3sQiQ@mail.gmail.com>
Date: Thu, 5 Mar 2015 14:15:36 +0000
Message-Id: <D130267B-C265-4A10-91E4-FD46FBA4BF6A@gazagnaire.org>
References: <CAG4opy8k+tgKwfwMfaGzc3m-Tc_JjbkPPWEbqbwDwMBO5vpUtA@mail.gmail.com>
	<8CEDB416-6238-4888-BA4B-B7305FDDE2D9@gazagnaire.org>
	<9349273A-0BB4-40C4-BF06-4307085AA90C@recoil.org>
	<B9F83982-F46E-4B60-B115-4D8D189C09FE@gazagnaire.org>
	<47D39FA3-050E-46E6-89D2-4253484E24A8@gazagnaire.org>
	<CAG4opy8ThEq3-bgXxnijqJ40QTLAqcw=fR5MrWcx-b82k=9WkQ@mail.gmail.com>
	<DUB128-W26232CC9AC746CDC3756C7B4160@phx.gbl>
	<CAG4opy-okAA=DiAJ_YyZot3zG8-0m1-HcMqnEdtPMf-QUExPvg@mail.gmail.com>
	<CAG4opy9cSA0wrihBUc2ByV2vEPyqkQBSavkwZJDxCxxr=LJiEQ@mail.gmail.com>
	<C336E219-E67D-4326-9BB9-E764E3ECC58F@gazagnaire.org>
	<CAG4opy-JO3+Qa+a=VVV5XFvSBpetVkHOHzCxUGjvqEs5UqZ3uQ@mail.gmail.com>
	<E826B8D0-D5E4-43EE-96A2-66B9EB897CED@gazagnaire.org>
	<CAG4opy97_N9W=Aqecu2z_xV4vojd557q+S07L=y8OofDn3sQiQ@mail.gmail.com>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Irmin API newbie questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

> Should I make a view here instead? It looks like View.of_path does a
> load of copying. What I want is something that I can be sure will
> never change.

When you build a view, initially it just reads the head commit. Later, when you read elements from it, it lazily fetch and cache the sub-node needed, relatively to this commit. If you never write on the view, all the reads will be relative to the head commit at the time you created the view. Views are designed for this kind of short-lived, non-persistent and isolated sequence of computations.

> Neither views nor stores can ensure this I think (both
> can be written to). Possibly I should do the "I.of_head" inside
> R.make, but then I'd have to give it the repo (config) and task_maker
> objects too, which is also ugly.

would be very easy to add a RO view if you think that's useful.

> It seems strange, since the underlying Git model already provides
> immutable data structures (blobs, trees, commits), but Irmin seems to
> force me to treat everything as mutable.

well, if you want to persist things you need to mutate something anyway. Exposing an immutable API to Git would be a bit cheating as pure function would need to have side-effects to create new objects in the backends (when you add an element to a tree, you need to create the intermediate sub-node in the storage substrates). But others have already expressed some interest on having immutable views (see [1]), so I'll see what I can do.

Thomas
[1] https://github.com/mirage/irmin/issues/109


> 
>> I still need to ensure that merging back in the store is really atomic (same issue as with all the other high-level operations).
> 
> BTW, I read more of the storage spec and found:
> 
> "The use of the storage mutex to avoid race conditions is currently
> considered by certain implementors to be too high a performance
> burden, to the point where allowing data corruption is considered
> preferable."
> 
> So some locking will be needed anyway. It would be good to implement
> this only in the backend though, and have the rest of Irmin
> automatically be safe.
> 
>> Thomas
>> 
>> [1] http://mirage.github.io/irmin/Irmin.html#VALwith_hrw_view
> 
> 
> -- 
> Dr Thomas Leonard        http://0install.net/
> GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
> GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 05 14:15:48 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 05 Mar 2015 14:15:48 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YTWYw-00054X-B9; Thu, 05 Mar 2015 14:15:42 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YTWYv-00054S-Rg
	for mirageos-devel@lists.xenproject.org; Thu, 05 Mar 2015 14:15:41 +0000
Received: from [85.158.139.211] by server-1.bemta-5.messagelabs.com id
	99/8B-25903-D0568F45; Thu, 05 Mar 2015 14:15:41 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-12.tower-206.messagelabs.com!1425564940!13269914!1
X-Originating-IP: [74.125.82.43]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 17777 invoked from network); 5 Mar 2015 14:15:40 -0000
Received: from mail-wg0-f43.google.com (HELO mail-wg0-f43.google.com)
	(74.125.82.43)
	by server-12.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	5 Mar 2015 14:15:40 -0000
Received: by wghk14 with SMTP id k14so9862370wgh.7
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 05 Mar 2015 06:15:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=j1GbbKqTOqXWoyf1N8iS/3gu1D6Oas0Z58+IWEG4wl8=;
	b=ym6rgV5mJkdU/faNlcQMw8qeiTeiOO9Q8d36O1hZVA8QL/9WAi7gR5JdKbDbyKNeg6
	N/4gdDJ0RODCELT3WchdMJzlk1G3/JDhpGKy0gM/DPMU4Rc0tRVaaKUR2VS2hiId5uVM
	dLeMlmuviSbr3ZZxaQFenvSfCOwRZVjr8OSFTskoQmu5j8bs7dh9aJQb45AZz2pDogbs
	FbbFLDFuc76gx/gTo1OcvwWJhA48OnlquTmjXGO0IJhh0KNgBH6t8nsbP62bvghsKqJF
	SbWCTUEl0y45ANFAdHRwgh99KoOfr5OEnESYxyegt1rBTiGyu0Y3qUZWS4RN1OecqjXO
	Q9dg==
X-Received: by 10.194.172.9 with SMTP id ay9mr19139309wjc.2.1425564939684;
	Thu, 05 Mar 2015 06:15:39 -0800 (PST)
Received: from ?IPv6:2001:630:212:248:204c:a7cd:6ac4:c570?
	([2001:630:212:248:204c:a7cd:6ac4:c570])
	by mx.google.com with ESMTPSA id
	ub1sm10696910wjc.43.2015.03.05.06.15.38
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Thu, 05 Mar 2015 06:15:38 -0800 (PST)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <CAG4opy97_N9W=Aqecu2z_xV4vojd557q+S07L=y8OofDn3sQiQ@mail.gmail.com>
Date: Thu, 5 Mar 2015 14:15:36 +0000
Message-Id: <D130267B-C265-4A10-91E4-FD46FBA4BF6A@gazagnaire.org>
References: <CAG4opy8k+tgKwfwMfaGzc3m-Tc_JjbkPPWEbqbwDwMBO5vpUtA@mail.gmail.com>
	<8CEDB416-6238-4888-BA4B-B7305FDDE2D9@gazagnaire.org>
	<9349273A-0BB4-40C4-BF06-4307085AA90C@recoil.org>
	<B9F83982-F46E-4B60-B115-4D8D189C09FE@gazagnaire.org>
	<47D39FA3-050E-46E6-89D2-4253484E24A8@gazagnaire.org>
	<CAG4opy8ThEq3-bgXxnijqJ40QTLAqcw=fR5MrWcx-b82k=9WkQ@mail.gmail.com>
	<DUB128-W26232CC9AC746CDC3756C7B4160@phx.gbl>
	<CAG4opy-okAA=DiAJ_YyZot3zG8-0m1-HcMqnEdtPMf-QUExPvg@mail.gmail.com>
	<CAG4opy9cSA0wrihBUc2ByV2vEPyqkQBSavkwZJDxCxxr=LJiEQ@mail.gmail.com>
	<C336E219-E67D-4326-9BB9-E764E3ECC58F@gazagnaire.org>
	<CAG4opy-JO3+Qa+a=VVV5XFvSBpetVkHOHzCxUGjvqEs5UqZ3uQ@mail.gmail.com>
	<E826B8D0-D5E4-43EE-96A2-66B9EB897CED@gazagnaire.org>
	<CAG4opy97_N9W=Aqecu2z_xV4vojd557q+S07L=y8OofDn3sQiQ@mail.gmail.com>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Irmin API newbie questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

> Should I make a view here instead? It looks like View.of_path does a
> load of copying. What I want is something that I can be sure will
> never change.

When you build a view, initially it just reads the head commit. Later, when you read elements from it, it lazily fetch and cache the sub-node needed, relatively to this commit. If you never write on the view, all the reads will be relative to the head commit at the time you created the view. Views are designed for this kind of short-lived, non-persistent and isolated sequence of computations.

> Neither views nor stores can ensure this I think (both
> can be written to). Possibly I should do the "I.of_head" inside
> R.make, but then I'd have to give it the repo (config) and task_maker
> objects too, which is also ugly.

would be very easy to add a RO view if you think that's useful.

> It seems strange, since the underlying Git model already provides
> immutable data structures (blobs, trees, commits), but Irmin seems to
> force me to treat everything as mutable.

well, if you want to persist things you need to mutate something anyway. Exposing an immutable API to Git would be a bit cheating as pure function would need to have side-effects to create new objects in the backends (when you add an element to a tree, you need to create the intermediate sub-node in the storage substrates). But others have already expressed some interest on having immutable views (see [1]), so I'll see what I can do.

Thomas
[1] https://github.com/mirage/irmin/issues/109


> 
>> I still need to ensure that merging back in the store is really atomic (same issue as with all the other high-level operations).
> 
> BTW, I read more of the storage spec and found:
> 
> "The use of the storage mutex to avoid race conditions is currently
> considered by certain implementors to be too high a performance
> burden, to the point where allowing data corruption is considered
> preferable."
> 
> So some locking will be needed anyway. It would be good to implement
> this only in the backend though, and have the rest of Irmin
> automatically be safe.
> 
>> Thomas
>> 
>> [1] http://mirage.github.io/irmin/Irmin.html#VALwith_hrw_view
> 
> 
> -- 
> Dr Thomas Leonard        http://0install.net/
> GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
> GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 06 17:33:25 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 06 Mar 2015 17:33:25 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YTw7j-0000tH-Hd; Fri, 06 Mar 2015 17:33:19 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <russell.pavlicek@citrix.com>)
	id 1YTw7i-0000sZ-I9; Fri, 06 Mar 2015 17:33:18 +0000
Received: from [85.158.139.211] by server-1.bemta-5.messagelabs.com id
	13/7B-25903-DD4E9F45; Fri, 06 Mar 2015 17:33:17 +0000
X-Env-Sender: russell.pavlicek@citrix.com
X-Msg-Ref: server-3.tower-206.messagelabs.com!1425663193!6048827!1
X-Originating-IP: [66.165.176.63]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n,
	received_headers: No Received headers
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 18886 invoked from network); 6 Mar 2015 17:33:16 -0000
Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63)
	by server-3.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	6 Mar 2015 17:33:16 -0000
X-IronPort-AV: E=Sophos;i="5.11,354,1422921600"; 
	d="scan'208,217";a="242554733"
From: Russell Pavlicek <russell.pavlicek@citrix.com>
To: Lars Kurth <lars.kurth.xen@gmail.com>, xen-devel
	<xen-devel@lists.xenproject.org>, "xen-api@lists.xenproject.org"
	<xen-api@lists.xenproject.org>, mirageos-devel
	<mirageos-devel@lists.xenproject.org>,
	"embedded-pv-devel@lists.xenproject.org"
	<embedded-pv-devel@lists.xenproject.org>
Thread-Topic: [Xen-devel] GSoC 2015 - Not accepted ... but some mentoring
	organisations which have several Xen related projects in them are
Thread-Index: AQHQWDN0yLBVQRkuaUmt9oendKk+9A==
Date: Fri, 6 Mar 2015 17:32:36 +0000
Message-ID: <55E78A57290FB64FA0D3CF672F9F3DA2051B3404@SJCPEX01CL03.citrite.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
MIME-Version: 1.0
Cc: "advisory-board@lists.xenproject.org" <advisory-board@lists.xenproject.org>
Subject: Re: [MirageOS-devel] [Xen-devel] GSoC 2015 - Not accepted ... but
 some mentoring organisations which have several Xen related projects in
 them are
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============4607566091618244829=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============4607566091618244829==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_55E78A57290FB64FA0D3CF672F9F3DA2051B3404SJCPEX01CL03cit_"

--_000_55E78A57290FB64FA0D3CF672F9F3DA2051B3404SJCPEX01CL03cit_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I reached out to the GSoC people to get information on why we were not acce=
pted.  The response is not surprising:

Carol writes:
"We had to make a lot of hard decisions with our GSoC organizations this ye=
ar, and unfortunately yours was one of them. We focused a lot on trying to =
make space and accept new, small organizations who have never participated =
before, and we felt it wouldn't be an extreme hardship for your organizatio=
n to take a year off from the program. I hope you all will apply again in a=
 future year, and good luck with everything this year!"

Russ Pavlicek
Xen Project Evangelist, Citrix Systems
Home Office: +1-301-829-5327
Mobile: +1-301-814-1143
UK VoIP: +44 1223 852 894
________________________________
From: xen-devel-bounces@lists.xen.org [xen-devel-bounces@lists.xen.org] on =
behalf of Lars Kurth [lars.kurth.xen@gmail.com]
Sent: Wednesday, March 04, 2015 12:31 PM
To: xen-devel; xen-api@lists.xenproject.org; mirageos-devel; embedded-pv-de=
vel@lists.xenproject.org
Cc: advisory-board@lists.xenproject.org; Russ Pavlicek
Subject: [Xen-devel] GSoC 2015 - Not accepted ... but some mentoring organi=
sations which have several Xen related projects in them are

Hi folks,

just a quick note to let you know that we were not accepted for GSoC this y=
ear. Do note that the Linux Foundation, OpenStack Foundation and many of th=
e other usual suspects have not been accepted this year. We will find out m=
ore why on Friday. However, there are at least 4 Xen related projects that =
are managed by other

I made a note at the top of http://wiki.xenproject.org/wiki/Archived/GSoC_2=
015 to point applicants to some of those projects. I have found 5 so far (w=
hich may bot be a complete list):

  *   Xen based Hypervisor in a Box @ Centos <http://wiki.centos.org/GSoC/2=
015/Ideas#head-ecb615be72e53950f08df92809020721d44c6694>
  *   Xen guest support for OpenBSD @ Open BSD Foundation <http://www.openb=
sdfoundation.org/gsoc2015.html#xenguest>
  *   3 Xen related projects @ Ganeti<https://code.google.com/p/ganeti/wiki=
/SummerOfCode2015Ideas>

Other projects which were accepted are QEMU<https://www.google-melange.com/=
gsoc/org2/google/gsoc2015/qemu>: note that there are no Xen related project=
s, but given that Xen has good relationships with the QEMU community we may=
 be able to get one or two projects onto the list if someone steps up and i=
s willing to mentor

Best Regards
Lars

--_000_55E78A57290FB64FA0D3CF672F9F3DA2051B3404SJCPEX01CL03cit_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html dir=3D"ltr">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style id=3D"owaParaStyle" type=3D"text/css">P {margin-top:0;margin-bottom:=
0;}</style>
</head>
<body ocsi=3D"0" fpstyle=3D"1" class=3D"" style=3D"word-wrap:break-word">
<div style=3D"direction: ltr;font-family: Tahoma;color: #000000;font-size: =
10pt;">I reached out to the GSoC people to get information on why we were n=
ot accepted.&nbsp; The response is not surprising:<br>
<br>
Carol writes:<br>
<span dir=3D"ltr">&quot;We had to make a lot of hard decisions with our GSo=
C organizations this year, and unfortunately yours was one of them. We focu=
sed a lot on trying to make space and accept new, small organizations who h=
ave never participated before, and we felt
 it wouldn't be an extreme hardship for your organization to take a year of=
f from the program. I hope you all will apply again in a future year, and g=
ood luck with everything this year!</span>&quot;<br>
<div><br>
<div style=3D"font-family:Tahoma; font-size:13px">
<div class=3D"BodyFragment"><font size=3D"2" face=3D"Arial"><span style=3D"=
font-size:10pt">
<div class=3D"PlainText">Russ Pavlicek<br>
Xen Project Evangelist, Citrix Systems<br>
Home Office: &#43;1-301-829-5327<br>
Mobile: &#43;1-301-814-1143<br>
UK VoIP: &#43;44 1223 852 894</div>
</span></font></div>
</div>
</div>
<div style=3D"font-family: Times New Roman; color: #000000; font-size: 16px=
">
<hr tabindex=3D"-1">
<div style=3D"direction: ltr;" id=3D"divRpF836565"><font size=3D"2" face=3D=
"Tahoma" color=3D"#000000"><b>From:</b> xen-devel-bounces@lists.xen.org [xe=
n-devel-bounces@lists.xen.org] on behalf of Lars Kurth [lars.kurth.xen@gmai=
l.com]<br>
<b>Sent:</b> Wednesday, March 04, 2015 12:31 PM<br>
<b>To:</b> xen-devel; xen-api@lists.xenproject.org; mirageos-devel; embedde=
d-pv-devel@lists.xenproject.org<br>
<b>Cc:</b> advisory-board@lists.xenproject.org; Russ Pavlicek<br>
<b>Subject:</b> [Xen-devel] GSoC 2015 - Not accepted ... but some mentoring=
 organisations which have several Xen related projects in them are<br>
</font><br>
</div>
<div></div>
<div>Hi folks,
<div class=3D""><br class=3D"">
<div class=3D"">just a quick note to let you know that we were not accepted=
 for GSoC this year. Do note that the Linux Foundation, OpenStack Foundatio=
n and many of the other usual suspects have not been accepted this year. We=
 will find out more why on Friday.
 However, there are at least 4 Xen related projects that are managed by oth=
er</div>
<div class=3D"">&nbsp;</div>
<div class=3D"">I made a note at the top of <a href=3D"http://wiki.xenproje=
ct.org/wiki/Archived/GSoC_2015" class=3D"" target=3D"_blank">
http://wiki.xenproject.org/wiki/Archived/GSoC_2015</a>&nbsp;to point applic=
ants to some of those projects. I have found 5 so far (which may bot be a c=
omplete list):</div>
</div>
<div class=3D"">
<ul class=3D"">
<li class=3D""><a href=3D"http://wiki.centos.org/GSoC/2015/Ideas#head-ecb61=
5be72e53950f08df92809020721d44c6694" class=3D"" target=3D"_blank">Xen based=
 Hypervisor in a Box @ Centos&nbsp;</a></li><li class=3D""><a href=3D"http:=
//www.openbsdfoundation.org/gsoc2015.html#xenguest" class=3D"" target=3D"_b=
lank">Xen guest support for OpenBSD @ Open BSD Foundation&nbsp;</a></li><li=
 class=3D""><a href=3D"https://code.google.com/p/ganeti/wiki/SummerOfCode20=
15Ideas" class=3D"" target=3D"_blank">3 Xen related projects @ Ganeti</a></=
li></ul>
<div class=3D"">Other projects which were accepted are&nbsp;<a href=3D"http=
s://www.google-melange.com/gsoc/org2/google/gsoc2015/qemu" class=3D"" targe=
t=3D"_blank">QEMU</a>: note that there are no Xen related projects, but giv=
en that Xen has good relationships with the QEMU
 community we may be able to get one or two projects onto the list if someo=
ne steps up and is willing to mentor</div>
</div>
<div class=3D""><br class=3D"">
</div>
<div class=3D"">Best Regards</div>
<div class=3D"">Lars</div>
</div>
</div>
</div>
</body>
</html>

--_000_55E78A57290FB64FA0D3CF672F9F3DA2051B3404SJCPEX01CL03cit_--


--===============4607566091618244829==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============4607566091618244829==--


From mirageos-devel-bounces@lists.xenproject.org Fri Mar 06 17:33:25 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 06 Mar 2015 17:33:25 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YTw7j-0000tH-Hd; Fri, 06 Mar 2015 17:33:19 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <russell.pavlicek@citrix.com>)
	id 1YTw7i-0000sZ-I9; Fri, 06 Mar 2015 17:33:18 +0000
Received: from [85.158.139.211] by server-1.bemta-5.messagelabs.com id
	13/7B-25903-DD4E9F45; Fri, 06 Mar 2015 17:33:17 +0000
X-Env-Sender: russell.pavlicek@citrix.com
X-Msg-Ref: server-3.tower-206.messagelabs.com!1425663193!6048827!1
X-Originating-IP: [66.165.176.63]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n,
	received_headers: No Received headers
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 18886 invoked from network); 6 Mar 2015 17:33:16 -0000
Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63)
	by server-3.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	6 Mar 2015 17:33:16 -0000
X-IronPort-AV: E=Sophos;i="5.11,354,1422921600"; 
	d="scan'208,217";a="242554733"
From: Russell Pavlicek <russell.pavlicek@citrix.com>
To: Lars Kurth <lars.kurth.xen@gmail.com>, xen-devel
	<xen-devel@lists.xenproject.org>, "xen-api@lists.xenproject.org"
	<xen-api@lists.xenproject.org>, mirageos-devel
	<mirageos-devel@lists.xenproject.org>,
	"embedded-pv-devel@lists.xenproject.org"
	<embedded-pv-devel@lists.xenproject.org>
Thread-Topic: [Xen-devel] GSoC 2015 - Not accepted ... but some mentoring
	organisations which have several Xen related projects in them are
Thread-Index: AQHQWDN0yLBVQRkuaUmt9oendKk+9A==
Date: Fri, 6 Mar 2015 17:32:36 +0000
Message-ID: <55E78A57290FB64FA0D3CF672F9F3DA2051B3404@SJCPEX01CL03.citrite.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
MIME-Version: 1.0
Cc: "advisory-board@lists.xenproject.org" <advisory-board@lists.xenproject.org>
Subject: Re: [MirageOS-devel] [Xen-devel] GSoC 2015 - Not accepted ... but
 some mentoring organisations which have several Xen related projects in
 them are
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============4607566091618244829=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============4607566091618244829==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_55E78A57290FB64FA0D3CF672F9F3DA2051B3404SJCPEX01CL03cit_"

--_000_55E78A57290FB64FA0D3CF672F9F3DA2051B3404SJCPEX01CL03cit_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I reached out to the GSoC people to get information on why we were not acce=
pted.  The response is not surprising:

Carol writes:
"We had to make a lot of hard decisions with our GSoC organizations this ye=
ar, and unfortunately yours was one of them. We focused a lot on trying to =
make space and accept new, small organizations who have never participated =
before, and we felt it wouldn't be an extreme hardship for your organizatio=
n to take a year off from the program. I hope you all will apply again in a=
 future year, and good luck with everything this year!"

Russ Pavlicek
Xen Project Evangelist, Citrix Systems
Home Office: +1-301-829-5327
Mobile: +1-301-814-1143
UK VoIP: +44 1223 852 894
________________________________
From: xen-devel-bounces@lists.xen.org [xen-devel-bounces@lists.xen.org] on =
behalf of Lars Kurth [lars.kurth.xen@gmail.com]
Sent: Wednesday, March 04, 2015 12:31 PM
To: xen-devel; xen-api@lists.xenproject.org; mirageos-devel; embedded-pv-de=
vel@lists.xenproject.org
Cc: advisory-board@lists.xenproject.org; Russ Pavlicek
Subject: [Xen-devel] GSoC 2015 - Not accepted ... but some mentoring organi=
sations which have several Xen related projects in them are

Hi folks,

just a quick note to let you know that we were not accepted for GSoC this y=
ear. Do note that the Linux Foundation, OpenStack Foundation and many of th=
e other usual suspects have not been accepted this year. We will find out m=
ore why on Friday. However, there are at least 4 Xen related projects that =
are managed by other

I made a note at the top of http://wiki.xenproject.org/wiki/Archived/GSoC_2=
015 to point applicants to some of those projects. I have found 5 so far (w=
hich may bot be a complete list):

  *   Xen based Hypervisor in a Box @ Centos <http://wiki.centos.org/GSoC/2=
015/Ideas#head-ecb615be72e53950f08df92809020721d44c6694>
  *   Xen guest support for OpenBSD @ Open BSD Foundation <http://www.openb=
sdfoundation.org/gsoc2015.html#xenguest>
  *   3 Xen related projects @ Ganeti<https://code.google.com/p/ganeti/wiki=
/SummerOfCode2015Ideas>

Other projects which were accepted are QEMU<https://www.google-melange.com/=
gsoc/org2/google/gsoc2015/qemu>: note that there are no Xen related project=
s, but given that Xen has good relationships with the QEMU community we may=
 be able to get one or two projects onto the list if someone steps up and i=
s willing to mentor

Best Regards
Lars

--_000_55E78A57290FB64FA0D3CF672F9F3DA2051B3404SJCPEX01CL03cit_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html dir=3D"ltr">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style id=3D"owaParaStyle" type=3D"text/css">P {margin-top:0;margin-bottom:=
0;}</style>
</head>
<body ocsi=3D"0" fpstyle=3D"1" class=3D"" style=3D"word-wrap:break-word">
<div style=3D"direction: ltr;font-family: Tahoma;color: #000000;font-size: =
10pt;">I reached out to the GSoC people to get information on why we were n=
ot accepted.&nbsp; The response is not surprising:<br>
<br>
Carol writes:<br>
<span dir=3D"ltr">&quot;We had to make a lot of hard decisions with our GSo=
C organizations this year, and unfortunately yours was one of them. We focu=
sed a lot on trying to make space and accept new, small organizations who h=
ave never participated before, and we felt
 it wouldn't be an extreme hardship for your organization to take a year of=
f from the program. I hope you all will apply again in a future year, and g=
ood luck with everything this year!</span>&quot;<br>
<div><br>
<div style=3D"font-family:Tahoma; font-size:13px">
<div class=3D"BodyFragment"><font size=3D"2" face=3D"Arial"><span style=3D"=
font-size:10pt">
<div class=3D"PlainText">Russ Pavlicek<br>
Xen Project Evangelist, Citrix Systems<br>
Home Office: &#43;1-301-829-5327<br>
Mobile: &#43;1-301-814-1143<br>
UK VoIP: &#43;44 1223 852 894</div>
</span></font></div>
</div>
</div>
<div style=3D"font-family: Times New Roman; color: #000000; font-size: 16px=
">
<hr tabindex=3D"-1">
<div style=3D"direction: ltr;" id=3D"divRpF836565"><font size=3D"2" face=3D=
"Tahoma" color=3D"#000000"><b>From:</b> xen-devel-bounces@lists.xen.org [xe=
n-devel-bounces@lists.xen.org] on behalf of Lars Kurth [lars.kurth.xen@gmai=
l.com]<br>
<b>Sent:</b> Wednesday, March 04, 2015 12:31 PM<br>
<b>To:</b> xen-devel; xen-api@lists.xenproject.org; mirageos-devel; embedde=
d-pv-devel@lists.xenproject.org<br>
<b>Cc:</b> advisory-board@lists.xenproject.org; Russ Pavlicek<br>
<b>Subject:</b> [Xen-devel] GSoC 2015 - Not accepted ... but some mentoring=
 organisations which have several Xen related projects in them are<br>
</font><br>
</div>
<div></div>
<div>Hi folks,
<div class=3D""><br class=3D"">
<div class=3D"">just a quick note to let you know that we were not accepted=
 for GSoC this year. Do note that the Linux Foundation, OpenStack Foundatio=
n and many of the other usual suspects have not been accepted this year. We=
 will find out more why on Friday.
 However, there are at least 4 Xen related projects that are managed by oth=
er</div>
<div class=3D"">&nbsp;</div>
<div class=3D"">I made a note at the top of <a href=3D"http://wiki.xenproje=
ct.org/wiki/Archived/GSoC_2015" class=3D"" target=3D"_blank">
http://wiki.xenproject.org/wiki/Archived/GSoC_2015</a>&nbsp;to point applic=
ants to some of those projects. I have found 5 so far (which may bot be a c=
omplete list):</div>
</div>
<div class=3D"">
<ul class=3D"">
<li class=3D""><a href=3D"http://wiki.centos.org/GSoC/2015/Ideas#head-ecb61=
5be72e53950f08df92809020721d44c6694" class=3D"" target=3D"_blank">Xen based=
 Hypervisor in a Box @ Centos&nbsp;</a></li><li class=3D""><a href=3D"http:=
//www.openbsdfoundation.org/gsoc2015.html#xenguest" class=3D"" target=3D"_b=
lank">Xen guest support for OpenBSD @ Open BSD Foundation&nbsp;</a></li><li=
 class=3D""><a href=3D"https://code.google.com/p/ganeti/wiki/SummerOfCode20=
15Ideas" class=3D"" target=3D"_blank">3 Xen related projects @ Ganeti</a></=
li></ul>
<div class=3D"">Other projects which were accepted are&nbsp;<a href=3D"http=
s://www.google-melange.com/gsoc/org2/google/gsoc2015/qemu" class=3D"" targe=
t=3D"_blank">QEMU</a>: note that there are no Xen related projects, but giv=
en that Xen has good relationships with the QEMU
 community we may be able to get one or two projects onto the list if someo=
ne steps up and is willing to mentor</div>
</div>
<div class=3D""><br class=3D"">
</div>
<div class=3D"">Best Regards</div>
<div class=3D"">Lars</div>
</div>
</div>
</div>
</body>
</html>

--_000_55E78A57290FB64FA0D3CF672F9F3DA2051B3404SJCPEX01CL03cit_--


--===============4607566091618244829==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============4607566091618244829==--


From mirageos-devel-bounces@lists.xenproject.org Fri Mar 06 17:59:53 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 06 Mar 2015 17:59:53 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YTwXR-0005AK-3B; Fri, 06 Mar 2015 17:59:53 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <sk826@hermes.cam.ac.uk>) id 1YTwXP-0005A2-E7
	for mirageos-devel@lists.xenproject.org; Fri, 06 Mar 2015 17:59:51 +0000
Received: from [85.158.137.68] by server-9.bemta-3.messagelabs.com id
	83/A5-02995-61BE9F45; Fri, 06 Mar 2015 17:59:50 +0000
X-Env-Sender: sk826@hermes.cam.ac.uk
X-Msg-Ref: server-5.tower-31.messagelabs.com!1425664789!13908577!1
X-Originating-IP: [131.111.8.150]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogMTMxLjExMS44LjE1MCA9PiAxNDk0MDU=\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 17267 invoked from network); 6 Mar 2015 17:59:50 -0000
Received: from ppsw-50.csi.cam.ac.uk (HELO ppsw-50.csi.cam.ac.uk)
	(131.111.8.150)
	by server-5.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 6 Mar 2015 17:59:50 -0000
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from dhcp-172-17-155-187.eduroam.wireless.private.cam.ac.uk
	([172.17.155.187]:53491)
	by ppsw-50.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.158]:587)
	with esmtpsa (PLAIN:sk826) (TLSv1:AES128-SHA:128)
	id 1YTwXN-0002m5-rc (Exim 4.82_3-c0e5623) for
	mirageos-devel@lists.xenproject.org
	(return-path <sk826@hermes.cam.ac.uk>); Fri, 06 Mar 2015 17:59:49 +0000
From: KC Sivaramakrishnan <sk826@cl.cam.ac.uk>
Message-Id: <22BF96EB-3259-439C-A8CE-F48D5145A056@cl.cam.ac.uk>
Date: Fri, 6 Mar 2015 17:59:46 +0000
To: mirageos-devel@lists.xenproject.org
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
X-Mailer: Apple Mail (2.1878.6)
Subject: [MirageOS-devel] Irmin RW store questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============8438277886596011031=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============8438277886596011031==
Content-Type: multipart/alternative; boundary="Apple-Mail=_8B73DCCA-1091-435E-B87B-74A697C314C5"


--Apple-Mail=_8B73DCCA-1091-435E-B87B-74A697C314C5
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

I=92d like to use Irmin RW store to implement a simple timestamp based =
last-writer-wins register. While the type of Irmin.AO_MAKER =3D functor =
(K : Irmin.Hash.S) (V : Tc.S0) -> =85 is understandable, the type of =
Irmin.RW_MAKER =3D (K : Irmin.Hum.S) (V : Irmin.Hash.S) -> =85 is not =
intuitive. Why is the type of K and V not the same as in AO_MAKER? Why =
should the type of value be a Hash.S?

I also witness surprising behaviour for any non-string keys with Git =
memory backend. See the code below. Are there any restrictions with the =
use of RW stores?

(* Build with
 * ocamlfind ocamlc -linkpkg -package irmin.git,irmin.unix,git -o =
rw_test rw_test.ml
 *)

let (>>=3D) =3D Lwt.bind

module Git =3D Irmin_git.RW(Git.Memory)

module HumInt =3D struct
  include Tc.Int
  let of_hum s =3D=20
    (* Following line prints =93master" *)
    print_string @@ s^"\n";
    int_of_string s
  let to_hum =3D string_of_int
end

module HumString =3D struct
  include Tc.String
  let of_hum s =3D s=20
  let to_hum s =3D s=20
end

=
(*************************************************************************=
****)

(* Following Fails *)
module Hum =3D HumInt
let key =3D 0=20


(* Following works *)
(*
module Hum =3D HumString
let key =3D "0"
*)

=
(*************************************************************************=
****)

module S =3D Git(Hum)(Irmin.Hash.SHA1)
module SHA1 =3D Irmin.Hash.SHA1

let conf =3D Irmin_git.config ()
let task =3D Irmin_unix.task

let main =3D
  S.create conf task
  >>=3D fun store ->
      S.update (store "update") key=20
      (SHA1.of_hum "2fd4e1c67a2d28fced849ee1bb76e7391b93eb12")
  >>=3D fun _ -> S.read_exn (store "read") key=20
  >>=3D fun res ->
        SHA1.to_hum res |> print_string;
        Lwt.return ()

let () =3D Lwt_main.run main

Thanks
KC=

--Apple-Mail=_8B73DCCA-1091-435E-B87B-74A697C314C5
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=windows-1252

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dwindows-1252"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I=92d =
like to use Irmin RW store to implement a simple timestamp based =
last-writer-wins register. While the type of Irmin.AO_MAKER =
=3D&nbsp;functor (K : Irmin.Hash.S) (V : Tc.S0) -&gt; =85 is =
understandable, the type of Irmin.RW_MAKER =3D&nbsp;(K : Irmin.Hum.S) (V =
: Irmin.Hash.S) -&gt; =85 is not intuitive. Why is the type of K and V =
not the same as in AO_MAKER? Why should the type of value be a =
Hash.S?<div><br></div><div>I also witness surprising behaviour for any =
non-string keys with Git memory backend. See the code below. Are there =
any restrictions with the use of RW =
stores?</div><div><br></div><div><div><font face=3D"Courier">(* Build =
with</font></div><div><font face=3D"Courier">&nbsp;* ocamlfind ocamlc =
-linkpkg -package irmin.git,irmin.unix,git -o rw_test =
rw_test.ml</font></div><div><font =
face=3D"Courier">&nbsp;*)</font></div><div><font =
face=3D"Courier"><br></font></div><div><font face=3D"Courier">let =
(&gt;&gt;=3D) =3D Lwt.bind</font></div><div><font =
face=3D"Courier"><br></font></div><div><font face=3D"Courier">module Git =
=3D Irmin_git.RW(Git.Memory)</font></div><div><font =
face=3D"Courier"><br></font></div><div><font face=3D"Courier">module =
HumInt =3D struct</font></div><div><font face=3D"Courier">&nbsp; include =
Tc.Int</font></div><div><font face=3D"Courier">&nbsp; let of_hum s =
=3D&nbsp;</font></div><div><font face=3D"Courier">&nbsp; &nbsp; (* =
Following line prints&nbsp;=93master" *)</font></div><div><font =
face=3D"Courier">&nbsp; &nbsp; print_string @@ =
s^"\n";</font></div><div><font face=3D"Courier">&nbsp; &nbsp; =
int_of_string s</font></div><div><font face=3D"Courier">&nbsp; let =
to_hum =3D string_of_int</font></div><div><font =
face=3D"Courier">end</font></div><div><font =
face=3D"Courier"><br></font></div><div><font face=3D"Courier">module =
HumString =3D struct</font></div><div><font face=3D"Courier">&nbsp; =
include Tc.String</font></div><div><font face=3D"Courier">&nbsp; let =
of_hum s =3D s&nbsp;</font></div><div><font face=3D"Courier">&nbsp; let =
to_hum s =3D s&nbsp;</font></div><div><font =
face=3D"Courier">end</font></div><div><font =
face=3D"Courier"><br></font></div><div><font =
face=3D"Courier">(********************************************************=
*********************)</font></div><div><font =
face=3D"Courier"><br></font></div><div><font face=3D"Courier">(* =
Following Fails *)</font></div><div><font face=3D"Courier">module Hum =3D =
HumInt</font></div><div><font face=3D"Courier">let key =3D =
0&nbsp;</font></div><div><font =
face=3D"Courier"><br></font></div><div><font =
face=3D"Courier"><br></font></div><div><font face=3D"Courier">(* =
Following works *)</font></div><div><font =
face=3D"Courier">(*</font></div><div><font face=3D"Courier">module Hum =3D=
 HumString</font></div><div><font face=3D"Courier">let key =3D =
"0"</font></div><div><font face=3D"Courier">*)</font></div><div><font =
face=3D"Courier"><br></font></div><div><font =
face=3D"Courier">(********************************************************=
*********************)</font></div><div><font =
face=3D"Courier"><br></font></div><div><font face=3D"Courier">module S =3D=
 Git(Hum)(Irmin.Hash.SHA1)</font></div><div><font face=3D"Courier">module =
SHA1 =3D Irmin.Hash.SHA1</font></div><div><font =
face=3D"Courier"><br></font></div><div><font face=3D"Courier">let conf =3D=
 Irmin_git.config ()</font></div><div><font face=3D"Courier">let task =3D =
Irmin_unix.task</font></div><div><font =
face=3D"Courier"><br></font></div><div><font face=3D"Courier">let main =
=3D</font></div><div><font face=3D"Courier">&nbsp; S.create conf =
task</font></div><div><font face=3D"Courier">&nbsp; &gt;&gt;=3D fun =
store -&gt;</font></div><div><font face=3D"Courier">&nbsp; &nbsp; &nbsp; =
S.update (store "update") key&nbsp;</font></div><div><font =
face=3D"Courier">&nbsp; &nbsp; &nbsp; (SHA1.of_hum =
"2fd4e1c67a2d28fced849ee1bb76e7391b93eb12")</font></div><div><font =
face=3D"Courier">&nbsp; &gt;&gt;=3D fun _ -&gt; S.read_exn (store =
"read") key&nbsp;</font></div><div><font face=3D"Courier">&nbsp; =
&gt;&gt;=3D fun res -&gt;</font></div><div><font face=3D"Courier">&nbsp; =
&nbsp; &nbsp; &nbsp; SHA1.to_hum res |&gt; =
print_string;</font></div><div><font face=3D"Courier">&nbsp; &nbsp; =
&nbsp; &nbsp; Lwt.return ()</font></div><div><font =
face=3D"Courier"><br></font></div><div><font face=3D"Courier">let () =3D =
Lwt_main.run main</font></div></div><div><font =
face=3D"Courier"><br></font></div><div>Thanks</div><div>KC</div></body></h=
tml>=

--Apple-Mail=_8B73DCCA-1091-435E-B87B-74A697C314C5--


--===============8438277886596011031==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============8438277886596011031==--


From mirageos-devel-bounces@lists.xenproject.org Fri Mar 06 17:59:53 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 06 Mar 2015 17:59:53 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YTwXR-0005AK-3B; Fri, 06 Mar 2015 17:59:53 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <sk826@hermes.cam.ac.uk>) id 1YTwXP-0005A2-E7
	for mirageos-devel@lists.xenproject.org; Fri, 06 Mar 2015 17:59:51 +0000
Received: from [85.158.137.68] by server-9.bemta-3.messagelabs.com id
	83/A5-02995-61BE9F45; Fri, 06 Mar 2015 17:59:50 +0000
X-Env-Sender: sk826@hermes.cam.ac.uk
X-Msg-Ref: server-5.tower-31.messagelabs.com!1425664789!13908577!1
X-Originating-IP: [131.111.8.150]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogMTMxLjExMS44LjE1MCA9PiAxNDk0MDU=\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 17267 invoked from network); 6 Mar 2015 17:59:50 -0000
Received: from ppsw-50.csi.cam.ac.uk (HELO ppsw-50.csi.cam.ac.uk)
	(131.111.8.150)
	by server-5.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 6 Mar 2015 17:59:50 -0000
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from dhcp-172-17-155-187.eduroam.wireless.private.cam.ac.uk
	([172.17.155.187]:53491)
	by ppsw-50.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.158]:587)
	with esmtpsa (PLAIN:sk826) (TLSv1:AES128-SHA:128)
	id 1YTwXN-0002m5-rc (Exim 4.82_3-c0e5623) for
	mirageos-devel@lists.xenproject.org
	(return-path <sk826@hermes.cam.ac.uk>); Fri, 06 Mar 2015 17:59:49 +0000
From: KC Sivaramakrishnan <sk826@cl.cam.ac.uk>
Message-Id: <22BF96EB-3259-439C-A8CE-F48D5145A056@cl.cam.ac.uk>
Date: Fri, 6 Mar 2015 17:59:46 +0000
To: mirageos-devel@lists.xenproject.org
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
X-Mailer: Apple Mail (2.1878.6)
Subject: [MirageOS-devel] Irmin RW store questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============8438277886596011031=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============8438277886596011031==
Content-Type: multipart/alternative; boundary="Apple-Mail=_8B73DCCA-1091-435E-B87B-74A697C314C5"


--Apple-Mail=_8B73DCCA-1091-435E-B87B-74A697C314C5
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

I=92d like to use Irmin RW store to implement a simple timestamp based =
last-writer-wins register. While the type of Irmin.AO_MAKER =3D functor =
(K : Irmin.Hash.S) (V : Tc.S0) -> =85 is understandable, the type of =
Irmin.RW_MAKER =3D (K : Irmin.Hum.S) (V : Irmin.Hash.S) -> =85 is not =
intuitive. Why is the type of K and V not the same as in AO_MAKER? Why =
should the type of value be a Hash.S?

I also witness surprising behaviour for any non-string keys with Git =
memory backend. See the code below. Are there any restrictions with the =
use of RW stores?

(* Build with
 * ocamlfind ocamlc -linkpkg -package irmin.git,irmin.unix,git -o =
rw_test rw_test.ml
 *)

let (>>=3D) =3D Lwt.bind

module Git =3D Irmin_git.RW(Git.Memory)

module HumInt =3D struct
  include Tc.Int
  let of_hum s =3D=20
    (* Following line prints =93master" *)
    print_string @@ s^"\n";
    int_of_string s
  let to_hum =3D string_of_int
end

module HumString =3D struct
  include Tc.String
  let of_hum s =3D s=20
  let to_hum s =3D s=20
end

=
(*************************************************************************=
****)

(* Following Fails *)
module Hum =3D HumInt
let key =3D 0=20


(* Following works *)
(*
module Hum =3D HumString
let key =3D "0"
*)

=
(*************************************************************************=
****)

module S =3D Git(Hum)(Irmin.Hash.SHA1)
module SHA1 =3D Irmin.Hash.SHA1

let conf =3D Irmin_git.config ()
let task =3D Irmin_unix.task

let main =3D
  S.create conf task
  >>=3D fun store ->
      S.update (store "update") key=20
      (SHA1.of_hum "2fd4e1c67a2d28fced849ee1bb76e7391b93eb12")
  >>=3D fun _ -> S.read_exn (store "read") key=20
  >>=3D fun res ->
        SHA1.to_hum res |> print_string;
        Lwt.return ()

let () =3D Lwt_main.run main

Thanks
KC=

--Apple-Mail=_8B73DCCA-1091-435E-B87B-74A697C314C5
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=windows-1252

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dwindows-1252"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I=92d =
like to use Irmin RW store to implement a simple timestamp based =
last-writer-wins register. While the type of Irmin.AO_MAKER =
=3D&nbsp;functor (K : Irmin.Hash.S) (V : Tc.S0) -&gt; =85 is =
understandable, the type of Irmin.RW_MAKER =3D&nbsp;(K : Irmin.Hum.S) (V =
: Irmin.Hash.S) -&gt; =85 is not intuitive. Why is the type of K and V =
not the same as in AO_MAKER? Why should the type of value be a =
Hash.S?<div><br></div><div>I also witness surprising behaviour for any =
non-string keys with Git memory backend. See the code below. Are there =
any restrictions with the use of RW =
stores?</div><div><br></div><div><div><font face=3D"Courier">(* Build =
with</font></div><div><font face=3D"Courier">&nbsp;* ocamlfind ocamlc =
-linkpkg -package irmin.git,irmin.unix,git -o rw_test =
rw_test.ml</font></div><div><font =
face=3D"Courier">&nbsp;*)</font></div><div><font =
face=3D"Courier"><br></font></div><div><font face=3D"Courier">let =
(&gt;&gt;=3D) =3D Lwt.bind</font></div><div><font =
face=3D"Courier"><br></font></div><div><font face=3D"Courier">module Git =
=3D Irmin_git.RW(Git.Memory)</font></div><div><font =
face=3D"Courier"><br></font></div><div><font face=3D"Courier">module =
HumInt =3D struct</font></div><div><font face=3D"Courier">&nbsp; include =
Tc.Int</font></div><div><font face=3D"Courier">&nbsp; let of_hum s =
=3D&nbsp;</font></div><div><font face=3D"Courier">&nbsp; &nbsp; (* =
Following line prints&nbsp;=93master" *)</font></div><div><font =
face=3D"Courier">&nbsp; &nbsp; print_string @@ =
s^"\n";</font></div><div><font face=3D"Courier">&nbsp; &nbsp; =
int_of_string s</font></div><div><font face=3D"Courier">&nbsp; let =
to_hum =3D string_of_int</font></div><div><font =
face=3D"Courier">end</font></div><div><font =
face=3D"Courier"><br></font></div><div><font face=3D"Courier">module =
HumString =3D struct</font></div><div><font face=3D"Courier">&nbsp; =
include Tc.String</font></div><div><font face=3D"Courier">&nbsp; let =
of_hum s =3D s&nbsp;</font></div><div><font face=3D"Courier">&nbsp; let =
to_hum s =3D s&nbsp;</font></div><div><font =
face=3D"Courier">end</font></div><div><font =
face=3D"Courier"><br></font></div><div><font =
face=3D"Courier">(********************************************************=
*********************)</font></div><div><font =
face=3D"Courier"><br></font></div><div><font face=3D"Courier">(* =
Following Fails *)</font></div><div><font face=3D"Courier">module Hum =3D =
HumInt</font></div><div><font face=3D"Courier">let key =3D =
0&nbsp;</font></div><div><font =
face=3D"Courier"><br></font></div><div><font =
face=3D"Courier"><br></font></div><div><font face=3D"Courier">(* =
Following works *)</font></div><div><font =
face=3D"Courier">(*</font></div><div><font face=3D"Courier">module Hum =3D=
 HumString</font></div><div><font face=3D"Courier">let key =3D =
"0"</font></div><div><font face=3D"Courier">*)</font></div><div><font =
face=3D"Courier"><br></font></div><div><font =
face=3D"Courier">(********************************************************=
*********************)</font></div><div><font =
face=3D"Courier"><br></font></div><div><font face=3D"Courier">module S =3D=
 Git(Hum)(Irmin.Hash.SHA1)</font></div><div><font face=3D"Courier">module =
SHA1 =3D Irmin.Hash.SHA1</font></div><div><font =
face=3D"Courier"><br></font></div><div><font face=3D"Courier">let conf =3D=
 Irmin_git.config ()</font></div><div><font face=3D"Courier">let task =3D =
Irmin_unix.task</font></div><div><font =
face=3D"Courier"><br></font></div><div><font face=3D"Courier">let main =
=3D</font></div><div><font face=3D"Courier">&nbsp; S.create conf =
task</font></div><div><font face=3D"Courier">&nbsp; &gt;&gt;=3D fun =
store -&gt;</font></div><div><font face=3D"Courier">&nbsp; &nbsp; &nbsp; =
S.update (store "update") key&nbsp;</font></div><div><font =
face=3D"Courier">&nbsp; &nbsp; &nbsp; (SHA1.of_hum =
"2fd4e1c67a2d28fced849ee1bb76e7391b93eb12")</font></div><div><font =
face=3D"Courier">&nbsp; &gt;&gt;=3D fun _ -&gt; S.read_exn (store =
"read") key&nbsp;</font></div><div><font face=3D"Courier">&nbsp; =
&gt;&gt;=3D fun res -&gt;</font></div><div><font face=3D"Courier">&nbsp; =
&nbsp; &nbsp; &nbsp; SHA1.to_hum res |&gt; =
print_string;</font></div><div><font face=3D"Courier">&nbsp; &nbsp; =
&nbsp; &nbsp; Lwt.return ()</font></div><div><font =
face=3D"Courier"><br></font></div><div><font face=3D"Courier">let () =3D =
Lwt_main.run main</font></div></div><div><font =
face=3D"Courier"><br></font></div><div>Thanks</div><div>KC</div></body></h=
tml>=

--Apple-Mail=_8B73DCCA-1091-435E-B87B-74A697C314C5--


--===============8438277886596011031==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============8438277886596011031==--


From mirageos-devel-bounces@lists.xenproject.org Sat Mar 07 03:55:30 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 07 Mar 2015 03:55:30 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YU5pj-0002qK-78; Sat, 07 Mar 2015 03:55:23 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <russell.pavlicek.xen@gmail.com>)
	id 1YU5pi-0002q3-6W; Sat, 07 Mar 2015 03:55:22 +0000
Received: from [193.109.254.147] by server-6.bemta-14.messagelabs.com id
	5B/61-03164-9A67AF45; Sat, 07 Mar 2015 03:55:21 +0000
X-Env-Sender: russell.pavlicek.xen@gmail.com
X-Msg-Ref: server-10.tower-27.messagelabs.com!1425700520!15453616!1
X-Originating-IP: [209.85.217.173]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 11034 invoked from network); 7 Mar 2015 03:55:20 -0000
Received: from mail-lb0-f173.google.com (HELO mail-lb0-f173.google.com)
	(209.85.217.173)
	by server-10.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	7 Mar 2015 03:55:20 -0000
Received: by lbiz11 with SMTP id z11so35448692lbi.3;
	Fri, 06 Mar 2015 19:55:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:date:message-id:subject:from:to:content-type;
	bh=BggZUbGeJ2sI+HGX5yGBdj97ufdLdWkFpPWASD/ZtFw=;
	b=LRkcdUzrUkn2LFZj1X/3IsnAleKU7JldxSNKi8dQHMHMPfCLKqNbc2aqre1f5SiHXk
	XwYhv6PAhFZClJLgwVuItWSzmfZMiPFXQYD3afzZUUZEebcl94nEYmzlxJNsLS9Y4dzH
	EtZzam88JbdZB1i9kec2CYKQyWwK2mIXIA60fxlFPjfiBq5PhTLAjBA+/mRuEy8Le5la
	QIjMejcHXBPo+gyN2c2UFF0m0S04mNDpqUyxxU0IptYju0ys+wSp7CuKDkS2ACaD2iuq
	/oupOZxgHq3URHdfQToRM7F6zUjeiVtFhwAXklCRp8VvK1i69lNwl6NpdI1CrvblIexk
	4RCQ==
MIME-Version: 1.0
X-Received: by 10.152.36.138 with SMTP id q10mr15466028laj.113.1425700519654; 
	Fri, 06 Mar 2015 19:55:19 -0800 (PST)
Received: by 10.112.25.37 with HTTP; Fri, 6 Mar 2015 19:55:19 -0800 (PST)
Date: Fri, 6 Mar 2015 22:55:19 -0500
X-Google-Sender-Auth: i8EbG3SGV25Oonj4gK0HtuPXGgE
Message-ID: <CAHehzX2tRLq4nYfx2knN-z_K0ygCiDy1rWWx+Tk3ToKL9-WLqA@mail.gmail.com>
From: Russ Pavlicek <russell.pavlicek@xenproject.org>
To: xen-devel <xen-devel@lists.xenproject.org>,
	mirageos-devel@lists.xenproject.org, 
	xen-api@lists.xen.org, xs-devel@lists.xenserver.org
Subject: [MirageOS-devel] Outreachy (OPW) Mentors: Please update your
	project ideas
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Xen Project has two slots in the upcoming Round 10 of Outreachy (the
new name for OPW).

All prospective mentors need to update their project ideas soon on the page:
http://wiki.xenproject.org/wiki/Outreach_Program_Projects

Applicants have to create initial patches and file their applications
by March 24, so please try to update your project ideas during the
next week, if at all possible.

You can read about the latest round of Outreachy here:
http://wiki.xenproject.org/wiki/Outreachy/Round10

Until Lars returns from vacation on March 11, please direct any
questions or issues to me and I will do my best to move things
forward.

Thanks,

Russ

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Sat Mar 07 03:55:30 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 07 Mar 2015 03:55:30 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YU5pj-0002qK-78; Sat, 07 Mar 2015 03:55:23 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <russell.pavlicek.xen@gmail.com>)
	id 1YU5pi-0002q3-6W; Sat, 07 Mar 2015 03:55:22 +0000
Received: from [193.109.254.147] by server-6.bemta-14.messagelabs.com id
	5B/61-03164-9A67AF45; Sat, 07 Mar 2015 03:55:21 +0000
X-Env-Sender: russell.pavlicek.xen@gmail.com
X-Msg-Ref: server-10.tower-27.messagelabs.com!1425700520!15453616!1
X-Originating-IP: [209.85.217.173]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 11034 invoked from network); 7 Mar 2015 03:55:20 -0000
Received: from mail-lb0-f173.google.com (HELO mail-lb0-f173.google.com)
	(209.85.217.173)
	by server-10.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	7 Mar 2015 03:55:20 -0000
Received: by lbiz11 with SMTP id z11so35448692lbi.3;
	Fri, 06 Mar 2015 19:55:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:date:message-id:subject:from:to:content-type;
	bh=BggZUbGeJ2sI+HGX5yGBdj97ufdLdWkFpPWASD/ZtFw=;
	b=LRkcdUzrUkn2LFZj1X/3IsnAleKU7JldxSNKi8dQHMHMPfCLKqNbc2aqre1f5SiHXk
	XwYhv6PAhFZClJLgwVuItWSzmfZMiPFXQYD3afzZUUZEebcl94nEYmzlxJNsLS9Y4dzH
	EtZzam88JbdZB1i9kec2CYKQyWwK2mIXIA60fxlFPjfiBq5PhTLAjBA+/mRuEy8Le5la
	QIjMejcHXBPo+gyN2c2UFF0m0S04mNDpqUyxxU0IptYju0ys+wSp7CuKDkS2ACaD2iuq
	/oupOZxgHq3URHdfQToRM7F6zUjeiVtFhwAXklCRp8VvK1i69lNwl6NpdI1CrvblIexk
	4RCQ==
MIME-Version: 1.0
X-Received: by 10.152.36.138 with SMTP id q10mr15466028laj.113.1425700519654; 
	Fri, 06 Mar 2015 19:55:19 -0800 (PST)
Received: by 10.112.25.37 with HTTP; Fri, 6 Mar 2015 19:55:19 -0800 (PST)
Date: Fri, 6 Mar 2015 22:55:19 -0500
X-Google-Sender-Auth: i8EbG3SGV25Oonj4gK0HtuPXGgE
Message-ID: <CAHehzX2tRLq4nYfx2knN-z_K0ygCiDy1rWWx+Tk3ToKL9-WLqA@mail.gmail.com>
From: Russ Pavlicek <russell.pavlicek@xenproject.org>
To: xen-devel <xen-devel@lists.xenproject.org>,
	mirageos-devel@lists.xenproject.org, 
	xen-api@lists.xen.org, xs-devel@lists.xenserver.org
Subject: [MirageOS-devel] Outreachy (OPW) Mentors: Please update your
	project ideas
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Xen Project has two slots in the upcoming Round 10 of Outreachy (the
new name for OPW).

All prospective mentors need to update their project ideas soon on the page:
http://wiki.xenproject.org/wiki/Outreach_Program_Projects

Applicants have to create initial patches and file their applications
by March 24, so please try to update your project ideas during the
next week, if at all possible.

You can read about the latest round of Outreachy here:
http://wiki.xenproject.org/wiki/Outreachy/Round10

Until Lars returns from vacation on March 11, please direct any
questions or issues to me and I will do my best to move things
forward.

Thanks,

Russ

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Sat Mar 07 10:18:52 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 07 Mar 2015 10:18:52 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YUBoj-00060A-VY; Sat, 07 Mar 2015 10:18:45 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YUBoi-000605-No
	for mirageos-devel@lists.xenproject.org; Sat, 07 Mar 2015 10:18:44 +0000
Received: from [85.158.137.68] by server-7.bemta-3.messagelabs.com id
	85/9D-03163-380DAF45; Sat, 07 Mar 2015 10:18:43 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-14.tower-31.messagelabs.com!1425723522!11538502!1
X-Originating-IP: [74.125.82.43]
X-SpamReason: No, hits=0.6 required=7.0 tests=HTML_40_50,HTML_MESSAGE
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 12436 invoked from network); 7 Mar 2015 10:18:42 -0000
Received: from mail-wg0-f43.google.com (HELO mail-wg0-f43.google.com)
	(74.125.82.43)
	by server-14.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	7 Mar 2015 10:18:42 -0000
Received: by wghk14 with SMTP id k14so14127558wgh.3
	for <mirageos-devel@lists.xenproject.org>;
	Sat, 07 Mar 2015 02:18:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:message-id:references:to;
	bh=9LocKOOWmtr1F1W1mdx4T20D+ze7OnW1vNJNa+HCa5s=;
	b=dMxzj5cPueZGqVA3HLGyiVx4S2lwvniLkIMK2STBjoL28H2cwueATlEB1TyasgUWL7
	zv/ju9/uLVVff7vHM1jZ5458KPxgnYX6snJSYgfO1c5Z2kUszLeqBgZSnKkilOPP7KCJ
	x8G/treytOHSTaGb5l5Y1HNBwu7o71k/RJNo//y+mXVS9Wgh9qw3gK4LOAnLjbvzt4SV
	bCMdCOVqvJsBbB+tX3ReobXQhe6b9FyJjQhTL8RAMjIg7qg766n+orSS4b83Y3XHp29T
	Blrnxrp9jT9w6INXOVxbOAIYth4EIjm4SYbKo2BdN8+5oL8AzDr8uQ52xHx37unUKgcr
	nz5w==
X-Received: by 10.180.8.136 with SMTP id r8mr70734245wia.42.1425723522211;
	Sat, 07 Mar 2015 02:18:42 -0800 (PST)
Received: from [192.168.1.44] (car06-8-83-155-104-81.fbx.proxad.net.
	[83.155.104.81]) by mx.google.com with ESMTPSA id
	bf8sm17118432wjb.37.2015.03.07.02.18.39
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Sat, 07 Mar 2015 02:18:40 -0800 (PST)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <22BF96EB-3259-439C-A8CE-F48D5145A056@cl.cam.ac.uk>
Date: Sat, 7 Mar 2015 11:18:40 +0100
Message-Id: <ACFD1DDD-AB6B-42FC-9835-0ACACB2765DF@gazagnaire.org>
References: <22BF96EB-3259-439C-A8CE-F48D5145A056@cl.cam.ac.uk>
To: KC Sivaramakrishnan <sk826@cl.cam.ac.uk>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] Irmin RW store questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============3716660690172822864=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============3716660690172822864==
Content-Type: multipart/alternative; boundary="Apple-Mail=_E5696DA6-9B3D-401E-9A74-33798D84C163"


--Apple-Mail=_E5696DA6-9B3D-401E-9A74-33798D84C163
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

Hi KC,

> I=92d like to use Irmin RW store to implement a simple timestamp based =
last-writer-wins register. While the type of Irmin.AO_MAKER =3D functor =
(K : Irmin.Hash.S) (V : Tc.S0) -> =85 is understandable, the type of =
Irmin.RW_MAKER =3D (K : Irmin.Hum.S) (V : Irmin.Hash.S) -> =85 is not =
intuitive. Why is the type of K and V not the same as in AO_MAKER? Why =
should the type of value be a Hash.S?

In a AO (append-only) store, you need to compute keys from values in a =
deterministic way[1], so you need a hashable keys. The type of V should =
be Hum.S in RW though, it was just more convenient to keep it this way =
in few places (because usually the RW store is the one associating =
branch names to commit hashes). I've created [2] to keep track of that.

[1] http://mirage.github.io/irmin/Irmin.AO.html#Valadd =
<http://mirage.github.io/irmin/Irmin.AO.html#Valadd>
[2] https://github.com/mirage/irmin/issues/158 =
<https://github.com/mirage/irmin/issues/158>

> I also witness surprising behaviour for any non-string keys with Git =
memory backend. See the code below. Are there any restrictions with the =
use of RW stores?

That's a bug[3] in the Git RW backend, it tries to re-use the full =
backend in a not-so-clever way, which tries to read the master branch. I =
need to fix this. In the meantime, you can use the other backends:

replace:=20
module Git =3D Irmin_git.RW(Git.Memory)
by either:
module Git =3D Irmin_mem.RW (* in-memory store *)
module Git =3D Irmin_unix.Irmin_fs.RW (* on-disk with custom binary =
format *)

and your test program will work.

[3] https://github.com/mirage/irmin/issues/159 =
<https://github.com/mirage/irmin/issues/159>

Thanks,
Thomas=

--Apple-Mail=_E5696DA6-9B3D-401E-9A74-33798D84C163
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=windows-1252

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dwindows-1252"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">Hi KC,<div class=3D""><br class=3D""></div><div =
class=3D""><div><blockquote type=3D"cite" class=3D""><div class=3D""><div =
style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space;" class=3D"">I=92d like to use =
Irmin RW store to implement a simple timestamp based last-writer-wins =
register. While the type of Irmin.AO_MAKER =3D&nbsp;functor (K : =
Irmin.Hash.S) (V : Tc.S0) -&gt; =85 is understandable, the type of =
Irmin.RW_MAKER =3D&nbsp;(K : Irmin.Hum.S) (V : Irmin.Hash.S) -&gt; =85 =
is not intuitive. Why is the type of K and V not the same as in =
AO_MAKER? Why should the type of value be a =
Hash.S?</div></div></blockquote><div><br class=3D""></div>In a AO =
(append-only) store, you need to compute keys from values in a =
deterministic way[1], so you need a hashable keys. The type of V should =
be Hum.S in RW though, it was just more convenient to keep it this way =
in few places (because usually the RW store is the one associating =
branch names to commit hashes). I've created [2] to keep track of =
that.</div><div><br class=3D""></div><div>[1]&nbsp;<a =
href=3D"http://mirage.github.io/irmin/Irmin.AO.html#Valadd" =
class=3D"">http://mirage.github.io/irmin/Irmin.AO.html#Valadd</a></div><di=
v>[2]&nbsp;<a href=3D"https://github.com/mirage/irmin/issues/158" =
class=3D"">https://github.com/mirage/irmin/issues/158</a></div><div><br =
class=3D""><blockquote type=3D"cite" class=3D""><div class=3D""><div =
style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space;" class=3D""><div class=3D"">I =
also witness surprising behaviour for any non-string keys with Git =
memory backend. See the code below. Are there any restrictions with the =
use of RW stores?</div></div></div></blockquote><div><br =
class=3D""></div><div>That's a bug[3] in the Git RW backend, it tries to =
re-use the full backend in a not-so-clever way, which tries to read the =
master branch. I need to fix this. In the meantime, you can use the =
other backends:</div><div><br =
class=3D""></div><div>replace:&nbsp;</div><div>module Git =3D =
Irmin_git.RW(Git.Memory)</div><div>by either:</div><div>module Git =3D =
Irmin_mem.RW (* in-memory store *)</div><div>module Git =3D =
Irmin_unix.Irmin_fs.RW (* on-disk with custom binary format =
*)</div><div><br class=3D""></div><div>and your test program will =
work.</div><div><br class=3D""></div><div>[3]&nbsp;<a =
href=3D"https://github.com/mirage/irmin/issues/159" =
class=3D"">https://github.com/mirage/irmin/issues/159</a></div><div><br =
class=3D""></div><div>Thanks,</div><div>Thomas</div></div></div></body></h=
tml>=

--Apple-Mail=_E5696DA6-9B3D-401E-9A74-33798D84C163--


--===============3716660690172822864==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============3716660690172822864==--


From mirageos-devel-bounces@lists.xenproject.org Sat Mar 07 10:18:52 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 07 Mar 2015 10:18:52 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YUBoj-00060A-VY; Sat, 07 Mar 2015 10:18:45 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YUBoi-000605-No
	for mirageos-devel@lists.xenproject.org; Sat, 07 Mar 2015 10:18:44 +0000
Received: from [85.158.137.68] by server-7.bemta-3.messagelabs.com id
	85/9D-03163-380DAF45; Sat, 07 Mar 2015 10:18:43 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-14.tower-31.messagelabs.com!1425723522!11538502!1
X-Originating-IP: [74.125.82.43]
X-SpamReason: No, hits=0.6 required=7.0 tests=HTML_40_50,HTML_MESSAGE
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 12436 invoked from network); 7 Mar 2015 10:18:42 -0000
Received: from mail-wg0-f43.google.com (HELO mail-wg0-f43.google.com)
	(74.125.82.43)
	by server-14.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	7 Mar 2015 10:18:42 -0000
Received: by wghk14 with SMTP id k14so14127558wgh.3
	for <mirageos-devel@lists.xenproject.org>;
	Sat, 07 Mar 2015 02:18:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:message-id:references:to;
	bh=9LocKOOWmtr1F1W1mdx4T20D+ze7OnW1vNJNa+HCa5s=;
	b=dMxzj5cPueZGqVA3HLGyiVx4S2lwvniLkIMK2STBjoL28H2cwueATlEB1TyasgUWL7
	zv/ju9/uLVVff7vHM1jZ5458KPxgnYX6snJSYgfO1c5Z2kUszLeqBgZSnKkilOPP7KCJ
	x8G/treytOHSTaGb5l5Y1HNBwu7o71k/RJNo//y+mXVS9Wgh9qw3gK4LOAnLjbvzt4SV
	bCMdCOVqvJsBbB+tX3ReobXQhe6b9FyJjQhTL8RAMjIg7qg766n+orSS4b83Y3XHp29T
	Blrnxrp9jT9w6INXOVxbOAIYth4EIjm4SYbKo2BdN8+5oL8AzDr8uQ52xHx37unUKgcr
	nz5w==
X-Received: by 10.180.8.136 with SMTP id r8mr70734245wia.42.1425723522211;
	Sat, 07 Mar 2015 02:18:42 -0800 (PST)
Received: from [192.168.1.44] (car06-8-83-155-104-81.fbx.proxad.net.
	[83.155.104.81]) by mx.google.com with ESMTPSA id
	bf8sm17118432wjb.37.2015.03.07.02.18.39
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Sat, 07 Mar 2015 02:18:40 -0800 (PST)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <22BF96EB-3259-439C-A8CE-F48D5145A056@cl.cam.ac.uk>
Date: Sat, 7 Mar 2015 11:18:40 +0100
Message-Id: <ACFD1DDD-AB6B-42FC-9835-0ACACB2765DF@gazagnaire.org>
References: <22BF96EB-3259-439C-A8CE-F48D5145A056@cl.cam.ac.uk>
To: KC Sivaramakrishnan <sk826@cl.cam.ac.uk>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] Irmin RW store questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============3716660690172822864=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============3716660690172822864==
Content-Type: multipart/alternative; boundary="Apple-Mail=_E5696DA6-9B3D-401E-9A74-33798D84C163"


--Apple-Mail=_E5696DA6-9B3D-401E-9A74-33798D84C163
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

Hi KC,

> I=92d like to use Irmin RW store to implement a simple timestamp based =
last-writer-wins register. While the type of Irmin.AO_MAKER =3D functor =
(K : Irmin.Hash.S) (V : Tc.S0) -> =85 is understandable, the type of =
Irmin.RW_MAKER =3D (K : Irmin.Hum.S) (V : Irmin.Hash.S) -> =85 is not =
intuitive. Why is the type of K and V not the same as in AO_MAKER? Why =
should the type of value be a Hash.S?

In a AO (append-only) store, you need to compute keys from values in a =
deterministic way[1], so you need a hashable keys. The type of V should =
be Hum.S in RW though, it was just more convenient to keep it this way =
in few places (because usually the RW store is the one associating =
branch names to commit hashes). I've created [2] to keep track of that.

[1] http://mirage.github.io/irmin/Irmin.AO.html#Valadd =
<http://mirage.github.io/irmin/Irmin.AO.html#Valadd>
[2] https://github.com/mirage/irmin/issues/158 =
<https://github.com/mirage/irmin/issues/158>

> I also witness surprising behaviour for any non-string keys with Git =
memory backend. See the code below. Are there any restrictions with the =
use of RW stores?

That's a bug[3] in the Git RW backend, it tries to re-use the full =
backend in a not-so-clever way, which tries to read the master branch. I =
need to fix this. In the meantime, you can use the other backends:

replace:=20
module Git =3D Irmin_git.RW(Git.Memory)
by either:
module Git =3D Irmin_mem.RW (* in-memory store *)
module Git =3D Irmin_unix.Irmin_fs.RW (* on-disk with custom binary =
format *)

and your test program will work.

[3] https://github.com/mirage/irmin/issues/159 =
<https://github.com/mirage/irmin/issues/159>

Thanks,
Thomas=

--Apple-Mail=_E5696DA6-9B3D-401E-9A74-33798D84C163
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=windows-1252

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dwindows-1252"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">Hi KC,<div class=3D""><br class=3D""></div><div =
class=3D""><div><blockquote type=3D"cite" class=3D""><div class=3D""><div =
style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space;" class=3D"">I=92d like to use =
Irmin RW store to implement a simple timestamp based last-writer-wins =
register. While the type of Irmin.AO_MAKER =3D&nbsp;functor (K : =
Irmin.Hash.S) (V : Tc.S0) -&gt; =85 is understandable, the type of =
Irmin.RW_MAKER =3D&nbsp;(K : Irmin.Hum.S) (V : Irmin.Hash.S) -&gt; =85 =
is not intuitive. Why is the type of K and V not the same as in =
AO_MAKER? Why should the type of value be a =
Hash.S?</div></div></blockquote><div><br class=3D""></div>In a AO =
(append-only) store, you need to compute keys from values in a =
deterministic way[1], so you need a hashable keys. The type of V should =
be Hum.S in RW though, it was just more convenient to keep it this way =
in few places (because usually the RW store is the one associating =
branch names to commit hashes). I've created [2] to keep track of =
that.</div><div><br class=3D""></div><div>[1]&nbsp;<a =
href=3D"http://mirage.github.io/irmin/Irmin.AO.html#Valadd" =
class=3D"">http://mirage.github.io/irmin/Irmin.AO.html#Valadd</a></div><di=
v>[2]&nbsp;<a href=3D"https://github.com/mirage/irmin/issues/158" =
class=3D"">https://github.com/mirage/irmin/issues/158</a></div><div><br =
class=3D""><blockquote type=3D"cite" class=3D""><div class=3D""><div =
style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space;" class=3D""><div class=3D"">I =
also witness surprising behaviour for any non-string keys with Git =
memory backend. See the code below. Are there any restrictions with the =
use of RW stores?</div></div></div></blockquote><div><br =
class=3D""></div><div>That's a bug[3] in the Git RW backend, it tries to =
re-use the full backend in a not-so-clever way, which tries to read the =
master branch. I need to fix this. In the meantime, you can use the =
other backends:</div><div><br =
class=3D""></div><div>replace:&nbsp;</div><div>module Git =3D =
Irmin_git.RW(Git.Memory)</div><div>by either:</div><div>module Git =3D =
Irmin_mem.RW (* in-memory store *)</div><div>module Git =3D =
Irmin_unix.Irmin_fs.RW (* on-disk with custom binary format =
*)</div><div><br class=3D""></div><div>and your test program will =
work.</div><div><br class=3D""></div><div>[3]&nbsp;<a =
href=3D"https://github.com/mirage/irmin/issues/159" =
class=3D"">https://github.com/mirage/irmin/issues/159</a></div><div><br =
class=3D""></div><div>Thanks,</div><div>Thomas</div></div></div></body></h=
tml>=

--Apple-Mail=_E5696DA6-9B3D-401E-9A74-33798D84C163--


--===============3716660690172822864==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============3716660690172822864==--


From mirageos-devel-bounces@lists.xenproject.org Sat Mar 07 10:49:47 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 07 Mar 2015 10:49:47 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YUCIi-0002D0-6F; Sat, 07 Mar 2015 10:49:44 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YUCIg-0002Ct-VR
	for mirageos-devel@lists.xenproject.org; Sat, 07 Mar 2015 10:49:43 +0000
Received: from [85.158.139.211] by server-11.bemta-5.messagelabs.com id
	F4/CC-02757-5C7DAF45; Sat, 07 Mar 2015 10:49:41 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-3.tower-206.messagelabs.com!1425725380!6140636!1
X-Originating-IP: [209.85.215.48]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 12417 invoked from network); 7 Mar 2015 10:49:40 -0000
Received: from mail-la0-f48.google.com (HELO mail-la0-f48.google.com)
	(209.85.215.48)
	by server-3.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	7 Mar 2015 10:49:40 -0000
Received: by labgd6 with SMTP id gd6so15303702lab.3
	for <mirageos-devel@lists.xenproject.org>;
	Sat, 07 Mar 2015 02:49:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding;
	bh=28eVtISOjKR4SBlovzokHzmUJgcWPdY7X8EFdQW0OIg=;
	b=r7VJuZtTWhDKu23BHlYe6y47pNhXLkq9ddpp82zI7s+Omd1dps8W2uikiK7ovOso6S
	Y4p/meo6NCGNinS+qoyPIXDY+2/49mOLZ66g+UbFHuDfh3Pfvq+I/p4GbI9xl3nRgqoT
	7oNoYBd67k8ec8yrppQi+WMQkm+q0zJ98WcSK3hh4Fn7DZQx62S0/N9wY4mmTYFZO2N6
	GUnX5RZ4CQ8Avt7/YJxFxENMzM5thYJcjC4R62Uyfj7bwSV4pXZ5JoOEzgQXnpyXEH0m
	TQVwwnCJWknatW6wR44L+PfAmMeYJSIO5aPZ++u9QXP/sqbd/74pDNPjLSqhwk/EEd01
	vlEw==
MIME-Version: 1.0
X-Received: by 10.152.115.169 with SMTP id jp9mr16863946lab.121.1425725380169; 
	Sat, 07 Mar 2015 02:49:40 -0800 (PST)
Received: by 10.25.207.17 with HTTP; Sat, 7 Mar 2015 02:49:40 -0800 (PST)
In-Reply-To: <D130267B-C265-4A10-91E4-FD46FBA4BF6A@gazagnaire.org>
References: <CAG4opy8k+tgKwfwMfaGzc3m-Tc_JjbkPPWEbqbwDwMBO5vpUtA@mail.gmail.com>
	<8CEDB416-6238-4888-BA4B-B7305FDDE2D9@gazagnaire.org>
	<9349273A-0BB4-40C4-BF06-4307085AA90C@recoil.org>
	<B9F83982-F46E-4B60-B115-4D8D189C09FE@gazagnaire.org>
	<47D39FA3-050E-46E6-89D2-4253484E24A8@gazagnaire.org>
	<CAG4opy8ThEq3-bgXxnijqJ40QTLAqcw=fR5MrWcx-b82k=9WkQ@mail.gmail.com>
	<DUB128-W26232CC9AC746CDC3756C7B4160@phx.gbl>
	<CAG4opy-okAA=DiAJ_YyZot3zG8-0m1-HcMqnEdtPMf-QUExPvg@mail.gmail.com>
	<CAG4opy9cSA0wrihBUc2ByV2vEPyqkQBSavkwZJDxCxxr=LJiEQ@mail.gmail.com>
	<C336E219-E67D-4326-9BB9-E764E3ECC58F@gazagnaire.org>
	<CAG4opy-JO3+Qa+a=VVV5XFvSBpetVkHOHzCxUGjvqEs5UqZ3uQ@mail.gmail.com>
	<E826B8D0-D5E4-43EE-96A2-66B9EB897CED@gazagnaire.org>
	<CAG4opy97_N9W=Aqecu2z_xV4vojd557q+S07L=y8OofDn3sQiQ@mail.gmail.com>
	<D130267B-C265-4A10-91E4-FD46FBA4BF6A@gazagnaire.org>
Date: Sat, 7 Mar 2015 10:49:40 +0000
Message-ID: <CAG4opy_YmFN5fmox_2=hw9DAFPxgp84gOKV9kCSxJBUbGYAUpQ@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Irmin API newbie questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 5 March 2015 at 14:15, Thomas Gazagnaire <thomas@gazagnaire.org> wrote:
>> Should I make a view here instead? It looks like View.of_path does a
>> load of copying. What I want is something that I can be sure will
>> never change.
>
> When you build a view, initially it just reads the head commit. Later, when you read elements from it, it lazily fetch and cache the sub-node needed, relatively to this commit. If you never write on the view, all the reads will be relative to the head commit at the time you created the view. Views are designed for this kind of short-lived, non-persistent and isolated sequence of computations.

How do I find out what commit the view was based on? It looks like it
just reads whatever is current for the store, which could have changed
since I checked it.

>> Neither views nor stores can ensure this I think (both
>> can be written to). Possibly I should do the "I.of_head" inside
>> R.make, but then I'd have to give it the repo (config) and task_maker
>> objects too, which is also ugly.
>
> would be very easy to add a RO view if you think that's useful.
>
>> It seems strange, since the underlying Git model already provides
>> immutable data structures (blobs, trees, commits), but Irmin seems to
>> force me to treat everything as mutable.
>
> well, if you want to persist things you need to mutate something anyway. Exposing an immutable API to Git would be a bit cheating as pure function would need to have side-effects to create new objects in the backends (when you add an element to a tree, you need to create the intermediate sub-node in the storage substrates). But others have already expressed some interest on having immutable views (see [1]), so I'll see what I can do.
>
> Thomas
> [1] https://github.com/mirage/irmin/issues/109

That would be very useful!

Even pure functions are allowed to allocate data (which can later be
GC'd), so I don't see a problem with allocating objects in the store
in the same way.

>>> I still need to ensure that merging back in the store is really atomic (same issue as with all the other high-level operations).
>>
>> BTW, I read more of the storage spec and found:
>>
>> "The use of the storage mutex to avoid race conditions is currently
>> considered by certain implementors to be too high a performance
>> burden, to the point where allowing data corruption is considered
>> preferable."
>>
>> So some locking will be needed anyway. It would be good to implement
>> this only in the backend though, and have the rest of Irmin
>> automatically be safe.
>>
>>> Thomas
>>>
>>> [1] http://mirage.github.io/irmin/Irmin.html#VALwith_hrw_view
>>
>>
>> --
>> Dr Thomas Leonard        http://0install.net/
>> GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
>> GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA
>



-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Sat Mar 07 10:49:47 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 07 Mar 2015 10:49:47 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YUCIi-0002D0-6F; Sat, 07 Mar 2015 10:49:44 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YUCIg-0002Ct-VR
	for mirageos-devel@lists.xenproject.org; Sat, 07 Mar 2015 10:49:43 +0000
Received: from [85.158.139.211] by server-11.bemta-5.messagelabs.com id
	F4/CC-02757-5C7DAF45; Sat, 07 Mar 2015 10:49:41 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-3.tower-206.messagelabs.com!1425725380!6140636!1
X-Originating-IP: [209.85.215.48]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 12417 invoked from network); 7 Mar 2015 10:49:40 -0000
Received: from mail-la0-f48.google.com (HELO mail-la0-f48.google.com)
	(209.85.215.48)
	by server-3.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	7 Mar 2015 10:49:40 -0000
Received: by labgd6 with SMTP id gd6so15303702lab.3
	for <mirageos-devel@lists.xenproject.org>;
	Sat, 07 Mar 2015 02:49:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding;
	bh=28eVtISOjKR4SBlovzokHzmUJgcWPdY7X8EFdQW0OIg=;
	b=r7VJuZtTWhDKu23BHlYe6y47pNhXLkq9ddpp82zI7s+Omd1dps8W2uikiK7ovOso6S
	Y4p/meo6NCGNinS+qoyPIXDY+2/49mOLZ66g+UbFHuDfh3Pfvq+I/p4GbI9xl3nRgqoT
	7oNoYBd67k8ec8yrppQi+WMQkm+q0zJ98WcSK3hh4Fn7DZQx62S0/N9wY4mmTYFZO2N6
	GUnX5RZ4CQ8Avt7/YJxFxENMzM5thYJcjC4R62Uyfj7bwSV4pXZ5JoOEzgQXnpyXEH0m
	TQVwwnCJWknatW6wR44L+PfAmMeYJSIO5aPZ++u9QXP/sqbd/74pDNPjLSqhwk/EEd01
	vlEw==
MIME-Version: 1.0
X-Received: by 10.152.115.169 with SMTP id jp9mr16863946lab.121.1425725380169; 
	Sat, 07 Mar 2015 02:49:40 -0800 (PST)
Received: by 10.25.207.17 with HTTP; Sat, 7 Mar 2015 02:49:40 -0800 (PST)
In-Reply-To: <D130267B-C265-4A10-91E4-FD46FBA4BF6A@gazagnaire.org>
References: <CAG4opy8k+tgKwfwMfaGzc3m-Tc_JjbkPPWEbqbwDwMBO5vpUtA@mail.gmail.com>
	<8CEDB416-6238-4888-BA4B-B7305FDDE2D9@gazagnaire.org>
	<9349273A-0BB4-40C4-BF06-4307085AA90C@recoil.org>
	<B9F83982-F46E-4B60-B115-4D8D189C09FE@gazagnaire.org>
	<47D39FA3-050E-46E6-89D2-4253484E24A8@gazagnaire.org>
	<CAG4opy8ThEq3-bgXxnijqJ40QTLAqcw=fR5MrWcx-b82k=9WkQ@mail.gmail.com>
	<DUB128-W26232CC9AC746CDC3756C7B4160@phx.gbl>
	<CAG4opy-okAA=DiAJ_YyZot3zG8-0m1-HcMqnEdtPMf-QUExPvg@mail.gmail.com>
	<CAG4opy9cSA0wrihBUc2ByV2vEPyqkQBSavkwZJDxCxxr=LJiEQ@mail.gmail.com>
	<C336E219-E67D-4326-9BB9-E764E3ECC58F@gazagnaire.org>
	<CAG4opy-JO3+Qa+a=VVV5XFvSBpetVkHOHzCxUGjvqEs5UqZ3uQ@mail.gmail.com>
	<E826B8D0-D5E4-43EE-96A2-66B9EB897CED@gazagnaire.org>
	<CAG4opy97_N9W=Aqecu2z_xV4vojd557q+S07L=y8OofDn3sQiQ@mail.gmail.com>
	<D130267B-C265-4A10-91E4-FD46FBA4BF6A@gazagnaire.org>
Date: Sat, 7 Mar 2015 10:49:40 +0000
Message-ID: <CAG4opy_YmFN5fmox_2=hw9DAFPxgp84gOKV9kCSxJBUbGYAUpQ@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Irmin API newbie questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 5 March 2015 at 14:15, Thomas Gazagnaire <thomas@gazagnaire.org> wrote:
>> Should I make a view here instead? It looks like View.of_path does a
>> load of copying. What I want is something that I can be sure will
>> never change.
>
> When you build a view, initially it just reads the head commit. Later, when you read elements from it, it lazily fetch and cache the sub-node needed, relatively to this commit. If you never write on the view, all the reads will be relative to the head commit at the time you created the view. Views are designed for this kind of short-lived, non-persistent and isolated sequence of computations.

How do I find out what commit the view was based on? It looks like it
just reads whatever is current for the store, which could have changed
since I checked it.

>> Neither views nor stores can ensure this I think (both
>> can be written to). Possibly I should do the "I.of_head" inside
>> R.make, but then I'd have to give it the repo (config) and task_maker
>> objects too, which is also ugly.
>
> would be very easy to add a RO view if you think that's useful.
>
>> It seems strange, since the underlying Git model already provides
>> immutable data structures (blobs, trees, commits), but Irmin seems to
>> force me to treat everything as mutable.
>
> well, if you want to persist things you need to mutate something anyway. Exposing an immutable API to Git would be a bit cheating as pure function would need to have side-effects to create new objects in the backends (when you add an element to a tree, you need to create the intermediate sub-node in the storage substrates). But others have already expressed some interest on having immutable views (see [1]), so I'll see what I can do.
>
> Thomas
> [1] https://github.com/mirage/irmin/issues/109

That would be very useful!

Even pure functions are allowed to allocate data (which can later be
GC'd), so I don't see a problem with allocating objects in the store
in the same way.

>>> I still need to ensure that merging back in the store is really atomic (same issue as with all the other high-level operations).
>>
>> BTW, I read more of the storage spec and found:
>>
>> "The use of the storage mutex to avoid race conditions is currently
>> considered by certain implementors to be too high a performance
>> burden, to the point where allowing data corruption is considered
>> preferable."
>>
>> So some locking will be needed anyway. It would be good to implement
>> this only in the backend though, and have the rest of Irmin
>> automatically be safe.
>>
>>> Thomas
>>>
>>> [1] http://mirage.github.io/irmin/Irmin.html#VALwith_hrw_view
>>
>>
>> --
>> Dr Thomas Leonard        http://0install.net/
>> GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
>> GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA
>



-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Sun Mar 08 15:20:16 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 08 Mar 2015 15:20:16 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YUczv-00015m-8Q; Sun, 08 Mar 2015 15:20:07 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <daniel.buenzli@erratique.ch>) id 1YUczu-00015h-1m
	for mirageos-devel@lists.xenproject.org; Sun, 08 Mar 2015 15:20:06 +0000
Received: from [85.158.139.211] by server-6.bemta-5.messagelabs.com id
	00/CC-03165-5A86CF45; Sun, 08 Mar 2015 15:20:05 +0000
X-Env-Sender: daniel.buenzli@erratique.ch
X-Msg-Ref: server-9.tower-206.messagelabs.com!1425828004!13833354!1
X-Originating-IP: [74.55.86.74]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNzQuNTUuODYuNzQgPT4gMzA4NTYz\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 28093 invoked from network); 8 Mar 2015 15:20:04 -0000
Received: from mail6.webfaction.com (HELO smtp.webfaction.com) (74.55.86.74)
	by server-9.tower-206.messagelabs.com with SMTP;
	8 Mar 2015 15:20:04 -0000
Received: from [172.20.10.2]
	(198.234.197.178.dynamic.wless.lssmb00p-cgnat.res.cust.swisscom.ch
	[178.197.234.198])
	by smtp.webfaction.com (Postfix) with ESMTP id 268F459A40EA
	for <mirageos-devel@lists.xenproject.org>;
	Sun,  8 Mar 2015 15:20:02 +0000 (UTC)
Date: Sun, 8 Mar 2015 16:20:00 +0100
From: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Message-ID: <ADA8916453824BEE99644202AC785498@erratique.ch>
In-Reply-To: <A63173B0742143F7811BC5457D3E3DD3@erratique.ch>
References: <CAG4opy9mf+NEhYAs-tj0JYNocVS0dGU9oxqam+hqFK5ZJq7VLg@mail.gmail.com>
	<20150202.014549.1883720051237442569.Christophe.Troestler@umons.ac.be>
	<CAG4opy9X-rg5qY+Yu0c-OJ8NumJSAPMVLr01xoHt99y9_i==8w@mail.gmail.com>
	<20150204.001614.26478837567139584.Christophe.Troestler@umons.ac.be>
	<CAG4opy8uTBQS4cM75dYEm=Jsa3078wMPNW+BQEHNsu7Mb4OJ8Q@mail.gmail.com>
	<87oap97rvw.fsf@study.localdomain>
	<CAG4opy9e5iq7rMPrSDzqiPbJZeJe8Wctg0trc1CbFZJG8ARNqw@mail.gmail.com>
	<87lhk4csew.fsf@study.localdomain>
	<2A0347CF598A4081B45318903375F7A9@erratique.ch>
	<A63173B0742143F7811BC5457D3E3DD3@erratique.ch>
X-Mailer: sparrow 1.6.4 (build 1178)
MIME-Version: 1.0
Content-Disposition: inline
Subject: Re: [MirageOS-devel] Error handling in Mirage - request for
 comments!
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

I found resultv to be visually hard to parse, so the package name changed again to a *final* rresult (with an alveolar trill). 

http://erratique.ch/software/rresult

I have tentatively added design guidelines for using the type: 

http://erratique.ch/software/rresult/doc/Rresult.html#usage

Best,

Daniel



_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Sun Mar 08 15:20:16 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 08 Mar 2015 15:20:16 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YUczv-00015m-8Q; Sun, 08 Mar 2015 15:20:07 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <daniel.buenzli@erratique.ch>) id 1YUczu-00015h-1m
	for mirageos-devel@lists.xenproject.org; Sun, 08 Mar 2015 15:20:06 +0000
Received: from [85.158.139.211] by server-6.bemta-5.messagelabs.com id
	00/CC-03165-5A86CF45; Sun, 08 Mar 2015 15:20:05 +0000
X-Env-Sender: daniel.buenzli@erratique.ch
X-Msg-Ref: server-9.tower-206.messagelabs.com!1425828004!13833354!1
X-Originating-IP: [74.55.86.74]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNzQuNTUuODYuNzQgPT4gMzA4NTYz\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 28093 invoked from network); 8 Mar 2015 15:20:04 -0000
Received: from mail6.webfaction.com (HELO smtp.webfaction.com) (74.55.86.74)
	by server-9.tower-206.messagelabs.com with SMTP;
	8 Mar 2015 15:20:04 -0000
Received: from [172.20.10.2]
	(198.234.197.178.dynamic.wless.lssmb00p-cgnat.res.cust.swisscom.ch
	[178.197.234.198])
	by smtp.webfaction.com (Postfix) with ESMTP id 268F459A40EA
	for <mirageos-devel@lists.xenproject.org>;
	Sun,  8 Mar 2015 15:20:02 +0000 (UTC)
Date: Sun, 8 Mar 2015 16:20:00 +0100
From: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Message-ID: <ADA8916453824BEE99644202AC785498@erratique.ch>
In-Reply-To: <A63173B0742143F7811BC5457D3E3DD3@erratique.ch>
References: <CAG4opy9mf+NEhYAs-tj0JYNocVS0dGU9oxqam+hqFK5ZJq7VLg@mail.gmail.com>
	<20150202.014549.1883720051237442569.Christophe.Troestler@umons.ac.be>
	<CAG4opy9X-rg5qY+Yu0c-OJ8NumJSAPMVLr01xoHt99y9_i==8w@mail.gmail.com>
	<20150204.001614.26478837567139584.Christophe.Troestler@umons.ac.be>
	<CAG4opy8uTBQS4cM75dYEm=Jsa3078wMPNW+BQEHNsu7Mb4OJ8Q@mail.gmail.com>
	<87oap97rvw.fsf@study.localdomain>
	<CAG4opy9e5iq7rMPrSDzqiPbJZeJe8Wctg0trc1CbFZJG8ARNqw@mail.gmail.com>
	<87lhk4csew.fsf@study.localdomain>
	<2A0347CF598A4081B45318903375F7A9@erratique.ch>
	<A63173B0742143F7811BC5457D3E3DD3@erratique.ch>
X-Mailer: sparrow 1.6.4 (build 1178)
MIME-Version: 1.0
Content-Disposition: inline
Subject: Re: [MirageOS-devel] Error handling in Mirage - request for
 comments!
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

I found resultv to be visually hard to parse, so the package name changed again to a *final* rresult (with an alveolar trill). 

http://erratique.ch/software/rresult

I have tentatively added design guidelines for using the type: 

http://erratique.ch/software/rresult/doc/Rresult.html#usage

Best,

Daniel



_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Mon Mar 09 10:37:07 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 09 Mar 2015 10:37:07 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YUv3W-0007oe-P5; Mon, 09 Mar 2015 10:37:02 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YUv3V-0007oV-HV
	for mirageos-devel@lists.xenproject.org; Mon, 09 Mar 2015 10:37:01 +0000
Received: from [193.109.254.147] by server-8.bemta-14.messagelabs.com id
	33/1E-03168-CC77DF45; Mon, 09 Mar 2015 10:37:00 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-15.tower-27.messagelabs.com!1425897418!15773418!1
X-Originating-IP: [209.85.215.54]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 25025 invoked from network); 9 Mar 2015 10:36:58 -0000
Received: from mail-la0-f54.google.com (HELO mail-la0-f54.google.com)
	(209.85.215.54)
	by server-15.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	9 Mar 2015 10:36:58 -0000
Received: by labgf13 with SMTP id gf13so45325827lab.5
	for <mirageos-devel@lists.xenproject.org>;
	Mon, 09 Mar 2015 03:36:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding;
	bh=U1R1mlJ7aTdYnVBKTKFj2kDv4TBn6DwF4dfNHJYAP6I=;
	b=eVqoArvq+VJICWzxn8dadQ8b/Lpm5BflcCJuJK1GRklGt2lPHv2thBgbSf4uH8BITI
	4OsVgwwmmyNBn40CM0gT1IVZXo+kQb7JUrLEnF5AkMyUkR2BrpKu9qfwWQe+JOsbq74g
	aljZOAnvk+xGqEPcnCMcdbJU2zHhKOVqPKoWy0XzUMe0TB50Lz5oBF05uVS+y64Kg5Hd
	4ZhGGF3+ELQUdduHyjo/dsXP1/DNbScpxGmcCvsGnAlXyBybsR6qHIRJ/oNoH0WKV192
	neAq7F0Ou0AHRRw0iJEYNC73EaYHAI0RoEeMPUtdUvK6XVBsHGaD7essaf8wC2bOVEGR
	BzRg==
MIME-Version: 1.0
X-Received: by 10.152.20.201 with SMTP id p9mr24829186lae.50.1425897417904;
	Mon, 09 Mar 2015 03:36:57 -0700 (PDT)
Received: by 10.25.207.17 with HTTP; Mon, 9 Mar 2015 03:36:57 -0700 (PDT)
In-Reply-To: <CAG4opy_YmFN5fmox_2=hw9DAFPxgp84gOKV9kCSxJBUbGYAUpQ@mail.gmail.com>
References: <CAG4opy8k+tgKwfwMfaGzc3m-Tc_JjbkPPWEbqbwDwMBO5vpUtA@mail.gmail.com>
	<8CEDB416-6238-4888-BA4B-B7305FDDE2D9@gazagnaire.org>
	<9349273A-0BB4-40C4-BF06-4307085AA90C@recoil.org>
	<B9F83982-F46E-4B60-B115-4D8D189C09FE@gazagnaire.org>
	<47D39FA3-050E-46E6-89D2-4253484E24A8@gazagnaire.org>
	<CAG4opy8ThEq3-bgXxnijqJ40QTLAqcw=fR5MrWcx-b82k=9WkQ@mail.gmail.com>
	<DUB128-W26232CC9AC746CDC3756C7B4160@phx.gbl>
	<CAG4opy-okAA=DiAJ_YyZot3zG8-0m1-HcMqnEdtPMf-QUExPvg@mail.gmail.com>
	<CAG4opy9cSA0wrihBUc2ByV2vEPyqkQBSavkwZJDxCxxr=LJiEQ@mail.gmail.com>
	<C336E219-E67D-4326-9BB9-E764E3ECC58F@gazagnaire.org>
	<CAG4opy-JO3+Qa+a=VVV5XFvSBpetVkHOHzCxUGjvqEs5UqZ3uQ@mail.gmail.com>
	<E826B8D0-D5E4-43EE-96A2-66B9EB897CED@gazagnaire.org>
	<CAG4opy97_N9W=Aqecu2z_xV4vojd557q+S07L=y8OofDn3sQiQ@mail.gmail.com>
	<D130267B-C265-4A10-91E4-FD46FBA4BF6A@gazagnaire.org>
	<CAG4opy_YmFN5fmox_2=hw9DAFPxgp84gOKV9kCSxJBUbGYAUpQ@mail.gmail.com>
Date: Mon, 9 Mar 2015 10:36:57 +0000
Message-ID: <CAG4opy9HKQDD8ZSTDUMg0QhSiNamV-p46Qbyqyoo8b0ced0Xeg@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Irmin API newbie questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 7 March 2015 at 10:49, Thomas Leonard <talex5@gmail.com> wrote:
> On 5 March 2015 at 14:15, Thomas Gazagnaire <thomas@gazagnaire.org> wrote:
>>> Should I make a view here instead? It looks like View.of_path does a
>>> load of copying. What I want is something that I can be sure will
>>> never change.
>>
>> When you build a view, initially it just reads the head commit. Later, when you read elements from it, it lazily fetch and cache the sub-node needed, relatively to this commit. If you never write on the view, all the reads will be relative to the head commit at the time you created the view. Views are designed for this kind of short-lived, non-persistent and isolated sequence of computations.
>
> How do I find out what commit the view was based on? It looks like it
> just reads whatever is current for the store, which could have changed
> since I checked it.
>
>>> Neither views nor stores can ensure this I think (both
>>> can be written to). Possibly I should do the "I.of_head" inside
>>> R.make, but then I'd have to give it the repo (config) and task_maker
>>> objects too, which is also ugly.
>>
>> would be very easy to add a RO view if you think that's useful.
>>
>>> It seems strange, since the underlying Git model already provides
>>> immutable data structures (blobs, trees, commits), but Irmin seems to
>>> force me to treat everything as mutable.
>>
>> well, if you want to persist things you need to mutate something anyway. Exposing an immutable API to Git would be a bit cheating as pure function would need to have side-effects to create new objects in the backends (when you add an element to a tree, you need to create the intermediate sub-node in the storage substrates). But others have already expressed some interest on having immutable views (see [1]), so I'll see what I can do.
>>
>> Thomas
>> [1] https://github.com/mirage/irmin/issues/109
>
> That would be very useful!
>
> Even pure functions are allowed to allocate data (which can later be
> GC'd), so I don't see a problem with allocating objects in the store
> in the same way.

I've added a somewhat functional Irmin abstraction to CueKeeper now to
try this out. Here's the interface I made:

https://github.com/talex5/cuekeeper/blob/master/git_storage_s.mli

This doesn't provide access to all Irmin's features of course, but it
shows everything I'm using and it's probably easier for beginners. The
main differences are:

- It uses Git terminology (repository, branch, staging area, etc) so
it should be easier to understand for people used to Git.

- It provides more type safey. For example, you can't try to read from
a branch (which could change at any time) - you have to dereference it
first to get a commit.

- Branch X will always be branch X. A branch can't be switched or
detached - you must create a new one instead.

- The only way to update a branch is with Branch.fast_forward_to.

- You make a commit by writing to a staging area, committing to get a
Commit.t, then updating the branch to point to the commit.

- The current branch head is provided as a signal.

Hopefully some of this can go upstream. The main limitations I found
(marked with XXX in the implementation) are:

- The LCA calculation is slow
(https://github.com/mirage/irmin/issues/160) so I used Thomas's
suggestions of limiting the number of common ancestors to 1. However,
this could give the wrong answer in some cases. I think Irmin just
needs to be smarter about pruning the search when it finds a common
node.

- I couldn't find a way to make a commit without a parent without
using a named branch. The special-case initialisation code could go
away if Irmin allowed that.

- fast_forward_to checks that the update is a fast-forward to avoid
data-loss, but it's not quite atomic. Ideally, Irmin would provide
this function itself and lock the backend.

(Also, my history API isn't very good. I want someone with a commit to
be able to look at the parents, but I didn't see a way to map a
graph's nodes from commit IDs to commits. Therefore, I currently turn
the history into a flat list of log entries.)


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Mon Mar 09 10:37:07 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 09 Mar 2015 10:37:07 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YUv3W-0007oe-P5; Mon, 09 Mar 2015 10:37:02 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YUv3V-0007oV-HV
	for mirageos-devel@lists.xenproject.org; Mon, 09 Mar 2015 10:37:01 +0000
Received: from [193.109.254.147] by server-8.bemta-14.messagelabs.com id
	33/1E-03168-CC77DF45; Mon, 09 Mar 2015 10:37:00 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-15.tower-27.messagelabs.com!1425897418!15773418!1
X-Originating-IP: [209.85.215.54]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 25025 invoked from network); 9 Mar 2015 10:36:58 -0000
Received: from mail-la0-f54.google.com (HELO mail-la0-f54.google.com)
	(209.85.215.54)
	by server-15.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	9 Mar 2015 10:36:58 -0000
Received: by labgf13 with SMTP id gf13so45325827lab.5
	for <mirageos-devel@lists.xenproject.org>;
	Mon, 09 Mar 2015 03:36:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding;
	bh=U1R1mlJ7aTdYnVBKTKFj2kDv4TBn6DwF4dfNHJYAP6I=;
	b=eVqoArvq+VJICWzxn8dadQ8b/Lpm5BflcCJuJK1GRklGt2lPHv2thBgbSf4uH8BITI
	4OsVgwwmmyNBn40CM0gT1IVZXo+kQb7JUrLEnF5AkMyUkR2BrpKu9qfwWQe+JOsbq74g
	aljZOAnvk+xGqEPcnCMcdbJU2zHhKOVqPKoWy0XzUMe0TB50Lz5oBF05uVS+y64Kg5Hd
	4ZhGGF3+ELQUdduHyjo/dsXP1/DNbScpxGmcCvsGnAlXyBybsR6qHIRJ/oNoH0WKV192
	neAq7F0Ou0AHRRw0iJEYNC73EaYHAI0RoEeMPUtdUvK6XVBsHGaD7essaf8wC2bOVEGR
	BzRg==
MIME-Version: 1.0
X-Received: by 10.152.20.201 with SMTP id p9mr24829186lae.50.1425897417904;
	Mon, 09 Mar 2015 03:36:57 -0700 (PDT)
Received: by 10.25.207.17 with HTTP; Mon, 9 Mar 2015 03:36:57 -0700 (PDT)
In-Reply-To: <CAG4opy_YmFN5fmox_2=hw9DAFPxgp84gOKV9kCSxJBUbGYAUpQ@mail.gmail.com>
References: <CAG4opy8k+tgKwfwMfaGzc3m-Tc_JjbkPPWEbqbwDwMBO5vpUtA@mail.gmail.com>
	<8CEDB416-6238-4888-BA4B-B7305FDDE2D9@gazagnaire.org>
	<9349273A-0BB4-40C4-BF06-4307085AA90C@recoil.org>
	<B9F83982-F46E-4B60-B115-4D8D189C09FE@gazagnaire.org>
	<47D39FA3-050E-46E6-89D2-4253484E24A8@gazagnaire.org>
	<CAG4opy8ThEq3-bgXxnijqJ40QTLAqcw=fR5MrWcx-b82k=9WkQ@mail.gmail.com>
	<DUB128-W26232CC9AC746CDC3756C7B4160@phx.gbl>
	<CAG4opy-okAA=DiAJ_YyZot3zG8-0m1-HcMqnEdtPMf-QUExPvg@mail.gmail.com>
	<CAG4opy9cSA0wrihBUc2ByV2vEPyqkQBSavkwZJDxCxxr=LJiEQ@mail.gmail.com>
	<C336E219-E67D-4326-9BB9-E764E3ECC58F@gazagnaire.org>
	<CAG4opy-JO3+Qa+a=VVV5XFvSBpetVkHOHzCxUGjvqEs5UqZ3uQ@mail.gmail.com>
	<E826B8D0-D5E4-43EE-96A2-66B9EB897CED@gazagnaire.org>
	<CAG4opy97_N9W=Aqecu2z_xV4vojd557q+S07L=y8OofDn3sQiQ@mail.gmail.com>
	<D130267B-C265-4A10-91E4-FD46FBA4BF6A@gazagnaire.org>
	<CAG4opy_YmFN5fmox_2=hw9DAFPxgp84gOKV9kCSxJBUbGYAUpQ@mail.gmail.com>
Date: Mon, 9 Mar 2015 10:36:57 +0000
Message-ID: <CAG4opy9HKQDD8ZSTDUMg0QhSiNamV-p46Qbyqyoo8b0ced0Xeg@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Irmin API newbie questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 7 March 2015 at 10:49, Thomas Leonard <talex5@gmail.com> wrote:
> On 5 March 2015 at 14:15, Thomas Gazagnaire <thomas@gazagnaire.org> wrote:
>>> Should I make a view here instead? It looks like View.of_path does a
>>> load of copying. What I want is something that I can be sure will
>>> never change.
>>
>> When you build a view, initially it just reads the head commit. Later, when you read elements from it, it lazily fetch and cache the sub-node needed, relatively to this commit. If you never write on the view, all the reads will be relative to the head commit at the time you created the view. Views are designed for this kind of short-lived, non-persistent and isolated sequence of computations.
>
> How do I find out what commit the view was based on? It looks like it
> just reads whatever is current for the store, which could have changed
> since I checked it.
>
>>> Neither views nor stores can ensure this I think (both
>>> can be written to). Possibly I should do the "I.of_head" inside
>>> R.make, but then I'd have to give it the repo (config) and task_maker
>>> objects too, which is also ugly.
>>
>> would be very easy to add a RO view if you think that's useful.
>>
>>> It seems strange, since the underlying Git model already provides
>>> immutable data structures (blobs, trees, commits), but Irmin seems to
>>> force me to treat everything as mutable.
>>
>> well, if you want to persist things you need to mutate something anyway. Exposing an immutable API to Git would be a bit cheating as pure function would need to have side-effects to create new objects in the backends (when you add an element to a tree, you need to create the intermediate sub-node in the storage substrates). But others have already expressed some interest on having immutable views (see [1]), so I'll see what I can do.
>>
>> Thomas
>> [1] https://github.com/mirage/irmin/issues/109
>
> That would be very useful!
>
> Even pure functions are allowed to allocate data (which can later be
> GC'd), so I don't see a problem with allocating objects in the store
> in the same way.

I've added a somewhat functional Irmin abstraction to CueKeeper now to
try this out. Here's the interface I made:

https://github.com/talex5/cuekeeper/blob/master/git_storage_s.mli

This doesn't provide access to all Irmin's features of course, but it
shows everything I'm using and it's probably easier for beginners. The
main differences are:

- It uses Git terminology (repository, branch, staging area, etc) so
it should be easier to understand for people used to Git.

- It provides more type safey. For example, you can't try to read from
a branch (which could change at any time) - you have to dereference it
first to get a commit.

- Branch X will always be branch X. A branch can't be switched or
detached - you must create a new one instead.

- The only way to update a branch is with Branch.fast_forward_to.

- You make a commit by writing to a staging area, committing to get a
Commit.t, then updating the branch to point to the commit.

- The current branch head is provided as a signal.

Hopefully some of this can go upstream. The main limitations I found
(marked with XXX in the implementation) are:

- The LCA calculation is slow
(https://github.com/mirage/irmin/issues/160) so I used Thomas's
suggestions of limiting the number of common ancestors to 1. However,
this could give the wrong answer in some cases. I think Irmin just
needs to be smarter about pruning the search when it finds a common
node.

- I couldn't find a way to make a commit without a parent without
using a named branch. The special-case initialisation code could go
away if Irmin allowed that.

- fast_forward_to checks that the update is a fast-forward to avoid
data-loss, but it's not quite atomic. Ideally, Irmin would provide
this function itself and lock the backend.

(Also, my history API isn't very good. I want someone with a commit to
be able to look at the parents, but I didn't see a way to map a
graph's nodes from commit IDs to commits. Therefore, I currently turn
the history into a flat list of log entries.)


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Mon Mar 09 12:06:13 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 09 Mar 2015 12:06:13 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YUwRk-0003vA-Iq; Mon, 09 Mar 2015 12:06:08 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <eireann.leverett@cantab.net>) id 1YUwRj-0003v1-Dg
	for mirageos-devel@lists.xenproject.org; Mon, 09 Mar 2015 12:06:07 +0000
Received: from [85.158.137.68] by server-13.bemta-3.messagelabs.com id
	5D/CF-02898-EAC8DF45; Mon, 09 Mar 2015 12:06:06 +0000
X-Env-Sender: eireann.leverett@cantab.net
X-Msg-Ref: server-7.tower-31.messagelabs.com!1425902765!14362536!1
X-Originating-IP: [72.9.247.210]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNzIuOS4yNDcuMjEwID0+IDg5NTg=\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 24889 invoked from network); 9 Mar 2015 12:06:06 -0000
Received: from jackal.aluminati.org (HELO jackal.aluminati.org) (72.9.247.210)
	by server-7.tower-31.messagelabs.com with SMTP;
	9 Mar 2015 12:06:06 -0000
Received: from localhost (localhost [127.0.0.1])
	by jackal.aluminati.org (Postfix) with ESMTP id 77239CDA5E4
	for <mirageos-devel@lists.xenproject.org>;
	Mon,  9 Mar 2015 12:06:05 +0000 (GMT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cantab.net; h=
	content-transfer-encoding:in-reply-to:references:subject:subject
	:mime-version:user-agent:from:from:date:date:message-id:received
	:received; s=postfix; t=1425902765; bh=dLk05S5T+kf0LlD5A6Euhlm4f
	SiQKnMIc8IMWNiKBqY=; b=kpBEP7aZv7v3igmch8FhtD/NtPlsKojnSZ1BmjKXV
	x5BoS+B1T+o8/Otw2MnyyGcu1thWeiujUoYmIlFqy+aqTwyyhH2kSmWyDQMSMvT2
	+aXPAJdrtfS3ACMKovGgrynmYDMhQ8V8Acd17YmVqReImWp+rGnOLjh8vEOmYxWh
	ps=
X-Quarantine-ID: <iAYsdDP4wtU4>
X-Virus-Scanned: Debian amavisd-new at serval.aluminati.org
X-Spam-Flag: NO
X-Spam-Score: -1.001
X-Spam-Level: 
X-Spam-Status: No, score=-1.001 tagged_above=-9999 required=6.31
	tests=[ALL_TRUSTED=-1, BAYES_40=-0.001] autolearn=no
Received: from jackal.aluminati.org ([127.0.0.1])
	by localhost (jackal.aluminati.org [127.0.0.1]) (amavisd-new,
	port 10026)
	with ESMTP id iAYsdDP4wtU4 for <mirageos-devel@lists.xenproject.org>;
	Mon,  9 Mar 2015 12:06:05 +0000 (GMT)
Received: from [10.0.0.24] (mink.aluminati.org [10.0.7.180])
	(using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
	(No client certificate requested)
	by jackal.aluminati.org (Postfix) with ESMTPSA id B2924CDA5E8
	for <mirageos-devel@lists.xenproject.org>;
	Mon,  9 Mar 2015 12:05:58 +0000 (GMT)
Message-ID: <54FD8CA3.7010603@cantab.net>
Date: Mon, 09 Mar 2015 12:05:55 +0000
From: Eireann Leverett <eireann.leverett@cantab.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: mirageos-devel@lists.xenproject.org
References: <mailman.3.1425902401.13817.mirageos-devel@lists.xenproject.org>
In-Reply-To: <mailman.3.1425902401.13817.mirageos-devel@lists.xenproject.org>
Subject: [MirageOS-devel] Anyone available to show off MirageOS tomorrow
	afternoon?
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am speaking to BP's security team tomorrow at and near the CL.

I have a speaking slot in the afternoon if someone would like to come
show them some MirageOS projects.

Eireann

Please reply off-list if you are interested in showing them some
clean-slate thinking.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJU/YyiAAoJEG6rIcA40Ve4bg8H/3iFOZOCqGJPkS0+KnTwMd+d
9vrJXVfM4roQTfuNLeIF/A4Z4VdyT6AuccEXAlPvLBoDsH7d4O3iwsBHyUD/SHAN
HELLb7+hY8UVA0bry1A37lN+Mas2JRScPhIo8TIC2THAXRQrU9mQYyLes6ozyPTK
jDcpx93stS+anwxI6WgkVElwviVx7MWR3XvgTxXeKQbR0zbWrgA7M/hk41pWfKy2
oskQ8luJuHC9xf//nZRQgpdFq7W+dZNoeaSnylKdmSqINw1caiQy+Nfgwx5xper1
ln4qIv/vz9GsdB/KuDCWkU1uc+lbrdQb9l3oMAjkUV3FMdwe4GVlLxFY5lWPOes=
=Gq3m
-----END PGP SIGNATURE-----

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Mon Mar 09 12:06:13 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 09 Mar 2015 12:06:13 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YUwRk-0003vA-Iq; Mon, 09 Mar 2015 12:06:08 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <eireann.leverett@cantab.net>) id 1YUwRj-0003v1-Dg
	for mirageos-devel@lists.xenproject.org; Mon, 09 Mar 2015 12:06:07 +0000
Received: from [85.158.137.68] by server-13.bemta-3.messagelabs.com id
	5D/CF-02898-EAC8DF45; Mon, 09 Mar 2015 12:06:06 +0000
X-Env-Sender: eireann.leverett@cantab.net
X-Msg-Ref: server-7.tower-31.messagelabs.com!1425902765!14362536!1
X-Originating-IP: [72.9.247.210]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNzIuOS4yNDcuMjEwID0+IDg5NTg=\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 24889 invoked from network); 9 Mar 2015 12:06:06 -0000
Received: from jackal.aluminati.org (HELO jackal.aluminati.org) (72.9.247.210)
	by server-7.tower-31.messagelabs.com with SMTP;
	9 Mar 2015 12:06:06 -0000
Received: from localhost (localhost [127.0.0.1])
	by jackal.aluminati.org (Postfix) with ESMTP id 77239CDA5E4
	for <mirageos-devel@lists.xenproject.org>;
	Mon,  9 Mar 2015 12:06:05 +0000 (GMT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cantab.net; h=
	content-transfer-encoding:in-reply-to:references:subject:subject
	:mime-version:user-agent:from:from:date:date:message-id:received
	:received; s=postfix; t=1425902765; bh=dLk05S5T+kf0LlD5A6Euhlm4f
	SiQKnMIc8IMWNiKBqY=; b=kpBEP7aZv7v3igmch8FhtD/NtPlsKojnSZ1BmjKXV
	x5BoS+B1T+o8/Otw2MnyyGcu1thWeiujUoYmIlFqy+aqTwyyhH2kSmWyDQMSMvT2
	+aXPAJdrtfS3ACMKovGgrynmYDMhQ8V8Acd17YmVqReImWp+rGnOLjh8vEOmYxWh
	ps=
X-Quarantine-ID: <iAYsdDP4wtU4>
X-Virus-Scanned: Debian amavisd-new at serval.aluminati.org
X-Spam-Flag: NO
X-Spam-Score: -1.001
X-Spam-Level: 
X-Spam-Status: No, score=-1.001 tagged_above=-9999 required=6.31
	tests=[ALL_TRUSTED=-1, BAYES_40=-0.001] autolearn=no
Received: from jackal.aluminati.org ([127.0.0.1])
	by localhost (jackal.aluminati.org [127.0.0.1]) (amavisd-new,
	port 10026)
	with ESMTP id iAYsdDP4wtU4 for <mirageos-devel@lists.xenproject.org>;
	Mon,  9 Mar 2015 12:06:05 +0000 (GMT)
Received: from [10.0.0.24] (mink.aluminati.org [10.0.7.180])
	(using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
	(No client certificate requested)
	by jackal.aluminati.org (Postfix) with ESMTPSA id B2924CDA5E8
	for <mirageos-devel@lists.xenproject.org>;
	Mon,  9 Mar 2015 12:05:58 +0000 (GMT)
Message-ID: <54FD8CA3.7010603@cantab.net>
Date: Mon, 09 Mar 2015 12:05:55 +0000
From: Eireann Leverett <eireann.leverett@cantab.net>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: mirageos-devel@lists.xenproject.org
References: <mailman.3.1425902401.13817.mirageos-devel@lists.xenproject.org>
In-Reply-To: <mailman.3.1425902401.13817.mirageos-devel@lists.xenproject.org>
Subject: [MirageOS-devel] Anyone available to show off MirageOS tomorrow
	afternoon?
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am speaking to BP's security team tomorrow at and near the CL.

I have a speaking slot in the afternoon if someone would like to come
show them some MirageOS projects.

Eireann

Please reply off-list if you are interested in showing them some
clean-slate thinking.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJU/YyiAAoJEG6rIcA40Ve4bg8H/3iFOZOCqGJPkS0+KnTwMd+d
9vrJXVfM4roQTfuNLeIF/A4Z4VdyT6AuccEXAlPvLBoDsH7d4O3iwsBHyUD/SHAN
HELLb7+hY8UVA0bry1A37lN+Mas2JRScPhIo8TIC2THAXRQrU9mQYyLes6ozyPTK
jDcpx93stS+anwxI6WgkVElwviVx7MWR3XvgTxXeKQbR0zbWrgA7M/hk41pWfKy2
oskQ8luJuHC9xf//nZRQgpdFq7W+dZNoeaSnylKdmSqINw1caiQy+Nfgwx5xper1
ln4qIv/vz9GsdB/KuDCWkU1uc+lbrdQb9l3oMAjkUV3FMdwe4GVlLxFY5lWPOes=
=Gq3m
-----END PGP SIGNATURE-----

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Mon Mar 09 18:49:19 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 09 Mar 2015 18:49:19 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YV2jo-0003XT-PZ; Mon, 09 Mar 2015 18:49:12 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YV2jn-0003Wp-7L
	for mirageos-devel@lists.xenproject.org; Mon, 09 Mar 2015 18:49:11 +0000
Received: from [193.109.254.147] by server-4.bemta-14.messagelabs.com id
	B9/98-02994-62BEDF45; Mon, 09 Mar 2015 18:49:10 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-5.tower-27.messagelabs.com!1425926949!11323126!1
X-Originating-IP: [74.125.82.170]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 8090 invoked from network); 9 Mar 2015 18:49:09 -0000
Received: from mail-we0-f170.google.com (HELO mail-we0-f170.google.com)
	(74.125.82.170)
	by server-5.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	9 Mar 2015 18:49:09 -0000
Received: by wesw62 with SMTP id w62so14635873wes.0
	for <mirageos-devel@lists.xenproject.org>;
	Mon, 09 Mar 2015 11:49:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:from:content-type:content-transfer-encoding:subject
	:message-id:date:to:mime-version;
	bh=bhuHiZY+NF9y/vobhCqM57GflSIc91lEAp4C7lT/f1g=;
	b=R1yEEB3SjszzDonIby9MwFZml6+Oy3/nu9eCyutaQTHE3RDp0eddh7dlUYioC7c8RP
	2hWX8Vx9bB+CUaINuZONQdmN6uy8Cpg92Iygo7VD2MgIbVfMxPHRSdb2d+c+cHXERG9B
	oyzJS3fglLoVvgYIZRDA2cUBxErlFzGYIwMsrabPlmFsmoJoqjBZ4lZy9D/CYpxvXrc2
	3/Mn8EqXeipwjZQ7JdaNHSXJLv/L9wPPlR+tuDCtvixxDWHdcRvVQJGx46EPD060YQEB
	g0C99pNrLM8Hhi39G8BZOJVMrH2ZHl8+ftbgNzym8TSFrQw44a4BTYdQi3f/jfuKrTYa
	cixg==
X-Received: by 10.194.48.12 with SMTP id h12mr62305932wjn.74.1425926948823;
	Mon, 09 Mar 2015 11:49:08 -0700 (PDT)
Received: from ?IPv6:2001:630:212:248:b4a4:15d2:13ff:f570?
	([2001:630:212:248:b4a4:15d2:13ff:f570])
	by mx.google.com with ESMTPSA id uc18sm395288wib.0.2015.03.09.11.49.07
	for <mirageos-devel@lists.xenproject.org>
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Mon, 09 Mar 2015 11:49:07 -0700 (PDT)
From: Thomas Gazagnaire <thomas@gazagnaire.org>
Message-Id: <2D96F8FE-7C90-4D8C-ACD0-75E131BE0E80@gazagnaire.org>
Date: Mon, 9 Mar 2015 18:49:06 +0000
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
X-Mailer: Apple Mail (2.2070.6)
Subject: [MirageOS-devel] irmin updates
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi all,

Just a quick update on Irmin: I've created https://github.com/mirage/irmin/wiki/Roadmap to keep track of the missing bits before the 1.0 release. I'll use that to document progress on Irmin, and use it to structure my next updates on the list. 

A summary of what happened in the last weeks:

## Portability

Summary: both Javascript and Xen ports are making good progress (basically they both have forks which works fine). Need upstreaming efforts now.

- Javascript: Thomas Leonard managed to get a simple Irmin backend working on HTML5 local storage[1]. Need to make the SHA1 computation and the zlib compression a bit more modular in ocaml-git to be able to switch to pure OCaml implementation when available.

- Xen: I managed to "git clone" from a Mirage unikernel[2]. Few patches to upstream in conduit and cohttp, should be done hopefully soon.

- I've started a preliminary work on implementing of pure version of zlib in OCaml: I've played with Huffman codes[3] and LZ77[4]. These are needed for the related pioneer project[5] which is still looking for a volunteer (I don't plan to work much more on that on the next couple of weeks). This could help both the Javascript and the Xen port (but this is not in the critical path).

## Applications

- I've updated the merge-queues[6] to the new API. Was not as easy at it should be, because of some missing functors in mirage-tc for Either.

## API

Now that I have a very rough end-to-end demonstration of irmin+mirage, my current focus are (i) to upstream the changes to make it easier to deploy Irmin on top of Mirage and (ii) to fix the bugs that ThomasL found out while developing his application and improve parts of the API related to notification and high-level concurrency.

Best,
Thomas

[1] https://github.com/talex5/cuekeeper
[2] https://github.com/samoht/mirmin
[3] https://github.com/samoht/ocaml-huffman-code
[4]  https://github.com/samoht/ocaml-lz77
[5] https://github.com/mirage/mirage-www/wiki/Pioneer-Projects#deflate-zlib-in-pure-ocaml
[6] https://github.com/mirage/merge-queues/pull/5



_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Mon Mar 09 18:49:19 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 09 Mar 2015 18:49:19 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YV2jo-0003XT-PZ; Mon, 09 Mar 2015 18:49:12 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YV2jn-0003Wp-7L
	for mirageos-devel@lists.xenproject.org; Mon, 09 Mar 2015 18:49:11 +0000
Received: from [193.109.254.147] by server-4.bemta-14.messagelabs.com id
	B9/98-02994-62BEDF45; Mon, 09 Mar 2015 18:49:10 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-5.tower-27.messagelabs.com!1425926949!11323126!1
X-Originating-IP: [74.125.82.170]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 8090 invoked from network); 9 Mar 2015 18:49:09 -0000
Received: from mail-we0-f170.google.com (HELO mail-we0-f170.google.com)
	(74.125.82.170)
	by server-5.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	9 Mar 2015 18:49:09 -0000
Received: by wesw62 with SMTP id w62so14635873wes.0
	for <mirageos-devel@lists.xenproject.org>;
	Mon, 09 Mar 2015 11:49:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:from:content-type:content-transfer-encoding:subject
	:message-id:date:to:mime-version;
	bh=bhuHiZY+NF9y/vobhCqM57GflSIc91lEAp4C7lT/f1g=;
	b=R1yEEB3SjszzDonIby9MwFZml6+Oy3/nu9eCyutaQTHE3RDp0eddh7dlUYioC7c8RP
	2hWX8Vx9bB+CUaINuZONQdmN6uy8Cpg92Iygo7VD2MgIbVfMxPHRSdb2d+c+cHXERG9B
	oyzJS3fglLoVvgYIZRDA2cUBxErlFzGYIwMsrabPlmFsmoJoqjBZ4lZy9D/CYpxvXrc2
	3/Mn8EqXeipwjZQ7JdaNHSXJLv/L9wPPlR+tuDCtvixxDWHdcRvVQJGx46EPD060YQEB
	g0C99pNrLM8Hhi39G8BZOJVMrH2ZHl8+ftbgNzym8TSFrQw44a4BTYdQi3f/jfuKrTYa
	cixg==
X-Received: by 10.194.48.12 with SMTP id h12mr62305932wjn.74.1425926948823;
	Mon, 09 Mar 2015 11:49:08 -0700 (PDT)
Received: from ?IPv6:2001:630:212:248:b4a4:15d2:13ff:f570?
	([2001:630:212:248:b4a4:15d2:13ff:f570])
	by mx.google.com with ESMTPSA id uc18sm395288wib.0.2015.03.09.11.49.07
	for <mirageos-devel@lists.xenproject.org>
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Mon, 09 Mar 2015 11:49:07 -0700 (PDT)
From: Thomas Gazagnaire <thomas@gazagnaire.org>
Message-Id: <2D96F8FE-7C90-4D8C-ACD0-75E131BE0E80@gazagnaire.org>
Date: Mon, 9 Mar 2015 18:49:06 +0000
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
X-Mailer: Apple Mail (2.2070.6)
Subject: [MirageOS-devel] irmin updates
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi all,

Just a quick update on Irmin: I've created https://github.com/mirage/irmin/wiki/Roadmap to keep track of the missing bits before the 1.0 release. I'll use that to document progress on Irmin, and use it to structure my next updates on the list. 

A summary of what happened in the last weeks:

## Portability

Summary: both Javascript and Xen ports are making good progress (basically they both have forks which works fine). Need upstreaming efforts now.

- Javascript: Thomas Leonard managed to get a simple Irmin backend working on HTML5 local storage[1]. Need to make the SHA1 computation and the zlib compression a bit more modular in ocaml-git to be able to switch to pure OCaml implementation when available.

- Xen: I managed to "git clone" from a Mirage unikernel[2]. Few patches to upstream in conduit and cohttp, should be done hopefully soon.

- I've started a preliminary work on implementing of pure version of zlib in OCaml: I've played with Huffman codes[3] and LZ77[4]. These are needed for the related pioneer project[5] which is still looking for a volunteer (I don't plan to work much more on that on the next couple of weeks). This could help both the Javascript and the Xen port (but this is not in the critical path).

## Applications

- I've updated the merge-queues[6] to the new API. Was not as easy at it should be, because of some missing functors in mirage-tc for Either.

## API

Now that I have a very rough end-to-end demonstration of irmin+mirage, my current focus are (i) to upstream the changes to make it easier to deploy Irmin on top of Mirage and (ii) to fix the bugs that ThomasL found out while developing his application and improve parts of the API related to notification and high-level concurrency.

Best,
Thomas

[1] https://github.com/talex5/cuekeeper
[2] https://github.com/samoht/mirmin
[3] https://github.com/samoht/ocaml-huffman-code
[4]  https://github.com/samoht/ocaml-lz77
[5] https://github.com/mirage/mirage-www/wiki/Pioneer-Projects#deflate-zlib-in-pure-ocaml
[6] https://github.com/mirage/merge-queues/pull/5



_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Mon Mar 09 23:44:34 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 09 Mar 2015 23:44:34 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YV7LY-0005UF-HJ; Mon, 09 Mar 2015 23:44:28 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <amc79@cam.ac.uk>) id 1YV7LW-0005UA-UJ
	for mirageos-devel@lists.xenproject.org; Mon, 09 Mar 2015 23:44:27 +0000
Received: from [85.158.137.68] by server-16.bemta-3.messagelabs.com id
	5B/FC-02745-9503EF45; Mon, 09 Mar 2015 23:44:25 +0000
X-Env-Sender: amc79@cam.ac.uk
X-Msg-Ref: server-14.tower-31.messagelabs.com!1425944665!12132806!1
X-Originating-IP: [131.111.8.152]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogMTMxLjExMS44LjE1MiA9PiA4MDU1Mw==\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 15524 invoked from network); 9 Mar 2015 23:44:25 -0000
Received: from ppsw-52.csi.cam.ac.uk (HELO ppsw-52.csi.cam.ac.uk)
	(131.111.8.152)
	by server-14.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 9 Mar 2015 23:44:25 -0000
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from cpc17-cmbg14-2-0-cust360.5-4.cable.virginm.net
	([86.6.155.105]:64830 helo=[192.168.0.23])
	by ppsw-52.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.159]:587)
	with esmtpsa (PLAIN:amc79) (TLSv1:AES128-SHA:128)
	id 1YV7LV-0001xG-D8 (Exim 4.82_3-c0e5623) for
	mirageos-devel@lists.xenproject.org
	(return-path <amc79@cam.ac.uk>); Mon, 09 Mar 2015 23:44:25 +0000
From: Amir Chaudhry <amc79@cam.ac.uk>
Message-Id: <66CC2001-AAB4-4922-B816-4489FD891B96@cam.ac.uk>
Date: Mon, 9 Mar 2015 23:44:24 +0000
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
X-Mailer: Apple Mail (2.1510)
Subject: [MirageOS-devel] blobs.openmirage.org is down
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

http://blobs.openmirage.org is down.  Not sure if it's related to the recent openmirage.org issues.

I happen to have an old image I can be getting on with, though I see that the new ones should have Xapi (I don't have Ubuntu or Dabian machines handy so can't use xen-arm-builder [1] directly)

[1] https://github.com/mirage/xen-arm-builder

Amir
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Mon Mar 09 23:44:34 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 09 Mar 2015 23:44:34 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YV7LY-0005UF-HJ; Mon, 09 Mar 2015 23:44:28 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <amc79@cam.ac.uk>) id 1YV7LW-0005UA-UJ
	for mirageos-devel@lists.xenproject.org; Mon, 09 Mar 2015 23:44:27 +0000
Received: from [85.158.137.68] by server-16.bemta-3.messagelabs.com id
	5B/FC-02745-9503EF45; Mon, 09 Mar 2015 23:44:25 +0000
X-Env-Sender: amc79@cam.ac.uk
X-Msg-Ref: server-14.tower-31.messagelabs.com!1425944665!12132806!1
X-Originating-IP: [131.111.8.152]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogMTMxLjExMS44LjE1MiA9PiA4MDU1Mw==\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 15524 invoked from network); 9 Mar 2015 23:44:25 -0000
Received: from ppsw-52.csi.cam.ac.uk (HELO ppsw-52.csi.cam.ac.uk)
	(131.111.8.152)
	by server-14.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 9 Mar 2015 23:44:25 -0000
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from cpc17-cmbg14-2-0-cust360.5-4.cable.virginm.net
	([86.6.155.105]:64830 helo=[192.168.0.23])
	by ppsw-52.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.159]:587)
	with esmtpsa (PLAIN:amc79) (TLSv1:AES128-SHA:128)
	id 1YV7LV-0001xG-D8 (Exim 4.82_3-c0e5623) for
	mirageos-devel@lists.xenproject.org
	(return-path <amc79@cam.ac.uk>); Mon, 09 Mar 2015 23:44:25 +0000
From: Amir Chaudhry <amc79@cam.ac.uk>
Message-Id: <66CC2001-AAB4-4922-B816-4489FD891B96@cam.ac.uk>
Date: Mon, 9 Mar 2015 23:44:24 +0000
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
X-Mailer: Apple Mail (2.1510)
Subject: [MirageOS-devel] blobs.openmirage.org is down
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

http://blobs.openmirage.org is down.  Not sure if it's related to the recent openmirage.org issues.

I happen to have an old image I can be getting on with, though I see that the new ones should have Xapi (I don't have Ubuntu or Dabian machines handy so can't use xen-arm-builder [1] directly)

[1] https://github.com/mirage/xen-arm-builder

Amir
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 10 11:01:24 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 10 Mar 2015 11:01:24 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVHuW-00074c-Nn; Tue, 10 Mar 2015 11:01:16 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YVHuV-00074X-63
	for mirageos-devel@lists.xenproject.org; Tue, 10 Mar 2015 11:01:15 +0000
Received: from [193.109.254.147] by server-8.bemta-14.messagelabs.com id
	E9/A0-03168-9FECEF45; Tue, 10 Mar 2015 11:01:13 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-8.tower-27.messagelabs.com!1425985271!16131917!1
X-Originating-IP: [209.85.217.172]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 25452 invoked from network); 10 Mar 2015 11:01:11 -0000
Received: from mail-lb0-f172.google.com (HELO mail-lb0-f172.google.com)
	(209.85.217.172)
	by server-8.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	10 Mar 2015 11:01:11 -0000
Received: by lbvn10 with SMTP id n10so836041lbv.1
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 10 Mar 2015 04:01:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=j11/Gc4nHNQ52Ecarz6+CkgeXZbdYU4GV/8Tg+O81iY=;
	b=DzN3ErY8BeI8jcr6MekhsY57wE/vB3MWrzZodJbfkcOc38zh0wET+dXtpsJGzf7xxC
	zluafwFGg+s2BH0RLNnMNtDcBhChr8K07qcbeuEoAHJUIa++yrv2r95SLCHF1DuQQ9i3
	je0ukOQdWGUWmAy8GLdcFhQESCrSy6bfH8oCbMFw8vVxd/lsef+JBXzLMi4OIVuQVm4j
	KpgPvI/mvI15J0rxGpJEjXFggW6hnRQarVArAndHOQU7fhAQ8Cb5Q0BP04aMyXuj45BR
	L4FNtNhc4PPeby5EXKqMq60bg7gMmJ5fAexlxBQbhOua52dsWBVKiNVqV0mrsNLK9F39
	5LEA==
MIME-Version: 1.0
X-Received: by 10.152.88.1 with SMTP id bc1mr1577629lab.20.1425985270567; Tue,
	10 Mar 2015 04:01:10 -0700 (PDT)
Received: by 10.25.207.17 with HTTP; Tue, 10 Mar 2015 04:01:10 -0700 (PDT)
Date: Tue, 10 Mar 2015 11:01:10 +0000
Message-ID: <CAG4opy97Pr0ATq_FV7LtVbM1EmxUOf7oDb+DV=QPAP2ocTm95w@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: [MirageOS-devel] Merging in Irmin
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Irmin lets me provide a merge function for individual keys:

  val merge: Path.t -> t option Merge.t

Is there any way to merge whole commits?

Each of my commits is a collection of files, but files can refer to
each other. For example, I might start with a single file representing
a project:

- Test CueKeeper

On one branch, I delete this. On another, I add an action so that I
have two files:

- Test CueKeeper
- Test on IE (parent: Test CueKeeper)

When merged, the result needs to include the parent, even though it
was deleted in one branch and not touched in the other. Can I do this?


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 10 11:01:24 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 10 Mar 2015 11:01:24 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVHuW-00074c-Nn; Tue, 10 Mar 2015 11:01:16 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YVHuV-00074X-63
	for mirageos-devel@lists.xenproject.org; Tue, 10 Mar 2015 11:01:15 +0000
Received: from [193.109.254.147] by server-8.bemta-14.messagelabs.com id
	E9/A0-03168-9FECEF45; Tue, 10 Mar 2015 11:01:13 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-8.tower-27.messagelabs.com!1425985271!16131917!1
X-Originating-IP: [209.85.217.172]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 25452 invoked from network); 10 Mar 2015 11:01:11 -0000
Received: from mail-lb0-f172.google.com (HELO mail-lb0-f172.google.com)
	(209.85.217.172)
	by server-8.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	10 Mar 2015 11:01:11 -0000
Received: by lbvn10 with SMTP id n10so836041lbv.1
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 10 Mar 2015 04:01:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=j11/Gc4nHNQ52Ecarz6+CkgeXZbdYU4GV/8Tg+O81iY=;
	b=DzN3ErY8BeI8jcr6MekhsY57wE/vB3MWrzZodJbfkcOc38zh0wET+dXtpsJGzf7xxC
	zluafwFGg+s2BH0RLNnMNtDcBhChr8K07qcbeuEoAHJUIa++yrv2r95SLCHF1DuQQ9i3
	je0ukOQdWGUWmAy8GLdcFhQESCrSy6bfH8oCbMFw8vVxd/lsef+JBXzLMi4OIVuQVm4j
	KpgPvI/mvI15J0rxGpJEjXFggW6hnRQarVArAndHOQU7fhAQ8Cb5Q0BP04aMyXuj45BR
	L4FNtNhc4PPeby5EXKqMq60bg7gMmJ5fAexlxBQbhOua52dsWBVKiNVqV0mrsNLK9F39
	5LEA==
MIME-Version: 1.0
X-Received: by 10.152.88.1 with SMTP id bc1mr1577629lab.20.1425985270567; Tue,
	10 Mar 2015 04:01:10 -0700 (PDT)
Received: by 10.25.207.17 with HTTP; Tue, 10 Mar 2015 04:01:10 -0700 (PDT)
Date: Tue, 10 Mar 2015 11:01:10 +0000
Message-ID: <CAG4opy97Pr0ATq_FV7LtVbM1EmxUOf7oDb+DV=QPAP2ocTm95w@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: [MirageOS-devel] Merging in Irmin
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Irmin lets me provide a merge function for individual keys:

  val merge: Path.t -> t option Merge.t

Is there any way to merge whole commits?

Each of my commits is a collection of files, but files can refer to
each other. For example, I might start with a single file representing
a project:

- Test CueKeeper

On one branch, I delete this. On another, I add an action so that I
have two files:

- Test CueKeeper
- Test on IE (parent: Test CueKeeper)

When merged, the result needs to include the parent, even though it
was deleted in one branch and not touched in the other. Can I do this?


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 10 11:52:09 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 10 Mar 2015 11:52:09 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVIhj-0004ew-N8; Tue, 10 Mar 2015 11:52:07 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YVIhi-0004er-Dm
	for mirageos-devel@lists.xenproject.org; Tue, 10 Mar 2015 11:52:06 +0000
Received: from [85.158.137.68] by server-7.bemta-3.messagelabs.com id
	12/EC-03163-5EADEF45; Tue, 10 Mar 2015 11:52:05 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-3.tower-31.messagelabs.com!1425988324!14778794!1
X-Originating-IP: [209.85.212.176]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 21827 invoked from network); 10 Mar 2015 11:52:04 -0000
Received: from mail-wi0-f176.google.com (HELO mail-wi0-f176.google.com)
	(209.85.212.176)
	by server-3.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	10 Mar 2015 11:52:04 -0000
Received: by widem10 with SMTP id em10so14729565wid.2
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 10 Mar 2015 04:52:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=BV9KFVyoerVZY8BmXc99gTZntiVnogTIeJIQbHvdeu8=;
	b=zrv1LRh2xkMBz7kz+b4NL/VLIJsw0eOY14nHNJpgFJdRBv9zxrl2QVDOvS06tGwUzw
	nCK35V18GmXkbGeUEVeNwXPpkWBmcefIEspqby5Siij78XhpkQtnWRpcE5a2N0HrP2N8
	lwn+fJsHuPlfoEYzUX24FOoCONGvmYpcIs/o603oCtDN49Fkypzy7Z01RVzTO14pzh6H
	YPfJxEq2Qf0KfhEJsj4U9RcgBlhutJXRihTCoEvq7wK+d6UJoZGzsg1QmQaYvts6cjHO
	6oyawqFaSOtfQOrWEpj/JnrtM1ozelhrRGflhxrPZeFmQqoOUvfOjFBF0Zl3hgFa5HWe
	KIGQ==
X-Received: by 10.180.77.166 with SMTP id t6mr7345352wiw.52.1425988322881;
	Tue, 10 Mar 2015 04:52:02 -0700 (PDT)
Received: from [192.168.0.2] (cpc25-cmbg14-2-0-cust121.5-4.cable.virginm.net.
	[213.106.112.122])
	by mx.google.com with ESMTPSA id dm6sm1218327wib.22.2015.03.10.04.52.01
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 10 Mar 2015 04:52:02 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <CAG4opy97Pr0ATq_FV7LtVbM1EmxUOf7oDb+DV=QPAP2ocTm95w@mail.gmail.com>
Date: Tue, 10 Mar 2015 11:52:00 +0000
Message-Id: <53DA75E3-EE46-4107-8CDC-EEBFE5D51F45@gazagnaire.org>
References: <CAG4opy97Pr0ATq_FV7LtVbM1EmxUOf7oDb+DV=QPAP2ocTm95w@mail.gmail.com>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Merging in Irmin
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

> When merged, the result needs to include the parent, even though it
> was deleted in one branch and not touched in the other. Can I do this?

Do you mean you want to control which are the parents of a commit you are creating, even if the respective contents are not related?

You can manually create a commit by using Irmin.Private.Commit.create[1] and save it in the (private) block store with S.Private.Commit.add[2]

Not sure how to expose that nicely to the user though... maybe allowing to specify a "parent" optional argument to merge/update/rebase.

Thomas

[1] http://mirage.github.io/irmin/Irmin.Private.Commit.S.html#VALcreate
[2] http://mirage.github.io/irmin/Irmin.Private.S.html




> 
> 
> -- 
> Dr Thomas Leonard        http://0install.net/
> GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
> GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA
> 
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 10 11:52:09 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 10 Mar 2015 11:52:09 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVIhj-0004ew-N8; Tue, 10 Mar 2015 11:52:07 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YVIhi-0004er-Dm
	for mirageos-devel@lists.xenproject.org; Tue, 10 Mar 2015 11:52:06 +0000
Received: from [85.158.137.68] by server-7.bemta-3.messagelabs.com id
	12/EC-03163-5EADEF45; Tue, 10 Mar 2015 11:52:05 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-3.tower-31.messagelabs.com!1425988324!14778794!1
X-Originating-IP: [209.85.212.176]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 21827 invoked from network); 10 Mar 2015 11:52:04 -0000
Received: from mail-wi0-f176.google.com (HELO mail-wi0-f176.google.com)
	(209.85.212.176)
	by server-3.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	10 Mar 2015 11:52:04 -0000
Received: by widem10 with SMTP id em10so14729565wid.2
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 10 Mar 2015 04:52:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=BV9KFVyoerVZY8BmXc99gTZntiVnogTIeJIQbHvdeu8=;
	b=zrv1LRh2xkMBz7kz+b4NL/VLIJsw0eOY14nHNJpgFJdRBv9zxrl2QVDOvS06tGwUzw
	nCK35V18GmXkbGeUEVeNwXPpkWBmcefIEspqby5Siij78XhpkQtnWRpcE5a2N0HrP2N8
	lwn+fJsHuPlfoEYzUX24FOoCONGvmYpcIs/o603oCtDN49Fkypzy7Z01RVzTO14pzh6H
	YPfJxEq2Qf0KfhEJsj4U9RcgBlhutJXRihTCoEvq7wK+d6UJoZGzsg1QmQaYvts6cjHO
	6oyawqFaSOtfQOrWEpj/JnrtM1ozelhrRGflhxrPZeFmQqoOUvfOjFBF0Zl3hgFa5HWe
	KIGQ==
X-Received: by 10.180.77.166 with SMTP id t6mr7345352wiw.52.1425988322881;
	Tue, 10 Mar 2015 04:52:02 -0700 (PDT)
Received: from [192.168.0.2] (cpc25-cmbg14-2-0-cust121.5-4.cable.virginm.net.
	[213.106.112.122])
	by mx.google.com with ESMTPSA id dm6sm1218327wib.22.2015.03.10.04.52.01
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 10 Mar 2015 04:52:02 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <CAG4opy97Pr0ATq_FV7LtVbM1EmxUOf7oDb+DV=QPAP2ocTm95w@mail.gmail.com>
Date: Tue, 10 Mar 2015 11:52:00 +0000
Message-Id: <53DA75E3-EE46-4107-8CDC-EEBFE5D51F45@gazagnaire.org>
References: <CAG4opy97Pr0ATq_FV7LtVbM1EmxUOf7oDb+DV=QPAP2ocTm95w@mail.gmail.com>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Merging in Irmin
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

> When merged, the result needs to include the parent, even though it
> was deleted in one branch and not touched in the other. Can I do this?

Do you mean you want to control which are the parents of a commit you are creating, even if the respective contents are not related?

You can manually create a commit by using Irmin.Private.Commit.create[1] and save it in the (private) block store with S.Private.Commit.add[2]

Not sure how to expose that nicely to the user though... maybe allowing to specify a "parent" optional argument to merge/update/rebase.

Thomas

[1] http://mirage.github.io/irmin/Irmin.Private.Commit.S.html#VALcreate
[2] http://mirage.github.io/irmin/Irmin.Private.S.html




> 
> 
> -- 
> Dr Thomas Leonard        http://0install.net/
> GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
> GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA
> 
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 10 12:07:26 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 10 Mar 2015 12:07:26 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVIwT-0007nk-Lx; Tue, 10 Mar 2015 12:07:21 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YVIwR-0007nL-Nc
	for mirageos-devel@lists.xenproject.org; Tue, 10 Mar 2015 12:07:19 +0000
Received: from [193.109.254.147] by server-2.bemta-14.messagelabs.com id
	93/1D-31919-67EDEF45; Tue, 10 Mar 2015 12:07:18 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-6.tower-27.messagelabs.com!1425989237!16119449!1
X-Originating-IP: [74.125.82.182]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 4829 invoked from network); 10 Mar 2015 12:07:17 -0000
Received: from mail-we0-f182.google.com (HELO mail-we0-f182.google.com)
	(74.125.82.182)
	by server-6.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	10 Mar 2015 12:07:17 -0000
Received: by wevl61 with SMTP id l61so1273217wev.6
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 10 Mar 2015 05:07:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=Q3W47aXYvYzn7udwHyHUc/LOHtG0lHY+FbbCKX6uPl0=;
	b=LErtsVgg1pYao8CI6NM4PAn2/J+FiUB2pT1awOMAHoJij5QSAKjwoF4Pq9k2p/9n2B
	/lKJD6DkbZCsaiGw9mWWIOMZ8fyKKgUVuPcFLKEBOOr0nZDGczmt4ta0/Ye15sK64JYu
	MtlEzcXJ8VwrkmuPejQKEVM0s0QXxGqo/Fn8FVDcYb1SQjT++GpNstv7AUZJSM5L1cC/
	DzG3RCq9lmPWYubdHeU+4GbFUmwTS/9wUryoWITrUBEhmUZWmzv1guUrEXULm98fV30X
	mG04NP1QuSEelPYeVTvulRSA/MhwdbXkIAByapekEiwjeSD/FqaYncWOnL1TDsZebkIU
	5sMA==
X-Received: by 10.194.200.166 with SMTP id jt6mr23612411wjc.66.1425989233804; 
	Tue, 10 Mar 2015 05:07:13 -0700 (PDT)
Received: from [192.168.0.2] (cpc25-cmbg14-2-0-cust121.5-4.cable.virginm.net.
	[213.106.112.122])
	by mx.google.com with ESMTPSA id 17sm554552wjt.45.2015.03.10.05.07.12
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 10 Mar 2015 05:07:13 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <CAG4opy9HKQDD8ZSTDUMg0QhSiNamV-p46Qbyqyoo8b0ced0Xeg@mail.gmail.com>
Date: Tue, 10 Mar 2015 12:07:11 +0000
Message-Id: <1C9E611F-D1EB-4865-9961-7C5042D8AA76@gazagnaire.org>
References: <CAG4opy8k+tgKwfwMfaGzc3m-Tc_JjbkPPWEbqbwDwMBO5vpUtA@mail.gmail.com>
	<8CEDB416-6238-4888-BA4B-B7305FDDE2D9@gazagnaire.org>
	<9349273A-0BB4-40C4-BF06-4307085AA90C@recoil.org>
	<B9F83982-F46E-4B60-B115-4D8D189C09FE@gazagnaire.org>
	<47D39FA3-050E-46E6-89D2-4253484E24A8@gazagnaire.org>
	<CAG4opy8ThEq3-bgXxnijqJ40QTLAqcw=fR5MrWcx-b82k=9WkQ@mail.gmail.com>
	<DUB128-W26232CC9AC746CDC3756C7B4160@phx.gbl>
	<CAG4opy-okAA=DiAJ_YyZot3zG8-0m1-HcMqnEdtPMf-QUExPvg@mail.gmail.com>
	<CAG4opy9cSA0wrihBUc2ByV2vEPyqkQBSavkwZJDxCxxr=LJiEQ@mail.gmail.com>
	<C336E219-E67D-4326-9BB9-E764E3ECC58F@gazagnaire.org>
	<CAG4opy-JO3+Qa+a=VVV5XFvSBpetVkHOHzCxUGjvqEs5UqZ3uQ@mail.gmail.com>
	<E826B8D0-D5E4-43EE-96A2-66B9EB897CED@gazagnaire.org>
	<CAG4opy97_N9W=Aqecu2z_xV4vojd557q+S07L=y8OofDn3sQiQ@mail.gmail.com>
	<D130267B-C265-4A10-91E4-FD46FBA4BF6A@gazagnaire.org>
	<CAG4opy_YmFN5fmox_2=hw9DAFPxgp84gOKV9kCSxJBUbGYAUpQ@mail.gmail.com>
	<CAG4opy9HKQDD8ZSTDUMg0QhSiNamV-p46Qbyqyoo8b0ced0Xeg@mail.gmail.com>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Irmin API newbie questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

> I've added a somewhat functional Irmin abstraction to CueKeeper now to
> try this out. Here's the interface I made:
> 
> https://github.com/talex5/cuekeeper/blob/master/git_storage_s.mli
> 
> This doesn't provide access to all Irmin's features of course, but it
> shows everything I'm using and it's probably easier for beginners. The
> main differences are:

Very interesting. I'm wondering which part of the Irmin public API is already too complex to expose to the user, and what should be refactor to look much like your Git-like interface. I'll think about it. I quite like your simplified interface ...

> - The LCA calculation is slow
> (https://github.com/mirage/irmin/issues/160) so I used Thomas's
> suggestions of limiting the number of common ancestors to 1. However,
> this could give the wrong answer in some cases. I think Irmin just
> needs to be smarter about pruning the search when it finds a common
> node.

my plan is to add a way 1) to detect fast-forward and stop the exploration much more quicker in that case and 2) use timestamps to guide the explorations (or even provide a timestamp optional flag to guide the exploration only using the timestamps as Git is doing -- this would break in some cases so it would not be the default). 

> - I couldn't find a way to make a commit without a parent without
> using a named branch. The special-case initialisation code could go
> away if Irmin allowed that.

I'll fix that.[1]

> - fast_forward_to checks that the update is a fast-forward to avoid
> data-loss, but it's not quite atomic. Ideally, Irmin would provide
> this function itself and lock the backend.

I guess you don't need this function if `merge` is doing the right job. I'm fixing this.

> (Also, my history API isn't very good. I want someone with a commit to
> be able to look at the parents, but I didn't see a way to map a
> graph's nodes from commit IDs to commits. Therefore, I currently turn
> the history into a flat list of log entries.)

This history graph gives you a graph of commits ID. You can then use Imrin.History.pred[2] (in the OCamlGraph API) to get the predecessors (the parents) of a node.

Best,
Thomas

[1] https://github.com/mirage/irmin/issues/161
[2] http://ocamlgraph.lri.fr/doc/Sig.G.html#VALpred


> 
> 
> -- 
> Dr Thomas Leonard        http://0install.net/
> GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
> GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 10 12:07:26 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 10 Mar 2015 12:07:26 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVIwT-0007nk-Lx; Tue, 10 Mar 2015 12:07:21 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YVIwR-0007nL-Nc
	for mirageos-devel@lists.xenproject.org; Tue, 10 Mar 2015 12:07:19 +0000
Received: from [193.109.254.147] by server-2.bemta-14.messagelabs.com id
	93/1D-31919-67EDEF45; Tue, 10 Mar 2015 12:07:18 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-6.tower-27.messagelabs.com!1425989237!16119449!1
X-Originating-IP: [74.125.82.182]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 4829 invoked from network); 10 Mar 2015 12:07:17 -0000
Received: from mail-we0-f182.google.com (HELO mail-we0-f182.google.com)
	(74.125.82.182)
	by server-6.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	10 Mar 2015 12:07:17 -0000
Received: by wevl61 with SMTP id l61so1273217wev.6
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 10 Mar 2015 05:07:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=Q3W47aXYvYzn7udwHyHUc/LOHtG0lHY+FbbCKX6uPl0=;
	b=LErtsVgg1pYao8CI6NM4PAn2/J+FiUB2pT1awOMAHoJij5QSAKjwoF4Pq9k2p/9n2B
	/lKJD6DkbZCsaiGw9mWWIOMZ8fyKKgUVuPcFLKEBOOr0nZDGczmt4ta0/Ye15sK64JYu
	MtlEzcXJ8VwrkmuPejQKEVM0s0QXxGqo/Fn8FVDcYb1SQjT++GpNstv7AUZJSM5L1cC/
	DzG3RCq9lmPWYubdHeU+4GbFUmwTS/9wUryoWITrUBEhmUZWmzv1guUrEXULm98fV30X
	mG04NP1QuSEelPYeVTvulRSA/MhwdbXkIAByapekEiwjeSD/FqaYncWOnL1TDsZebkIU
	5sMA==
X-Received: by 10.194.200.166 with SMTP id jt6mr23612411wjc.66.1425989233804; 
	Tue, 10 Mar 2015 05:07:13 -0700 (PDT)
Received: from [192.168.0.2] (cpc25-cmbg14-2-0-cust121.5-4.cable.virginm.net.
	[213.106.112.122])
	by mx.google.com with ESMTPSA id 17sm554552wjt.45.2015.03.10.05.07.12
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 10 Mar 2015 05:07:13 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <CAG4opy9HKQDD8ZSTDUMg0QhSiNamV-p46Qbyqyoo8b0ced0Xeg@mail.gmail.com>
Date: Tue, 10 Mar 2015 12:07:11 +0000
Message-Id: <1C9E611F-D1EB-4865-9961-7C5042D8AA76@gazagnaire.org>
References: <CAG4opy8k+tgKwfwMfaGzc3m-Tc_JjbkPPWEbqbwDwMBO5vpUtA@mail.gmail.com>
	<8CEDB416-6238-4888-BA4B-B7305FDDE2D9@gazagnaire.org>
	<9349273A-0BB4-40C4-BF06-4307085AA90C@recoil.org>
	<B9F83982-F46E-4B60-B115-4D8D189C09FE@gazagnaire.org>
	<47D39FA3-050E-46E6-89D2-4253484E24A8@gazagnaire.org>
	<CAG4opy8ThEq3-bgXxnijqJ40QTLAqcw=fR5MrWcx-b82k=9WkQ@mail.gmail.com>
	<DUB128-W26232CC9AC746CDC3756C7B4160@phx.gbl>
	<CAG4opy-okAA=DiAJ_YyZot3zG8-0m1-HcMqnEdtPMf-QUExPvg@mail.gmail.com>
	<CAG4opy9cSA0wrihBUc2ByV2vEPyqkQBSavkwZJDxCxxr=LJiEQ@mail.gmail.com>
	<C336E219-E67D-4326-9BB9-E764E3ECC58F@gazagnaire.org>
	<CAG4opy-JO3+Qa+a=VVV5XFvSBpetVkHOHzCxUGjvqEs5UqZ3uQ@mail.gmail.com>
	<E826B8D0-D5E4-43EE-96A2-66B9EB897CED@gazagnaire.org>
	<CAG4opy97_N9W=Aqecu2z_xV4vojd557q+S07L=y8OofDn3sQiQ@mail.gmail.com>
	<D130267B-C265-4A10-91E4-FD46FBA4BF6A@gazagnaire.org>
	<CAG4opy_YmFN5fmox_2=hw9DAFPxgp84gOKV9kCSxJBUbGYAUpQ@mail.gmail.com>
	<CAG4opy9HKQDD8ZSTDUMg0QhSiNamV-p46Qbyqyoo8b0ced0Xeg@mail.gmail.com>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Irmin API newbie questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

> I've added a somewhat functional Irmin abstraction to CueKeeper now to
> try this out. Here's the interface I made:
> 
> https://github.com/talex5/cuekeeper/blob/master/git_storage_s.mli
> 
> This doesn't provide access to all Irmin's features of course, but it
> shows everything I'm using and it's probably easier for beginners. The
> main differences are:

Very interesting. I'm wondering which part of the Irmin public API is already too complex to expose to the user, and what should be refactor to look much like your Git-like interface. I'll think about it. I quite like your simplified interface ...

> - The LCA calculation is slow
> (https://github.com/mirage/irmin/issues/160) so I used Thomas's
> suggestions of limiting the number of common ancestors to 1. However,
> this could give the wrong answer in some cases. I think Irmin just
> needs to be smarter about pruning the search when it finds a common
> node.

my plan is to add a way 1) to detect fast-forward and stop the exploration much more quicker in that case and 2) use timestamps to guide the explorations (or even provide a timestamp optional flag to guide the exploration only using the timestamps as Git is doing -- this would break in some cases so it would not be the default). 

> - I couldn't find a way to make a commit without a parent without
> using a named branch. The special-case initialisation code could go
> away if Irmin allowed that.

I'll fix that.[1]

> - fast_forward_to checks that the update is a fast-forward to avoid
> data-loss, but it's not quite atomic. Ideally, Irmin would provide
> this function itself and lock the backend.

I guess you don't need this function if `merge` is doing the right job. I'm fixing this.

> (Also, my history API isn't very good. I want someone with a commit to
> be able to look at the parents, but I didn't see a way to map a
> graph's nodes from commit IDs to commits. Therefore, I currently turn
> the history into a flat list of log entries.)

This history graph gives you a graph of commits ID. You can then use Imrin.History.pred[2] (in the OCamlGraph API) to get the predecessors (the parents) of a node.

Best,
Thomas

[1] https://github.com/mirage/irmin/issues/161
[2] http://ocamlgraph.lri.fr/doc/Sig.G.html#VALpred


> 
> 
> -- 
> Dr Thomas Leonard        http://0install.net/
> GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
> GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 10 12:14:53 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 10 Mar 2015 12:14:53 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVJ3j-0000pi-MQ; Tue, 10 Mar 2015 12:14:51 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YVJ3i-0000pS-9z
	for mirageos-devel@lists.xenproject.org; Tue, 10 Mar 2015 12:14:50 +0000
Received: from [193.109.254.147] by server-14.bemta-14.messagelabs.com id
	BB/9D-02753-930EEF45; Tue, 10 Mar 2015 12:14:49 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-3.tower-27.messagelabs.com!1425989686!16051167!1
X-Originating-IP: [74.125.82.172]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 25476 invoked from network); 10 Mar 2015 12:14:47 -0000
Received: from mail-we0-f172.google.com (HELO mail-we0-f172.google.com)
	(74.125.82.172)
	by server-3.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	10 Mar 2015 12:14:47 -0000
Received: by wevl61 with SMTP id l61so1319794wev.6
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 10 Mar 2015 05:14:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=pq1EJvRtiE8uz//Lfiv6eks/MosotrdiVW+W83mx/UM=;
	b=MC9HZjLnCIN5ZWqVsJGEWebyidSkyXaz6qNVkUA8lV2zVlR2DsyeSUQj0aU3Vn7xOW
	f+0VqIq7Jj18yW9DIxHtMvIVnz/A7fs7wAaZRkqP3MVj0MtO4LchwRtr3I9NNCtySKmI
	DdnTMf87RnSAAN/gQqMdJjQ2RBzKcsRcsGzdp1yT4HRE/tvzlv6LkdjESuM5+sgtlZN6
	pwLWo82ZiDZv2sFOvE/vGMISfXWvy1oer6cOc/k4jynj9HS+8N9xuosk/1s9+JM8udGj
	5GkFoCcKw2y4dFszXqIoIEI2dGnQacALhpt6QV0UI9pQK16a+t4rR7XyCRxxiT/pBH/B
	WttA==
X-Received: by 10.194.108.9 with SMTP id hg9mr69012219wjb.68.1425989686588;
	Tue, 10 Mar 2015 05:14:46 -0700 (PDT)
Received: from [192.168.0.2] (cpc25-cmbg14-2-0-cust121.5-4.cable.virginm.net.
	[213.106.112.122])
	by mx.google.com with ESMTPSA id bx3sm634782wjc.21.2015.03.10.05.14.44
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 10 Mar 2015 05:14:45 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <53DA75E3-EE46-4107-8CDC-EEBFE5D51F45@gazagnaire.org>
Date: Tue, 10 Mar 2015 12:14:43 +0000
Message-Id: <400A4287-9E91-4587-990C-2E00335162CF@gazagnaire.org>
References: <CAG4opy97Pr0ATq_FV7LtVbM1EmxUOf7oDb+DV=QPAP2ocTm95w@mail.gmail.com>
	<53DA75E3-EE46-4107-8CDC-EEBFE5D51F45@gazagnaire.org>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Merging in Irmin
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

>> When merged, the result needs to include the parent, even though it
>> was deleted in one branch and not touched in the other. Can I do this?
> 
> Do you mean you want to control which are the parents of a commit you are creating, even if the respective contents are not related?
> 
> You can manually create a commit by using Irmin.Private.Commit.create[1] and save it in the (private) block store with S.Private.Commit.add[2]
> 
> Not sure how to expose that nicely to the user though... maybe allowing to specify a "parent" optional argument to merge/update/rebase.

You can only create a view from one store and apply it in the other: the history of commit will be kept as expected. See:

https://github.com/samoht/dog/blob/master/lib/dog.ml#L247

You can try to use that to merge views from different branches, not sure how practical this is though.

Thomas

> 
> Thomas
> 
> [1] http://mirage.github.io/irmin/Irmin.Private.Commit.S.html#VALcreate
> [2] http://mirage.github.io/irmin/Irmin.Private.S.html
> 
> 
> 
> 
>> 
>> 
>> -- 
>> Dr Thomas Leonard        http://0install.net/
>> GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
>> GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA
>> 
>> _______________________________________________
>> MirageOS-devel mailing list
>> MirageOS-devel@lists.xenproject.org
>> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
> 


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 10 12:14:53 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 10 Mar 2015 12:14:53 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVJ3j-0000pi-MQ; Tue, 10 Mar 2015 12:14:51 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YVJ3i-0000pS-9z
	for mirageos-devel@lists.xenproject.org; Tue, 10 Mar 2015 12:14:50 +0000
Received: from [193.109.254.147] by server-14.bemta-14.messagelabs.com id
	BB/9D-02753-930EEF45; Tue, 10 Mar 2015 12:14:49 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-3.tower-27.messagelabs.com!1425989686!16051167!1
X-Originating-IP: [74.125.82.172]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 25476 invoked from network); 10 Mar 2015 12:14:47 -0000
Received: from mail-we0-f172.google.com (HELO mail-we0-f172.google.com)
	(74.125.82.172)
	by server-3.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	10 Mar 2015 12:14:47 -0000
Received: by wevl61 with SMTP id l61so1319794wev.6
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 10 Mar 2015 05:14:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=pq1EJvRtiE8uz//Lfiv6eks/MosotrdiVW+W83mx/UM=;
	b=MC9HZjLnCIN5ZWqVsJGEWebyidSkyXaz6qNVkUA8lV2zVlR2DsyeSUQj0aU3Vn7xOW
	f+0VqIq7Jj18yW9DIxHtMvIVnz/A7fs7wAaZRkqP3MVj0MtO4LchwRtr3I9NNCtySKmI
	DdnTMf87RnSAAN/gQqMdJjQ2RBzKcsRcsGzdp1yT4HRE/tvzlv6LkdjESuM5+sgtlZN6
	pwLWo82ZiDZv2sFOvE/vGMISfXWvy1oer6cOc/k4jynj9HS+8N9xuosk/1s9+JM8udGj
	5GkFoCcKw2y4dFszXqIoIEI2dGnQacALhpt6QV0UI9pQK16a+t4rR7XyCRxxiT/pBH/B
	WttA==
X-Received: by 10.194.108.9 with SMTP id hg9mr69012219wjb.68.1425989686588;
	Tue, 10 Mar 2015 05:14:46 -0700 (PDT)
Received: from [192.168.0.2] (cpc25-cmbg14-2-0-cust121.5-4.cable.virginm.net.
	[213.106.112.122])
	by mx.google.com with ESMTPSA id bx3sm634782wjc.21.2015.03.10.05.14.44
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 10 Mar 2015 05:14:45 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <53DA75E3-EE46-4107-8CDC-EEBFE5D51F45@gazagnaire.org>
Date: Tue, 10 Mar 2015 12:14:43 +0000
Message-Id: <400A4287-9E91-4587-990C-2E00335162CF@gazagnaire.org>
References: <CAG4opy97Pr0ATq_FV7LtVbM1EmxUOf7oDb+DV=QPAP2ocTm95w@mail.gmail.com>
	<53DA75E3-EE46-4107-8CDC-EEBFE5D51F45@gazagnaire.org>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Merging in Irmin
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

>> When merged, the result needs to include the parent, even though it
>> was deleted in one branch and not touched in the other. Can I do this?
> 
> Do you mean you want to control which are the parents of a commit you are creating, even if the respective contents are not related?
> 
> You can manually create a commit by using Irmin.Private.Commit.create[1] and save it in the (private) block store with S.Private.Commit.add[2]
> 
> Not sure how to expose that nicely to the user though... maybe allowing to specify a "parent" optional argument to merge/update/rebase.

You can only create a view from one store and apply it in the other: the history of commit will be kept as expected. See:

https://github.com/samoht/dog/blob/master/lib/dog.ml#L247

You can try to use that to merge views from different branches, not sure how practical this is though.

Thomas

> 
> Thomas
> 
> [1] http://mirage.github.io/irmin/Irmin.Private.Commit.S.html#VALcreate
> [2] http://mirage.github.io/irmin/Irmin.Private.S.html
> 
> 
> 
> 
>> 
>> 
>> -- 
>> Dr Thomas Leonard        http://0install.net/
>> GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
>> GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA
>> 
>> _______________________________________________
>> MirageOS-devel mailing list
>> MirageOS-devel@lists.xenproject.org
>> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
> 


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 10 12:35:58 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 10 Mar 2015 12:35:58 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVJO9-0003JI-Kp; Tue, 10 Mar 2015 12:35:57 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YVJO9-0003JD-1j
	for mirageos-devel@lists.xenproject.org; Tue, 10 Mar 2015 12:35:57 +0000
Received: from [85.158.137.68] by server-6.bemta-3.messagelabs.com id
	D7/97-03164-C25EEF45; Tue, 10 Mar 2015 12:35:56 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-3.tower-31.messagelabs.com!1425990954!14798991!1
X-Originating-IP: [209.85.215.49]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 30402 invoked from network); 10 Mar 2015 12:35:54 -0000
Received: from mail-la0-f49.google.com (HELO mail-la0-f49.google.com)
	(209.85.215.49)
	by server-3.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	10 Mar 2015 12:35:54 -0000
Received: by lams18 with SMTP id s18so1288467lam.9
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 10 Mar 2015 05:35:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=yJFQh8UjEifS/gXyFzodtFY5OJosIu9/oobYG3180oY=;
	b=iwb970/XxLzqZE9EqO3kc+z0ZWEivqqVSyvg6wlWbvxGaRsmcv3yaixXH5VDxz8Nw0
	itXiW3m4Iy5anGG4iYdYsjhKHmoT/1mnsXNqtecuvs9Hg53ZYE85Ykm2sU/kS/TrZbui
	fLbHBge6+UZPgO8f3m9EX+FGL6QaD3CvOcXsyqQ4SmDgrznLAdh/T2cFAj2zBLG7yfAo
	Af4BKKpSq1ndLvKb3lp6bq5kUhAvkrDFh4gQPOBXgT9ytsSE44Ww0z+1vkjekb0rnxod
	lJ0DY9jWSuytPPP6QFVEr+e4f2qjXSiKVNWhnkcdjEVEQ3Kr7fX0oUTsF9awWjSi89Jo
	AMKw==
MIME-Version: 1.0
X-Received: by 10.112.62.167 with SMTP id z7mr1256001lbr.115.1425990953795;
	Tue, 10 Mar 2015 05:35:53 -0700 (PDT)
Received: by 10.25.207.17 with HTTP; Tue, 10 Mar 2015 05:35:53 -0700 (PDT)
In-Reply-To: <400A4287-9E91-4587-990C-2E00335162CF@gazagnaire.org>
References: <CAG4opy97Pr0ATq_FV7LtVbM1EmxUOf7oDb+DV=QPAP2ocTm95w@mail.gmail.com>
	<53DA75E3-EE46-4107-8CDC-EEBFE5D51F45@gazagnaire.org>
	<400A4287-9E91-4587-990C-2E00335162CF@gazagnaire.org>
Date: Tue, 10 Mar 2015 12:35:53 +0000
Message-ID: <CAG4opy_dzp-WgvE1YQM_ux37hsPv3+f_VccMd5-ifjUQ70W9rg@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Merging in Irmin
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 10 March 2015 at 12:14, Thomas Gazagnaire <thomas@gazagnaire.org> wrote:
>>> When merged, the result needs to include the parent, even though it
>>> was deleted in one branch and not touched in the other. Can I do this?
>>
>> Do you mean you want to control which are the parents of a commit you are creating, even if the respective contents are not related?
>>
>> You can manually create a commit by using Irmin.Private.Commit.create[1] and save it in the (private) block store with S.Private.Commit.add[2]
>>
>> Not sure how to expose that nicely to the user though... maybe allowing to specify a "parent" optional argument to merge/update/rebase.

That would be useful. I've been avoiding the "Private" API so far, but
maybe I should start using it.

> You can only create a view from one store and apply it in the other: the history of commit will be kept as expected. See:
>
> https://github.com/samoht/dog/blob/master/lib/dog.ml#L247
>
> You can try to use that to merge views from different branches, not sure how practical this is though.

The basic logic I have is roughly:

1. git checkout base
2. (apply modification)
3. UPDATE=$(git commit-tree -p base)
4. git checkout master
5. git-merge -s custom $UPDATE

Where "custom" should be my app-specific merge logic that works on
whole trees rather than individual files.

Currently, I merge to create a new commit, test it, and then do a
fast-forward to update the branch to include the merge if the test
passes. But if I can use custom merge code, then it would be OK to
merge directly to the branch when my merge code returns, since it will
already have had a chance to test it.


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 10 12:35:58 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 10 Mar 2015 12:35:58 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVJO9-0003JI-Kp; Tue, 10 Mar 2015 12:35:57 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YVJO9-0003JD-1j
	for mirageos-devel@lists.xenproject.org; Tue, 10 Mar 2015 12:35:57 +0000
Received: from [85.158.137.68] by server-6.bemta-3.messagelabs.com id
	D7/97-03164-C25EEF45; Tue, 10 Mar 2015 12:35:56 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-3.tower-31.messagelabs.com!1425990954!14798991!1
X-Originating-IP: [209.85.215.49]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 30402 invoked from network); 10 Mar 2015 12:35:54 -0000
Received: from mail-la0-f49.google.com (HELO mail-la0-f49.google.com)
	(209.85.215.49)
	by server-3.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	10 Mar 2015 12:35:54 -0000
Received: by lams18 with SMTP id s18so1288467lam.9
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 10 Mar 2015 05:35:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=yJFQh8UjEifS/gXyFzodtFY5OJosIu9/oobYG3180oY=;
	b=iwb970/XxLzqZE9EqO3kc+z0ZWEivqqVSyvg6wlWbvxGaRsmcv3yaixXH5VDxz8Nw0
	itXiW3m4Iy5anGG4iYdYsjhKHmoT/1mnsXNqtecuvs9Hg53ZYE85Ykm2sU/kS/TrZbui
	fLbHBge6+UZPgO8f3m9EX+FGL6QaD3CvOcXsyqQ4SmDgrznLAdh/T2cFAj2zBLG7yfAo
	Af4BKKpSq1ndLvKb3lp6bq5kUhAvkrDFh4gQPOBXgT9ytsSE44Ww0z+1vkjekb0rnxod
	lJ0DY9jWSuytPPP6QFVEr+e4f2qjXSiKVNWhnkcdjEVEQ3Kr7fX0oUTsF9awWjSi89Jo
	AMKw==
MIME-Version: 1.0
X-Received: by 10.112.62.167 with SMTP id z7mr1256001lbr.115.1425990953795;
	Tue, 10 Mar 2015 05:35:53 -0700 (PDT)
Received: by 10.25.207.17 with HTTP; Tue, 10 Mar 2015 05:35:53 -0700 (PDT)
In-Reply-To: <400A4287-9E91-4587-990C-2E00335162CF@gazagnaire.org>
References: <CAG4opy97Pr0ATq_FV7LtVbM1EmxUOf7oDb+DV=QPAP2ocTm95w@mail.gmail.com>
	<53DA75E3-EE46-4107-8CDC-EEBFE5D51F45@gazagnaire.org>
	<400A4287-9E91-4587-990C-2E00335162CF@gazagnaire.org>
Date: Tue, 10 Mar 2015 12:35:53 +0000
Message-ID: <CAG4opy_dzp-WgvE1YQM_ux37hsPv3+f_VccMd5-ifjUQ70W9rg@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Merging in Irmin
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 10 March 2015 at 12:14, Thomas Gazagnaire <thomas@gazagnaire.org> wrote:
>>> When merged, the result needs to include the parent, even though it
>>> was deleted in one branch and not touched in the other. Can I do this?
>>
>> Do you mean you want to control which are the parents of a commit you are creating, even if the respective contents are not related?
>>
>> You can manually create a commit by using Irmin.Private.Commit.create[1] and save it in the (private) block store with S.Private.Commit.add[2]
>>
>> Not sure how to expose that nicely to the user though... maybe allowing to specify a "parent" optional argument to merge/update/rebase.

That would be useful. I've been avoiding the "Private" API so far, but
maybe I should start using it.

> You can only create a view from one store and apply it in the other: the history of commit will be kept as expected. See:
>
> https://github.com/samoht/dog/blob/master/lib/dog.ml#L247
>
> You can try to use that to merge views from different branches, not sure how practical this is though.

The basic logic I have is roughly:

1. git checkout base
2. (apply modification)
3. UPDATE=$(git commit-tree -p base)
4. git checkout master
5. git-merge -s custom $UPDATE

Where "custom" should be my app-specific merge logic that works on
whole trees rather than individual files.

Currently, I merge to create a new commit, test it, and then do a
fast-forward to update the branch to include the merge if the test
passes. But if I can use custom merge code, then it would be OK to
merge directly to the branch when my merge code returns, since it will
already have had a chance to test it.


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 10 13:47:10 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 10 Mar 2015 13:47:10 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVKV1-0004i3-F5; Tue, 10 Mar 2015 13:47:07 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YVKUz-0004hw-O8
	for mirageos-devel@lists.xenproject.org; Tue, 10 Mar 2015 13:47:05 +0000
Received: from [193.109.254.147] by server-6.bemta-14.messagelabs.com id
	0B/72-03164-8D5FEF45; Tue, 10 Mar 2015 13:47:04 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-2.tower-27.messagelabs.com!1425995220!16165950!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 30557 invoked from network); 10 Mar 2015 13:47:00 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-2.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 10 Mar 2015 13:47:00 -0000
Received: from dhcp-172-17-154-211.eduroam.wireless.private.cam.ac.uk
	(global-1-26.nat.csx.cam.ac.uk [131.111.184.26]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 438a3401;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 10 Mar 2015 13:47:00 +0000 (GMT)
From: Anil Madhavapeddy <anil@recoil.org>
Message-Id: <727D7526-88DA-46F2-894A-F5CC7A68BEBF@recoil.org>
Date: Tue, 10 Mar 2015 13:46:59 +0000
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
X-Mailer: Apple Mail (2.2070.6)
Subject: [MirageOS-devel] ANN: mirage.2.3.0 released
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

I've just released Mirage 2.3.0 to OPAM.  This is a point release
with several important cleanups in the interfaces:
https://github.com/mirage/mirage/releases/tag/v2.3.0

* Remove the `IO_PAGE` module type from `V1`. This has now moved
  into the `io-page` pacakge (#356)
* Remove `DEVICE.connect` from the `V1` module types.  When a module is
  functorised over a `DEVICE` it should only have the ability to
  *use* devices it is given, not to connect to new ones. (#150)
* Add `FLOW.error_message` to the `V1` module types to allow for
  generic handling of errors. (#346)
* Add `IP.uipaddr` as a universal IP address type. (#361)
* Support the `entropy` version 0.2+ interfaces. (#359)
* Check that the `opam` command is at least version 1.2.0 (#355)
* Don't put '-classic-display' in the generated Makefiles. (#364)

Although this is a short changelog, the main changes that matter
are the IO_PAGE and Device connect changes, which required
revisions across a significant number of packages.  Many thanks to
Thomas Leonard who did a lot of the legwork to propagate the
required changes: https://github.com/mirage/mirage/pull/350

The full set of libraries that have changed are up at:
http://openmirage.org/releases/

Next target: merging the TLS interface changes for out-of-the-box
TLS unikernels.

-anil

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 10 13:47:10 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 10 Mar 2015 13:47:10 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVKV1-0004i3-F5; Tue, 10 Mar 2015 13:47:07 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YVKUz-0004hw-O8
	for mirageos-devel@lists.xenproject.org; Tue, 10 Mar 2015 13:47:05 +0000
Received: from [193.109.254.147] by server-6.bemta-14.messagelabs.com id
	0B/72-03164-8D5FEF45; Tue, 10 Mar 2015 13:47:04 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-2.tower-27.messagelabs.com!1425995220!16165950!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 30557 invoked from network); 10 Mar 2015 13:47:00 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-2.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 10 Mar 2015 13:47:00 -0000
Received: from dhcp-172-17-154-211.eduroam.wireless.private.cam.ac.uk
	(global-1-26.nat.csx.cam.ac.uk [131.111.184.26]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 438a3401;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 10 Mar 2015 13:47:00 +0000 (GMT)
From: Anil Madhavapeddy <anil@recoil.org>
Message-Id: <727D7526-88DA-46F2-894A-F5CC7A68BEBF@recoil.org>
Date: Tue, 10 Mar 2015 13:46:59 +0000
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
X-Mailer: Apple Mail (2.2070.6)
Subject: [MirageOS-devel] ANN: mirage.2.3.0 released
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

I've just released Mirage 2.3.0 to OPAM.  This is a point release
with several important cleanups in the interfaces:
https://github.com/mirage/mirage/releases/tag/v2.3.0

* Remove the `IO_PAGE` module type from `V1`. This has now moved
  into the `io-page` pacakge (#356)
* Remove `DEVICE.connect` from the `V1` module types.  When a module is
  functorised over a `DEVICE` it should only have the ability to
  *use* devices it is given, not to connect to new ones. (#150)
* Add `FLOW.error_message` to the `V1` module types to allow for
  generic handling of errors. (#346)
* Add `IP.uipaddr` as a universal IP address type. (#361)
* Support the `entropy` version 0.2+ interfaces. (#359)
* Check that the `opam` command is at least version 1.2.0 (#355)
* Don't put '-classic-display' in the generated Makefiles. (#364)

Although this is a short changelog, the main changes that matter
are the IO_PAGE and Device connect changes, which required
revisions across a significant number of packages.  Many thanks to
Thomas Leonard who did a lot of the legwork to propagate the
required changes: https://github.com/mirage/mirage/pull/350

The full set of libraries that have changed are up at:
http://openmirage.org/releases/

Next target: merging the TLS interface changes for out-of-the-box
TLS unikernels.

-anil

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 10 14:01:14 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 10 Mar 2015 14:01:14 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVKif-0006Xi-O6; Tue, 10 Mar 2015 14:01:13 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YVKie-0006Xa-Vg
	for mirageos-devel@lists.xenproject.org; Tue, 10 Mar 2015 14:01:13 +0000
Received: from [193.109.254.147] by server-14.bemta-14.messagelabs.com id
	DF/47-02753-829FEF45; Tue, 10 Mar 2015 14:01:12 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-4.tower-27.messagelabs.com!1425996069!16225957!1
X-Originating-IP: [209.85.215.50]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 23219 invoked from network); 10 Mar 2015 14:01:09 -0000
Received: from mail-la0-f50.google.com (HELO mail-la0-f50.google.com)
	(209.85.215.50)
	by server-4.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	10 Mar 2015 14:01:09 -0000
Received: by labge10 with SMTP id ge10so1862657lab.7
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 10 Mar 2015 07:01:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=iUxEVDNErq5bhkrjVkUqQeCKViugJSEcklvQf8U6M7Q=;
	b=xVKQOeu7mNHfqu2lSXAnC44wWKFtyC4/8sa4RyeL9QQFu/4AKLSZFM0ta6+ghq1MY2
	R9MJbWQDafrj1Ax7FZyjExkEffWbMcIkkkJ0fjM3wiABJ1K0nBiM2wvAIydZ/d4EUKcm
	B2KWzrz0SMYKNf8LUHI03lfuVOFUbbQToLkU4zGq1p5gBu48x7GYiq85y3ifYj8iORfW
	YSUNjnCwUwp79R9UluVV8GR1e9mdfhVwiAmTZJkwBaqKQpnCVx8cgVfB6K1cK3FwUKCb
	F56/jDegPNvpt+N2EkcCROM9iQDqyIjxO1kTDLBIB9VFTFr9ASUXPCeFQiTaLMGcOVT7
	Q/6w==
MIME-Version: 1.0
X-Received: by 10.112.91.165 with SMTP id cf5mr6605176lbb.121.1425996068524;
	Tue, 10 Mar 2015 07:01:08 -0700 (PDT)
Received: by 10.25.207.17 with HTTP; Tue, 10 Mar 2015 07:01:08 -0700 (PDT)
In-Reply-To: <727D7526-88DA-46F2-894A-F5CC7A68BEBF@recoil.org>
References: <727D7526-88DA-46F2-894A-F5CC7A68BEBF@recoil.org>
Date: Tue, 10 Mar 2015 14:01:08 +0000
Message-ID: <CAG4opy9adhUgnLFEgPmanoC5goQF_JEbU3J3FQh-ZQfRjredHA@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] ANN: mirage.2.3.0 released
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 10 March 2015 at 13:46, Anil Madhavapeddy <anil@recoil.org> wrote:
> I've just released Mirage 2.3.0 to OPAM.  This is a point release
> with several important cleanups in the interfaces:
> https://github.com/mirage/mirage/releases/tag/v2.3.0
>
> * Remove the `IO_PAGE` module type from `V1`. This has now moved
>   into the `io-page` pacakge (#356)
> * Remove `DEVICE.connect` from the `V1` module types.  When a module is
>   functorised over a `DEVICE` it should only have the ability to
>   *use* devices it is given, not to connect to new ones. (#150)
> * Add `FLOW.error_message` to the `V1` module types to allow for
>   generic handling of errors. (#346)
> * Add `IP.uipaddr` as a universal IP address type. (#361)
> * Support the `entropy` version 0.2+ interfaces. (#359)
> * Check that the `opam` command is at least version 1.2.0 (#355)
> * Don't put '-classic-display' in the generated Makefiles. (#364)
>
> Although this is a short changelog, the main changes that matter
> are the IO_PAGE and Device connect changes, which required
> revisions across a significant number of packages.  Many thanks to
> Thomas Leonard who did a lot of the legwork to propagate the
> required changes: https://github.com/mirage/mirage/pull/350

Great!

> The full set of libraries that have changed are up at:
> http://openmirage.org/releases/

openmirage.org isn't responding for me (even to pings).

> Next target: merging the TLS interface changes for out-of-the-box
> TLS unikernels.


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 10 14:01:14 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 10 Mar 2015 14:01:14 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVKif-0006Xi-O6; Tue, 10 Mar 2015 14:01:13 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YVKie-0006Xa-Vg
	for mirageos-devel@lists.xenproject.org; Tue, 10 Mar 2015 14:01:13 +0000
Received: from [193.109.254.147] by server-14.bemta-14.messagelabs.com id
	DF/47-02753-829FEF45; Tue, 10 Mar 2015 14:01:12 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-4.tower-27.messagelabs.com!1425996069!16225957!1
X-Originating-IP: [209.85.215.50]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 23219 invoked from network); 10 Mar 2015 14:01:09 -0000
Received: from mail-la0-f50.google.com (HELO mail-la0-f50.google.com)
	(209.85.215.50)
	by server-4.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	10 Mar 2015 14:01:09 -0000
Received: by labge10 with SMTP id ge10so1862657lab.7
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 10 Mar 2015 07:01:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=iUxEVDNErq5bhkrjVkUqQeCKViugJSEcklvQf8U6M7Q=;
	b=xVKQOeu7mNHfqu2lSXAnC44wWKFtyC4/8sa4RyeL9QQFu/4AKLSZFM0ta6+ghq1MY2
	R9MJbWQDafrj1Ax7FZyjExkEffWbMcIkkkJ0fjM3wiABJ1K0nBiM2wvAIydZ/d4EUKcm
	B2KWzrz0SMYKNf8LUHI03lfuVOFUbbQToLkU4zGq1p5gBu48x7GYiq85y3ifYj8iORfW
	YSUNjnCwUwp79R9UluVV8GR1e9mdfhVwiAmTZJkwBaqKQpnCVx8cgVfB6K1cK3FwUKCb
	F56/jDegPNvpt+N2EkcCROM9iQDqyIjxO1kTDLBIB9VFTFr9ASUXPCeFQiTaLMGcOVT7
	Q/6w==
MIME-Version: 1.0
X-Received: by 10.112.91.165 with SMTP id cf5mr6605176lbb.121.1425996068524;
	Tue, 10 Mar 2015 07:01:08 -0700 (PDT)
Received: by 10.25.207.17 with HTTP; Tue, 10 Mar 2015 07:01:08 -0700 (PDT)
In-Reply-To: <727D7526-88DA-46F2-894A-F5CC7A68BEBF@recoil.org>
References: <727D7526-88DA-46F2-894A-F5CC7A68BEBF@recoil.org>
Date: Tue, 10 Mar 2015 14:01:08 +0000
Message-ID: <CAG4opy9adhUgnLFEgPmanoC5goQF_JEbU3J3FQh-ZQfRjredHA@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] ANN: mirage.2.3.0 released
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 10 March 2015 at 13:46, Anil Madhavapeddy <anil@recoil.org> wrote:
> I've just released Mirage 2.3.0 to OPAM.  This is a point release
> with several important cleanups in the interfaces:
> https://github.com/mirage/mirage/releases/tag/v2.3.0
>
> * Remove the `IO_PAGE` module type from `V1`. This has now moved
>   into the `io-page` pacakge (#356)
> * Remove `DEVICE.connect` from the `V1` module types.  When a module is
>   functorised over a `DEVICE` it should only have the ability to
>   *use* devices it is given, not to connect to new ones. (#150)
> * Add `FLOW.error_message` to the `V1` module types to allow for
>   generic handling of errors. (#346)
> * Add `IP.uipaddr` as a universal IP address type. (#361)
> * Support the `entropy` version 0.2+ interfaces. (#359)
> * Check that the `opam` command is at least version 1.2.0 (#355)
> * Don't put '-classic-display' in the generated Makefiles. (#364)
>
> Although this is a short changelog, the main changes that matter
> are the IO_PAGE and Device connect changes, which required
> revisions across a significant number of packages.  Many thanks to
> Thomas Leonard who did a lot of the legwork to propagate the
> required changes: https://github.com/mirage/mirage/pull/350

Great!

> The full set of libraries that have changed are up at:
> http://openmirage.org/releases/

openmirage.org isn't responding for me (even to pings).

> Next target: merging the TLS interface changes for out-of-the-box
> TLS unikernels.


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 10 14:17:58 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 10 Mar 2015 14:17:58 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVKys-0000H6-Hm; Tue, 10 Mar 2015 14:17:58 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YVKyr-0000Gw-5E
	for mirageos-devel@lists.xenproject.org; Tue, 10 Mar 2015 14:17:57 +0000
Received: from [85.158.137.68] by server-15.bemta-3.messagelabs.com id
	EC/D9-02884-41DFEF45; Tue, 10 Mar 2015 14:17:56 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-14.tower-31.messagelabs.com!1425997074!12382136!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 11386 invoked from network); 10 Mar 2015 14:17:54 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-14.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 10 Mar 2015 14:17:54 -0000
Received: from dhcp-172-17-154-211.eduroam.wireless.private.cam.ac.uk
	(global-1-26.nat.csx.cam.ac.uk [131.111.184.26]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 93b896fd;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Tue, 10 Mar 2015 14:17:53 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAG4opy9adhUgnLFEgPmanoC5goQF_JEbU3J3FQh-ZQfRjredHA@mail.gmail.com>
Date: Tue, 10 Mar 2015 14:17:51 +0000
Message-Id: <EC416048-FDF6-4FE6-A440-454F658CD7B3@recoil.org>
References: <727D7526-88DA-46F2-894A-F5CC7A68BEBF@recoil.org>
	<CAG4opy9adhUgnLFEgPmanoC5goQF_JEbU3J3FQh-ZQfRjredHA@mail.gmail.com>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] ANN: mirage.2.3.0 released
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 10 Mar 2015, at 14:01, Thomas Leonard <talex5@gmail.com> wrote:
> 
> On 10 March 2015 at 13:46, Anil Madhavapeddy <anil@recoil.org> wrote:
>> I've just released Mirage 2.3.0 to OPAM.  This is a point release
>> with several important cleanups in the interfaces:
>> https://github.com/mirage/mirage/releases/tag/v2.3.0
>> 
>> * Remove the `IO_PAGE` module type from `V1`. This has now moved
>>  into the `io-page` pacakge (#356)
>> * Remove `DEVICE.connect` from the `V1` module types.  When a module is
>>  functorised over a `DEVICE` it should only have the ability to
>>  *use* devices it is given, not to connect to new ones. (#150)
>> * Add `FLOW.error_message` to the `V1` module types to allow for
>>  generic handling of errors. (#346)
>> * Add `IP.uipaddr` as a universal IP address type. (#361)
>> * Support the `entropy` version 0.2+ interfaces. (#359)
>> * Check that the `opam` command is at least version 1.2.0 (#355)
>> * Don't put '-classic-display' in the generated Makefiles. (#364)
>> 
>> Although this is a short changelog, the main changes that matter
>> are the IO_PAGE and Device connect changes, which required
>> revisions across a significant number of packages.  Many thanks to
>> Thomas Leonard who did a lot of the legwork to propagate the
>> required changes: https://github.com/mirage/mirage/pull/350
> 
> Great!
> 
>> The full set of libraries that have changed are up at:
>> http://openmirage.org/releases/
> 
> openmirage.org isn't responding for me (even to pings).

Interesting -- we've uncovered a race condition in the Xen netback
bringup with the new release.  Putting in a very small sleep in
the Netfront initialisation is causing the dom0 bridge to unwedge
and then work.  I'm investigating it, although I may need your
assistance with this one Dave...

-anil

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 10 14:17:58 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 10 Mar 2015 14:17:58 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVKys-0000H6-Hm; Tue, 10 Mar 2015 14:17:58 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YVKyr-0000Gw-5E
	for mirageos-devel@lists.xenproject.org; Tue, 10 Mar 2015 14:17:57 +0000
Received: from [85.158.137.68] by server-15.bemta-3.messagelabs.com id
	EC/D9-02884-41DFEF45; Tue, 10 Mar 2015 14:17:56 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-14.tower-31.messagelabs.com!1425997074!12382136!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 11386 invoked from network); 10 Mar 2015 14:17:54 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-14.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 10 Mar 2015 14:17:54 -0000
Received: from dhcp-172-17-154-211.eduroam.wireless.private.cam.ac.uk
	(global-1-26.nat.csx.cam.ac.uk [131.111.184.26]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 93b896fd;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Tue, 10 Mar 2015 14:17:53 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAG4opy9adhUgnLFEgPmanoC5goQF_JEbU3J3FQh-ZQfRjredHA@mail.gmail.com>
Date: Tue, 10 Mar 2015 14:17:51 +0000
Message-Id: <EC416048-FDF6-4FE6-A440-454F658CD7B3@recoil.org>
References: <727D7526-88DA-46F2-894A-F5CC7A68BEBF@recoil.org>
	<CAG4opy9adhUgnLFEgPmanoC5goQF_JEbU3J3FQh-ZQfRjredHA@mail.gmail.com>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] ANN: mirage.2.3.0 released
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 10 Mar 2015, at 14:01, Thomas Leonard <talex5@gmail.com> wrote:
> 
> On 10 March 2015 at 13:46, Anil Madhavapeddy <anil@recoil.org> wrote:
>> I've just released Mirage 2.3.0 to OPAM.  This is a point release
>> with several important cleanups in the interfaces:
>> https://github.com/mirage/mirage/releases/tag/v2.3.0
>> 
>> * Remove the `IO_PAGE` module type from `V1`. This has now moved
>>  into the `io-page` pacakge (#356)
>> * Remove `DEVICE.connect` from the `V1` module types.  When a module is
>>  functorised over a `DEVICE` it should only have the ability to
>>  *use* devices it is given, not to connect to new ones. (#150)
>> * Add `FLOW.error_message` to the `V1` module types to allow for
>>  generic handling of errors. (#346)
>> * Add `IP.uipaddr` as a universal IP address type. (#361)
>> * Support the `entropy` version 0.2+ interfaces. (#359)
>> * Check that the `opam` command is at least version 1.2.0 (#355)
>> * Don't put '-classic-display' in the generated Makefiles. (#364)
>> 
>> Although this is a short changelog, the main changes that matter
>> are the IO_PAGE and Device connect changes, which required
>> revisions across a significant number of packages.  Many thanks to
>> Thomas Leonard who did a lot of the legwork to propagate the
>> required changes: https://github.com/mirage/mirage/pull/350
> 
> Great!
> 
>> The full set of libraries that have changed are up at:
>> http://openmirage.org/releases/
> 
> openmirage.org isn't responding for me (even to pings).

Interesting -- we've uncovered a race condition in the Xen netback
bringup with the new release.  Putting in a very small sleep in
the Netfront initialisation is causing the dom0 bridge to unwedge
and then work.  I'm investigating it, although I may need your
assistance with this one Dave...

-anil

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 10 14:42:02 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 10 Mar 2015 14:42:02 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVLM9-0003pq-0f; Tue, 10 Mar 2015 14:42:01 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <Dave.Scott@citrix.com>) id 1YVLM8-0003pl-3b
	for mirageos-devel@lists.xenproject.org; Tue, 10 Mar 2015 14:42:00 +0000
Received: from [85.158.139.211] by server-12.bemta-5.messagelabs.com id
	F0/BA-19682-7B20FF45; Tue, 10 Mar 2015 14:41:59 +0000
X-Env-Sender: Dave.Scott@citrix.com
X-Msg-Ref: server-7.tower-206.messagelabs.com!1425998512!14424560!1
X-Originating-IP: [185.25.65.24]
X-SpamReason: No, hits=0.0 required=7.0 tests=received_headers: No 
	Received headers
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 15329 invoked from network); 10 Mar 2015 14:41:56 -0000
Received: from smtp.eu.citrix.com (HELO SMTP.EU.CITRIX.COM) (185.25.65.24)
	by server-7.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	10 Mar 2015 14:41:56 -0000
X-IronPort-AV: E=Sophos;i="5.11,375,1422921600"; d="scan'208";a="32776094"
From: Dave Scott <Dave.Scott@citrix.com>
To: Anil Madhavapeddy <anil@recoil.org>
Thread-Topic: [MirageOS-devel] ANN: mirage.2.3.0 released
Thread-Index: AQHQWzi3ChBS8cIP+EOt/hU2T+qBfJ0VrhsAgAAEq4CAAAazgA==
Date: Tue, 10 Mar 2015 14:41:51 +0000
Message-ID: <CE529A1B-BBB7-4E1B-A50F-F1589996A352@citrix.com>
References: <727D7526-88DA-46F2-894A-F5CC7A68BEBF@recoil.org>
	<CAG4opy9adhUgnLFEgPmanoC5goQF_JEbU3J3FQh-ZQfRjredHA@mail.gmail.com>
	<EC416048-FDF6-4FE6-A440-454F658CD7B3@recoil.org>
In-Reply-To: <EC416048-FDF6-4FE6-A440-454F658CD7B3@recoil.org>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Content-ID: <55C5BCB23BC0D44F886CD8F75FA2163D@citrix.com>
MIME-Version: 1.0
X-DLP: AMS1
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] ANN: mirage.2.3.0 released
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

DQo+IE9uIDEwIE1hciAyMDE1LCBhdCAxNDoxNywgQW5pbCBNYWRoYXZhcGVkZHkgPGFuaWxAcmVj
b2lsLm9yZz4gd3JvdGU6DQo+IA0KPiBPbiAxMCBNYXIgMjAxNSwgYXQgMTQ6MDEsIFRob21hcyBM
ZW9uYXJkIDx0YWxleDVAZ21haWwuY29tPiB3cm90ZToNCj4+IA0KPj4gT24gMTAgTWFyY2ggMjAx
NSBhdCAxMzo0NiwgQW5pbCBNYWRoYXZhcGVkZHkgPGFuaWxAcmVjb2lsLm9yZz4gd3JvdGU6DQo+
Pj4gSSd2ZSBqdXN0IHJlbGVhc2VkIE1pcmFnZSAyLjMuMCB0byBPUEFNLiAgVGhpcyBpcyBhIHBv
aW50IHJlbGVhc2UNCj4+PiB3aXRoIHNldmVyYWwgaW1wb3J0YW50IGNsZWFudXBzIGluIHRoZSBp
bnRlcmZhY2VzOg0KPj4+IGh0dHBzOi8vZ2l0aHViLmNvbS9taXJhZ2UvbWlyYWdlL3JlbGVhc2Vz
L3RhZy92Mi4zLjANCj4+PiANCj4+PiAqIFJlbW92ZSB0aGUgYElPX1BBR0VgIG1vZHVsZSB0eXBl
IGZyb20gYFYxYC4gVGhpcyBoYXMgbm93IG1vdmVkDQo+Pj4gaW50byB0aGUgYGlvLXBhZ2VgIHBh
Y2FrZ2UgKCMzNTYpDQo+Pj4gKiBSZW1vdmUgYERFVklDRS5jb25uZWN0YCBmcm9tIHRoZSBgVjFg
IG1vZHVsZSB0eXBlcy4gIFdoZW4gYSBtb2R1bGUgaXMNCj4+PiBmdW5jdG9yaXNlZCBvdmVyIGEg
YERFVklDRWAgaXQgc2hvdWxkIG9ubHkgaGF2ZSB0aGUgYWJpbGl0eSB0bw0KPj4+ICp1c2UqIGRl
dmljZXMgaXQgaXMgZ2l2ZW4sIG5vdCB0byBjb25uZWN0IHRvIG5ldyBvbmVzLiAoIzE1MCkNCj4+
PiAqIEFkZCBgRkxPVy5lcnJvcl9tZXNzYWdlYCB0byB0aGUgYFYxYCBtb2R1bGUgdHlwZXMgdG8g
YWxsb3cgZm9yDQo+Pj4gZ2VuZXJpYyBoYW5kbGluZyBvZiBlcnJvcnMuICgjMzQ2KQ0KPj4+ICog
QWRkIGBJUC51aXBhZGRyYCBhcyBhIHVuaXZlcnNhbCBJUCBhZGRyZXNzIHR5cGUuICgjMzYxKQ0K
Pj4+ICogU3VwcG9ydCB0aGUgYGVudHJvcHlgIHZlcnNpb24gMC4yKyBpbnRlcmZhY2VzLiAoIzM1
OSkNCj4+PiAqIENoZWNrIHRoYXQgdGhlIGBvcGFtYCBjb21tYW5kIGlzIGF0IGxlYXN0IHZlcnNp
b24gMS4yLjAgKCMzNTUpDQo+Pj4gKiBEb24ndCBwdXQgJy1jbGFzc2ljLWRpc3BsYXknIGluIHRo
ZSBnZW5lcmF0ZWQgTWFrZWZpbGVzLiAoIzM2NCkNCj4+PiANCj4+PiBBbHRob3VnaCB0aGlzIGlz
IGEgc2hvcnQgY2hhbmdlbG9nLCB0aGUgbWFpbiBjaGFuZ2VzIHRoYXQgbWF0dGVyDQo+Pj4gYXJl
IHRoZSBJT19QQUdFIGFuZCBEZXZpY2UgY29ubmVjdCBjaGFuZ2VzLCB3aGljaCByZXF1aXJlZA0K
Pj4+IHJldmlzaW9ucyBhY3Jvc3MgYSBzaWduaWZpY2FudCBudW1iZXIgb2YgcGFja2FnZXMuICBN
YW55IHRoYW5rcyB0bw0KPj4+IFRob21hcyBMZW9uYXJkIHdobyBkaWQgYSBsb3Qgb2YgdGhlIGxl
Z3dvcmsgdG8gcHJvcGFnYXRlIHRoZQ0KPj4+IHJlcXVpcmVkIGNoYW5nZXM6IGh0dHBzOi8vZ2l0
aHViLmNvbS9taXJhZ2UvbWlyYWdlL3B1bGwvMzUwDQo+PiANCj4+IEdyZWF0IQ0KPj4gDQo+Pj4g
VGhlIGZ1bGwgc2V0IG9mIGxpYnJhcmllcyB0aGF0IGhhdmUgY2hhbmdlZCBhcmUgdXAgYXQ6DQo+
Pj4gaHR0cDovL29wZW5taXJhZ2Uub3JnL3JlbGVhc2VzLw0KPj4gDQo+PiBvcGVubWlyYWdlLm9y
ZyBpc24ndCByZXNwb25kaW5nIGZvciBtZSAoZXZlbiB0byBwaW5ncykuDQo+IA0KPiBJbnRlcmVz
dGluZyAtLSB3ZSd2ZSB1bmNvdmVyZWQgYSByYWNlIGNvbmRpdGlvbiBpbiB0aGUgWGVuIG5ldGJh
Y2sNCj4gYnJpbmd1cCB3aXRoIHRoZSBuZXcgcmVsZWFzZS4gIFB1dHRpbmcgaW4gYSB2ZXJ5IHNt
YWxsIHNsZWVwIGluDQo+IHRoZSBOZXRmcm9udCBpbml0aWFsaXNhdGlvbiBpcyBjYXVzaW5nIHRo
ZSBkb20wIGJyaWRnZSB0byB1bndlZGdlDQo+IGFuZCB0aGVuIHdvcmsuICBJJ20gaW52ZXN0aWdh
dGluZyBpdCwgYWx0aG91Z2ggSSBtYXkgbmVlZCB5b3VyDQo+IGFzc2lzdGFuY2Ugd2l0aCB0aGlz
IG9uZSBEYXZl4oCmDQoNClVoLW9oISBEb2VzIHRoZSBicmlkZ2UgZGV2aWNlIGFuZCB0aGUgdmlm
IGRldmljZSBpbiBkb20wIGxvb2sgb2ssIGFuZA0KZG8gdGhlIHhlbnN0b3JlIGJhY2tlbmQgYW5k
IGZyb250ZW5kIGRpcmVjdG9yaWVzIGJvdGggaGF2ZSDigJxzdGF0ZSA9IDTigJ0/DQrigJQgSSBh
c3N1bWUgdGhleSBhbGwgbG9vayByaWdodCBhbmQgdGhlIGJ1ZyBpcyBtb3JlIG9mIGEgcmFjZSBi
ZXR3ZWVuDQp0aGUgYmFja2VuZCBhbmQgZnJvbnRlbmQgaW5pdCBjb2RlLg0KDQpJZiBJIGhhZCB0
byBndWVzcyBJIHdvdWxkIHRyeSBpbnNlcnRpbmcgYSB4ZW5zdG9yZSB3YWl0IGhlcmU6DQoNCmh0
dHBzOi8vZ2l0aHViLmNvbS9taXJhZ2UvbWlyYWdlLW5ldC14ZW4vYmxvYi82MzY5YWJkODA5MDRj
YTk4MTk0YWJjMDdlNjc2ZWNkYjBhMzcxYjNjL2xpYi9uZXRpZi5tbCNMMzAwDQoNCnRvIHdhaXQg
Zm9yIHRoZSBiYWNrZW5kIHRvIGVudGVyIOKAnHN0YXRlID0gNOKAnSBiZWZvcmUgd3JpdGluZyBk
YXRhIHRvIHRoZQ0KcmluZyBhbmQgc2lnbmFsbGluZyB0aGUgZXZlbnQgY2hhbm5lbC4gUGVyaGFw
cyBpdOKAmXMgd2VkZ2VkIGJlY2F1c2UgdGhlDQpldmVudCB3YXMgaWdub3JlZC4gQSB3YWl0IGxv
b3Agd291bGQgbG9vayBsaWtlIHRoaXMgb25lOg0KDQpodHRwczovL2dpdGh1Yi5jb20vbWlyYWdl
L21pcmFnZS1ibG9jay14ZW4vYmxvYi9hNjRkMTUyNTg2YzdlYmMxZDIzYzVhZGFhNGRkZDQ0MGI0
NWEzYTgzL2xpYi9ibGtiYWNrLm1sI0wzODgNCg0Kb25seSB3aXRoIHRoZSBjb25kaXRpb24gYmVp
bmcg4oCYc3RhdGUgPSBEZXZpY2Vfc3RhdGUuKHRvX3N0cmluZyBDb25uZWN0ZWQpIg0KDQpPZiBj
b3Vyc2UgYSB4ZW5zdG9yZSB3YWl0IG1pZ2h0IGp1c3QgYmUgYSB3b3JrYXJvdW5kIGJ5IGNhdXNp
bmcgYSBkZWxheS4NClBlcmhhcHMgd2Ugc2hvdWxkIHJlYWQgdGhlIExpbnV4IG5ldGJhY2sgY29k
ZSB0byBzZWUgd2hhdCBpdOKAmXMgZG9pbmcuDQoNCkNoZWVycywNCkRhdmUNCg0KDQo+IA0KPiAt
YW5pbA0KPiANCj4gX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X18NCj4gTWlyYWdlT1MtZGV2ZWwgbWFpbGluZyBsaXN0DQo+IE1pcmFnZU9TLWRldmVsQGxpc3Rz
LnhlbnByb2plY3Qub3JnDQo+IGh0dHA6Ly9saXN0cy54ZW5wcm9qZWN0Lm9yZy9jZ2ktYmluL21h
aWxtYW4vbGlzdGluZm8vbWlyYWdlb3MtZGV2ZWwNCg0KX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX18KTWlyYWdlT1MtZGV2ZWwgbWFpbGluZyBsaXN0Ck1pcmFn
ZU9TLWRldmVsQGxpc3RzLnhlbnByb2plY3Qub3JnCmh0dHA6Ly9saXN0cy54ZW5wcm9qZWN0Lm9y
Zy9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbWlyYWdlb3MtZGV2ZWwK

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 10 14:42:02 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 10 Mar 2015 14:42:02 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVLM9-0003pq-0f; Tue, 10 Mar 2015 14:42:01 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <Dave.Scott@citrix.com>) id 1YVLM8-0003pl-3b
	for mirageos-devel@lists.xenproject.org; Tue, 10 Mar 2015 14:42:00 +0000
Received: from [85.158.139.211] by server-12.bemta-5.messagelabs.com id
	F0/BA-19682-7B20FF45; Tue, 10 Mar 2015 14:41:59 +0000
X-Env-Sender: Dave.Scott@citrix.com
X-Msg-Ref: server-7.tower-206.messagelabs.com!1425998512!14424560!1
X-Originating-IP: [185.25.65.24]
X-SpamReason: No, hits=0.0 required=7.0 tests=received_headers: No 
	Received headers
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 15329 invoked from network); 10 Mar 2015 14:41:56 -0000
Received: from smtp.eu.citrix.com (HELO SMTP.EU.CITRIX.COM) (185.25.65.24)
	by server-7.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	10 Mar 2015 14:41:56 -0000
X-IronPort-AV: E=Sophos;i="5.11,375,1422921600"; d="scan'208";a="32776094"
From: Dave Scott <Dave.Scott@citrix.com>
To: Anil Madhavapeddy <anil@recoil.org>
Thread-Topic: [MirageOS-devel] ANN: mirage.2.3.0 released
Thread-Index: AQHQWzi3ChBS8cIP+EOt/hU2T+qBfJ0VrhsAgAAEq4CAAAazgA==
Date: Tue, 10 Mar 2015 14:41:51 +0000
Message-ID: <CE529A1B-BBB7-4E1B-A50F-F1589996A352@citrix.com>
References: <727D7526-88DA-46F2-894A-F5CC7A68BEBF@recoil.org>
	<CAG4opy9adhUgnLFEgPmanoC5goQF_JEbU3J3FQh-ZQfRjredHA@mail.gmail.com>
	<EC416048-FDF6-4FE6-A440-454F658CD7B3@recoil.org>
In-Reply-To: <EC416048-FDF6-4FE6-A440-454F658CD7B3@recoil.org>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Content-ID: <55C5BCB23BC0D44F886CD8F75FA2163D@citrix.com>
MIME-Version: 1.0
X-DLP: AMS1
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] ANN: mirage.2.3.0 released
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

DQo+IE9uIDEwIE1hciAyMDE1LCBhdCAxNDoxNywgQW5pbCBNYWRoYXZhcGVkZHkgPGFuaWxAcmVj
b2lsLm9yZz4gd3JvdGU6DQo+IA0KPiBPbiAxMCBNYXIgMjAxNSwgYXQgMTQ6MDEsIFRob21hcyBM
ZW9uYXJkIDx0YWxleDVAZ21haWwuY29tPiB3cm90ZToNCj4+IA0KPj4gT24gMTAgTWFyY2ggMjAx
NSBhdCAxMzo0NiwgQW5pbCBNYWRoYXZhcGVkZHkgPGFuaWxAcmVjb2lsLm9yZz4gd3JvdGU6DQo+
Pj4gSSd2ZSBqdXN0IHJlbGVhc2VkIE1pcmFnZSAyLjMuMCB0byBPUEFNLiAgVGhpcyBpcyBhIHBv
aW50IHJlbGVhc2UNCj4+PiB3aXRoIHNldmVyYWwgaW1wb3J0YW50IGNsZWFudXBzIGluIHRoZSBp
bnRlcmZhY2VzOg0KPj4+IGh0dHBzOi8vZ2l0aHViLmNvbS9taXJhZ2UvbWlyYWdlL3JlbGVhc2Vz
L3RhZy92Mi4zLjANCj4+PiANCj4+PiAqIFJlbW92ZSB0aGUgYElPX1BBR0VgIG1vZHVsZSB0eXBl
IGZyb20gYFYxYC4gVGhpcyBoYXMgbm93IG1vdmVkDQo+Pj4gaW50byB0aGUgYGlvLXBhZ2VgIHBh
Y2FrZ2UgKCMzNTYpDQo+Pj4gKiBSZW1vdmUgYERFVklDRS5jb25uZWN0YCBmcm9tIHRoZSBgVjFg
IG1vZHVsZSB0eXBlcy4gIFdoZW4gYSBtb2R1bGUgaXMNCj4+PiBmdW5jdG9yaXNlZCBvdmVyIGEg
YERFVklDRWAgaXQgc2hvdWxkIG9ubHkgaGF2ZSB0aGUgYWJpbGl0eSB0bw0KPj4+ICp1c2UqIGRl
dmljZXMgaXQgaXMgZ2l2ZW4sIG5vdCB0byBjb25uZWN0IHRvIG5ldyBvbmVzLiAoIzE1MCkNCj4+
PiAqIEFkZCBgRkxPVy5lcnJvcl9tZXNzYWdlYCB0byB0aGUgYFYxYCBtb2R1bGUgdHlwZXMgdG8g
YWxsb3cgZm9yDQo+Pj4gZ2VuZXJpYyBoYW5kbGluZyBvZiBlcnJvcnMuICgjMzQ2KQ0KPj4+ICog
QWRkIGBJUC51aXBhZGRyYCBhcyBhIHVuaXZlcnNhbCBJUCBhZGRyZXNzIHR5cGUuICgjMzYxKQ0K
Pj4+ICogU3VwcG9ydCB0aGUgYGVudHJvcHlgIHZlcnNpb24gMC4yKyBpbnRlcmZhY2VzLiAoIzM1
OSkNCj4+PiAqIENoZWNrIHRoYXQgdGhlIGBvcGFtYCBjb21tYW5kIGlzIGF0IGxlYXN0IHZlcnNp
b24gMS4yLjAgKCMzNTUpDQo+Pj4gKiBEb24ndCBwdXQgJy1jbGFzc2ljLWRpc3BsYXknIGluIHRo
ZSBnZW5lcmF0ZWQgTWFrZWZpbGVzLiAoIzM2NCkNCj4+PiANCj4+PiBBbHRob3VnaCB0aGlzIGlz
IGEgc2hvcnQgY2hhbmdlbG9nLCB0aGUgbWFpbiBjaGFuZ2VzIHRoYXQgbWF0dGVyDQo+Pj4gYXJl
IHRoZSBJT19QQUdFIGFuZCBEZXZpY2UgY29ubmVjdCBjaGFuZ2VzLCB3aGljaCByZXF1aXJlZA0K
Pj4+IHJldmlzaW9ucyBhY3Jvc3MgYSBzaWduaWZpY2FudCBudW1iZXIgb2YgcGFja2FnZXMuICBN
YW55IHRoYW5rcyB0bw0KPj4+IFRob21hcyBMZW9uYXJkIHdobyBkaWQgYSBsb3Qgb2YgdGhlIGxl
Z3dvcmsgdG8gcHJvcGFnYXRlIHRoZQ0KPj4+IHJlcXVpcmVkIGNoYW5nZXM6IGh0dHBzOi8vZ2l0
aHViLmNvbS9taXJhZ2UvbWlyYWdlL3B1bGwvMzUwDQo+PiANCj4+IEdyZWF0IQ0KPj4gDQo+Pj4g
VGhlIGZ1bGwgc2V0IG9mIGxpYnJhcmllcyB0aGF0IGhhdmUgY2hhbmdlZCBhcmUgdXAgYXQ6DQo+
Pj4gaHR0cDovL29wZW5taXJhZ2Uub3JnL3JlbGVhc2VzLw0KPj4gDQo+PiBvcGVubWlyYWdlLm9y
ZyBpc24ndCByZXNwb25kaW5nIGZvciBtZSAoZXZlbiB0byBwaW5ncykuDQo+IA0KPiBJbnRlcmVz
dGluZyAtLSB3ZSd2ZSB1bmNvdmVyZWQgYSByYWNlIGNvbmRpdGlvbiBpbiB0aGUgWGVuIG5ldGJh
Y2sNCj4gYnJpbmd1cCB3aXRoIHRoZSBuZXcgcmVsZWFzZS4gIFB1dHRpbmcgaW4gYSB2ZXJ5IHNt
YWxsIHNsZWVwIGluDQo+IHRoZSBOZXRmcm9udCBpbml0aWFsaXNhdGlvbiBpcyBjYXVzaW5nIHRo
ZSBkb20wIGJyaWRnZSB0byB1bndlZGdlDQo+IGFuZCB0aGVuIHdvcmsuICBJJ20gaW52ZXN0aWdh
dGluZyBpdCwgYWx0aG91Z2ggSSBtYXkgbmVlZCB5b3VyDQo+IGFzc2lzdGFuY2Ugd2l0aCB0aGlz
IG9uZSBEYXZl4oCmDQoNClVoLW9oISBEb2VzIHRoZSBicmlkZ2UgZGV2aWNlIGFuZCB0aGUgdmlm
IGRldmljZSBpbiBkb20wIGxvb2sgb2ssIGFuZA0KZG8gdGhlIHhlbnN0b3JlIGJhY2tlbmQgYW5k
IGZyb250ZW5kIGRpcmVjdG9yaWVzIGJvdGggaGF2ZSDigJxzdGF0ZSA9IDTigJ0/DQrigJQgSSBh
c3N1bWUgdGhleSBhbGwgbG9vayByaWdodCBhbmQgdGhlIGJ1ZyBpcyBtb3JlIG9mIGEgcmFjZSBi
ZXR3ZWVuDQp0aGUgYmFja2VuZCBhbmQgZnJvbnRlbmQgaW5pdCBjb2RlLg0KDQpJZiBJIGhhZCB0
byBndWVzcyBJIHdvdWxkIHRyeSBpbnNlcnRpbmcgYSB4ZW5zdG9yZSB3YWl0IGhlcmU6DQoNCmh0
dHBzOi8vZ2l0aHViLmNvbS9taXJhZ2UvbWlyYWdlLW5ldC14ZW4vYmxvYi82MzY5YWJkODA5MDRj
YTk4MTk0YWJjMDdlNjc2ZWNkYjBhMzcxYjNjL2xpYi9uZXRpZi5tbCNMMzAwDQoNCnRvIHdhaXQg
Zm9yIHRoZSBiYWNrZW5kIHRvIGVudGVyIOKAnHN0YXRlID0gNOKAnSBiZWZvcmUgd3JpdGluZyBk
YXRhIHRvIHRoZQ0KcmluZyBhbmQgc2lnbmFsbGluZyB0aGUgZXZlbnQgY2hhbm5lbC4gUGVyaGFw
cyBpdOKAmXMgd2VkZ2VkIGJlY2F1c2UgdGhlDQpldmVudCB3YXMgaWdub3JlZC4gQSB3YWl0IGxv
b3Agd291bGQgbG9vayBsaWtlIHRoaXMgb25lOg0KDQpodHRwczovL2dpdGh1Yi5jb20vbWlyYWdl
L21pcmFnZS1ibG9jay14ZW4vYmxvYi9hNjRkMTUyNTg2YzdlYmMxZDIzYzVhZGFhNGRkZDQ0MGI0
NWEzYTgzL2xpYi9ibGtiYWNrLm1sI0wzODgNCg0Kb25seSB3aXRoIHRoZSBjb25kaXRpb24gYmVp
bmcg4oCYc3RhdGUgPSBEZXZpY2Vfc3RhdGUuKHRvX3N0cmluZyBDb25uZWN0ZWQpIg0KDQpPZiBj
b3Vyc2UgYSB4ZW5zdG9yZSB3YWl0IG1pZ2h0IGp1c3QgYmUgYSB3b3JrYXJvdW5kIGJ5IGNhdXNp
bmcgYSBkZWxheS4NClBlcmhhcHMgd2Ugc2hvdWxkIHJlYWQgdGhlIExpbnV4IG5ldGJhY2sgY29k
ZSB0byBzZWUgd2hhdCBpdOKAmXMgZG9pbmcuDQoNCkNoZWVycywNCkRhdmUNCg0KDQo+IA0KPiAt
YW5pbA0KPiANCj4gX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X18NCj4gTWlyYWdlT1MtZGV2ZWwgbWFpbGluZyBsaXN0DQo+IE1pcmFnZU9TLWRldmVsQGxpc3Rz
LnhlbnByb2plY3Qub3JnDQo+IGh0dHA6Ly9saXN0cy54ZW5wcm9qZWN0Lm9yZy9jZ2ktYmluL21h
aWxtYW4vbGlzdGluZm8vbWlyYWdlb3MtZGV2ZWwNCg0KX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX18KTWlyYWdlT1MtZGV2ZWwgbWFpbGluZyBsaXN0Ck1pcmFn
ZU9TLWRldmVsQGxpc3RzLnhlbnByb2plY3Qub3JnCmh0dHA6Ly9saXN0cy54ZW5wcm9qZWN0Lm9y
Zy9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbWlyYWdlb3MtZGV2ZWwK

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 10 15:42:01 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 10 Mar 2015 15:42:01 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVMI7-0001U4-Vk; Tue, 10 Mar 2015 15:41:55 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <amc79@cam.ac.uk>) id 1YVMI6-0001Tz-2Y
	for mirageos-devel@lists.xenproject.org; Tue, 10 Mar 2015 15:41:54 +0000
Received: from [85.158.139.211] by server-11.bemta-5.messagelabs.com id
	34/19-22941-1C01FF45; Tue, 10 Mar 2015 15:41:53 +0000
X-Env-Sender: amc79@cam.ac.uk
X-Msg-Ref: server-2.tower-206.messagelabs.com!1426002112!14394099!1
X-Originating-IP: [131.111.8.140]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 19182 invoked from network); 10 Mar 2015 15:41:52 -0000
Received: from ppsw-40.csi.cam.ac.uk (HELO ppsw-40.csi.cam.ac.uk)
	(131.111.8.140)
	by server-2.tower-206.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 10 Mar 2015 15:41:52 -0000
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from dhcp-172-17-235-57.eduroam.wireless.private.cam.ac.uk
	([172.17.235.57]:54604)
	by ppsw-40.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.156]:587)
	with esmtpsa (PLAIN:amc79) (TLSv1:AES128-SHA:128)
	id 1YVMI4-0002Cr-k5 (Exim 4.82_3-c0e5623) for
	mirageos-devel@lists.xenproject.org
	(return-path <amc79@cam.ac.uk>); Tue, 10 Mar 2015 15:41:52 +0000
From: Amir Chaudhry <amc79@cam.ac.uk>
Message-Id: <BF249B08-E0CA-42F5-8A2D-9EDF5B1591D5@cam.ac.uk>
Date: Tue, 10 Mar 2015 15:41:51 +0000
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
X-Mailer: Apple Mail (2.1510)
Subject: [MirageOS-devel] Mirage fortnightly call - Wednesday 11th at 4pm GMT
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: quoted-printable
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi folks,

The next Mirage call will take place this Wednesday afternoon at 4pm GMT an=
d is open to all. Note that the GoToMeeting details have been updated below.

If there are any hiccups/delays then I'll switch to a public Google Hangout=
.  If that happens, I'll post the link here and also in the IRC channel (#m=
irage on freenode).

Minutes from last call are up at http://openmirage.org/wiki/weekly-2015-02-=
25

The agenda for this week is currently as follows:

=95 Quality and Test
=95 Networking stack
=95 Outstanding Merges (TLS and DEVICE)
=95 GitHub Org cleanup
=95 Improve documentation

If you have things to add/edit, please do so at https://github.com/mirage/m=
irage-www/wiki/Call-Agenda

Join us at 4pm GMT on Wednesday!

=95 Join the meeting from your computer, tablet or smartphone.
https://global.gotomeeting.com/join/250442077

=95 You can also dial in using your phone.
UK: +44 (0) 330 221 0088
US: +1 (646) 749-3129
Access Code: 250-442-077 =

More phone numbers: https://global.gotomeeting.com/250442077/numbersdisplay=
.html

Best wishes,
Amir


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 10 15:42:01 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 10 Mar 2015 15:42:01 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVMI7-0001U4-Vk; Tue, 10 Mar 2015 15:41:55 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <amc79@cam.ac.uk>) id 1YVMI6-0001Tz-2Y
	for mirageos-devel@lists.xenproject.org; Tue, 10 Mar 2015 15:41:54 +0000
Received: from [85.158.139.211] by server-11.bemta-5.messagelabs.com id
	34/19-22941-1C01FF45; Tue, 10 Mar 2015 15:41:53 +0000
X-Env-Sender: amc79@cam.ac.uk
X-Msg-Ref: server-2.tower-206.messagelabs.com!1426002112!14394099!1
X-Originating-IP: [131.111.8.140]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 19182 invoked from network); 10 Mar 2015 15:41:52 -0000
Received: from ppsw-40.csi.cam.ac.uk (HELO ppsw-40.csi.cam.ac.uk)
	(131.111.8.140)
	by server-2.tower-206.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 10 Mar 2015 15:41:52 -0000
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from dhcp-172-17-235-57.eduroam.wireless.private.cam.ac.uk
	([172.17.235.57]:54604)
	by ppsw-40.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.156]:587)
	with esmtpsa (PLAIN:amc79) (TLSv1:AES128-SHA:128)
	id 1YVMI4-0002Cr-k5 (Exim 4.82_3-c0e5623) for
	mirageos-devel@lists.xenproject.org
	(return-path <amc79@cam.ac.uk>); Tue, 10 Mar 2015 15:41:52 +0000
From: Amir Chaudhry <amc79@cam.ac.uk>
Message-Id: <BF249B08-E0CA-42F5-8A2D-9EDF5B1591D5@cam.ac.uk>
Date: Tue, 10 Mar 2015 15:41:51 +0000
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
X-Mailer: Apple Mail (2.1510)
Subject: [MirageOS-devel] Mirage fortnightly call - Wednesday 11th at 4pm GMT
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: quoted-printable
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi folks,

The next Mirage call will take place this Wednesday afternoon at 4pm GMT an=
d is open to all. Note that the GoToMeeting details have been updated below.

If there are any hiccups/delays then I'll switch to a public Google Hangout=
.  If that happens, I'll post the link here and also in the IRC channel (#m=
irage on freenode).

Minutes from last call are up at http://openmirage.org/wiki/weekly-2015-02-=
25

The agenda for this week is currently as follows:

=95 Quality and Test
=95 Networking stack
=95 Outstanding Merges (TLS and DEVICE)
=95 GitHub Org cleanup
=95 Improve documentation

If you have things to add/edit, please do so at https://github.com/mirage/m=
irage-www/wiki/Call-Agenda

Join us at 4pm GMT on Wednesday!

=95 Join the meeting from your computer, tablet or smartphone.
https://global.gotomeeting.com/join/250442077

=95 You can also dial in using your phone.
UK: +44 (0) 330 221 0088
US: +1 (646) 749-3129
Access Code: 250-442-077 =

More phone numbers: https://global.gotomeeting.com/250442077/numbersdisplay=
.html

Best wishes,
Amir


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 10 18:38:52 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 10 Mar 2015 18:38:52 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVP3G-00085a-Ij; Tue, 10 Mar 2015 18:38:46 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <agarwal1975@gmail.com>) id 1YVP3E-00085T-LN
	for MirageOS-devel@lists.xenproject.org; Tue, 10 Mar 2015 18:38:44 +0000
Received: from [85.158.137.68] by server-6.bemta-3.messagelabs.com id
	9B/E4-03164-33A3FF45; Tue, 10 Mar 2015 18:38:43 +0000
X-Env-Sender: agarwal1975@gmail.com
X-Msg-Ref: server-10.tower-31.messagelabs.com!1426012722!10758044!1
X-Originating-IP: [74.125.82.173]
X-SpamReason: No, hits=1.2 required=7.0 tests=HTML_40_50,HTML_MESSAGE,
	MAILTO_TO_SPAM_ADDR,RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 14741 invoked from network); 10 Mar 2015 18:38:42 -0000
Received: from mail-we0-f173.google.com (HELO mail-we0-f173.google.com)
	(74.125.82.173)
	by server-10.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	10 Mar 2015 18:38:42 -0000
Received: by wevk48 with SMTP id k48so3845699wev.7
	for <MirageOS-devel@lists.xenproject.org>;
	Tue, 10 Mar 2015 11:38:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type;
	bh=PvVcaajLZzZRdcoUJt0exxSbfuIREErHqmRoTD7lums=;
	b=pR20fLqKWnGQtwfbFDziQHmVXW+AQ2SuVWAAYhj31kcKrjG1rFdzqL6Ar86aTpcmpq
	Cw2gJdkzJ9hwD2Z+THTEAIkIaXQTxZTI89lYNLO+gkuWDtfYxEutGS24M5ieswT3rnts
	/0kFLWS+fY7iFKgepHlcI/3IZiM5b3Q7g7yMERb2z0aSc0QX650r5xyyDT0WtkQr+V8d
	k1hsBbmtWiCoo6r5TtQfjfn69P3NKiucgpd2StucgpG8gFB7WPOhTCYdMP0El3ZPQVVF
	MGCSjXJRurcv2yr94kpXf71WXcXRoV1lCRTTGXkm72NzOSSRfgN2c0moQLMRkt6zf2y4
	kXmw==
X-Received: by 10.181.27.201 with SMTP id ji9mr84748053wid.20.1426012721864;
	Tue, 10 Mar 2015 11:38:41 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.27.15.72 with HTTP; Tue, 10 Mar 2015 11:38:21 -0700 (PDT)
In-Reply-To: <CAFzWkZGPuMvu-zRY-YfMo2y9+Lcw5XCPGqVRD0fymeCuRa5sLQ@mail.gmail.com>
References: <CAFzWkZGq54ogqtweyNNnVSR89K41pEuGkUPF+i3Y2brneHN9YQ@mail.gmail.com>
	<073A0B5C-531B-4B7B-ABA3-1D8A0EC4C4BA@recoil.org>
	<CAFzWkZFQrQOZQSO_0UZoxrsr2zFPE+6XFq5Vv6wGr7iJ-ARkWA@mail.gmail.com>
	<CAMu2m2KTSbcVn=DM3mMNYNNcYDJE-=P8gCYbKieAOfi2ifgiJw@mail.gmail.com>
	<CAFzWkZGPuMvu-zRY-YfMo2y9+Lcw5XCPGqVRD0fymeCuRa5sLQ@mail.gmail.com>
From: Ashish Agarwal <agarwal1975@gmail.com>
Date: Tue, 10 Mar 2015 14:38:21 -0400
Message-ID: <CAMu2m2+0S0cpMf+yK9_7s1oCWPXuS7tk7hbU2MYpZ4nOqGT=2A@mail.gmail.com>
To: Anand Patil <anand.prabhakar.patil@gmail.com>
Cc: Thomas Gazagnaire <thomas@gazagnaire.org>,
	"mirageos-devel@lists.xenproject.org"
	<MirageOS-devel@lists.xenproject.org>, Anil Madhavapeddy <anil@recoil.org>
Subject: Re: [MirageOS-devel] COW XML questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============8044040900257368301=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============8044040900257368301==
Content-Type: multipart/alternative; boundary=001a11c3476abb67860510f3752e

--001a11c3476abb67860510f3752e
Content-Type: text/plain; charset=UTF-8

Thanks Anand. I took a look and will let you know if I do any work worth
merging. Also, I'm unsure of your choice of camlp4. The community is moving
away from that in favor of ppx. You might take a look at ppx_tools
<https://github.com/alainfrisch/ppx_tools>.

On Tue, Mar 3, 2015 at 7:01 PM, Anand Patil <anand.prabhakar.patil@gmail.com
> wrote:

> Hi Ashish,
>
> I knew this day would come. :) I'm still making progress, but haven't
> had too much time available for hobby projects lately, so it's slow.
> The current state is at https://github.com/apatil/auto-aws .
>
> It would be fun to work together with someone on this, either from
> what I have or from scratch.
>
> Anand
>
> On Tue, Mar 3, 2015 at 2:31 PM, Ashish Agarwal <agarwal1975@gmail.com>
> wrote:
> > Hi Anand. Any progress on this? Is your repo public? Thanks.
> >
> >
> > On Tue, Jan 6, 2015 at 1:32 PM, Anand Patil
> > <anand.prabhakar.patil@gmail.com> wrote:
> >>
> >> Hi Anil and Thomas, thanks for the pointers. I'll keep plugging away
> >> at this and will let you know how I get on.
> >>
> >> Anand
> >>
> >> On Tue, Jan 6, 2015 at 7:43 AM, Anil Madhavapeddy <anil@recoil.org>
> wrote:
> >> > On 5 Jan 2015, at 05:56, Anand Patil <anand.prabhakar.patil@gmail.com
> >
> >> > wrote:
> >> >
> >> >> In order to learn OCaml and thence Mirage, I've been working a little
> >> >> bit on an automatically generated, complete AWS client along the
> lines
> >> >> of https://github.com/stripe/aws-go using camlp4. I've got the types
> >> >> generated, and now need to generate to/from XML functions for each
> >> >> record type.
> >> >>
> >> >
> >> > Incidentally, this would be awesomely useful to have.  You might also
> >> > want to look at Jyotsna Prakash's (manually written) bindings for
> >> > helper functions that might come in useful:
> >> >
> >> > https://github.com/moonlightdrive/ocaml-ec2
> >> >
> >> > Feel free to ask here if you run into any blockers.
> >> >
> >> > -anil
> >> >
> >>
> >> _______________________________________________
> >> MirageOS-devel mailing list
> >> MirageOS-devel@lists.xenproject.org
> >> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
> >
> >
>

--001a11c3476abb67860510f3752e
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Thanks Anand. I took a look and will let you know if I do =
any work worth merging. Also, I&#39;m unsure of your choice of camlp4. The =
community is moving away from that in favor of ppx. You might take a look a=
t <a href=3D"https://github.com/alainfrisch/ppx_tools">ppx_tools</a>.</div>=
<div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Tue, Mar 3, 20=
15 at 7:01 PM, Anand Patil <span dir=3D"ltr">&lt;<a href=3D"mailto:anand.pr=
abhakar.patil@gmail.com" target=3D"_blank">anand.prabhakar.patil@gmail.com<=
/a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:=
0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ashish,<br>
<br>
I knew this day would come. :) I&#39;m still making progress, but haven&#39=
;t<br>
had too much time available for hobby projects lately, so it&#39;s slow.<br=
>
The current state is at <a href=3D"https://github.com/apatil/auto-aws" targ=
et=3D"_blank">https://github.com/apatil/auto-aws</a> .<br>
<br>
It would be fun to work together with someone on this, either from<br>
what I have or from scratch.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
Anand<br>
</font></span><div class=3D"HOEnZb"><div class=3D"h5"><br>
On Tue, Mar 3, 2015 at 2:31 PM, Ashish Agarwal &lt;<a href=3D"mailto:agarwa=
l1975@gmail.com">agarwal1975@gmail.com</a>&gt; wrote:<br>
&gt; Hi Anand. Any progress on this? Is your repo public? Thanks.<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jan 6, 2015 at 1:32 PM, Anand Patil<br>
&gt; &lt;<a href=3D"mailto:anand.prabhakar.patil@gmail.com">anand.prabhakar=
.patil@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi Anil and Thomas, thanks for the pointers. I&#39;ll keep pluggin=
g away<br>
&gt;&gt; at this and will let you know how I get on.<br>
&gt;&gt;<br>
&gt;&gt; Anand<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Jan 6, 2015 at 7:43 AM, Anil Madhavapeddy &lt;<a href=3D"m=
ailto:anil@recoil.org">anil@recoil.org</a>&gt; wrote:<br>
&gt;&gt; &gt; On 5 Jan 2015, at 05:56, Anand Patil &lt;<a href=3D"mailto:an=
and.prabhakar.patil@gmail.com">anand.prabhakar.patil@gmail.com</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; In order to learn OCaml and thence Mirage, I&#39;ve been =
working a little<br>
&gt;&gt; &gt;&gt; bit on an automatically generated, complete AWS client al=
ong the lines<br>
&gt;&gt; &gt;&gt; of <a href=3D"https://github.com/stripe/aws-go" target=3D=
"_blank">https://github.com/stripe/aws-go</a> using camlp4. I&#39;ve got th=
e types<br>
&gt;&gt; &gt;&gt; generated, and now need to generate to/from XML functions=
 for each<br>
&gt;&gt; &gt;&gt; record type.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Incidentally, this would be awesomely useful to have.=C2=A0 Y=
ou might also<br>
&gt;&gt; &gt; want to look at Jyotsna Prakash&#39;s (manually written) bind=
ings for<br>
&gt;&gt; &gt; helper functions that might come in useful:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; <a href=3D"https://github.com/moonlightdrive/ocaml-ec2" targe=
t=3D"_blank">https://github.com/moonlightdrive/ocaml-ec2</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Feel free to ask here if you run into any blockers.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; -anil<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; MirageOS-devel mailing list<br>
&gt;&gt; <a href=3D"mailto:MirageOS-devel@lists.xenproject.org">MirageOS-de=
vel@lists.xenproject.org</a><br>
&gt;&gt; <a href=3D"http://lists.xenproject.org/cgi-bin/mailman/listinfo/mi=
rageos-devel" target=3D"_blank">http://lists.xenproject.org/cgi-bin/mailman=
/listinfo/mirageos-devel</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>

--001a11c3476abb67860510f3752e--


--===============8044040900257368301==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============8044040900257368301==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 10 18:38:52 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 10 Mar 2015 18:38:52 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVP3G-00085a-Ij; Tue, 10 Mar 2015 18:38:46 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <agarwal1975@gmail.com>) id 1YVP3E-00085T-LN
	for MirageOS-devel@lists.xenproject.org; Tue, 10 Mar 2015 18:38:44 +0000
Received: from [85.158.137.68] by server-6.bemta-3.messagelabs.com id
	9B/E4-03164-33A3FF45; Tue, 10 Mar 2015 18:38:43 +0000
X-Env-Sender: agarwal1975@gmail.com
X-Msg-Ref: server-10.tower-31.messagelabs.com!1426012722!10758044!1
X-Originating-IP: [74.125.82.173]
X-SpamReason: No, hits=1.2 required=7.0 tests=HTML_40_50,HTML_MESSAGE,
	MAILTO_TO_SPAM_ADDR,RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 14741 invoked from network); 10 Mar 2015 18:38:42 -0000
Received: from mail-we0-f173.google.com (HELO mail-we0-f173.google.com)
	(74.125.82.173)
	by server-10.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	10 Mar 2015 18:38:42 -0000
Received: by wevk48 with SMTP id k48so3845699wev.7
	for <MirageOS-devel@lists.xenproject.org>;
	Tue, 10 Mar 2015 11:38:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type;
	bh=PvVcaajLZzZRdcoUJt0exxSbfuIREErHqmRoTD7lums=;
	b=pR20fLqKWnGQtwfbFDziQHmVXW+AQ2SuVWAAYhj31kcKrjG1rFdzqL6Ar86aTpcmpq
	Cw2gJdkzJ9hwD2Z+THTEAIkIaXQTxZTI89lYNLO+gkuWDtfYxEutGS24M5ieswT3rnts
	/0kFLWS+fY7iFKgepHlcI/3IZiM5b3Q7g7yMERb2z0aSc0QX650r5xyyDT0WtkQr+V8d
	k1hsBbmtWiCoo6r5TtQfjfn69P3NKiucgpd2StucgpG8gFB7WPOhTCYdMP0El3ZPQVVF
	MGCSjXJRurcv2yr94kpXf71WXcXRoV1lCRTTGXkm72NzOSSRfgN2c0moQLMRkt6zf2y4
	kXmw==
X-Received: by 10.181.27.201 with SMTP id ji9mr84748053wid.20.1426012721864;
	Tue, 10 Mar 2015 11:38:41 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.27.15.72 with HTTP; Tue, 10 Mar 2015 11:38:21 -0700 (PDT)
In-Reply-To: <CAFzWkZGPuMvu-zRY-YfMo2y9+Lcw5XCPGqVRD0fymeCuRa5sLQ@mail.gmail.com>
References: <CAFzWkZGq54ogqtweyNNnVSR89K41pEuGkUPF+i3Y2brneHN9YQ@mail.gmail.com>
	<073A0B5C-531B-4B7B-ABA3-1D8A0EC4C4BA@recoil.org>
	<CAFzWkZFQrQOZQSO_0UZoxrsr2zFPE+6XFq5Vv6wGr7iJ-ARkWA@mail.gmail.com>
	<CAMu2m2KTSbcVn=DM3mMNYNNcYDJE-=P8gCYbKieAOfi2ifgiJw@mail.gmail.com>
	<CAFzWkZGPuMvu-zRY-YfMo2y9+Lcw5XCPGqVRD0fymeCuRa5sLQ@mail.gmail.com>
From: Ashish Agarwal <agarwal1975@gmail.com>
Date: Tue, 10 Mar 2015 14:38:21 -0400
Message-ID: <CAMu2m2+0S0cpMf+yK9_7s1oCWPXuS7tk7hbU2MYpZ4nOqGT=2A@mail.gmail.com>
To: Anand Patil <anand.prabhakar.patil@gmail.com>
Cc: Thomas Gazagnaire <thomas@gazagnaire.org>,
	"mirageos-devel@lists.xenproject.org"
	<MirageOS-devel@lists.xenproject.org>, Anil Madhavapeddy <anil@recoil.org>
Subject: Re: [MirageOS-devel] COW XML questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============8044040900257368301=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============8044040900257368301==
Content-Type: multipart/alternative; boundary=001a11c3476abb67860510f3752e

--001a11c3476abb67860510f3752e
Content-Type: text/plain; charset=UTF-8

Thanks Anand. I took a look and will let you know if I do any work worth
merging. Also, I'm unsure of your choice of camlp4. The community is moving
away from that in favor of ppx. You might take a look at ppx_tools
<https://github.com/alainfrisch/ppx_tools>.

On Tue, Mar 3, 2015 at 7:01 PM, Anand Patil <anand.prabhakar.patil@gmail.com
> wrote:

> Hi Ashish,
>
> I knew this day would come. :) I'm still making progress, but haven't
> had too much time available for hobby projects lately, so it's slow.
> The current state is at https://github.com/apatil/auto-aws .
>
> It would be fun to work together with someone on this, either from
> what I have or from scratch.
>
> Anand
>
> On Tue, Mar 3, 2015 at 2:31 PM, Ashish Agarwal <agarwal1975@gmail.com>
> wrote:
> > Hi Anand. Any progress on this? Is your repo public? Thanks.
> >
> >
> > On Tue, Jan 6, 2015 at 1:32 PM, Anand Patil
> > <anand.prabhakar.patil@gmail.com> wrote:
> >>
> >> Hi Anil and Thomas, thanks for the pointers. I'll keep plugging away
> >> at this and will let you know how I get on.
> >>
> >> Anand
> >>
> >> On Tue, Jan 6, 2015 at 7:43 AM, Anil Madhavapeddy <anil@recoil.org>
> wrote:
> >> > On 5 Jan 2015, at 05:56, Anand Patil <anand.prabhakar.patil@gmail.com
> >
> >> > wrote:
> >> >
> >> >> In order to learn OCaml and thence Mirage, I've been working a little
> >> >> bit on an automatically generated, complete AWS client along the
> lines
> >> >> of https://github.com/stripe/aws-go using camlp4. I've got the types
> >> >> generated, and now need to generate to/from XML functions for each
> >> >> record type.
> >> >>
> >> >
> >> > Incidentally, this would be awesomely useful to have.  You might also
> >> > want to look at Jyotsna Prakash's (manually written) bindings for
> >> > helper functions that might come in useful:
> >> >
> >> > https://github.com/moonlightdrive/ocaml-ec2
> >> >
> >> > Feel free to ask here if you run into any blockers.
> >> >
> >> > -anil
> >> >
> >>
> >> _______________________________________________
> >> MirageOS-devel mailing list
> >> MirageOS-devel@lists.xenproject.org
> >> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
> >
> >
>

--001a11c3476abb67860510f3752e
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Thanks Anand. I took a look and will let you know if I do =
any work worth merging. Also, I&#39;m unsure of your choice of camlp4. The =
community is moving away from that in favor of ppx. You might take a look a=
t <a href=3D"https://github.com/alainfrisch/ppx_tools">ppx_tools</a>.</div>=
<div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Tue, Mar 3, 20=
15 at 7:01 PM, Anand Patil <span dir=3D"ltr">&lt;<a href=3D"mailto:anand.pr=
abhakar.patil@gmail.com" target=3D"_blank">anand.prabhakar.patil@gmail.com<=
/a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:=
0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ashish,<br>
<br>
I knew this day would come. :) I&#39;m still making progress, but haven&#39=
;t<br>
had too much time available for hobby projects lately, so it&#39;s slow.<br=
>
The current state is at <a href=3D"https://github.com/apatil/auto-aws" targ=
et=3D"_blank">https://github.com/apatil/auto-aws</a> .<br>
<br>
It would be fun to work together with someone on this, either from<br>
what I have or from scratch.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
Anand<br>
</font></span><div class=3D"HOEnZb"><div class=3D"h5"><br>
On Tue, Mar 3, 2015 at 2:31 PM, Ashish Agarwal &lt;<a href=3D"mailto:agarwa=
l1975@gmail.com">agarwal1975@gmail.com</a>&gt; wrote:<br>
&gt; Hi Anand. Any progress on this? Is your repo public? Thanks.<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jan 6, 2015 at 1:32 PM, Anand Patil<br>
&gt; &lt;<a href=3D"mailto:anand.prabhakar.patil@gmail.com">anand.prabhakar=
.patil@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi Anil and Thomas, thanks for the pointers. I&#39;ll keep pluggin=
g away<br>
&gt;&gt; at this and will let you know how I get on.<br>
&gt;&gt;<br>
&gt;&gt; Anand<br>
&gt;&gt;<br>
&gt;&gt; On Tue, Jan 6, 2015 at 7:43 AM, Anil Madhavapeddy &lt;<a href=3D"m=
ailto:anil@recoil.org">anil@recoil.org</a>&gt; wrote:<br>
&gt;&gt; &gt; On 5 Jan 2015, at 05:56, Anand Patil &lt;<a href=3D"mailto:an=
and.prabhakar.patil@gmail.com">anand.prabhakar.patil@gmail.com</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt; In order to learn OCaml and thence Mirage, I&#39;ve been =
working a little<br>
&gt;&gt; &gt;&gt; bit on an automatically generated, complete AWS client al=
ong the lines<br>
&gt;&gt; &gt;&gt; of <a href=3D"https://github.com/stripe/aws-go" target=3D=
"_blank">https://github.com/stripe/aws-go</a> using camlp4. I&#39;ve got th=
e types<br>
&gt;&gt; &gt;&gt; generated, and now need to generate to/from XML functions=
 for each<br>
&gt;&gt; &gt;&gt; record type.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Incidentally, this would be awesomely useful to have.=C2=A0 Y=
ou might also<br>
&gt;&gt; &gt; want to look at Jyotsna Prakash&#39;s (manually written) bind=
ings for<br>
&gt;&gt; &gt; helper functions that might come in useful:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; <a href=3D"https://github.com/moonlightdrive/ocaml-ec2" targe=
t=3D"_blank">https://github.com/moonlightdrive/ocaml-ec2</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Feel free to ask here if you run into any blockers.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; -anil<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; MirageOS-devel mailing list<br>
&gt;&gt; <a href=3D"mailto:MirageOS-devel@lists.xenproject.org">MirageOS-de=
vel@lists.xenproject.org</a><br>
&gt;&gt; <a href=3D"http://lists.xenproject.org/cgi-bin/mailman/listinfo/mi=
rageos-devel" target=3D"_blank">http://lists.xenproject.org/cgi-bin/mailman=
/listinfo/mirageos-devel</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>

--001a11c3476abb67860510f3752e--


--===============8044040900257368301==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============8044040900257368301==--


From mirageos-devel-bounces@lists.xenproject.org Wed Mar 11 23:33:21 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 11 Mar 2015 23:33:21 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVq7k-0000hr-Fd; Wed, 11 Mar 2015 23:33:12 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <daniel.buenzli@erratique.ch>) id 1YVq7j-0000hN-65
	for mirageos-devel@lists.xenproject.org; Wed, 11 Mar 2015 23:33:11 +0000
Received: from [193.109.254.147] by server-14.bemta-14.messagelabs.com id
	BD/8A-02753-6B0D0055; Wed, 11 Mar 2015 23:33:10 +0000
X-Env-Sender: daniel.buenzli@erratique.ch
X-Msg-Ref: server-13.tower-27.messagelabs.com!1426116788!12115739!1
X-Originating-IP: [74.55.86.74]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNzQuNTUuODYuNzQgPT4gMzA4NTYz\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 31925 invoked from network); 11 Mar 2015 23:33:09 -0000
Received: from mail6.webfaction.com (HELO smtp.webfaction.com) (74.55.86.74)
	by server-13.tower-27.messagelabs.com with SMTP;
	11 Mar 2015 23:33:09 -0000
Received: from [172.20.10.2]
	(75.234.197.178.dynamic.wless.lssmb00p-cgnat.res.cust.swisscom.ch
	[178.197.234.75])
	by smtp.webfaction.com (Postfix) with ESMTP id DF43F2079898
	for <mirageos-devel@lists.xenproject.org>;
	Wed, 11 Mar 2015 23:33:07 +0000 (UTC)
Date: Thu, 12 Mar 2015 00:33:05 +0100
From: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Message-ID: <F732CE5842EA44CB841148A0F7BC34E0@erratique.ch>
In-Reply-To: <ADA8916453824BEE99644202AC785498@erratique.ch>
References: <CAG4opy9mf+NEhYAs-tj0JYNocVS0dGU9oxqam+hqFK5ZJq7VLg@mail.gmail.com>
	<20150202.014549.1883720051237442569.Christophe.Troestler@umons.ac.be>
	<CAG4opy9X-rg5qY+Yu0c-OJ8NumJSAPMVLr01xoHt99y9_i==8w@mail.gmail.com>
	<20150204.001614.26478837567139584.Christophe.Troestler@umons.ac.be>
	<CAG4opy8uTBQS4cM75dYEm=Jsa3078wMPNW+BQEHNsu7Mb4OJ8Q@mail.gmail.com>
	<87oap97rvw.fsf@study.localdomain>
	<CAG4opy9e5iq7rMPrSDzqiPbJZeJe8Wctg0trc1CbFZJG8ARNqw@mail.gmail.com>
	<87lhk4csew.fsf@study.localdomain>
	<2A0347CF598A4081B45318903375F7A9@erratique.ch>
	<A63173B0742143F7811BC5457D3E3DD3@erratique.ch>
	<ADA8916453824BEE99644202AC785498@erratique.ch>
X-Mailer: sparrow 1.6.4 (build 1178)
MIME-Version: 1.0
Content-Disposition: inline
Subject: Re: [MirageOS-devel] Error handling in Mirage - request for
 comments!
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Just to counter the claim that if each function returns an error code, programmers will simply ignore them I would like to point to this program that I wrote with rresult and bos (http://erratique.ch/software/bos the OS interaction library that was hiding in assemblage):

https://gist.github.com/dbuenzli/b5f7dd42ecd7f3f0765a

This program folds over a file hierarchy to find modifications that may have occurred between two runs of the program. It will correctly report any kind of error that may happen (e.g. inexistant cwd, timestamp database file read/write, permission errors, dangling symlinks, etc.) and yet the final programmer hadn't anything to do except insert error logging statements at the right place. 

While its error messages could certainly be further improved this already brings a very usable program for the final user (no exceptions thrown in the face, no silencing of errors) *and* remains non-painful to write for the programmer. Everybody wins. 

It relies on OS interaction functions returning result types and an error-wise carefully designed file hierarchy folding combinator with appropriate defaults [1]. Using Sys (i.e. exceptions) to write the same program with the same level of attention to error reporting would have been much more painful and hence tempting the lazy programmer (who isn't ?) to eschew the idea of writing a usable program.

Let's make MirageOS an *exception*ally usable system from the ground up. 

Best,

Daniel

[1]  http://erratique.ch/software/bos/doc/Bos.OS.Path.html#VALfold



_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 11 23:33:21 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 11 Mar 2015 23:33:21 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVq7k-0000hr-Fd; Wed, 11 Mar 2015 23:33:12 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <daniel.buenzli@erratique.ch>) id 1YVq7j-0000hN-65
	for mirageos-devel@lists.xenproject.org; Wed, 11 Mar 2015 23:33:11 +0000
Received: from [193.109.254.147] by server-14.bemta-14.messagelabs.com id
	BD/8A-02753-6B0D0055; Wed, 11 Mar 2015 23:33:10 +0000
X-Env-Sender: daniel.buenzli@erratique.ch
X-Msg-Ref: server-13.tower-27.messagelabs.com!1426116788!12115739!1
X-Originating-IP: [74.55.86.74]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNzQuNTUuODYuNzQgPT4gMzA4NTYz\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 31925 invoked from network); 11 Mar 2015 23:33:09 -0000
Received: from mail6.webfaction.com (HELO smtp.webfaction.com) (74.55.86.74)
	by server-13.tower-27.messagelabs.com with SMTP;
	11 Mar 2015 23:33:09 -0000
Received: from [172.20.10.2]
	(75.234.197.178.dynamic.wless.lssmb00p-cgnat.res.cust.swisscom.ch
	[178.197.234.75])
	by smtp.webfaction.com (Postfix) with ESMTP id DF43F2079898
	for <mirageos-devel@lists.xenproject.org>;
	Wed, 11 Mar 2015 23:33:07 +0000 (UTC)
Date: Thu, 12 Mar 2015 00:33:05 +0100
From: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Message-ID: <F732CE5842EA44CB841148A0F7BC34E0@erratique.ch>
In-Reply-To: <ADA8916453824BEE99644202AC785498@erratique.ch>
References: <CAG4opy9mf+NEhYAs-tj0JYNocVS0dGU9oxqam+hqFK5ZJq7VLg@mail.gmail.com>
	<20150202.014549.1883720051237442569.Christophe.Troestler@umons.ac.be>
	<CAG4opy9X-rg5qY+Yu0c-OJ8NumJSAPMVLr01xoHt99y9_i==8w@mail.gmail.com>
	<20150204.001614.26478837567139584.Christophe.Troestler@umons.ac.be>
	<CAG4opy8uTBQS4cM75dYEm=Jsa3078wMPNW+BQEHNsu7Mb4OJ8Q@mail.gmail.com>
	<87oap97rvw.fsf@study.localdomain>
	<CAG4opy9e5iq7rMPrSDzqiPbJZeJe8Wctg0trc1CbFZJG8ARNqw@mail.gmail.com>
	<87lhk4csew.fsf@study.localdomain>
	<2A0347CF598A4081B45318903375F7A9@erratique.ch>
	<A63173B0742143F7811BC5457D3E3DD3@erratique.ch>
	<ADA8916453824BEE99644202AC785498@erratique.ch>
X-Mailer: sparrow 1.6.4 (build 1178)
MIME-Version: 1.0
Content-Disposition: inline
Subject: Re: [MirageOS-devel] Error handling in Mirage - request for
 comments!
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Just to counter the claim that if each function returns an error code, programmers will simply ignore them I would like to point to this program that I wrote with rresult and bos (http://erratique.ch/software/bos the OS interaction library that was hiding in assemblage):

https://gist.github.com/dbuenzli/b5f7dd42ecd7f3f0765a

This program folds over a file hierarchy to find modifications that may have occurred between two runs of the program. It will correctly report any kind of error that may happen (e.g. inexistant cwd, timestamp database file read/write, permission errors, dangling symlinks, etc.) and yet the final programmer hadn't anything to do except insert error logging statements at the right place. 

While its error messages could certainly be further improved this already brings a very usable program for the final user (no exceptions thrown in the face, no silencing of errors) *and* remains non-painful to write for the programmer. Everybody wins. 

It relies on OS interaction functions returning result types and an error-wise carefully designed file hierarchy folding combinator with appropriate defaults [1]. Using Sys (i.e. exceptions) to write the same program with the same level of attention to error reporting would have been much more painful and hence tempting the lazy programmer (who isn't ?) to eschew the idea of writing a usable program.

Let's make MirageOS an *exception*ally usable system from the ground up. 

Best,

Daniel

[1]  http://erratique.ch/software/bos/doc/Bos.OS.Path.html#VALfold



_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 12 09:35:05 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 12 Mar 2015 09:35:05 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVzW6-0000ej-73; Thu, 12 Mar 2015 09:34:58 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <scott.dj@gmail.com>) id 1YVzW5-0000ee-4R
	for mirageos-devel@lists.xenproject.org; Thu, 12 Mar 2015 09:34:57 +0000
Received: from [193.109.254.147] by server-5.bemta-14.messagelabs.com id
	FB/7C-30124-0CD51055; Thu, 12 Mar 2015 09:34:56 +0000
X-Env-Sender: scott.dj@gmail.com
X-Msg-Ref: server-10.tower-27.messagelabs.com!1426152893!12221902!1
X-Originating-IP: [209.85.192.171]
X-SpamReason: No, hits=0.4 required=7.0 tests=HTML_30_40,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 28554 invoked from network); 12 Mar 2015 09:34:54 -0000
Received: from mail-pd0-f171.google.com (HELO mail-pd0-f171.google.com)
	(209.85.192.171)
	by server-10.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	12 Mar 2015 09:34:54 -0000
Received: by pdev10 with SMTP id v10so18817649pde.0
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 12 Mar 2015 02:34:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=G64GKaO2fViBHKcBflOpkCtYGZxQFBUTti/bG03fY1I=;
	b=J8RCKlEU9St5C0WathkapJnqPVA3lkpqwTeSHpkFCGJEFO8YNCkw+WXl8aIZ/SkQ/J
	WmsiAURbDoOmESv9P2x9vbt8+i5TtThBGAsb3pzFnLqiv5uW+4r+PwaNzYSIPjyuRoze
	p7Ta1NdT2+7vX4UwcLJET7zRAzfinBq0BdN08IZOUO4pJwM9+68hsbvw+hbxnD5NXHVi
	iQXFZ7rKGPJ9dkB3bf50ZWES0pQK7A7P3DQnB7gHZjGjalqKJ8JANMeDAwEVsNpINrvN
	bXxCXo6Lf5TFkxn7EAPMIJD7qZuEqDQRxf1oXh4M3K57gDZ4XZrF39/0Gnu/ndrBWe2N
	DWVQ==
MIME-Version: 1.0
X-Received: by 10.66.221.8 with SMTP id qa8mr67410177pac.62.1426152891969;
	Thu, 12 Mar 2015 02:34:51 -0700 (PDT)
Received: by 10.70.102.39 with HTTP; Thu, 12 Mar 2015 02:34:51 -0700 (PDT)
Date: Thu, 12 Mar 2015 09:34:51 +0000
Message-ID: <CAG_esB35ta00pLfgh79FA8CHVBZoVLRuS7KXoc9avXyAA7kZSw@mail.gmail.com>
From: David Scott <scott.dj@gmail.com>
To: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: [MirageOS-devel] code coverage testing with Bisect
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============7276012608643339844=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============7276012608643339844==
Content-Type: multipart/alternative; boundary=047d7b5d959d85759a051114189e

--047d7b5d959d85759a051114189e
Content-Type: text/plain; charset=UTF-8

Hi,

I've been having a lot of fun with bisect[1] recently-- I've been using it
to see which parts of the mirage-block-volume[2] and shared-block-ring[3]
libraries are completely untouched by their unit tests. I found the
following game to be quite addictive:

1. "make coverage", and load result in web-browser
2. spot a big chunk of obvious red (danger, danger, danger)
3. (thinking carefully about what could go wrong) devise an interesting
test to stress the red bits (obviously you could cover it with a 'noddy'
test but there is probably no point)
4. "make coverage", reload in browser and see the red go green!

I've hooked it up with coveralls.io (admittedly in a bit of a hacky way[4])
such that the master branch is firmly in "development" mode, linking
against bisect, and without checking in the oasis autogen rubbish. The
.travis.yml runs both the travisci-skeleton script and then invokes
ocveralls[5] to upload the results.

I've added a separate "make release" step which removes bisect and checks
in the autogen (presumably into a release branch). Perhaps eventually this
could make a github pull request (with the "hub" tool?) and make an opam
package?

I think the game is made even more addictive when the coveralls badge
changes colour, see:

https://coveralls.io/r/mirage/mirage-block-volume?branch=master

Here's an example bisect report (the code is a work-in-progress):

http://dave.recoil.org/tmp/report/file0000.html

If you haven't given bisect a go -- I recommend playing with it.

Also, if you can think of a nicer way to integrate this -- I admit using
'sed' on the _oasis file is a bit of a hack -- please let me know!

Cheers,
Dave

[1] http://bisect.x9c.fr
[2] https://github.com/mirage/mirage-block-volume
[3] https://github.com/mirage/shared-block-ring
[4]
https://github.com/mirage/shared-block-ring/commit/67b9f3100be8e4e9732dd79b7c1cc5352a61d478
[5] https://github.com/sagotch/ocveralls

--047d7b5d959d85759a051114189e
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi,</div><div><br></div><div>I&#39;ve been having a l=
ot of fun with bisect[1] recently-- I&#39;ve been using it to see which par=
ts of the mirage-block-volume[2] and shared-block-ring[3] libraries are com=
pletely untouched by their unit tests. I found the following game to be qui=
te addictive:</div><div><br></div><div>1. &quot;make coverage&quot;, and lo=
ad result in web-browser</div><div>2. spot a big chunk of obvious red (dang=
er, danger, danger)</div><div>3. (thinking carefully about what could go wr=
ong) devise an interesting test to stress the red bits (obviously you could=
 cover it with a &#39;noddy&#39; test but there is probably no point)</div>=
<div>4. &quot;make coverage&quot;, reload in browser and see the red go gre=
en!</div><div><br></div><div>I&#39;ve hooked it up with <a href=3D"http://c=
overalls.io">coveralls.io</a> (admittedly in a bit of a hacky way[4]) such =
that the master branch is firmly in &quot;development&quot; mode, linking a=
gainst bisect, and without checking in the oasis autogen rubbish. The .trav=
is.yml runs both the travisci-skeleton script and then invokes ocveralls[5]=
 to upload the results.</div><div><br></div><div>I&#39;ve added a separate =
&quot;make release&quot; step which removes bisect and checks in the autoge=
n (presumably into a release branch). Perhaps eventually this could make a =
github pull request (with the &quot;hub&quot; tool?) and make an opam packa=
ge?</div><div><br></div><div>I think the game is made even more addictive w=
hen the coveralls badge changes colour, see:</div><div><br></div><div><a hr=
ef=3D"https://coveralls.io/r/mirage/mirage-block-volume?branch=3Dmaster">ht=
tps://coveralls.io/r/mirage/mirage-block-volume?branch=3Dmaster</a><br></di=
v><div><br></div><div>Here&#39;s an example bisect report (the code is a wo=
rk-in-progress):</div><div><br></div><div><a href=3D"http://dave.recoil.org=
/tmp/report/file0000.html">http://dave.recoil.org/tmp/report/file0000.html<=
/a><br></div><div><br></div><div>If you haven&#39;t given bisect a go -- I =
recommend playing with it.</div><div><br></div><div>Also, if you can think =
of a nicer way to integrate this -- I admit using &#39;sed&#39; on the _oas=
is file is a bit of a hack -- please let me know!</div><div><br></div><div>=
Cheers,</div><div>Dave</div><div><br></div><div>[1]=C2=A0<a href=3D"http://=
bisect.x9c.fr">http://bisect.x9c.fr</a></div><div>[2]=C2=A0<a href=3D"https=
://github.com/mirage/mirage-block-volume">https://github.com/mirage/mirage-=
block-volume</a></div><div>[3]=C2=A0<a href=3D"https://github.com/mirage/sh=
ared-block-ring">https://github.com/mirage/shared-block-ring</a></div><div>=
[4]=C2=A0<a href=3D"https://github.com/mirage/shared-block-ring/commit/67b9=
f3100be8e4e9732dd79b7c1cc5352a61d478">https://github.com/mirage/shared-bloc=
k-ring/commit/67b9f3100be8e4e9732dd79b7c1cc5352a61d478</a></div><div>[5]=C2=
=A0<a href=3D"https://github.com/sagotch/ocveralls">https://github.com/sago=
tch/ocveralls</a></div>
</div>

--047d7b5d959d85759a051114189e--


--===============7276012608643339844==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============7276012608643339844==--


From mirageos-devel-bounces@lists.xenproject.org Thu Mar 12 09:35:05 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 12 Mar 2015 09:35:05 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVzW6-0000ej-73; Thu, 12 Mar 2015 09:34:58 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <scott.dj@gmail.com>) id 1YVzW5-0000ee-4R
	for mirageos-devel@lists.xenproject.org; Thu, 12 Mar 2015 09:34:57 +0000
Received: from [193.109.254.147] by server-5.bemta-14.messagelabs.com id
	FB/7C-30124-0CD51055; Thu, 12 Mar 2015 09:34:56 +0000
X-Env-Sender: scott.dj@gmail.com
X-Msg-Ref: server-10.tower-27.messagelabs.com!1426152893!12221902!1
X-Originating-IP: [209.85.192.171]
X-SpamReason: No, hits=0.4 required=7.0 tests=HTML_30_40,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 28554 invoked from network); 12 Mar 2015 09:34:54 -0000
Received: from mail-pd0-f171.google.com (HELO mail-pd0-f171.google.com)
	(209.85.192.171)
	by server-10.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	12 Mar 2015 09:34:54 -0000
Received: by pdev10 with SMTP id v10so18817649pde.0
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 12 Mar 2015 02:34:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=G64GKaO2fViBHKcBflOpkCtYGZxQFBUTti/bG03fY1I=;
	b=J8RCKlEU9St5C0WathkapJnqPVA3lkpqwTeSHpkFCGJEFO8YNCkw+WXl8aIZ/SkQ/J
	WmsiAURbDoOmESv9P2x9vbt8+i5TtThBGAsb3pzFnLqiv5uW+4r+PwaNzYSIPjyuRoze
	p7Ta1NdT2+7vX4UwcLJET7zRAzfinBq0BdN08IZOUO4pJwM9+68hsbvw+hbxnD5NXHVi
	iQXFZ7rKGPJ9dkB3bf50ZWES0pQK7A7P3DQnB7gHZjGjalqKJ8JANMeDAwEVsNpINrvN
	bXxCXo6Lf5TFkxn7EAPMIJD7qZuEqDQRxf1oXh4M3K57gDZ4XZrF39/0Gnu/ndrBWe2N
	DWVQ==
MIME-Version: 1.0
X-Received: by 10.66.221.8 with SMTP id qa8mr67410177pac.62.1426152891969;
	Thu, 12 Mar 2015 02:34:51 -0700 (PDT)
Received: by 10.70.102.39 with HTTP; Thu, 12 Mar 2015 02:34:51 -0700 (PDT)
Date: Thu, 12 Mar 2015 09:34:51 +0000
Message-ID: <CAG_esB35ta00pLfgh79FA8CHVBZoVLRuS7KXoc9avXyAA7kZSw@mail.gmail.com>
From: David Scott <scott.dj@gmail.com>
To: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: [MirageOS-devel] code coverage testing with Bisect
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============7276012608643339844=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============7276012608643339844==
Content-Type: multipart/alternative; boundary=047d7b5d959d85759a051114189e

--047d7b5d959d85759a051114189e
Content-Type: text/plain; charset=UTF-8

Hi,

I've been having a lot of fun with bisect[1] recently-- I've been using it
to see which parts of the mirage-block-volume[2] and shared-block-ring[3]
libraries are completely untouched by their unit tests. I found the
following game to be quite addictive:

1. "make coverage", and load result in web-browser
2. spot a big chunk of obvious red (danger, danger, danger)
3. (thinking carefully about what could go wrong) devise an interesting
test to stress the red bits (obviously you could cover it with a 'noddy'
test but there is probably no point)
4. "make coverage", reload in browser and see the red go green!

I've hooked it up with coveralls.io (admittedly in a bit of a hacky way[4])
such that the master branch is firmly in "development" mode, linking
against bisect, and without checking in the oasis autogen rubbish. The
.travis.yml runs both the travisci-skeleton script and then invokes
ocveralls[5] to upload the results.

I've added a separate "make release" step which removes bisect and checks
in the autogen (presumably into a release branch). Perhaps eventually this
could make a github pull request (with the "hub" tool?) and make an opam
package?

I think the game is made even more addictive when the coveralls badge
changes colour, see:

https://coveralls.io/r/mirage/mirage-block-volume?branch=master

Here's an example bisect report (the code is a work-in-progress):

http://dave.recoil.org/tmp/report/file0000.html

If you haven't given bisect a go -- I recommend playing with it.

Also, if you can think of a nicer way to integrate this -- I admit using
'sed' on the _oasis file is a bit of a hack -- please let me know!

Cheers,
Dave

[1] http://bisect.x9c.fr
[2] https://github.com/mirage/mirage-block-volume
[3] https://github.com/mirage/shared-block-ring
[4]
https://github.com/mirage/shared-block-ring/commit/67b9f3100be8e4e9732dd79b7c1cc5352a61d478
[5] https://github.com/sagotch/ocveralls

--047d7b5d959d85759a051114189e
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi,</div><div><br></div><div>I&#39;ve been having a l=
ot of fun with bisect[1] recently-- I&#39;ve been using it to see which par=
ts of the mirage-block-volume[2] and shared-block-ring[3] libraries are com=
pletely untouched by their unit tests. I found the following game to be qui=
te addictive:</div><div><br></div><div>1. &quot;make coverage&quot;, and lo=
ad result in web-browser</div><div>2. spot a big chunk of obvious red (dang=
er, danger, danger)</div><div>3. (thinking carefully about what could go wr=
ong) devise an interesting test to stress the red bits (obviously you could=
 cover it with a &#39;noddy&#39; test but there is probably no point)</div>=
<div>4. &quot;make coverage&quot;, reload in browser and see the red go gre=
en!</div><div><br></div><div>I&#39;ve hooked it up with <a href=3D"http://c=
overalls.io">coveralls.io</a> (admittedly in a bit of a hacky way[4]) such =
that the master branch is firmly in &quot;development&quot; mode, linking a=
gainst bisect, and without checking in the oasis autogen rubbish. The .trav=
is.yml runs both the travisci-skeleton script and then invokes ocveralls[5]=
 to upload the results.</div><div><br></div><div>I&#39;ve added a separate =
&quot;make release&quot; step which removes bisect and checks in the autoge=
n (presumably into a release branch). Perhaps eventually this could make a =
github pull request (with the &quot;hub&quot; tool?) and make an opam packa=
ge?</div><div><br></div><div>I think the game is made even more addictive w=
hen the coveralls badge changes colour, see:</div><div><br></div><div><a hr=
ef=3D"https://coveralls.io/r/mirage/mirage-block-volume?branch=3Dmaster">ht=
tps://coveralls.io/r/mirage/mirage-block-volume?branch=3Dmaster</a><br></di=
v><div><br></div><div>Here&#39;s an example bisect report (the code is a wo=
rk-in-progress):</div><div><br></div><div><a href=3D"http://dave.recoil.org=
/tmp/report/file0000.html">http://dave.recoil.org/tmp/report/file0000.html<=
/a><br></div><div><br></div><div>If you haven&#39;t given bisect a go -- I =
recommend playing with it.</div><div><br></div><div>Also, if you can think =
of a nicer way to integrate this -- I admit using &#39;sed&#39; on the _oas=
is file is a bit of a hack -- please let me know!</div><div><br></div><div>=
Cheers,</div><div>Dave</div><div><br></div><div>[1]=C2=A0<a href=3D"http://=
bisect.x9c.fr">http://bisect.x9c.fr</a></div><div>[2]=C2=A0<a href=3D"https=
://github.com/mirage/mirage-block-volume">https://github.com/mirage/mirage-=
block-volume</a></div><div>[3]=C2=A0<a href=3D"https://github.com/mirage/sh=
ared-block-ring">https://github.com/mirage/shared-block-ring</a></div><div>=
[4]=C2=A0<a href=3D"https://github.com/mirage/shared-block-ring/commit/67b9=
f3100be8e4e9732dd79b7c1cc5352a61d478">https://github.com/mirage/shared-bloc=
k-ring/commit/67b9f3100be8e4e9732dd79b7c1cc5352a61d478</a></div><div>[5]=C2=
=A0<a href=3D"https://github.com/sagotch/ocveralls">https://github.com/sago=
tch/ocveralls</a></div>
</div>

--047d7b5d959d85759a051114189e--


--===============7276012608643339844==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============7276012608643339844==--


From mirageos-devel-bounces@lists.xenproject.org Thu Mar 12 09:47:13 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 12 Mar 2015 09:47:13 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVzhw-0002Ll-A4; Thu, 12 Mar 2015 09:47:12 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YVzhu-0002Lf-Pt
	for mirageos-devel@lists.xenproject.org; Thu, 12 Mar 2015 09:47:11 +0000
Received: from [85.158.137.68] by server-13.bemta-3.messagelabs.com id
	E5/2D-28920-D9061055; Thu, 12 Mar 2015 09:47:09 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-12.tower-31.messagelabs.com!1426153628!11262811!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.7 required=7.0 tests=BODY_RANDOM_LONG, RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 9771 invoked from network); 12 Mar 2015 09:47:08 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-12.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 12 Mar 2015 09:47:08 -0000
Received: from dhcp-172-17-156-164.eduroam.wireless.private.cam.ac.uk
	(global-1-26.nat.csx.cam.ac.uk [131.111.184.26]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 5d35d90d;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Thu, 12 Mar 2015 09:47:07 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <F732CE5842EA44CB841148A0F7BC34E0@erratique.ch>
Date: Thu, 12 Mar 2015 09:47:10 +0000
Message-Id: <E39530AD-BCE8-461E-9B67-7FA6FF2BB99A@recoil.org>
References: <CAG4opy9mf+NEhYAs-tj0JYNocVS0dGU9oxqam+hqFK5ZJq7VLg@mail.gmail.com>
	<20150202.014549.1883720051237442569.Christophe.Troestler@umons.ac.be>
	<CAG4opy9X-rg5qY+Yu0c-OJ8NumJSAPMVLr01xoHt99y9_i==8w@mail.gmail.com>
	<20150204.001614.26478837567139584.Christophe.Troestler@umons.ac.be>
	<CAG4opy8uTBQS4cM75dYEm=Jsa3078wMPNW+BQEHNsu7Mb4OJ8Q@mail.gmail.com>
	<87oap97rvw.fsf@study.localdomain>
	<CAG4opy9e5iq7rMPrSDzqiPbJZeJe8Wctg0trc1CbFZJG8ARNqw@mail.gmail.com>
	<87lhk4csew.fsf@study.localdomain>
	<2A0347CF598A4081B45318903375F7A9@erratique.ch>
	<A63173B0742143F7811BC5457D3E3DD3@erratique.ch>
	<ADA8916453824BEE99644202AC785498@erratique.ch>
	<F732CE5842EA44CB841148A0F7BC34E0@erratique.ch>
To: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Error handling in Mirage - request for
	comments!
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

T24gMTEgTWFyIDIwMTUsIGF0IDIzOjMzLCBEYW5pZWwgQsO8bnpsaSA8ZGFuaWVsLmJ1ZW56bGlA
ZXJyYXRpcXVlLmNoPiB3cm90ZToKPiAKPiBKdXN0IHRvIGNvdW50ZXIgdGhlIGNsYWltIHRoYXQg
aWYgZWFjaCBmdW5jdGlvbiByZXR1cm5zIGFuIGVycm9yIGNvZGUsIHByb2dyYW1tZXJzIHdpbGwg
c2ltcGx5IGlnbm9yZSB0aGVtIEkgd291bGQgbGlrZSB0byBwb2ludCB0byB0aGlzIHByb2dyYW0g
dGhhdCBJIHdyb3RlIHdpdGggcnJlc3VsdCBhbmQgYm9zIChodHRwOi8vZXJyYXRpcXVlLmNoL3Nv
ZnR3YXJlL2JvcyB0aGUgT1MgaW50ZXJhY3Rpb24gbGlicmFyeSB0aGF0IHdhcyBoaWRpbmcgaW4g
YXNzZW1ibGFnZSk6Cj4gCj4gaHR0cHM6Ly9naXN0LmdpdGh1Yi5jb20vZGJ1ZW56bGkvYjVmN2Rk
NDJlY2Q3ZjNmMDc2NWEKPiAKPiBUaGlzIHByb2dyYW0gZm9sZHMgb3ZlciBhIGZpbGUgaGllcmFy
Y2h5IHRvIGZpbmQgbW9kaWZpY2F0aW9ucyB0aGF0IG1heSBoYXZlIG9jY3VycmVkIGJldHdlZW4g
dHdvIHJ1bnMgb2YgdGhlIHByb2dyYW0uIEl0IHdpbGwgY29ycmVjdGx5IHJlcG9ydCBhbnkga2lu
ZCBvZiBlcnJvciB0aGF0IG1heSBoYXBwZW4gKGUuZy4gaW5leGlzdGFudCBjd2QsIHRpbWVzdGFt
cCBkYXRhYmFzZSBmaWxlIHJlYWQvd3JpdGUsIHBlcm1pc3Npb24gZXJyb3JzLCBkYW5nbGluZyBz
eW1saW5rcywgZXRjLikgYW5kIHlldCB0aGUgZmluYWwgcHJvZ3JhbW1lciBoYWRuJ3QgYW55dGhp
bmcgdG8gZG8gZXhjZXB0IGluc2VydCBlcnJvciBsb2dnaW5nIHN0YXRlbWVudHMgYXQgdGhlIHJp
Z2h0IHBsYWNlLiAKPiAKPiBXaGlsZSBpdHMgZXJyb3IgbWVzc2FnZXMgY291bGQgY2VydGFpbmx5
IGJlIGZ1cnRoZXIgaW1wcm92ZWQgdGhpcyBhbHJlYWR5IGJyaW5ncyBhIHZlcnkgdXNhYmxlIHBy
b2dyYW0gZm9yIHRoZSBmaW5hbCB1c2VyIChubyBleGNlcHRpb25zIHRocm93biBpbiB0aGUgZmFj
ZSwgbm8gc2lsZW5jaW5nIG9mIGVycm9ycykgKmFuZCogcmVtYWlucyBub24tcGFpbmZ1bCB0byB3
cml0ZSBmb3IgdGhlIHByb2dyYW1tZXIuIEV2ZXJ5Ym9keSB3aW5zLiAKPiAKPiBJdCByZWxpZXMg
b24gT1MgaW50ZXJhY3Rpb24gZnVuY3Rpb25zIHJldHVybmluZyByZXN1bHQgdHlwZXMgYW5kIGFu
IGVycm9yLXdpc2UgY2FyZWZ1bGx5IGRlc2lnbmVkIGZpbGUgaGllcmFyY2h5IGZvbGRpbmcgY29t
YmluYXRvciB3aXRoIGFwcHJvcHJpYXRlIGRlZmF1bHRzIFsxXS4gVXNpbmcgU3lzIChpLmUuIGV4
Y2VwdGlvbnMpIHRvIHdyaXRlIHRoZSBzYW1lIHByb2dyYW0gd2l0aCB0aGUgc2FtZSBsZXZlbCBv
ZiBhdHRlbnRpb24gdG8gZXJyb3IgcmVwb3J0aW5nIHdvdWxkIGhhdmUgYmVlbiBtdWNoIG1vcmUg
cGFpbmZ1bCBhbmQgaGVuY2UgdGVtcHRpbmcgdGhlIGxhenkgcHJvZ3JhbW1lciAod2hvIGlzbid0
ID8pIHRvIGVzY2hldyB0aGUgaWRlYSBvZiB3cml0aW5nIGEgdXNhYmxlIHByb2dyYW0uCj4gCj4g
TGV0J3MgbWFrZSBNaXJhZ2VPUyBhbiAqZXhjZXB0aW9uKmFsbHkgdXNhYmxlIHN5c3RlbSBmcm9t
IHRoZSBncm91bmQgdXAuIAoKQXQgYSBxdWljayByZWFkIHRocm91Z2ggb2YgdGhlIEFQSXMsIHRo
aXMgaXMgZXh0cmVtZWx5IGNvbXBlbGxpbmcuICBJIHBhcnRpY3VsYXJseSBsaWtlIHRoZSBpZGVh
IG9mIHJlcGxhY2luZyBvdXIgKGV4dHJlbWVseSB2ZXN0aWdpYWwpIE9TIG1vZHVsZSB3aXRoIHRo
ZSBwbGF0Zm9ybS1pbmRlcGVuZGVudCBCb3MuICBJdCBwcm92aWRlcyBzZXZlcmFsIG1pc3Npbmcg
ZWxlbWVudHMgdGhhdCB3ZSBzb3JlbHkgbmVlZCwgc3VjaCBhcyBsb2dnaW5nIGZvcm1hdHRlcnMg
YW5kIGNvbWJpbmF0b3JzLCBpbiBhZGRpdGlvbiB0byB0aGUgbG92ZWx5IGVycm9yIGhhbmRsaW5n
LgoKSSB0aGluayBpdCBjb3VsZCBiZSBkb25lIHdpdGhvdXQgdG9vIG11Y2ggY29kZSBjaHVybiBq
dXN0IGJ5IGludHJvZHVjaW5nIEJvcyBpbnN0ZWFkIG9mIE9TIGluIHNldmVyYWwgdXNlIHBvaW50
cywgYnV0IGl0IHdvdWxkIG5lZWQgYSBzZW1pLXN0YWJsZSBCb3MgcmVsZWFzZSBjdXQgYmVmb3Jl
IHRoYXQuLi4KCi1hbmlsCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fCk1pcmFnZU9TLWRldmVsIG1haWxpbmcgbGlzdApNaXJhZ2VPUy1kZXZlbEBsaXN0cy54
ZW5wcm9qZWN0Lm9yZwpodHRwOi8vbGlzdHMueGVucHJvamVjdC5vcmcvY2dpLWJpbi9tYWlsbWFu
L2xpc3RpbmZvL21pcmFnZW9zLWRldmVsCg==

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 12 09:47:13 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 12 Mar 2015 09:47:13 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YVzhw-0002Ll-A4; Thu, 12 Mar 2015 09:47:12 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YVzhu-0002Lf-Pt
	for mirageos-devel@lists.xenproject.org; Thu, 12 Mar 2015 09:47:11 +0000
Received: from [85.158.137.68] by server-13.bemta-3.messagelabs.com id
	E5/2D-28920-D9061055; Thu, 12 Mar 2015 09:47:09 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-12.tower-31.messagelabs.com!1426153628!11262811!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.7 required=7.0 tests=BODY_RANDOM_LONG, RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 9771 invoked from network); 12 Mar 2015 09:47:08 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-12.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 12 Mar 2015 09:47:08 -0000
Received: from dhcp-172-17-156-164.eduroam.wireless.private.cam.ac.uk
	(global-1-26.nat.csx.cam.ac.uk [131.111.184.26]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 5d35d90d;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Thu, 12 Mar 2015 09:47:07 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <F732CE5842EA44CB841148A0F7BC34E0@erratique.ch>
Date: Thu, 12 Mar 2015 09:47:10 +0000
Message-Id: <E39530AD-BCE8-461E-9B67-7FA6FF2BB99A@recoil.org>
References: <CAG4opy9mf+NEhYAs-tj0JYNocVS0dGU9oxqam+hqFK5ZJq7VLg@mail.gmail.com>
	<20150202.014549.1883720051237442569.Christophe.Troestler@umons.ac.be>
	<CAG4opy9X-rg5qY+Yu0c-OJ8NumJSAPMVLr01xoHt99y9_i==8w@mail.gmail.com>
	<20150204.001614.26478837567139584.Christophe.Troestler@umons.ac.be>
	<CAG4opy8uTBQS4cM75dYEm=Jsa3078wMPNW+BQEHNsu7Mb4OJ8Q@mail.gmail.com>
	<87oap97rvw.fsf@study.localdomain>
	<CAG4opy9e5iq7rMPrSDzqiPbJZeJe8Wctg0trc1CbFZJG8ARNqw@mail.gmail.com>
	<87lhk4csew.fsf@study.localdomain>
	<2A0347CF598A4081B45318903375F7A9@erratique.ch>
	<A63173B0742143F7811BC5457D3E3DD3@erratique.ch>
	<ADA8916453824BEE99644202AC785498@erratique.ch>
	<F732CE5842EA44CB841148A0F7BC34E0@erratique.ch>
To: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Error handling in Mirage - request for
	comments!
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

T24gMTEgTWFyIDIwMTUsIGF0IDIzOjMzLCBEYW5pZWwgQsO8bnpsaSA8ZGFuaWVsLmJ1ZW56bGlA
ZXJyYXRpcXVlLmNoPiB3cm90ZToKPiAKPiBKdXN0IHRvIGNvdW50ZXIgdGhlIGNsYWltIHRoYXQg
aWYgZWFjaCBmdW5jdGlvbiByZXR1cm5zIGFuIGVycm9yIGNvZGUsIHByb2dyYW1tZXJzIHdpbGwg
c2ltcGx5IGlnbm9yZSB0aGVtIEkgd291bGQgbGlrZSB0byBwb2ludCB0byB0aGlzIHByb2dyYW0g
dGhhdCBJIHdyb3RlIHdpdGggcnJlc3VsdCBhbmQgYm9zIChodHRwOi8vZXJyYXRpcXVlLmNoL3Nv
ZnR3YXJlL2JvcyB0aGUgT1MgaW50ZXJhY3Rpb24gbGlicmFyeSB0aGF0IHdhcyBoaWRpbmcgaW4g
YXNzZW1ibGFnZSk6Cj4gCj4gaHR0cHM6Ly9naXN0LmdpdGh1Yi5jb20vZGJ1ZW56bGkvYjVmN2Rk
NDJlY2Q3ZjNmMDc2NWEKPiAKPiBUaGlzIHByb2dyYW0gZm9sZHMgb3ZlciBhIGZpbGUgaGllcmFy
Y2h5IHRvIGZpbmQgbW9kaWZpY2F0aW9ucyB0aGF0IG1heSBoYXZlIG9jY3VycmVkIGJldHdlZW4g
dHdvIHJ1bnMgb2YgdGhlIHByb2dyYW0uIEl0IHdpbGwgY29ycmVjdGx5IHJlcG9ydCBhbnkga2lu
ZCBvZiBlcnJvciB0aGF0IG1heSBoYXBwZW4gKGUuZy4gaW5leGlzdGFudCBjd2QsIHRpbWVzdGFt
cCBkYXRhYmFzZSBmaWxlIHJlYWQvd3JpdGUsIHBlcm1pc3Npb24gZXJyb3JzLCBkYW5nbGluZyBz
eW1saW5rcywgZXRjLikgYW5kIHlldCB0aGUgZmluYWwgcHJvZ3JhbW1lciBoYWRuJ3QgYW55dGhp
bmcgdG8gZG8gZXhjZXB0IGluc2VydCBlcnJvciBsb2dnaW5nIHN0YXRlbWVudHMgYXQgdGhlIHJp
Z2h0IHBsYWNlLiAKPiAKPiBXaGlsZSBpdHMgZXJyb3IgbWVzc2FnZXMgY291bGQgY2VydGFpbmx5
IGJlIGZ1cnRoZXIgaW1wcm92ZWQgdGhpcyBhbHJlYWR5IGJyaW5ncyBhIHZlcnkgdXNhYmxlIHBy
b2dyYW0gZm9yIHRoZSBmaW5hbCB1c2VyIChubyBleGNlcHRpb25zIHRocm93biBpbiB0aGUgZmFj
ZSwgbm8gc2lsZW5jaW5nIG9mIGVycm9ycykgKmFuZCogcmVtYWlucyBub24tcGFpbmZ1bCB0byB3
cml0ZSBmb3IgdGhlIHByb2dyYW1tZXIuIEV2ZXJ5Ym9keSB3aW5zLiAKPiAKPiBJdCByZWxpZXMg
b24gT1MgaW50ZXJhY3Rpb24gZnVuY3Rpb25zIHJldHVybmluZyByZXN1bHQgdHlwZXMgYW5kIGFu
IGVycm9yLXdpc2UgY2FyZWZ1bGx5IGRlc2lnbmVkIGZpbGUgaGllcmFyY2h5IGZvbGRpbmcgY29t
YmluYXRvciB3aXRoIGFwcHJvcHJpYXRlIGRlZmF1bHRzIFsxXS4gVXNpbmcgU3lzIChpLmUuIGV4
Y2VwdGlvbnMpIHRvIHdyaXRlIHRoZSBzYW1lIHByb2dyYW0gd2l0aCB0aGUgc2FtZSBsZXZlbCBv
ZiBhdHRlbnRpb24gdG8gZXJyb3IgcmVwb3J0aW5nIHdvdWxkIGhhdmUgYmVlbiBtdWNoIG1vcmUg
cGFpbmZ1bCBhbmQgaGVuY2UgdGVtcHRpbmcgdGhlIGxhenkgcHJvZ3JhbW1lciAod2hvIGlzbid0
ID8pIHRvIGVzY2hldyB0aGUgaWRlYSBvZiB3cml0aW5nIGEgdXNhYmxlIHByb2dyYW0uCj4gCj4g
TGV0J3MgbWFrZSBNaXJhZ2VPUyBhbiAqZXhjZXB0aW9uKmFsbHkgdXNhYmxlIHN5c3RlbSBmcm9t
IHRoZSBncm91bmQgdXAuIAoKQXQgYSBxdWljayByZWFkIHRocm91Z2ggb2YgdGhlIEFQSXMsIHRo
aXMgaXMgZXh0cmVtZWx5IGNvbXBlbGxpbmcuICBJIHBhcnRpY3VsYXJseSBsaWtlIHRoZSBpZGVh
IG9mIHJlcGxhY2luZyBvdXIgKGV4dHJlbWVseSB2ZXN0aWdpYWwpIE9TIG1vZHVsZSB3aXRoIHRo
ZSBwbGF0Zm9ybS1pbmRlcGVuZGVudCBCb3MuICBJdCBwcm92aWRlcyBzZXZlcmFsIG1pc3Npbmcg
ZWxlbWVudHMgdGhhdCB3ZSBzb3JlbHkgbmVlZCwgc3VjaCBhcyBsb2dnaW5nIGZvcm1hdHRlcnMg
YW5kIGNvbWJpbmF0b3JzLCBpbiBhZGRpdGlvbiB0byB0aGUgbG92ZWx5IGVycm9yIGhhbmRsaW5n
LgoKSSB0aGluayBpdCBjb3VsZCBiZSBkb25lIHdpdGhvdXQgdG9vIG11Y2ggY29kZSBjaHVybiBq
dXN0IGJ5IGludHJvZHVjaW5nIEJvcyBpbnN0ZWFkIG9mIE9TIGluIHNldmVyYWwgdXNlIHBvaW50
cywgYnV0IGl0IHdvdWxkIG5lZWQgYSBzZW1pLXN0YWJsZSBCb3MgcmVsZWFzZSBjdXQgYmVmb3Jl
IHRoYXQuLi4KCi1hbmlsCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fCk1pcmFnZU9TLWRldmVsIG1haWxpbmcgbGlzdApNaXJhZ2VPUy1kZXZlbEBsaXN0cy54
ZW5wcm9qZWN0Lm9yZwpodHRwOi8vbGlzdHMueGVucHJvamVjdC5vcmcvY2dpLWJpbi9tYWlsbWFu
L2xpc3RpbmZvL21pcmFnZW9zLWRldmVsCg==

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 12 12:11:57 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 12 Mar 2015 12:11:57 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YW1xv-0002q8-4j; Thu, 12 Mar 2015 12:11:51 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <daniel.buenzli@erratique.ch>) id 1YW1xt-0002pr-CJ
	for mirageos-devel@lists.xenproject.org; Thu, 12 Mar 2015 12:11:49 +0000
Received: from [85.158.139.211] by server-2.bemta-5.messagelabs.com id
	A2/85-23575-48281055; Thu, 12 Mar 2015 12:11:48 +0000
X-Env-Sender: daniel.buenzli@erratique.ch
X-Msg-Ref: server-12.tower-206.messagelabs.com!1426162307!11278081!1
X-Originating-IP: [74.55.86.74]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNzQuNTUuODYuNzQgPT4gMzA4NTYz\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 2087 invoked from network); 12 Mar 2015 12:11:48 -0000
Received: from mail6.webfaction.com (HELO smtp.webfaction.com) (74.55.86.74)
	by server-12.tower-206.messagelabs.com with SMTP;
	12 Mar 2015 12:11:48 -0000
Received: from [172.20.10.2]
	(75.234.197.178.dynamic.wless.lssmb00p-cgnat.res.cust.swisscom.ch
	[178.197.234.75])
	by smtp.webfaction.com (Postfix) with ESMTP id D9FBD20D3584;
	Thu, 12 Mar 2015 12:11:46 +0000 (UTC)
Date: Thu, 12 Mar 2015 13:11:44 +0100
From: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
To: Anil Madhavapeddy <anil@recoil.org>
Message-ID: <86799A0B521741AF857AE07208F4BAC3@erratique.ch>
In-Reply-To: <E39530AD-BCE8-461E-9B67-7FA6FF2BB99A@recoil.org>
References: <CAG4opy9mf+NEhYAs-tj0JYNocVS0dGU9oxqam+hqFK5ZJq7VLg@mail.gmail.com>
	<20150202.014549.1883720051237442569.Christophe.Troestler@umons.ac.be>
	<CAG4opy9X-rg5qY+Yu0c-OJ8NumJSAPMVLr01xoHt99y9_i==8w@mail.gmail.com>
	<20150204.001614.26478837567139584.Christophe.Troestler@umons.ac.be>
	<CAG4opy8uTBQS4cM75dYEm=Jsa3078wMPNW+BQEHNsu7Mb4OJ8Q@mail.gmail.com>
	<87oap97rvw.fsf@study.localdomain>
	<CAG4opy9e5iq7rMPrSDzqiPbJZeJe8Wctg0trc1CbFZJG8ARNqw@mail.gmail.com>
	<87lhk4csew.fsf@study.localdomain>
	<2A0347CF598A4081B45318903375F7A9@erratique.ch>
	<A63173B0742143F7811BC5457D3E3DD3@erratique.ch>
	<ADA8916453824BEE99644202AC785498@erratique.ch>
	<F732CE5842EA44CB841148A0F7BC34E0@erratique.ch>
	<E39530AD-BCE8-461E-9B67-7FA6FF2BB99A@recoil.org>
X-Mailer: sparrow 1.6.4 (build 1178)
MIME-Version: 1.0
Content-Disposition: inline
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Error handling in Mirage - request for
 comments!
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

TGUgamV1ZGksIDEyIG1hcnMgMjAxNSDDoCAxMDo0NywgQW5pbCBNYWRoYXZhcGVkZHkgYSDDqWNy
aXQgOgo+IEF0IGEgcXVpY2sgcmVhZCB0aHJvdWdoIG9mIHRoZSBBUElzLCB0aGlzIGlzIGV4dHJl
bWVseSBjb21wZWxsaW5nLiBJIHBhcnRpY3VsYXJseSBsaWtlIHRoZSBpZGVhIG9mIHJlcGxhY2lu
ZyBvdXIgKGV4dHJlbWVseSB2ZXN0aWdpYWwpIE9TIG1vZHVsZSB3aXRoIHRoZSBwbGF0Zm9ybS1p
bmRlcGVuZGVudCBCb3MuCgpDb3VsZCB5b3UgcG9pbnQgbWUgdG8gdGhlIGludGVyZmFjZSBvZiB0
aGlzIE9TIG1vZHVsZSA/IEkgd2FzIG9ibGl2aW91cyBvZiBpdHMgZXhpc3RlbmNlLgogIAo+IEkg
dGhpbmsgaXQgY291bGQgYmUgZG9uZSB3aXRob3V0IHRvbyBtdWNoIGNvZGUgY2h1cm4ganVzdCBi
eSBpbnRyb2R1Y2luZyBCb3MgaW5zdGVhZCBvZiBPUyBpbiBzZXZlcmFsIHVzZSBwb2ludHMsIGJ1
dCBpdCB3b3VsZCBuZWVkIGEgc2VtaS1zdGFibGUgQm9zIHJlbGVhc2UgY3V0IGJlZm9yZSB0aGF0
Li4uCgpJdCBpcyBjbGVhcmx5IG5vdCBmaW5pc2hlZCBhbmQgd29uJ3QgZ2V0IG11Y2ggd29yayBv
biBpdCBiZWZvcmUgdGhpcyBzdW1tZXIgKGl0IHdpbGwgZGV2ZWxvcCBmdXJ0aGVyIHRvZ2V0aGVy
IHdpdGggYXNzZW1ibGFnZSkuIFRoZXJlIGFyZSB0aGluZ3MgdGhhdCBuZWVkIGNhcmVmdWwgcmV2
aWV3IGFuZCBmdXJ0aGVyIGRldmVsb3BtZW50IChlLmcuIHBhdGggYW5kIHBhdHRlcm4gaGFuZGxp
bmcpLiBJZiB5b3Ugd2lzaCBzbyBJJ20gd2lsbGluZyB0byBtYWtlIGEgc2lsZW50IHJlbGVhc2Ug
d2l0aCB0aGUgY3VycmVudCBzdGF0ZSwgYnV0IGRvbid0IGJsYW1lIG1lIGlmIHlvdXIgY29kZSBi
cmVha3Mgb24gdGhlIG5leHQgcmVsZWFzZSBldmVuIG9uIHRyaXZpYWxpdGllcyAoaGludHMgYXQg
YnJlYWtpbmcgY2hhbmdlcyBjYW4gYWxyZWFkeSBiZSBmb3VuZCBpbiB0aGUgYnQpLiAgCgpCZXN0
LAoKRGFuaWVsCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
XwpNaXJhZ2VPUy1kZXZlbCBtYWlsaW5nIGxpc3QKTWlyYWdlT1MtZGV2ZWxAbGlzdHMueGVucHJv
amVjdC5vcmcKaHR0cDovL2xpc3RzLnhlbnByb2plY3Qub3JnL2NnaS1iaW4vbWFpbG1hbi9saXN0
aW5mby9taXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 12 12:11:57 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 12 Mar 2015 12:11:57 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YW1xv-0002q8-4j; Thu, 12 Mar 2015 12:11:51 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <daniel.buenzli@erratique.ch>) id 1YW1xt-0002pr-CJ
	for mirageos-devel@lists.xenproject.org; Thu, 12 Mar 2015 12:11:49 +0000
Received: from [85.158.139.211] by server-2.bemta-5.messagelabs.com id
	A2/85-23575-48281055; Thu, 12 Mar 2015 12:11:48 +0000
X-Env-Sender: daniel.buenzli@erratique.ch
X-Msg-Ref: server-12.tower-206.messagelabs.com!1426162307!11278081!1
X-Originating-IP: [74.55.86.74]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNzQuNTUuODYuNzQgPT4gMzA4NTYz\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 2087 invoked from network); 12 Mar 2015 12:11:48 -0000
Received: from mail6.webfaction.com (HELO smtp.webfaction.com) (74.55.86.74)
	by server-12.tower-206.messagelabs.com with SMTP;
	12 Mar 2015 12:11:48 -0000
Received: from [172.20.10.2]
	(75.234.197.178.dynamic.wless.lssmb00p-cgnat.res.cust.swisscom.ch
	[178.197.234.75])
	by smtp.webfaction.com (Postfix) with ESMTP id D9FBD20D3584;
	Thu, 12 Mar 2015 12:11:46 +0000 (UTC)
Date: Thu, 12 Mar 2015 13:11:44 +0100
From: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
To: Anil Madhavapeddy <anil@recoil.org>
Message-ID: <86799A0B521741AF857AE07208F4BAC3@erratique.ch>
In-Reply-To: <E39530AD-BCE8-461E-9B67-7FA6FF2BB99A@recoil.org>
References: <CAG4opy9mf+NEhYAs-tj0JYNocVS0dGU9oxqam+hqFK5ZJq7VLg@mail.gmail.com>
	<20150202.014549.1883720051237442569.Christophe.Troestler@umons.ac.be>
	<CAG4opy9X-rg5qY+Yu0c-OJ8NumJSAPMVLr01xoHt99y9_i==8w@mail.gmail.com>
	<20150204.001614.26478837567139584.Christophe.Troestler@umons.ac.be>
	<CAG4opy8uTBQS4cM75dYEm=Jsa3078wMPNW+BQEHNsu7Mb4OJ8Q@mail.gmail.com>
	<87oap97rvw.fsf@study.localdomain>
	<CAG4opy9e5iq7rMPrSDzqiPbJZeJe8Wctg0trc1CbFZJG8ARNqw@mail.gmail.com>
	<87lhk4csew.fsf@study.localdomain>
	<2A0347CF598A4081B45318903375F7A9@erratique.ch>
	<A63173B0742143F7811BC5457D3E3DD3@erratique.ch>
	<ADA8916453824BEE99644202AC785498@erratique.ch>
	<F732CE5842EA44CB841148A0F7BC34E0@erratique.ch>
	<E39530AD-BCE8-461E-9B67-7FA6FF2BB99A@recoil.org>
X-Mailer: sparrow 1.6.4 (build 1178)
MIME-Version: 1.0
Content-Disposition: inline
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Error handling in Mirage - request for
 comments!
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

TGUgamV1ZGksIDEyIG1hcnMgMjAxNSDDoCAxMDo0NywgQW5pbCBNYWRoYXZhcGVkZHkgYSDDqWNy
aXQgOgo+IEF0IGEgcXVpY2sgcmVhZCB0aHJvdWdoIG9mIHRoZSBBUElzLCB0aGlzIGlzIGV4dHJl
bWVseSBjb21wZWxsaW5nLiBJIHBhcnRpY3VsYXJseSBsaWtlIHRoZSBpZGVhIG9mIHJlcGxhY2lu
ZyBvdXIgKGV4dHJlbWVseSB2ZXN0aWdpYWwpIE9TIG1vZHVsZSB3aXRoIHRoZSBwbGF0Zm9ybS1p
bmRlcGVuZGVudCBCb3MuCgpDb3VsZCB5b3UgcG9pbnQgbWUgdG8gdGhlIGludGVyZmFjZSBvZiB0
aGlzIE9TIG1vZHVsZSA/IEkgd2FzIG9ibGl2aW91cyBvZiBpdHMgZXhpc3RlbmNlLgogIAo+IEkg
dGhpbmsgaXQgY291bGQgYmUgZG9uZSB3aXRob3V0IHRvbyBtdWNoIGNvZGUgY2h1cm4ganVzdCBi
eSBpbnRyb2R1Y2luZyBCb3MgaW5zdGVhZCBvZiBPUyBpbiBzZXZlcmFsIHVzZSBwb2ludHMsIGJ1
dCBpdCB3b3VsZCBuZWVkIGEgc2VtaS1zdGFibGUgQm9zIHJlbGVhc2UgY3V0IGJlZm9yZSB0aGF0
Li4uCgpJdCBpcyBjbGVhcmx5IG5vdCBmaW5pc2hlZCBhbmQgd29uJ3QgZ2V0IG11Y2ggd29yayBv
biBpdCBiZWZvcmUgdGhpcyBzdW1tZXIgKGl0IHdpbGwgZGV2ZWxvcCBmdXJ0aGVyIHRvZ2V0aGVy
IHdpdGggYXNzZW1ibGFnZSkuIFRoZXJlIGFyZSB0aGluZ3MgdGhhdCBuZWVkIGNhcmVmdWwgcmV2
aWV3IGFuZCBmdXJ0aGVyIGRldmVsb3BtZW50IChlLmcuIHBhdGggYW5kIHBhdHRlcm4gaGFuZGxp
bmcpLiBJZiB5b3Ugd2lzaCBzbyBJJ20gd2lsbGluZyB0byBtYWtlIGEgc2lsZW50IHJlbGVhc2Ug
d2l0aCB0aGUgY3VycmVudCBzdGF0ZSwgYnV0IGRvbid0IGJsYW1lIG1lIGlmIHlvdXIgY29kZSBi
cmVha3Mgb24gdGhlIG5leHQgcmVsZWFzZSBldmVuIG9uIHRyaXZpYWxpdGllcyAoaGludHMgYXQg
YnJlYWtpbmcgY2hhbmdlcyBjYW4gYWxyZWFkeSBiZSBmb3VuZCBpbiB0aGUgYnQpLiAgCgpCZXN0
LAoKRGFuaWVsCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
XwpNaXJhZ2VPUy1kZXZlbCBtYWlsaW5nIGxpc3QKTWlyYWdlT1MtZGV2ZWxAbGlzdHMueGVucHJv
amVjdC5vcmcKaHR0cDovL2xpc3RzLnhlbnByb2plY3Qub3JnL2NnaS1iaW4vbWFpbG1hbi9saXN0
aW5mby9taXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 12 12:51:53 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 12 Mar 2015 12:51:53 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YW2ad-000108-Uq; Thu, 12 Mar 2015 12:51:51 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <lukedunstan81@gmail.com>) id 1YW2ac-0000zu-7r
	for mirageos-devel@lists.xenproject.org; Thu, 12 Mar 2015 12:51:50 +0000
Received: from [85.158.139.211] by server-16.bemta-5.messagelabs.com id
	C7/DE-09376-5EB81055; Thu, 12 Mar 2015 12:51:49 +0000
X-Env-Sender: lukedunstan81@gmail.com
X-Msg-Ref: server-16.tower-206.messagelabs.com!1426164707!8414129!1
X-Originating-IP: [209.85.217.182]
X-SpamReason: No, hits=0.9 required=7.0 tests=HTML_40_50,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 32453 invoked from network); 12 Mar 2015 12:51:47 -0000
Received: from mail-lb0-f182.google.com (HELO mail-lb0-f182.google.com)
	(209.85.217.182)
	by server-16.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	12 Mar 2015 12:51:47 -0000
Received: by lbiz11 with SMTP id z11so15693062lbi.3
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 12 Mar 2015 05:51:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=PBXh9u2mVwYcUBioxQO+qWxriMAsHEvMzzj7Zv+SKQA=;
	b=Ig+B3htqzF7ZvNhTAjZ9o40UwRnOz2iJGyCP8rAgfs3NsavP32yduAcPvptKu0xD7k
	H3uj2gqirm71c7HkyR9LljzMkSm8VMHX9N07CwJplP9iBkmm/cL8LvbqnltJaAwkSUUR
	YGyUr47qp74mYfDZH+GhoZMHUJX2qa/y+l7qmw6zUFV8pCNcMSZm8y1FGp6wVgRoWIiw
	YiQHXYgYWWe2JP6Fws2sYItwuzMhJD3ryB/+4nrR+qtpyCf1xQsfm/RjM8G0u6YDiilD
	qcAzxukzlGw/2TCdO/eWpWoknHXlF7qfd0hHeVPmJOg2wg+/+rusWqmUS6a/PkWdwkCC
	P/Jw==
MIME-Version: 1.0
X-Received: by 10.112.29.211 with SMTP id m19mr39378420lbh.100.1426164706686; 
	Thu, 12 Mar 2015 05:51:46 -0700 (PDT)
Received: by 10.112.163.134 with HTTP; Thu, 12 Mar 2015 05:51:46 -0700 (PDT)
In-Reply-To: <CAG_esB35ta00pLfgh79FA8CHVBZoVLRuS7KXoc9avXyAA7kZSw@mail.gmail.com>
References: <CAG_esB35ta00pLfgh79FA8CHVBZoVLRuS7KXoc9avXyAA7kZSw@mail.gmail.com>
Date: Thu, 12 Mar 2015 20:51:46 +0800
Message-ID: <CAEui0wXqM3JoOz0Tr2G-DK5-w7X3AKeGT1oMDg=SoFwWf_Z0EA@mail.gmail.com>
From: Luke Dunstan <lukedunstan81@gmail.com>
To: David Scott <scott.dj@gmail.com>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] code coverage testing with Bisect
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============4828581171787476099=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============4828581171787476099==
Content-Type: multipart/alternative; boundary=001a1133fc36bbbf18051116d8d1

--001a1133fc36bbbf18051116d8d1
Content-Type: text/plain; charset=UTF-8

I had the same idea with sed on _oasis, and coveralls:
https://github.com/mirage/ocaml-dns/issues/33

Then I read this article that Anil tweeted:
http://www.hammerlab.org/2015/03/04/creating-ocaml-code-coverage-reports-for-ketrew/

Based on a modified version of that "myocamlbuild.ml", I got it working
without sed:
https://github.com/infidel/ocaml-mdns/blob/master/myocamlbuild.ml


Luke



On 12 March 2015 at 17:34, David Scott <scott.dj@gmail.com> wrote:

> Hi,
>
> I've been having a lot of fun with bisect[1] recently-- I've been using it
> to see which parts of the mirage-block-volume[2] and shared-block-ring[3]
> libraries are completely untouched by their unit tests. I found the
> following game to be quite addictive:
>
> 1. "make coverage", and load result in web-browser
> 2. spot a big chunk of obvious red (danger, danger, danger)
> 3. (thinking carefully about what could go wrong) devise an interesting
> test to stress the red bits (obviously you could cover it with a 'noddy'
> test but there is probably no point)
> 4. "make coverage", reload in browser and see the red go green!
>
> I've hooked it up with coveralls.io (admittedly in a bit of a hacky
> way[4]) such that the master branch is firmly in "development" mode,
> linking against bisect, and without checking in the oasis autogen rubbish.
> The .travis.yml runs both the travisci-skeleton script and then invokes
> ocveralls[5] to upload the results.
>
> I've added a separate "make release" step which removes bisect and checks
> in the autogen (presumably into a release branch). Perhaps eventually this
> could make a github pull request (with the "hub" tool?) and make an opam
> package?
>
> I think the game is made even more addictive when the coveralls badge
> changes colour, see:
>
> https://coveralls.io/r/mirage/mirage-block-volume?branch=master
>
> Here's an example bisect report (the code is a work-in-progress):
>
> http://dave.recoil.org/tmp/report/file0000.html
>
> If you haven't given bisect a go -- I recommend playing with it.
>
> Also, if you can think of a nicer way to integrate this -- I admit using
> 'sed' on the _oasis file is a bit of a hack -- please let me know!
>
> Cheers,
> Dave
>
> [1] http://bisect.x9c.fr
> [2] https://github.com/mirage/mirage-block-volume
> [3] https://github.com/mirage/shared-block-ring
> [4]
> https://github.com/mirage/shared-block-ring/commit/67b9f3100be8e4e9732dd79b7c1cc5352a61d478
> [5] https://github.com/sagotch/ocveralls
>
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>
>

--001a1133fc36bbbf18051116d8d1
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I had the same idea with sed on _oasis, and coveralls:=C2=
=A0<a href=3D"https://github.com/mirage/ocaml-dns/issues/33">https://github=
.com/mirage/ocaml-dns/issues/33</a><div><br></div><div>Then I read this art=
icle that Anil tweeted:=C2=A0<a href=3D"http://www.hammerlab.org/2015/03/04=
/creating-ocaml-code-coverage-reports-for-ketrew/">http://www.hammerlab.org=
/2015/03/04/creating-ocaml-code-coverage-reports-for-ketrew/</a></div><div>=
<br></div><div>Based on a modified version of that &quot;<a href=3D"http://=
myocamlbuild.ml">myocamlbuild.ml</a>&quot;, I got it working without sed:=
=C2=A0<a href=3D"https://github.com/infidel/ocaml-mdns/blob/master/myocamlb=
uild.ml">https://github.com/infidel/ocaml-mdns/blob/master/myocamlbuild.ml<=
/a></div><div><br></div><div><br></div><div>Luke</div><div><br></div><div><=
br></div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On=
 12 March 2015 at 17:34, David Scott <span dir=3D"ltr">&lt;<a href=3D"mailt=
o:scott.dj@gmail.com" target=3D"_blank">scott.dj@gmail.com</a>&gt;</span> w=
rote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;borde=
r-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>Hi,</div><div=
><br></div><div>I&#39;ve been having a lot of fun with bisect[1] recently--=
 I&#39;ve been using it to see which parts of the mirage-block-volume[2] an=
d shared-block-ring[3] libraries are completely untouched by their unit tes=
ts. I found the following game to be quite addictive:</div><div><br></div><=
div>1. &quot;make coverage&quot;, and load result in web-browser</div><div>=
2. spot a big chunk of obvious red (danger, danger, danger)</div><div>3. (t=
hinking carefully about what could go wrong) devise an interesting test to =
stress the red bits (obviously you could cover it with a &#39;noddy&#39; te=
st but there is probably no point)</div><div>4. &quot;make coverage&quot;, =
reload in browser and see the red go green!</div><div><br></div><div>I&#39;=
ve hooked it up with <a href=3D"http://coveralls.io" target=3D"_blank">cove=
ralls.io</a> (admittedly in a bit of a hacky way[4]) such that the master b=
ranch is firmly in &quot;development&quot; mode, linking against bisect, an=
d without checking in the oasis autogen rubbish. The .travis.yml runs both =
the travisci-skeleton script and then invokes ocveralls[5] to upload the re=
sults.</div><div><br></div><div>I&#39;ve added a separate &quot;make releas=
e&quot; step which removes bisect and checks in the autogen (presumably int=
o a release branch). Perhaps eventually this could make a github pull reque=
st (with the &quot;hub&quot; tool?) and make an opam package?</div><div><br=
></div><div>I think the game is made even more addictive when the coveralls=
 badge changes colour, see:</div><div><br></div><div><a href=3D"https://cov=
eralls.io/r/mirage/mirage-block-volume?branch=3Dmaster" target=3D"_blank">h=
ttps://coveralls.io/r/mirage/mirage-block-volume?branch=3Dmaster</a><br></d=
iv><div><br></div><div>Here&#39;s an example bisect report (the code is a w=
ork-in-progress):</div><div><br></div><div><a href=3D"http://dave.recoil.or=
g/tmp/report/file0000.html" target=3D"_blank">http://dave.recoil.org/tmp/re=
port/file0000.html</a><br></div><div><br></div><div>If you haven&#39;t give=
n bisect a go -- I recommend playing with it.</div><div><br></div><div>Also=
, if you can think of a nicer way to integrate this -- I admit using &#39;s=
ed&#39; on the _oasis file is a bit of a hack -- please let me know!</div><=
div><br></div><div>Cheers,</div><div>Dave</div><div><br></div><div>[1]=C2=
=A0<a href=3D"http://bisect.x9c.fr" target=3D"_blank">http://bisect.x9c.fr<=
/a></div><div>[2]=C2=A0<a href=3D"https://github.com/mirage/mirage-block-vo=
lume" target=3D"_blank">https://github.com/mirage/mirage-block-volume</a></=
div><div>[3]=C2=A0<a href=3D"https://github.com/mirage/shared-block-ring" t=
arget=3D"_blank">https://github.com/mirage/shared-block-ring</a></div><div>=
[4]=C2=A0<a href=3D"https://github.com/mirage/shared-block-ring/commit/67b9=
f3100be8e4e9732dd79b7c1cc5352a61d478" target=3D"_blank">https://github.com/=
mirage/shared-block-ring/commit/67b9f3100be8e4e9732dd79b7c1cc5352a61d478</a=
></div><div>[5]=C2=A0<a href=3D"https://github.com/sagotch/ocveralls" targe=
t=3D"_blank">https://github.com/sagotch/ocveralls</a></div>
</div>
<br>_______________________________________________<br>
MirageOS-devel mailing list<br>
<a href=3D"mailto:MirageOS-devel@lists.xenproject.org">MirageOS-devel@lists=
.xenproject.org</a><br>
<a href=3D"http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-de=
vel" target=3D"_blank">http://lists.xenproject.org/cgi-bin/mailman/listinfo=
/mirageos-devel</a><br>
<br></blockquote></div><br></div>

--001a1133fc36bbbf18051116d8d1--


--===============4828581171787476099==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============4828581171787476099==--


From mirageos-devel-bounces@lists.xenproject.org Thu Mar 12 12:51:53 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 12 Mar 2015 12:51:53 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YW2ad-000108-Uq; Thu, 12 Mar 2015 12:51:51 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <lukedunstan81@gmail.com>) id 1YW2ac-0000zu-7r
	for mirageos-devel@lists.xenproject.org; Thu, 12 Mar 2015 12:51:50 +0000
Received: from [85.158.139.211] by server-16.bemta-5.messagelabs.com id
	C7/DE-09376-5EB81055; Thu, 12 Mar 2015 12:51:49 +0000
X-Env-Sender: lukedunstan81@gmail.com
X-Msg-Ref: server-16.tower-206.messagelabs.com!1426164707!8414129!1
X-Originating-IP: [209.85.217.182]
X-SpamReason: No, hits=0.9 required=7.0 tests=HTML_40_50,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 32453 invoked from network); 12 Mar 2015 12:51:47 -0000
Received: from mail-lb0-f182.google.com (HELO mail-lb0-f182.google.com)
	(209.85.217.182)
	by server-16.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	12 Mar 2015 12:51:47 -0000
Received: by lbiz11 with SMTP id z11so15693062lbi.3
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 12 Mar 2015 05:51:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=PBXh9u2mVwYcUBioxQO+qWxriMAsHEvMzzj7Zv+SKQA=;
	b=Ig+B3htqzF7ZvNhTAjZ9o40UwRnOz2iJGyCP8rAgfs3NsavP32yduAcPvptKu0xD7k
	H3uj2gqirm71c7HkyR9LljzMkSm8VMHX9N07CwJplP9iBkmm/cL8LvbqnltJaAwkSUUR
	YGyUr47qp74mYfDZH+GhoZMHUJX2qa/y+l7qmw6zUFV8pCNcMSZm8y1FGp6wVgRoWIiw
	YiQHXYgYWWe2JP6Fws2sYItwuzMhJD3ryB/+4nrR+qtpyCf1xQsfm/RjM8G0u6YDiilD
	qcAzxukzlGw/2TCdO/eWpWoknHXlF7qfd0hHeVPmJOg2wg+/+rusWqmUS6a/PkWdwkCC
	P/Jw==
MIME-Version: 1.0
X-Received: by 10.112.29.211 with SMTP id m19mr39378420lbh.100.1426164706686; 
	Thu, 12 Mar 2015 05:51:46 -0700 (PDT)
Received: by 10.112.163.134 with HTTP; Thu, 12 Mar 2015 05:51:46 -0700 (PDT)
In-Reply-To: <CAG_esB35ta00pLfgh79FA8CHVBZoVLRuS7KXoc9avXyAA7kZSw@mail.gmail.com>
References: <CAG_esB35ta00pLfgh79FA8CHVBZoVLRuS7KXoc9avXyAA7kZSw@mail.gmail.com>
Date: Thu, 12 Mar 2015 20:51:46 +0800
Message-ID: <CAEui0wXqM3JoOz0Tr2G-DK5-w7X3AKeGT1oMDg=SoFwWf_Z0EA@mail.gmail.com>
From: Luke Dunstan <lukedunstan81@gmail.com>
To: David Scott <scott.dj@gmail.com>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] code coverage testing with Bisect
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============4828581171787476099=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============4828581171787476099==
Content-Type: multipart/alternative; boundary=001a1133fc36bbbf18051116d8d1

--001a1133fc36bbbf18051116d8d1
Content-Type: text/plain; charset=UTF-8

I had the same idea with sed on _oasis, and coveralls:
https://github.com/mirage/ocaml-dns/issues/33

Then I read this article that Anil tweeted:
http://www.hammerlab.org/2015/03/04/creating-ocaml-code-coverage-reports-for-ketrew/

Based on a modified version of that "myocamlbuild.ml", I got it working
without sed:
https://github.com/infidel/ocaml-mdns/blob/master/myocamlbuild.ml


Luke



On 12 March 2015 at 17:34, David Scott <scott.dj@gmail.com> wrote:

> Hi,
>
> I've been having a lot of fun with bisect[1] recently-- I've been using it
> to see which parts of the mirage-block-volume[2] and shared-block-ring[3]
> libraries are completely untouched by their unit tests. I found the
> following game to be quite addictive:
>
> 1. "make coverage", and load result in web-browser
> 2. spot a big chunk of obvious red (danger, danger, danger)
> 3. (thinking carefully about what could go wrong) devise an interesting
> test to stress the red bits (obviously you could cover it with a 'noddy'
> test but there is probably no point)
> 4. "make coverage", reload in browser and see the red go green!
>
> I've hooked it up with coveralls.io (admittedly in a bit of a hacky
> way[4]) such that the master branch is firmly in "development" mode,
> linking against bisect, and without checking in the oasis autogen rubbish.
> The .travis.yml runs both the travisci-skeleton script and then invokes
> ocveralls[5] to upload the results.
>
> I've added a separate "make release" step which removes bisect and checks
> in the autogen (presumably into a release branch). Perhaps eventually this
> could make a github pull request (with the "hub" tool?) and make an opam
> package?
>
> I think the game is made even more addictive when the coveralls badge
> changes colour, see:
>
> https://coveralls.io/r/mirage/mirage-block-volume?branch=master
>
> Here's an example bisect report (the code is a work-in-progress):
>
> http://dave.recoil.org/tmp/report/file0000.html
>
> If you haven't given bisect a go -- I recommend playing with it.
>
> Also, if you can think of a nicer way to integrate this -- I admit using
> 'sed' on the _oasis file is a bit of a hack -- please let me know!
>
> Cheers,
> Dave
>
> [1] http://bisect.x9c.fr
> [2] https://github.com/mirage/mirage-block-volume
> [3] https://github.com/mirage/shared-block-ring
> [4]
> https://github.com/mirage/shared-block-ring/commit/67b9f3100be8e4e9732dd79b7c1cc5352a61d478
> [5] https://github.com/sagotch/ocveralls
>
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>
>

--001a1133fc36bbbf18051116d8d1
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I had the same idea with sed on _oasis, and coveralls:=C2=
=A0<a href=3D"https://github.com/mirage/ocaml-dns/issues/33">https://github=
.com/mirage/ocaml-dns/issues/33</a><div><br></div><div>Then I read this art=
icle that Anil tweeted:=C2=A0<a href=3D"http://www.hammerlab.org/2015/03/04=
/creating-ocaml-code-coverage-reports-for-ketrew/">http://www.hammerlab.org=
/2015/03/04/creating-ocaml-code-coverage-reports-for-ketrew/</a></div><div>=
<br></div><div>Based on a modified version of that &quot;<a href=3D"http://=
myocamlbuild.ml">myocamlbuild.ml</a>&quot;, I got it working without sed:=
=C2=A0<a href=3D"https://github.com/infidel/ocaml-mdns/blob/master/myocamlb=
uild.ml">https://github.com/infidel/ocaml-mdns/blob/master/myocamlbuild.ml<=
/a></div><div><br></div><div><br></div><div>Luke</div><div><br></div><div><=
br></div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On=
 12 March 2015 at 17:34, David Scott <span dir=3D"ltr">&lt;<a href=3D"mailt=
o:scott.dj@gmail.com" target=3D"_blank">scott.dj@gmail.com</a>&gt;</span> w=
rote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;borde=
r-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div>Hi,</div><div=
><br></div><div>I&#39;ve been having a lot of fun with bisect[1] recently--=
 I&#39;ve been using it to see which parts of the mirage-block-volume[2] an=
d shared-block-ring[3] libraries are completely untouched by their unit tes=
ts. I found the following game to be quite addictive:</div><div><br></div><=
div>1. &quot;make coverage&quot;, and load result in web-browser</div><div>=
2. spot a big chunk of obvious red (danger, danger, danger)</div><div>3. (t=
hinking carefully about what could go wrong) devise an interesting test to =
stress the red bits (obviously you could cover it with a &#39;noddy&#39; te=
st but there is probably no point)</div><div>4. &quot;make coverage&quot;, =
reload in browser and see the red go green!</div><div><br></div><div>I&#39;=
ve hooked it up with <a href=3D"http://coveralls.io" target=3D"_blank">cove=
ralls.io</a> (admittedly in a bit of a hacky way[4]) such that the master b=
ranch is firmly in &quot;development&quot; mode, linking against bisect, an=
d without checking in the oasis autogen rubbish. The .travis.yml runs both =
the travisci-skeleton script and then invokes ocveralls[5] to upload the re=
sults.</div><div><br></div><div>I&#39;ve added a separate &quot;make releas=
e&quot; step which removes bisect and checks in the autogen (presumably int=
o a release branch). Perhaps eventually this could make a github pull reque=
st (with the &quot;hub&quot; tool?) and make an opam package?</div><div><br=
></div><div>I think the game is made even more addictive when the coveralls=
 badge changes colour, see:</div><div><br></div><div><a href=3D"https://cov=
eralls.io/r/mirage/mirage-block-volume?branch=3Dmaster" target=3D"_blank">h=
ttps://coveralls.io/r/mirage/mirage-block-volume?branch=3Dmaster</a><br></d=
iv><div><br></div><div>Here&#39;s an example bisect report (the code is a w=
ork-in-progress):</div><div><br></div><div><a href=3D"http://dave.recoil.or=
g/tmp/report/file0000.html" target=3D"_blank">http://dave.recoil.org/tmp/re=
port/file0000.html</a><br></div><div><br></div><div>If you haven&#39;t give=
n bisect a go -- I recommend playing with it.</div><div><br></div><div>Also=
, if you can think of a nicer way to integrate this -- I admit using &#39;s=
ed&#39; on the _oasis file is a bit of a hack -- please let me know!</div><=
div><br></div><div>Cheers,</div><div>Dave</div><div><br></div><div>[1]=C2=
=A0<a href=3D"http://bisect.x9c.fr" target=3D"_blank">http://bisect.x9c.fr<=
/a></div><div>[2]=C2=A0<a href=3D"https://github.com/mirage/mirage-block-vo=
lume" target=3D"_blank">https://github.com/mirage/mirage-block-volume</a></=
div><div>[3]=C2=A0<a href=3D"https://github.com/mirage/shared-block-ring" t=
arget=3D"_blank">https://github.com/mirage/shared-block-ring</a></div><div>=
[4]=C2=A0<a href=3D"https://github.com/mirage/shared-block-ring/commit/67b9=
f3100be8e4e9732dd79b7c1cc5352a61d478" target=3D"_blank">https://github.com/=
mirage/shared-block-ring/commit/67b9f3100be8e4e9732dd79b7c1cc5352a61d478</a=
></div><div>[5]=C2=A0<a href=3D"https://github.com/sagotch/ocveralls" targe=
t=3D"_blank">https://github.com/sagotch/ocveralls</a></div>
</div>
<br>_______________________________________________<br>
MirageOS-devel mailing list<br>
<a href=3D"mailto:MirageOS-devel@lists.xenproject.org">MirageOS-devel@lists=
.xenproject.org</a><br>
<a href=3D"http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-de=
vel" target=3D"_blank">http://lists.xenproject.org/cgi-bin/mailman/listinfo=
/mirageos-devel</a><br>
<br></blockquote></div><br></div>

--001a1133fc36bbbf18051116d8d1--


--===============4828581171787476099==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============4828581171787476099==--


From mirageos-devel-bounces@lists.xenproject.org Thu Mar 12 12:54:36 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 12 Mar 2015 12:54:36 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YW2dI-0001pX-QJ; Thu, 12 Mar 2015 12:54:36 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mindy@somerandomidiot.com>) id 1YW2dH-0001pE-Rj
	for mirageos-devel@lists.xenproject.org; Thu, 12 Mar 2015 12:54:35 +0000
Received: from [193.109.254.147] by server-11.bemta-14.messagelabs.com id
	2F/43-09646-B8C81055; Thu, 12 Mar 2015 12:54:35 +0000
X-Env-Sender: mindy@somerandomidiot.com
X-Msg-Ref: server-6.tower-27.messagelabs.com!1426164871!12269148!1
X-Originating-IP: [217.70.183.196]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogMjE3LjcwLjE4My4xOTYgPT4gMzk1MTY=\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 27361 invoked from network); 12 Mar 2015 12:54:31 -0000
Received: from relay4-d.mail.gandi.net (HELO relay4-d.mail.gandi.net)
	(217.70.183.196)
	by server-6.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 12 Mar 2015 12:54:31 -0000
Received: from mfilter3-d.gandi.net (mfilter3-d.gandi.net [217.70.178.133])
	by relay4-d.mail.gandi.net (Postfix) with ESMTP id 567E0172074
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 12 Mar 2015 13:54:31 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at mfilter3-d.gandi.net
Received: from relay4-d.mail.gandi.net ([217.70.183.196])
	by mfilter3-d.gandi.net (mfilter3-d.gandi.net [10.0.15.180])
	(amavisd-new, port 10024)
	with ESMTP id qPkjC-LjwRfi for <mirageos-devel@lists.xenproject.org>;
	Thu, 12 Mar 2015 13:54:30 +0100 (CET)
X-Originating-IP: 131.111.184.18
Received: from [172.17.25.233] (global-1-18.nat.csx.cam.ac.uk [131.111.184.18])
	(Authenticated sender: guybrush@somerandomidiot.com)
	by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id D345A172055
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 12 Mar 2015 13:54:29 +0100 (CET)
Message-ID: <55018C89.9020905@somerandomidiot.com>
Date: Thu, 12 Mar 2015 12:54:33 +0000
From: Mindy <mindy@somerandomidiot.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: [MirageOS-devel] netif that reads from pcap / hoards writes
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi all,

I've just made public `mirage-net-pcap`, a module that satisfies 
V1.NETWORK by supplying packets from a prerecorded pcap file (via 
crunch) and keeping written packets in memory for later examination.  
You can see it at https://github.com/yomimono/mirage-net-pcap , and 
there's an example unikernel using it under `arp_tester` in my 
example-unikernels repository at 
https://github.com/yomimono/example-unikernels . `mirage-net-pcap` works 
with both unix and xen backends, although the example code works only 
with Unix because of its use of oUnit.

Right now there isn't facility for saving writes to persistent storage 
(i.e., writing to a pcap).  I started writing this and then realized it 
was generally the opposite of what I actually wanted when writing 
testing code that used `mirage-net-pcap`, but I do plan on adding this 
in a later release.

I don't have a fork of the mirage frontend tool that nicely sets up a 
netif in `config.ml` for the user currently, but stacks can be built on 
top of one in the normal way (i.e., as in `mirage-skeleton/ethifv4`).

Bad, horrible, okay, other?

-Mindy

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 12 12:54:36 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 12 Mar 2015 12:54:36 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YW2dI-0001pX-QJ; Thu, 12 Mar 2015 12:54:36 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mindy@somerandomidiot.com>) id 1YW2dH-0001pE-Rj
	for mirageos-devel@lists.xenproject.org; Thu, 12 Mar 2015 12:54:35 +0000
Received: from [193.109.254.147] by server-11.bemta-14.messagelabs.com id
	2F/43-09646-B8C81055; Thu, 12 Mar 2015 12:54:35 +0000
X-Env-Sender: mindy@somerandomidiot.com
X-Msg-Ref: server-6.tower-27.messagelabs.com!1426164871!12269148!1
X-Originating-IP: [217.70.183.196]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogMjE3LjcwLjE4My4xOTYgPT4gMzk1MTY=\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 27361 invoked from network); 12 Mar 2015 12:54:31 -0000
Received: from relay4-d.mail.gandi.net (HELO relay4-d.mail.gandi.net)
	(217.70.183.196)
	by server-6.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 12 Mar 2015 12:54:31 -0000
Received: from mfilter3-d.gandi.net (mfilter3-d.gandi.net [217.70.178.133])
	by relay4-d.mail.gandi.net (Postfix) with ESMTP id 567E0172074
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 12 Mar 2015 13:54:31 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at mfilter3-d.gandi.net
Received: from relay4-d.mail.gandi.net ([217.70.183.196])
	by mfilter3-d.gandi.net (mfilter3-d.gandi.net [10.0.15.180])
	(amavisd-new, port 10024)
	with ESMTP id qPkjC-LjwRfi for <mirageos-devel@lists.xenproject.org>;
	Thu, 12 Mar 2015 13:54:30 +0100 (CET)
X-Originating-IP: 131.111.184.18
Received: from [172.17.25.233] (global-1-18.nat.csx.cam.ac.uk [131.111.184.18])
	(Authenticated sender: guybrush@somerandomidiot.com)
	by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id D345A172055
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 12 Mar 2015 13:54:29 +0100 (CET)
Message-ID: <55018C89.9020905@somerandomidiot.com>
Date: Thu, 12 Mar 2015 12:54:33 +0000
From: Mindy <mindy@somerandomidiot.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: [MirageOS-devel] netif that reads from pcap / hoards writes
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi all,

I've just made public `mirage-net-pcap`, a module that satisfies 
V1.NETWORK by supplying packets from a prerecorded pcap file (via 
crunch) and keeping written packets in memory for later examination.  
You can see it at https://github.com/yomimono/mirage-net-pcap , and 
there's an example unikernel using it under `arp_tester` in my 
example-unikernels repository at 
https://github.com/yomimono/example-unikernels . `mirage-net-pcap` works 
with both unix and xen backends, although the example code works only 
with Unix because of its use of oUnit.

Right now there isn't facility for saving writes to persistent storage 
(i.e., writing to a pcap).  I started writing this and then realized it 
was generally the opposite of what I actually wanted when writing 
testing code that used `mirage-net-pcap`, but I do plan on adding this 
in a later release.

I don't have a fork of the mirage frontend tool that nicely sets up a 
netif in `config.ml` for the user currently, but stacks can be built on 
top of one in the normal way (i.e., as in `mirage-skeleton/ethifv4`).

Bad, horrible, okay, other?

-Mindy

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 12 13:10:57 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 12 Mar 2015 13:10:57 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YW2t5-00056j-Ri; Thu, 12 Mar 2015 13:10:55 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <lukedunstan81@gmail.com>) id 1YW2t3-00056e-U7
	for mirageos-devel@lists.xenproject.org; Thu, 12 Mar 2015 13:10:54 +0000
Received: from [193.109.254.147] by server-9.bemta-14.messagelabs.com id
	11/A6-00594-C5091055; Thu, 12 Mar 2015 13:10:52 +0000
X-Env-Sender: lukedunstan81@gmail.com
X-Msg-Ref: server-5.tower-27.messagelabs.com!1426165850!7663382!1
X-Originating-IP: [209.85.217.173]
X-SpamReason: No, hits=0.9 required=7.0 tests=HTML_40_50,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 13123 invoked from network); 12 Mar 2015 13:10:51 -0000
Received: from mail-lb0-f173.google.com (HELO mail-lb0-f173.google.com)
	(209.85.217.173)
	by server-5.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	12 Mar 2015 13:10:51 -0000
Received: by lbvp9 with SMTP id p9so15754486lbv.10
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 12 Mar 2015 06:10:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=JjaAMBXDCstKdfKhjr9KHcPzUJ/nzvSkKlv7P//Sn3c=;
	b=KxRUFzIfJBNm/KL7k9l4NoG9FxVNrTrE/f37hNzkEwVF7lhBhdwagg0oz/JR7no3Gp
	xRgtSR4qDGFXOOtYKqbG0TIyweCThBvo/FOBpLxCjaXRo2NgDyp5wurqVAKkAWyf65e9
	lcyTlvdTfUGyY3hB3ECJVsB8Yzw0t8sMAnYOyHlQGFDEOMOJSEACQFMZBtnWk05rOJxZ
	b5/LngI11IqYEmsV0RLzoPZIcoO9zEt1yGvt0kTf4CbTqOl6wVyB6yNKHrEoII7IYlGo
	uQTGBVys5mLkDOkjqju97Ni0u3HLcCpNrEq1wOqo8DujAIkJU90kt2gxjti4HvRL2TH8
	vxnw==
MIME-Version: 1.0
X-Received: by 10.152.7.132 with SMTP id j4mr39429646laa.100.1426165850224;
	Thu, 12 Mar 2015 06:10:50 -0700 (PDT)
Received: by 10.112.163.134 with HTTP; Thu, 12 Mar 2015 06:10:50 -0700 (PDT)
In-Reply-To: <86799A0B521741AF857AE07208F4BAC3@erratique.ch>
References: <CAG4opy9mf+NEhYAs-tj0JYNocVS0dGU9oxqam+hqFK5ZJq7VLg@mail.gmail.com>
	<20150202.014549.1883720051237442569.Christophe.Troestler@umons.ac.be>
	<CAG4opy9X-rg5qY+Yu0c-OJ8NumJSAPMVLr01xoHt99y9_i==8w@mail.gmail.com>
	<20150204.001614.26478837567139584.Christophe.Troestler@umons.ac.be>
	<CAG4opy8uTBQS4cM75dYEm=Jsa3078wMPNW+BQEHNsu7Mb4OJ8Q@mail.gmail.com>
	<87oap97rvw.fsf@study.localdomain>
	<CAG4opy9e5iq7rMPrSDzqiPbJZeJe8Wctg0trc1CbFZJG8ARNqw@mail.gmail.com>
	<87lhk4csew.fsf@study.localdomain>
	<2A0347CF598A4081B45318903375F7A9@erratique.ch>
	<A63173B0742143F7811BC5457D3E3DD3@erratique.ch>
	<ADA8916453824BEE99644202AC785498@erratique.ch>
	<F732CE5842EA44CB841148A0F7BC34E0@erratique.ch>
	<E39530AD-BCE8-461E-9B67-7FA6FF2BB99A@recoil.org>
	<86799A0B521741AF857AE07208F4BAC3@erratique.ch>
Date: Thu, 12 Mar 2015 21:10:50 +0800
Message-ID: <CAEui0wWNrob5yYy2st2uct5KkP-pr67hOUkaAV2neSSZ2-gOpw@mail.gmail.com>
From: Luke Dunstan <lukedunstan81@gmail.com>
To: =?UTF-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>,
	Anil Madhavapeddy <anil@recoil.org>
Subject: Re: [MirageOS-devel] Error handling in Mirage - request for
	comments!
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============5473533177516498741=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============5473533177516498741==
Content-Type: multipart/alternative; boundary=001a11c239cce4c0600511171cd8

--001a11c239cce4c0600511171cd8
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 12 March 2015 at 20:11, Daniel B=C3=BCnzli <daniel.buenzli@erratique.ch>
wrote:

> Le jeudi, 12 mars 2015 =C3=A0 10:47, Anil Madhavapeddy a =C3=A9crit :
> > At a quick read through of the APIs, this is extremely compelling. I
> particularly like the idea of replacing our (extremely vestigial) OS modu=
le
> with the platform-independent Bos.
>
> Could you point me to the interface of this OS module ? I was oblivious o=
f
> its existence.
>

https://github.com/mirage/mirage-platform/tree/master/xen/lib

or https://github.com/mirage/mirage-platform/tree/master/unix


Best regards,
Luke



>
> > I think it could be done without too much code churn just by introducin=
g
> Bos instead of OS in several use points, but it would need a semi-stable
> Bos release cut before that...
>
> It is clearly not finished and won't get much work on it before this
> summer (it will develop further together with assemblage). There are thin=
gs
> that need careful review and further development (e.g. path and pattern
> handling). If you wish so I'm willing to make a silent release with the
> current state, but don't blame me if your code breaks on the next release
> even on trivialities (hints at breaking changes can already be found in t=
he
> bt).
>
> Best,
>
> Daniel
>
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>

--001a11c239cce4c0600511171cd8
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">=
On 12 March 2015 at 20:11, Daniel B=C3=BCnzli <span dir=3D"ltr">&lt;<a href=
=3D"mailto:daniel.buenzli@erratique.ch" target=3D"_blank">daniel.buenzli@er=
ratique.ch</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(20=
4,204,204);border-left-style:solid;padding-left:1ex">Le jeudi, 12 mars 2015=
 =C3=A0 10:47, Anil Madhavapeddy a =C3=A9crit :<br>
<span class=3D"">&gt; At a quick read through of the APIs, this is extremel=
y compelling. I particularly like the idea of replacing our (extremely vest=
igial) OS module with the platform-independent Bos.<br>
<br>
</span>Could you point me to the interface of this OS module ? I was oblivi=
ous of its existence.<br></blockquote><div><br></div><div><a href=3D"https:=
//github.com/mirage/mirage-platform/tree/master/xen/lib">https://github.com=
/mirage/mirage-platform/tree/master/xen/lib</a><br></div><div><br></div><di=
v>or <a href=3D"https://github.com/mirage/mirage-platform/tree/master/unix"=
>https://github.com/mirage/mirage-platform/tree/master/unix</a></div><div><=
br></div><div><br></div><div>Best regards,</div><div>Luke</div><div><br></d=
iv><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0=
px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);borde=
r-left-style:solid;padding-left:1ex">
<span class=3D""><br>
&gt; I think it could be done without too much code churn just by introduci=
ng Bos instead of OS in several use points, but it would need a semi-stable=
 Bos release cut before that...<br>
<br>
</span>It is clearly not finished and won&#39;t get much work on it before =
this summer (it will develop further together with assemblage). There are t=
hings that need careful review and further development (e.g. path and patte=
rn handling). If you wish so I&#39;m willing to make a silent release with =
the current state, but don&#39;t blame me if your code breaks on the next r=
elease even on trivialities (hints at breaking changes can already be found=
 in the bt).<br>
<br>
Best,<br>
<br>
Daniel<br>
<div class=3D""><div class=3D"h5"><br>
_______________________________________________<br>
MirageOS-devel mailing list<br>
<a href=3D"mailto:MirageOS-devel@lists.xenproject.org">MirageOS-devel@lists=
.xenproject.org</a><br>
<a href=3D"http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-de=
vel" target=3D"_blank">http://lists.xenproject.org/cgi-bin/mailman/listinfo=
/mirageos-devel</a><br>
</div></div></blockquote></div><br></div></div>

--001a11c239cce4c0600511171cd8--


--===============5473533177516498741==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============5473533177516498741==--


From mirageos-devel-bounces@lists.xenproject.org Thu Mar 12 13:10:57 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 12 Mar 2015 13:10:57 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YW2t5-00056j-Ri; Thu, 12 Mar 2015 13:10:55 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <lukedunstan81@gmail.com>) id 1YW2t3-00056e-U7
	for mirageos-devel@lists.xenproject.org; Thu, 12 Mar 2015 13:10:54 +0000
Received: from [193.109.254.147] by server-9.bemta-14.messagelabs.com id
	11/A6-00594-C5091055; Thu, 12 Mar 2015 13:10:52 +0000
X-Env-Sender: lukedunstan81@gmail.com
X-Msg-Ref: server-5.tower-27.messagelabs.com!1426165850!7663382!1
X-Originating-IP: [209.85.217.173]
X-SpamReason: No, hits=0.9 required=7.0 tests=HTML_40_50,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 13123 invoked from network); 12 Mar 2015 13:10:51 -0000
Received: from mail-lb0-f173.google.com (HELO mail-lb0-f173.google.com)
	(209.85.217.173)
	by server-5.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	12 Mar 2015 13:10:51 -0000
Received: by lbvp9 with SMTP id p9so15754486lbv.10
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 12 Mar 2015 06:10:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=JjaAMBXDCstKdfKhjr9KHcPzUJ/nzvSkKlv7P//Sn3c=;
	b=KxRUFzIfJBNm/KL7k9l4NoG9FxVNrTrE/f37hNzkEwVF7lhBhdwagg0oz/JR7no3Gp
	xRgtSR4qDGFXOOtYKqbG0TIyweCThBvo/FOBpLxCjaXRo2NgDyp5wurqVAKkAWyf65e9
	lcyTlvdTfUGyY3hB3ECJVsB8Yzw0t8sMAnYOyHlQGFDEOMOJSEACQFMZBtnWk05rOJxZ
	b5/LngI11IqYEmsV0RLzoPZIcoO9zEt1yGvt0kTf4CbTqOl6wVyB6yNKHrEoII7IYlGo
	uQTGBVys5mLkDOkjqju97Ni0u3HLcCpNrEq1wOqo8DujAIkJU90kt2gxjti4HvRL2TH8
	vxnw==
MIME-Version: 1.0
X-Received: by 10.152.7.132 with SMTP id j4mr39429646laa.100.1426165850224;
	Thu, 12 Mar 2015 06:10:50 -0700 (PDT)
Received: by 10.112.163.134 with HTTP; Thu, 12 Mar 2015 06:10:50 -0700 (PDT)
In-Reply-To: <86799A0B521741AF857AE07208F4BAC3@erratique.ch>
References: <CAG4opy9mf+NEhYAs-tj0JYNocVS0dGU9oxqam+hqFK5ZJq7VLg@mail.gmail.com>
	<20150202.014549.1883720051237442569.Christophe.Troestler@umons.ac.be>
	<CAG4opy9X-rg5qY+Yu0c-OJ8NumJSAPMVLr01xoHt99y9_i==8w@mail.gmail.com>
	<20150204.001614.26478837567139584.Christophe.Troestler@umons.ac.be>
	<CAG4opy8uTBQS4cM75dYEm=Jsa3078wMPNW+BQEHNsu7Mb4OJ8Q@mail.gmail.com>
	<87oap97rvw.fsf@study.localdomain>
	<CAG4opy9e5iq7rMPrSDzqiPbJZeJe8Wctg0trc1CbFZJG8ARNqw@mail.gmail.com>
	<87lhk4csew.fsf@study.localdomain>
	<2A0347CF598A4081B45318903375F7A9@erratique.ch>
	<A63173B0742143F7811BC5457D3E3DD3@erratique.ch>
	<ADA8916453824BEE99644202AC785498@erratique.ch>
	<F732CE5842EA44CB841148A0F7BC34E0@erratique.ch>
	<E39530AD-BCE8-461E-9B67-7FA6FF2BB99A@recoil.org>
	<86799A0B521741AF857AE07208F4BAC3@erratique.ch>
Date: Thu, 12 Mar 2015 21:10:50 +0800
Message-ID: <CAEui0wWNrob5yYy2st2uct5KkP-pr67hOUkaAV2neSSZ2-gOpw@mail.gmail.com>
From: Luke Dunstan <lukedunstan81@gmail.com>
To: =?UTF-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>,
	Anil Madhavapeddy <anil@recoil.org>
Subject: Re: [MirageOS-devel] Error handling in Mirage - request for
	comments!
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============5473533177516498741=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============5473533177516498741==
Content-Type: multipart/alternative; boundary=001a11c239cce4c0600511171cd8

--001a11c239cce4c0600511171cd8
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 12 March 2015 at 20:11, Daniel B=C3=BCnzli <daniel.buenzli@erratique.ch>
wrote:

> Le jeudi, 12 mars 2015 =C3=A0 10:47, Anil Madhavapeddy a =C3=A9crit :
> > At a quick read through of the APIs, this is extremely compelling. I
> particularly like the idea of replacing our (extremely vestigial) OS modu=
le
> with the platform-independent Bos.
>
> Could you point me to the interface of this OS module ? I was oblivious o=
f
> its existence.
>

https://github.com/mirage/mirage-platform/tree/master/xen/lib

or https://github.com/mirage/mirage-platform/tree/master/unix


Best regards,
Luke



>
> > I think it could be done without too much code churn just by introducin=
g
> Bos instead of OS in several use points, but it would need a semi-stable
> Bos release cut before that...
>
> It is clearly not finished and won't get much work on it before this
> summer (it will develop further together with assemblage). There are thin=
gs
> that need careful review and further development (e.g. path and pattern
> handling). If you wish so I'm willing to make a silent release with the
> current state, but don't blame me if your code breaks on the next release
> even on trivialities (hints at breaking changes can already be found in t=
he
> bt).
>
> Best,
>
> Daniel
>
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>

--001a11c239cce4c0600511171cd8
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">=
On 12 March 2015 at 20:11, Daniel B=C3=BCnzli <span dir=3D"ltr">&lt;<a href=
=3D"mailto:daniel.buenzli@erratique.ch" target=3D"_blank">daniel.buenzli@er=
ratique.ch</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(20=
4,204,204);border-left-style:solid;padding-left:1ex">Le jeudi, 12 mars 2015=
 =C3=A0 10:47, Anil Madhavapeddy a =C3=A9crit :<br>
<span class=3D"">&gt; At a quick read through of the APIs, this is extremel=
y compelling. I particularly like the idea of replacing our (extremely vest=
igial) OS module with the platform-independent Bos.<br>
<br>
</span>Could you point me to the interface of this OS module ? I was oblivi=
ous of its existence.<br></blockquote><div><br></div><div><a href=3D"https:=
//github.com/mirage/mirage-platform/tree/master/xen/lib">https://github.com=
/mirage/mirage-platform/tree/master/xen/lib</a><br></div><div><br></div><di=
v>or <a href=3D"https://github.com/mirage/mirage-platform/tree/master/unix"=
>https://github.com/mirage/mirage-platform/tree/master/unix</a></div><div><=
br></div><div><br></div><div>Best regards,</div><div>Luke</div><div><br></d=
iv><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0=
px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);borde=
r-left-style:solid;padding-left:1ex">
<span class=3D""><br>
&gt; I think it could be done without too much code churn just by introduci=
ng Bos instead of OS in several use points, but it would need a semi-stable=
 Bos release cut before that...<br>
<br>
</span>It is clearly not finished and won&#39;t get much work on it before =
this summer (it will develop further together with assemblage). There are t=
hings that need careful review and further development (e.g. path and patte=
rn handling). If you wish so I&#39;m willing to make a silent release with =
the current state, but don&#39;t blame me if your code breaks on the next r=
elease even on trivialities (hints at breaking changes can already be found=
 in the bt).<br>
<br>
Best,<br>
<br>
Daniel<br>
<div class=3D""><div class=3D"h5"><br>
_______________________________________________<br>
MirageOS-devel mailing list<br>
<a href=3D"mailto:MirageOS-devel@lists.xenproject.org">MirageOS-devel@lists=
.xenproject.org</a><br>
<a href=3D"http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-de=
vel" target=3D"_blank">http://lists.xenproject.org/cgi-bin/mailman/listinfo=
/mirageos-devel</a><br>
</div></div></blockquote></div><br></div></div>

--001a11c239cce4c0600511171cd8--


--===============5473533177516498741==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============5473533177516498741==--


From mirageos-devel-bounces@lists.xenproject.org Thu Mar 12 14:12:17 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 12 Mar 2015 14:12:17 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YW3qN-0001U2-RA; Thu, 12 Mar 2015 14:12:11 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YW3qN-0001TG-0T
	for mirageos-devel@lists.xenproject.org; Thu, 12 Mar 2015 14:12:11 +0000
Received: from [193.109.254.147] by server-2.bemta-14.messagelabs.com id
	98/F6-08971-ABE91055; Thu, 12 Mar 2015 14:12:10 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-15.tower-27.messagelabs.com!1426169527!12321422!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 11677 invoked from network); 12 Mar 2015 14:12:08 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-15.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 12 Mar 2015 14:12:08 -0000
Received: from dhcp-172-17-152-33.eduroam.wireless.private.cam.ac.uk
	(global-1-26.nat.csx.cam.ac.uk [131.111.184.26]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id c112c719;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Thu, 12 Mar 2015 14:12:05 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CE529A1B-BBB7-4E1B-A50F-F1589996A352@citrix.com>
Date: Thu, 12 Mar 2015 14:12:08 +0000
Message-Id: <4585B3C5-3E11-4C0D-B74E-ADAD9A627A3E@recoil.org>
References: <727D7526-88DA-46F2-894A-F5CC7A68BEBF@recoil.org>
	<CAG4opy9adhUgnLFEgPmanoC5goQF_JEbU3J3FQh-ZQfRjredHA@mail.gmail.com>
	<EC416048-FDF6-4FE6-A440-454F658CD7B3@recoil.org>
	<CE529A1B-BBB7-4E1B-A50F-F1589996A352@citrix.com>
To: David Scott <Dave.Scott@citrix.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] ANN: mirage.2.3.0 released
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Cj4gT24gMTAgTWFyIDIwMTUsIGF0IDE0OjQxLCBEYXZlIFNjb3R0IDxEYXZlLlNjb3R0QGNpdHJp
eC5jb20+IHdyb3RlOgo+IAo+IAo+PiBPbiAxMCBNYXIgMjAxNSwgYXQgMTQ6MTcsIEFuaWwgTWFk
aGF2YXBlZGR5IDxhbmlsQHJlY29pbC5vcmc+IHdyb3RlOgo+PiAKPj4gT24gMTAgTWFyIDIwMTUs
IGF0IDE0OjAxLCBUaG9tYXMgTGVvbmFyZCA8dGFsZXg1QGdtYWlsLmNvbT4gd3JvdGU6Cj4+PiAK
Pj4+IE9uIDEwIE1hcmNoIDIwMTUgYXQgMTM6NDYsIEFuaWwgTWFkaGF2YXBlZGR5IDxhbmlsQHJl
Y29pbC5vcmc+IHdyb3RlOgo+Pj4+IEkndmUganVzdCByZWxlYXNlZCBNaXJhZ2UgMi4zLjAgdG8g
T1BBTS4gIFRoaXMgaXMgYSBwb2ludCByZWxlYXNlCj4+Pj4gd2l0aCBzZXZlcmFsIGltcG9ydGFu
dCBjbGVhbnVwcyBpbiB0aGUgaW50ZXJmYWNlczoKPj4+PiBodHRwczovL2dpdGh1Yi5jb20vbWly
YWdlL21pcmFnZS9yZWxlYXNlcy90YWcvdjIuMy4wCj4+Pj4gCj4+Pj4gKiBSZW1vdmUgdGhlIGBJ
T19QQUdFYCBtb2R1bGUgdHlwZSBmcm9tIGBWMWAuIFRoaXMgaGFzIG5vdyBtb3ZlZAo+Pj4+IGlu
dG8gdGhlIGBpby1wYWdlYCBwYWNha2dlICgjMzU2KQo+Pj4+ICogUmVtb3ZlIGBERVZJQ0UuY29u
bmVjdGAgZnJvbSB0aGUgYFYxYCBtb2R1bGUgdHlwZXMuICBXaGVuIGEgbW9kdWxlIGlzCj4+Pj4g
ZnVuY3RvcmlzZWQgb3ZlciBhIGBERVZJQ0VgIGl0IHNob3VsZCBvbmx5IGhhdmUgdGhlIGFiaWxp
dHkgdG8KPj4+PiAqdXNlKiBkZXZpY2VzIGl0IGlzIGdpdmVuLCBub3QgdG8gY29ubmVjdCB0byBu
ZXcgb25lcy4gKCMxNTApCj4+Pj4gKiBBZGQgYEZMT1cuZXJyb3JfbWVzc2FnZWAgdG8gdGhlIGBW
MWAgbW9kdWxlIHR5cGVzIHRvIGFsbG93IGZvcgo+Pj4+IGdlbmVyaWMgaGFuZGxpbmcgb2YgZXJy
b3JzLiAoIzM0NikKPj4+PiAqIEFkZCBgSVAudWlwYWRkcmAgYXMgYSB1bml2ZXJzYWwgSVAgYWRk
cmVzcyB0eXBlLiAoIzM2MSkKPj4+PiAqIFN1cHBvcnQgdGhlIGBlbnRyb3B5YCB2ZXJzaW9uIDAu
MisgaW50ZXJmYWNlcy4gKCMzNTkpCj4+Pj4gKiBDaGVjayB0aGF0IHRoZSBgb3BhbWAgY29tbWFu
ZCBpcyBhdCBsZWFzdCB2ZXJzaW9uIDEuMi4wICgjMzU1KQo+Pj4+ICogRG9uJ3QgcHV0ICctY2xh
c3NpYy1kaXNwbGF5JyBpbiB0aGUgZ2VuZXJhdGVkIE1ha2VmaWxlcy4gKCMzNjQpCj4+Pj4gCj4+
Pj4gQWx0aG91Z2ggdGhpcyBpcyBhIHNob3J0IGNoYW5nZWxvZywgdGhlIG1haW4gY2hhbmdlcyB0
aGF0IG1hdHRlcgo+Pj4+IGFyZSB0aGUgSU9fUEFHRSBhbmQgRGV2aWNlIGNvbm5lY3QgY2hhbmdl
cywgd2hpY2ggcmVxdWlyZWQKPj4+PiByZXZpc2lvbnMgYWNyb3NzIGEgc2lnbmlmaWNhbnQgbnVt
YmVyIG9mIHBhY2thZ2VzLiAgTWFueSB0aGFua3MgdG8KPj4+PiBUaG9tYXMgTGVvbmFyZCB3aG8g
ZGlkIGEgbG90IG9mIHRoZSBsZWd3b3JrIHRvIHByb3BhZ2F0ZSB0aGUKPj4+PiByZXF1aXJlZCBj
aGFuZ2VzOiBodHRwczovL2dpdGh1Yi5jb20vbWlyYWdlL21pcmFnZS9wdWxsLzM1MAo+Pj4gCj4+
PiBHcmVhdCEKPj4+IAo+Pj4+IFRoZSBmdWxsIHNldCBvZiBsaWJyYXJpZXMgdGhhdCBoYXZlIGNo
YW5nZWQgYXJlIHVwIGF0Ogo+Pj4+IGh0dHA6Ly9vcGVubWlyYWdlLm9yZy9yZWxlYXNlcy8KPj4+
IAo+Pj4gb3Blbm1pcmFnZS5vcmcgaXNuJ3QgcmVzcG9uZGluZyBmb3IgbWUgKGV2ZW4gdG8gcGlu
Z3MpLgo+PiAKPj4gSW50ZXJlc3RpbmcgLS0gd2UndmUgdW5jb3ZlcmVkIGEgcmFjZSBjb25kaXRp
b24gaW4gdGhlIFhlbiBuZXRiYWNrCj4+IGJyaW5ndXAgd2l0aCB0aGUgbmV3IHJlbGVhc2UuICBQ
dXR0aW5nIGluIGEgdmVyeSBzbWFsbCBzbGVlcCBpbgo+PiB0aGUgTmV0ZnJvbnQgaW5pdGlhbGlz
YXRpb24gaXMgY2F1c2luZyB0aGUgZG9tMCBicmlkZ2UgdG8gdW53ZWRnZQo+PiBhbmQgdGhlbiB3
b3JrLiAgSSdtIGludmVzdGlnYXRpbmcgaXQsIGFsdGhvdWdoIEkgbWF5IG5lZWQgeW91cgo+PiBh
c3Npc3RhbmNlIHdpdGggdGhpcyBvbmUgRGF2ZeKApgo+IAo+IFVoLW9oISBEb2VzIHRoZSBicmlk
Z2UgZGV2aWNlIGFuZCB0aGUgdmlmIGRldmljZSBpbiBkb20wIGxvb2sgb2ssIGFuZAo+IGRvIHRo
ZSB4ZW5zdG9yZSBiYWNrZW5kIGFuZCBmcm9udGVuZCBkaXJlY3RvcmllcyBib3RoIGhhdmUg4oCc
c3RhdGUgPSA04oCdPwo+IOKAlCBJIGFzc3VtZSB0aGV5IGFsbCBsb29rIHJpZ2h0IGFuZCB0aGUg
YnVnIGlzIG1vcmUgb2YgYSByYWNlIGJldHdlZW4KPiB0aGUgYmFja2VuZCBhbmQgZnJvbnRlbmQg
aW5pdCBjb2RlLgo+IAo+IElmIEkgaGFkIHRvIGd1ZXNzIEkgd291bGQgdHJ5IGluc2VydGluZyBh
IHhlbnN0b3JlIHdhaXQgaGVyZToKPiAKPiBodHRwczovL2dpdGh1Yi5jb20vbWlyYWdlL21pcmFn
ZS1uZXQteGVuL2Jsb2IvNjM2OWFiZDgwOTA0Y2E5ODE5NGFiYzA3ZTY3NmVjZGIwYTM3MWIzYy9s
aWIvbmV0aWYubWwjTDMwMAo+IAo+IHRvIHdhaXQgZm9yIHRoZSBiYWNrZW5kIHRvIGVudGVyIOKA
nHN0YXRlID0gNOKAnSBiZWZvcmUgd3JpdGluZyBkYXRhIHRvIHRoZQo+IHJpbmcgYW5kIHNpZ25h
bGxpbmcgdGhlIGV2ZW50IGNoYW5uZWwuIFBlcmhhcHMgaXTigJlzIHdlZGdlZCBiZWNhdXNlIHRo
ZQo+IGV2ZW50IHdhcyBpZ25vcmVkLiBBIHdhaXQgbG9vcCB3b3VsZCBsb29rIGxpa2UgdGhpcyBv
bmU6Cj4gCj4gaHR0cHM6Ly9naXRodWIuY29tL21pcmFnZS9taXJhZ2UtYmxvY2steGVuL2Jsb2Iv
YTY0ZDE1MjU4NmM3ZWJjMWQyM2M1YWRhYTRkZGQ0NDBiNDVhM2E4My9saWIvYmxrYmFjay5tbCNM
Mzg4Cj4gCj4gb25seSB3aXRoIHRoZSBjb25kaXRpb24gYmVpbmcg4oCYc3RhdGUgPSBEZXZpY2Vf
c3RhdGUuKHRvX3N0cmluZyBDb25uZWN0ZWQpIgo+IAo+IE9mIGNvdXJzZSBhIHhlbnN0b3JlIHdh
aXQgbWlnaHQganVzdCBiZSBhIHdvcmthcm91bmQgYnkgY2F1c2luZyBhIGRlbGF5Lgo+IFBlcmhh
cHMgd2Ugc2hvdWxkIHJlYWQgdGhlIExpbnV4IG5ldGJhY2sgY29kZSB0byBzZWUgd2hhdCBpdOKA
mXMgZG9pbmcuCj4gCgpJbmRlZWQsIERhdmUgdHJhY2tlZCB0aGlzIG9uZSBkb3duIHRvIHRoZSBt
aXJhZ2UtbmV0LXhlbiBkcml2ZXIgbm90CndhaXRpbmcgZm9yIHRoZSBiYWNrZW5kIHRvIGJlIGZ1
bGx5IHJlYWR5LiAgSSd2ZSBtZXJnZWQgYW5kIHJlbGVhc2VkCnRoZSBmaXggaW4gaHR0cHM6Ly9n
aXRodWIuY29tL29jYW1sL29wYW0tcmVwb3NpdG9yeS9wdWxsLzM3MDkuCgpUaGUgbGl2ZSBzaXRl
IGlzIG5vdyBydW5uaW5nIHRoaXMsIHNvIHBsZWFzZSBkbyBsZXQgdXMga25vdyBpZiBhbnlvbmUK
c2VlcyBhbnkgc3RhcnQtb2YtZGF5IHBhY2tldCBsb3NzIHdpdGggdGhpcyB2ZXJzaW9uIG9mIHRo
ZSBkcml2ZXIuCgotYW5pbApfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fXwpNaXJhZ2VPUy1kZXZlbCBtYWlsaW5nIGxpc3QKTWlyYWdlT1MtZGV2ZWxAbGlzdHMu
eGVucHJvamVjdC5vcmcKaHR0cDovL2xpc3RzLnhlbnByb2plY3Qub3JnL2NnaS1iaW4vbWFpbG1h
bi9saXN0aW5mby9taXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 12 14:12:17 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 12 Mar 2015 14:12:17 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YW3qN-0001U2-RA; Thu, 12 Mar 2015 14:12:11 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YW3qN-0001TG-0T
	for mirageos-devel@lists.xenproject.org; Thu, 12 Mar 2015 14:12:11 +0000
Received: from [193.109.254.147] by server-2.bemta-14.messagelabs.com id
	98/F6-08971-ABE91055; Thu, 12 Mar 2015 14:12:10 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-15.tower-27.messagelabs.com!1426169527!12321422!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 11677 invoked from network); 12 Mar 2015 14:12:08 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-15.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 12 Mar 2015 14:12:08 -0000
Received: from dhcp-172-17-152-33.eduroam.wireless.private.cam.ac.uk
	(global-1-26.nat.csx.cam.ac.uk [131.111.184.26]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id c112c719;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Thu, 12 Mar 2015 14:12:05 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CE529A1B-BBB7-4E1B-A50F-F1589996A352@citrix.com>
Date: Thu, 12 Mar 2015 14:12:08 +0000
Message-Id: <4585B3C5-3E11-4C0D-B74E-ADAD9A627A3E@recoil.org>
References: <727D7526-88DA-46F2-894A-F5CC7A68BEBF@recoil.org>
	<CAG4opy9adhUgnLFEgPmanoC5goQF_JEbU3J3FQh-ZQfRjredHA@mail.gmail.com>
	<EC416048-FDF6-4FE6-A440-454F658CD7B3@recoil.org>
	<CE529A1B-BBB7-4E1B-A50F-F1589996A352@citrix.com>
To: David Scott <Dave.Scott@citrix.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] ANN: mirage.2.3.0 released
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Cj4gT24gMTAgTWFyIDIwMTUsIGF0IDE0OjQxLCBEYXZlIFNjb3R0IDxEYXZlLlNjb3R0QGNpdHJp
eC5jb20+IHdyb3RlOgo+IAo+IAo+PiBPbiAxMCBNYXIgMjAxNSwgYXQgMTQ6MTcsIEFuaWwgTWFk
aGF2YXBlZGR5IDxhbmlsQHJlY29pbC5vcmc+IHdyb3RlOgo+PiAKPj4gT24gMTAgTWFyIDIwMTUs
IGF0IDE0OjAxLCBUaG9tYXMgTGVvbmFyZCA8dGFsZXg1QGdtYWlsLmNvbT4gd3JvdGU6Cj4+PiAK
Pj4+IE9uIDEwIE1hcmNoIDIwMTUgYXQgMTM6NDYsIEFuaWwgTWFkaGF2YXBlZGR5IDxhbmlsQHJl
Y29pbC5vcmc+IHdyb3RlOgo+Pj4+IEkndmUganVzdCByZWxlYXNlZCBNaXJhZ2UgMi4zLjAgdG8g
T1BBTS4gIFRoaXMgaXMgYSBwb2ludCByZWxlYXNlCj4+Pj4gd2l0aCBzZXZlcmFsIGltcG9ydGFu
dCBjbGVhbnVwcyBpbiB0aGUgaW50ZXJmYWNlczoKPj4+PiBodHRwczovL2dpdGh1Yi5jb20vbWly
YWdlL21pcmFnZS9yZWxlYXNlcy90YWcvdjIuMy4wCj4+Pj4gCj4+Pj4gKiBSZW1vdmUgdGhlIGBJ
T19QQUdFYCBtb2R1bGUgdHlwZSBmcm9tIGBWMWAuIFRoaXMgaGFzIG5vdyBtb3ZlZAo+Pj4+IGlu
dG8gdGhlIGBpby1wYWdlYCBwYWNha2dlICgjMzU2KQo+Pj4+ICogUmVtb3ZlIGBERVZJQ0UuY29u
bmVjdGAgZnJvbSB0aGUgYFYxYCBtb2R1bGUgdHlwZXMuICBXaGVuIGEgbW9kdWxlIGlzCj4+Pj4g
ZnVuY3RvcmlzZWQgb3ZlciBhIGBERVZJQ0VgIGl0IHNob3VsZCBvbmx5IGhhdmUgdGhlIGFiaWxp
dHkgdG8KPj4+PiAqdXNlKiBkZXZpY2VzIGl0IGlzIGdpdmVuLCBub3QgdG8gY29ubmVjdCB0byBu
ZXcgb25lcy4gKCMxNTApCj4+Pj4gKiBBZGQgYEZMT1cuZXJyb3JfbWVzc2FnZWAgdG8gdGhlIGBW
MWAgbW9kdWxlIHR5cGVzIHRvIGFsbG93IGZvcgo+Pj4+IGdlbmVyaWMgaGFuZGxpbmcgb2YgZXJy
b3JzLiAoIzM0NikKPj4+PiAqIEFkZCBgSVAudWlwYWRkcmAgYXMgYSB1bml2ZXJzYWwgSVAgYWRk
cmVzcyB0eXBlLiAoIzM2MSkKPj4+PiAqIFN1cHBvcnQgdGhlIGBlbnRyb3B5YCB2ZXJzaW9uIDAu
MisgaW50ZXJmYWNlcy4gKCMzNTkpCj4+Pj4gKiBDaGVjayB0aGF0IHRoZSBgb3BhbWAgY29tbWFu
ZCBpcyBhdCBsZWFzdCB2ZXJzaW9uIDEuMi4wICgjMzU1KQo+Pj4+ICogRG9uJ3QgcHV0ICctY2xh
c3NpYy1kaXNwbGF5JyBpbiB0aGUgZ2VuZXJhdGVkIE1ha2VmaWxlcy4gKCMzNjQpCj4+Pj4gCj4+
Pj4gQWx0aG91Z2ggdGhpcyBpcyBhIHNob3J0IGNoYW5nZWxvZywgdGhlIG1haW4gY2hhbmdlcyB0
aGF0IG1hdHRlcgo+Pj4+IGFyZSB0aGUgSU9fUEFHRSBhbmQgRGV2aWNlIGNvbm5lY3QgY2hhbmdl
cywgd2hpY2ggcmVxdWlyZWQKPj4+PiByZXZpc2lvbnMgYWNyb3NzIGEgc2lnbmlmaWNhbnQgbnVt
YmVyIG9mIHBhY2thZ2VzLiAgTWFueSB0aGFua3MgdG8KPj4+PiBUaG9tYXMgTGVvbmFyZCB3aG8g
ZGlkIGEgbG90IG9mIHRoZSBsZWd3b3JrIHRvIHByb3BhZ2F0ZSB0aGUKPj4+PiByZXF1aXJlZCBj
aGFuZ2VzOiBodHRwczovL2dpdGh1Yi5jb20vbWlyYWdlL21pcmFnZS9wdWxsLzM1MAo+Pj4gCj4+
PiBHcmVhdCEKPj4+IAo+Pj4+IFRoZSBmdWxsIHNldCBvZiBsaWJyYXJpZXMgdGhhdCBoYXZlIGNo
YW5nZWQgYXJlIHVwIGF0Ogo+Pj4+IGh0dHA6Ly9vcGVubWlyYWdlLm9yZy9yZWxlYXNlcy8KPj4+
IAo+Pj4gb3Blbm1pcmFnZS5vcmcgaXNuJ3QgcmVzcG9uZGluZyBmb3IgbWUgKGV2ZW4gdG8gcGlu
Z3MpLgo+PiAKPj4gSW50ZXJlc3RpbmcgLS0gd2UndmUgdW5jb3ZlcmVkIGEgcmFjZSBjb25kaXRp
b24gaW4gdGhlIFhlbiBuZXRiYWNrCj4+IGJyaW5ndXAgd2l0aCB0aGUgbmV3IHJlbGVhc2UuICBQ
dXR0aW5nIGluIGEgdmVyeSBzbWFsbCBzbGVlcCBpbgo+PiB0aGUgTmV0ZnJvbnQgaW5pdGlhbGlz
YXRpb24gaXMgY2F1c2luZyB0aGUgZG9tMCBicmlkZ2UgdG8gdW53ZWRnZQo+PiBhbmQgdGhlbiB3
b3JrLiAgSSdtIGludmVzdGlnYXRpbmcgaXQsIGFsdGhvdWdoIEkgbWF5IG5lZWQgeW91cgo+PiBh
c3Npc3RhbmNlIHdpdGggdGhpcyBvbmUgRGF2ZeKApgo+IAo+IFVoLW9oISBEb2VzIHRoZSBicmlk
Z2UgZGV2aWNlIGFuZCB0aGUgdmlmIGRldmljZSBpbiBkb20wIGxvb2sgb2ssIGFuZAo+IGRvIHRo
ZSB4ZW5zdG9yZSBiYWNrZW5kIGFuZCBmcm9udGVuZCBkaXJlY3RvcmllcyBib3RoIGhhdmUg4oCc
c3RhdGUgPSA04oCdPwo+IOKAlCBJIGFzc3VtZSB0aGV5IGFsbCBsb29rIHJpZ2h0IGFuZCB0aGUg
YnVnIGlzIG1vcmUgb2YgYSByYWNlIGJldHdlZW4KPiB0aGUgYmFja2VuZCBhbmQgZnJvbnRlbmQg
aW5pdCBjb2RlLgo+IAo+IElmIEkgaGFkIHRvIGd1ZXNzIEkgd291bGQgdHJ5IGluc2VydGluZyBh
IHhlbnN0b3JlIHdhaXQgaGVyZToKPiAKPiBodHRwczovL2dpdGh1Yi5jb20vbWlyYWdlL21pcmFn
ZS1uZXQteGVuL2Jsb2IvNjM2OWFiZDgwOTA0Y2E5ODE5NGFiYzA3ZTY3NmVjZGIwYTM3MWIzYy9s
aWIvbmV0aWYubWwjTDMwMAo+IAo+IHRvIHdhaXQgZm9yIHRoZSBiYWNrZW5kIHRvIGVudGVyIOKA
nHN0YXRlID0gNOKAnSBiZWZvcmUgd3JpdGluZyBkYXRhIHRvIHRoZQo+IHJpbmcgYW5kIHNpZ25h
bGxpbmcgdGhlIGV2ZW50IGNoYW5uZWwuIFBlcmhhcHMgaXTigJlzIHdlZGdlZCBiZWNhdXNlIHRo
ZQo+IGV2ZW50IHdhcyBpZ25vcmVkLiBBIHdhaXQgbG9vcCB3b3VsZCBsb29rIGxpa2UgdGhpcyBv
bmU6Cj4gCj4gaHR0cHM6Ly9naXRodWIuY29tL21pcmFnZS9taXJhZ2UtYmxvY2steGVuL2Jsb2Iv
YTY0ZDE1MjU4NmM3ZWJjMWQyM2M1YWRhYTRkZGQ0NDBiNDVhM2E4My9saWIvYmxrYmFjay5tbCNM
Mzg4Cj4gCj4gb25seSB3aXRoIHRoZSBjb25kaXRpb24gYmVpbmcg4oCYc3RhdGUgPSBEZXZpY2Vf
c3RhdGUuKHRvX3N0cmluZyBDb25uZWN0ZWQpIgo+IAo+IE9mIGNvdXJzZSBhIHhlbnN0b3JlIHdh
aXQgbWlnaHQganVzdCBiZSBhIHdvcmthcm91bmQgYnkgY2F1c2luZyBhIGRlbGF5Lgo+IFBlcmhh
cHMgd2Ugc2hvdWxkIHJlYWQgdGhlIExpbnV4IG5ldGJhY2sgY29kZSB0byBzZWUgd2hhdCBpdOKA
mXMgZG9pbmcuCj4gCgpJbmRlZWQsIERhdmUgdHJhY2tlZCB0aGlzIG9uZSBkb3duIHRvIHRoZSBt
aXJhZ2UtbmV0LXhlbiBkcml2ZXIgbm90CndhaXRpbmcgZm9yIHRoZSBiYWNrZW5kIHRvIGJlIGZ1
bGx5IHJlYWR5LiAgSSd2ZSBtZXJnZWQgYW5kIHJlbGVhc2VkCnRoZSBmaXggaW4gaHR0cHM6Ly9n
aXRodWIuY29tL29jYW1sL29wYW0tcmVwb3NpdG9yeS9wdWxsLzM3MDkuCgpUaGUgbGl2ZSBzaXRl
IGlzIG5vdyBydW5uaW5nIHRoaXMsIHNvIHBsZWFzZSBkbyBsZXQgdXMga25vdyBpZiBhbnlvbmUK
c2VlcyBhbnkgc3RhcnQtb2YtZGF5IHBhY2tldCBsb3NzIHdpdGggdGhpcyB2ZXJzaW9uIG9mIHRo
ZSBkcml2ZXIuCgotYW5pbApfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fXwpNaXJhZ2VPUy1kZXZlbCBtYWlsaW5nIGxpc3QKTWlyYWdlT1MtZGV2ZWxAbGlzdHMu
eGVucHJvamVjdC5vcmcKaHR0cDovL2xpc3RzLnhlbnByb2plY3Qub3JnL2NnaS1iaW4vbWFpbG1h
bi9saXN0aW5mby9taXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 12 15:59:06 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 12 Mar 2015 15:59:06 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YW5Vm-0006ue-KG; Thu, 12 Mar 2015 15:59:02 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <lukedunstan81@gmail.com>) id 1YW5Vk-0006uU-Tn
	for mirageos-devel@lists.xenproject.org; Thu, 12 Mar 2015 15:59:01 +0000
Received: from [85.158.139.211] by server-16.bemta-5.messagelabs.com id
	34/20-09376-4C7B1055; Thu, 12 Mar 2015 15:59:00 +0000
X-Env-Sender: lukedunstan81@gmail.com
X-Msg-Ref: server-14.tower-206.messagelabs.com!1426175938!5951944!1
X-Originating-IP: [209.85.217.172]
X-SpamReason: No, hits=0.9 required=7.0 tests=HTML_40_50,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 16456 invoked from network); 12 Mar 2015 15:58:58 -0000
Received: from mail-lb0-f172.google.com (HELO mail-lb0-f172.google.com)
	(209.85.217.172)
	by server-14.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	12 Mar 2015 15:58:58 -0000
Received: by lbdu10 with SMTP id u10so16935673lbd.4
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 12 Mar 2015 08:58:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=a4fjIpVl5gbZATECKocZCRvp9S4/T5/fdInX1qrGe8w=;
	b=l9hVD6GgD4B4cok5x5A2vd2o2a+pebtPvfPPMZuILmrRxRgZget57zsJXkqKXxk5ZF
	uyPx/rVx02ebZ9qOC2yDRLL3StlK4Xbaiq0IbD+OCoVnZ8/PDn6FSr5AT+2rGgWj/L3C
	lRgCR12PyydMT26TFvtviMZoLZvAuc9bbrM6MtdbLbbXIgifylqPSp+NOoxKfa+DjvMu
	i73dzrAvzKlCnip0RCturzDG16Pp6DWG9HjSpIG3z9SgIIA4/QzAJXxud5cpGUENya1w
	BadflT33ZhutKq5HRomPUBy2tHBQN4rF7FQ7FCfgAkem8OKlaiszDYS946NFXdmTHda0
	da+Q==
MIME-Version: 1.0
X-Received: by 10.152.7.132 with SMTP id j4mr40091703laa.100.1426175938121;
	Thu, 12 Mar 2015 08:58:58 -0700 (PDT)
Received: by 10.112.163.134 with HTTP; Thu, 12 Mar 2015 08:58:58 -0700 (PDT)
In-Reply-To: <55018C89.9020905@somerandomidiot.com>
References: <55018C89.9020905@somerandomidiot.com>
Date: Thu, 12 Mar 2015 23:58:58 +0800
Message-ID: <CAEui0wV7qd+8ck5gmCBa=JwOBmcaBuC9P6KuRXN5uXnk1-JVCQ@mail.gmail.com>
From: Luke Dunstan <lukedunstan81@gmail.com>
To: Mindy <mindy@somerandomidiot.com>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] netif that reads from pcap / hoards writes
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1825287433847634897=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============1825287433847634897==
Content-Type: multipart/alternative; boundary=001a11c239cc2e83270511197655

--001a11c239cc2e83270511197655
Content-Type: text/plain; charset=UTF-8

Cool idea.

For most tests I think it would be an advantage to use a stub
implementation of OS.Time.sleep so that the tests would run almost
instantly, regardless of time-outs. When you need to verify that the unit
under test is sleeping for the correct amount of time then you'd need to
record the calls to sleep, or something similar.

The ARP test fails for me on test_queries_retried (extra debug messages
added):

ARP: sending gratuitous from 192.168.2.222
ARP: updating 192.168.2.7 -> 00:16:3e:7b:2b:4d
ARP: transmitting probe -> 192.168.2.4
# written: 2

ff ff ff ff ff ff ff ff ff ff ff ff 08 06 00 01
08 00 06 04 00 01 ff ff ff ff ff ff c0 a8 02 de
ff ff ff ff ff ff c0 a8 02 04

ff ff ff ff ff ff ff ff ff ff ff ff 08 06 00 01
08 00 06 04 00 02 ff ff ff ff ff ff c0 a8 02 de
ff ff ff ff ff ff 00 00 00 00
Fatal error: exception OUnitTest.OUnit_failure("expected: Success but got:
Last 3 sent packets weren't ARP probes")
Raised at file "src/core/lwt.ml", line 894, characters 22-23
Called from file "src/unix/lwt_main.ml", line 34, characters 8-18
Called from file "main.ml", line 36, characters 2-28

Looks like the second packet is a gratuitous ARP.

Luke


On 12 March 2015 at 20:54, Mindy <mindy@somerandomidiot.com> wrote:

> Hi all,
>
> I've just made public `mirage-net-pcap`, a module that satisfies
> V1.NETWORK by supplying packets from a prerecorded pcap file (via crunch)
> and keeping written packets in memory for later examination.  You can see
> it at https://github.com/yomimono/mirage-net-pcap , and there's an
> example unikernel using it under `arp_tester` in my example-unikernels
> repository at https://github.com/yomimono/example-unikernels .
> `mirage-net-pcap` works with both unix and xen backends, although the
> example code works only with Unix because of its use of oUnit.
>
> Right now there isn't facility for saving writes to persistent storage
> (i.e., writing to a pcap).  I started writing this and then realized it was
> generally the opposite of what I actually wanted when writing testing code
> that used `mirage-net-pcap`, but I do plan on adding this in a later
> release.
>
> I don't have a fork of the mirage frontend tool that nicely sets up a
> netif in `config.ml` for the user currently, but stacks can be built on
> top of one in the normal way (i.e., as in `mirage-skeleton/ethifv4`).
>
> Bad, horrible, okay, other?
>
> -Mindy
>
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>

--001a11c239cc2e83270511197655
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Cool idea.<div><br></div><div>For most tests I think it wo=
uld be an advantage to use a stub implementation of OS.Time.sleep so that t=
he tests would run almost instantly, regardless of time-outs. When you need=
 to verify that the unit under test is sleeping for the correct amount of t=
ime then you&#39;d need to record the calls to sleep, or something similar.=
<div><br></div><div>The ARP test fails for me on=C2=A0test_queries_retried =
(extra debug messages added):<div><br></div><div><div><font face=3D"monospa=
ce, monospace">ARP: sending gratuitous from 192.168.2.222</font></div><div>=
<font face=3D"monospace, monospace">ARP: updating 192.168.2.7 -&gt; 00:16:3=
e:7b:2b:4d</font></div><div><font face=3D"monospace, monospace">ARP: transm=
itting probe -&gt; 192.168.2.4</font></div><div><font face=3D"monospace, mo=
nospace"># written: 2</font></div><div><font face=3D"monospace, monospace">=
<br></font></div><div><font face=3D"monospace, monospace">ff ff ff ff ff ff=
 ff ff ff ff ff ff 08 06 00 01=C2=A0</font></div><div><font face=3D"monospa=
ce, monospace">08 00 06 04 00 01 ff ff ff ff ff ff c0 a8 02 de=C2=A0</font>=
</div><div><font face=3D"monospace, monospace">ff ff ff ff ff ff c0 a8 02 0=
4=C2=A0</font></div><div><font face=3D"monospace, monospace"><br></font></d=
iv><div><font face=3D"monospace, monospace">ff ff ff ff ff ff ff ff ff ff f=
f ff 08 06 00 01=C2=A0</font></div><div><font face=3D"monospace, monospace"=
>08 00 06 04 00 02 ff ff ff ff ff ff c0 a8 02 de=C2=A0</font></div><div><fo=
nt face=3D"monospace, monospace">ff ff ff ff ff ff 00 00 00 00=C2=A0</font>=
</div><div><font face=3D"monospace, monospace">Fatal error: exception OUnit=
Test.OUnit_failure(&quot;expected: Success but got: Last 3 sent packets wer=
en&#39;t ARP probes&quot;)</font></div><div><font face=3D"monospace, monosp=
ace">Raised at file &quot;src/core/<a href=3D"http://lwt.ml">lwt.ml</a>&quo=
t;, line 894, characters 22-23</font></div><div><font face=3D"monospace, mo=
nospace">Called from file &quot;src/unix/<a href=3D"http://lwt_main.ml">lwt=
_main.ml</a>&quot;, line 34, characters 8-18</font></div><div><font face=3D=
"monospace, monospace">Called from file &quot;<a href=3D"http://main.ml">ma=
in.ml</a>&quot;, line 36, characters 2-28</font></div></div><div><br></div>=
<div><div>Looks like the second packet is a gratuitous ARP.<br></div></div>=
<div><br></div><div>Luke</div><div><br></div></div></div></div><div class=
=3D"gmail_extra"><br><div class=3D"gmail_quote">On 12 March 2015 at 20:54, =
Mindy <span dir=3D"ltr">&lt;<a href=3D"mailto:mindy@somerandomidiot.com" ta=
rget=3D"_blank">mindy@somerandomidiot.com</a>&gt;</span> wrote:<br><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc s=
olid;padding-left:1ex">Hi all,<br>
<br>
I&#39;ve just made public `mirage-net-pcap`, a module that satisfies V1.NET=
WORK by supplying packets from a prerecorded pcap file (via crunch) and kee=
ping written packets in memory for later examination.=C2=A0 You can see it =
at <a href=3D"https://github.com/yomimono/mirage-net-pcap" target=3D"_blank=
">https://github.com/yomimono/<u></u>mirage-net-pcap</a> , and there&#39;s =
an example unikernel using it under `arp_tester` in my example-unikernels r=
epository at <a href=3D"https://github.com/yomimono/example-unikernels" tar=
get=3D"_blank">https://github.com/yomimono/<u></u>example-unikernels</a> . =
`mirage-net-pcap` works with both unix and xen backends, although the examp=
le code works only with Unix because of its use of oUnit.<br>
<br>
Right now there isn&#39;t facility for saving writes to persistent storage =
(i.e., writing to a pcap).=C2=A0 I started writing this and then realized i=
t was generally the opposite of what I actually wanted when writing testing=
 code that used `mirage-net-pcap`, but I do plan on adding this in a later =
release.<br>
<br>
I don&#39;t have a fork of the mirage frontend tool that nicely sets up a n=
etif in `<a href=3D"http://config.ml" target=3D"_blank">config.ml</a>` for =
the user currently, but stacks can be built on top of one in the normal way=
 (i.e., as in `mirage-skeleton/ethifv4`).<br>
<br>
Bad, horrible, okay, other?<br>
<br>
-Mindy<br>
<br>
______________________________<u></u>_________________<br>
MirageOS-devel mailing list<br>
<a href=3D"mailto:MirageOS-devel@lists.xenproject.org" target=3D"_blank">Mi=
rageOS-devel@lists.<u></u>xenproject.org</a><br>
<a href=3D"http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-de=
vel" target=3D"_blank">http://lists.xenproject.org/<u></u>cgi-bin/mailman/l=
istinfo/<u></u>mirageos-devel</a><br>
</blockquote></div><br></div>

--001a11c239cc2e83270511197655--


--===============1825287433847634897==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============1825287433847634897==--


From mirageos-devel-bounces@lists.xenproject.org Thu Mar 12 15:59:06 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 12 Mar 2015 15:59:06 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YW5Vm-0006ue-KG; Thu, 12 Mar 2015 15:59:02 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <lukedunstan81@gmail.com>) id 1YW5Vk-0006uU-Tn
	for mirageos-devel@lists.xenproject.org; Thu, 12 Mar 2015 15:59:01 +0000
Received: from [85.158.139.211] by server-16.bemta-5.messagelabs.com id
	34/20-09376-4C7B1055; Thu, 12 Mar 2015 15:59:00 +0000
X-Env-Sender: lukedunstan81@gmail.com
X-Msg-Ref: server-14.tower-206.messagelabs.com!1426175938!5951944!1
X-Originating-IP: [209.85.217.172]
X-SpamReason: No, hits=0.9 required=7.0 tests=HTML_40_50,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 16456 invoked from network); 12 Mar 2015 15:58:58 -0000
Received: from mail-lb0-f172.google.com (HELO mail-lb0-f172.google.com)
	(209.85.217.172)
	by server-14.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	12 Mar 2015 15:58:58 -0000
Received: by lbdu10 with SMTP id u10so16935673lbd.4
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 12 Mar 2015 08:58:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=a4fjIpVl5gbZATECKocZCRvp9S4/T5/fdInX1qrGe8w=;
	b=l9hVD6GgD4B4cok5x5A2vd2o2a+pebtPvfPPMZuILmrRxRgZget57zsJXkqKXxk5ZF
	uyPx/rVx02ebZ9qOC2yDRLL3StlK4Xbaiq0IbD+OCoVnZ8/PDn6FSr5AT+2rGgWj/L3C
	lRgCR12PyydMT26TFvtviMZoLZvAuc9bbrM6MtdbLbbXIgifylqPSp+NOoxKfa+DjvMu
	i73dzrAvzKlCnip0RCturzDG16Pp6DWG9HjSpIG3z9SgIIA4/QzAJXxud5cpGUENya1w
	BadflT33ZhutKq5HRomPUBy2tHBQN4rF7FQ7FCfgAkem8OKlaiszDYS946NFXdmTHda0
	da+Q==
MIME-Version: 1.0
X-Received: by 10.152.7.132 with SMTP id j4mr40091703laa.100.1426175938121;
	Thu, 12 Mar 2015 08:58:58 -0700 (PDT)
Received: by 10.112.163.134 with HTTP; Thu, 12 Mar 2015 08:58:58 -0700 (PDT)
In-Reply-To: <55018C89.9020905@somerandomidiot.com>
References: <55018C89.9020905@somerandomidiot.com>
Date: Thu, 12 Mar 2015 23:58:58 +0800
Message-ID: <CAEui0wV7qd+8ck5gmCBa=JwOBmcaBuC9P6KuRXN5uXnk1-JVCQ@mail.gmail.com>
From: Luke Dunstan <lukedunstan81@gmail.com>
To: Mindy <mindy@somerandomidiot.com>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] netif that reads from pcap / hoards writes
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1825287433847634897=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============1825287433847634897==
Content-Type: multipart/alternative; boundary=001a11c239cc2e83270511197655

--001a11c239cc2e83270511197655
Content-Type: text/plain; charset=UTF-8

Cool idea.

For most tests I think it would be an advantage to use a stub
implementation of OS.Time.sleep so that the tests would run almost
instantly, regardless of time-outs. When you need to verify that the unit
under test is sleeping for the correct amount of time then you'd need to
record the calls to sleep, or something similar.

The ARP test fails for me on test_queries_retried (extra debug messages
added):

ARP: sending gratuitous from 192.168.2.222
ARP: updating 192.168.2.7 -> 00:16:3e:7b:2b:4d
ARP: transmitting probe -> 192.168.2.4
# written: 2

ff ff ff ff ff ff ff ff ff ff ff ff 08 06 00 01
08 00 06 04 00 01 ff ff ff ff ff ff c0 a8 02 de
ff ff ff ff ff ff c0 a8 02 04

ff ff ff ff ff ff ff ff ff ff ff ff 08 06 00 01
08 00 06 04 00 02 ff ff ff ff ff ff c0 a8 02 de
ff ff ff ff ff ff 00 00 00 00
Fatal error: exception OUnitTest.OUnit_failure("expected: Success but got:
Last 3 sent packets weren't ARP probes")
Raised at file "src/core/lwt.ml", line 894, characters 22-23
Called from file "src/unix/lwt_main.ml", line 34, characters 8-18
Called from file "main.ml", line 36, characters 2-28

Looks like the second packet is a gratuitous ARP.

Luke


On 12 March 2015 at 20:54, Mindy <mindy@somerandomidiot.com> wrote:

> Hi all,
>
> I've just made public `mirage-net-pcap`, a module that satisfies
> V1.NETWORK by supplying packets from a prerecorded pcap file (via crunch)
> and keeping written packets in memory for later examination.  You can see
> it at https://github.com/yomimono/mirage-net-pcap , and there's an
> example unikernel using it under `arp_tester` in my example-unikernels
> repository at https://github.com/yomimono/example-unikernels .
> `mirage-net-pcap` works with both unix and xen backends, although the
> example code works only with Unix because of its use of oUnit.
>
> Right now there isn't facility for saving writes to persistent storage
> (i.e., writing to a pcap).  I started writing this and then realized it was
> generally the opposite of what I actually wanted when writing testing code
> that used `mirage-net-pcap`, but I do plan on adding this in a later
> release.
>
> I don't have a fork of the mirage frontend tool that nicely sets up a
> netif in `config.ml` for the user currently, but stacks can be built on
> top of one in the normal way (i.e., as in `mirage-skeleton/ethifv4`).
>
> Bad, horrible, okay, other?
>
> -Mindy
>
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>

--001a11c239cc2e83270511197655
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Cool idea.<div><br></div><div>For most tests I think it wo=
uld be an advantage to use a stub implementation of OS.Time.sleep so that t=
he tests would run almost instantly, regardless of time-outs. When you need=
 to verify that the unit under test is sleeping for the correct amount of t=
ime then you&#39;d need to record the calls to sleep, or something similar.=
<div><br></div><div>The ARP test fails for me on=C2=A0test_queries_retried =
(extra debug messages added):<div><br></div><div><div><font face=3D"monospa=
ce, monospace">ARP: sending gratuitous from 192.168.2.222</font></div><div>=
<font face=3D"monospace, monospace">ARP: updating 192.168.2.7 -&gt; 00:16:3=
e:7b:2b:4d</font></div><div><font face=3D"monospace, monospace">ARP: transm=
itting probe -&gt; 192.168.2.4</font></div><div><font face=3D"monospace, mo=
nospace"># written: 2</font></div><div><font face=3D"monospace, monospace">=
<br></font></div><div><font face=3D"monospace, monospace">ff ff ff ff ff ff=
 ff ff ff ff ff ff 08 06 00 01=C2=A0</font></div><div><font face=3D"monospa=
ce, monospace">08 00 06 04 00 01 ff ff ff ff ff ff c0 a8 02 de=C2=A0</font>=
</div><div><font face=3D"monospace, monospace">ff ff ff ff ff ff c0 a8 02 0=
4=C2=A0</font></div><div><font face=3D"monospace, monospace"><br></font></d=
iv><div><font face=3D"monospace, monospace">ff ff ff ff ff ff ff ff ff ff f=
f ff 08 06 00 01=C2=A0</font></div><div><font face=3D"monospace, monospace"=
>08 00 06 04 00 02 ff ff ff ff ff ff c0 a8 02 de=C2=A0</font></div><div><fo=
nt face=3D"monospace, monospace">ff ff ff ff ff ff 00 00 00 00=C2=A0</font>=
</div><div><font face=3D"monospace, monospace">Fatal error: exception OUnit=
Test.OUnit_failure(&quot;expected: Success but got: Last 3 sent packets wer=
en&#39;t ARP probes&quot;)</font></div><div><font face=3D"monospace, monosp=
ace">Raised at file &quot;src/core/<a href=3D"http://lwt.ml">lwt.ml</a>&quo=
t;, line 894, characters 22-23</font></div><div><font face=3D"monospace, mo=
nospace">Called from file &quot;src/unix/<a href=3D"http://lwt_main.ml">lwt=
_main.ml</a>&quot;, line 34, characters 8-18</font></div><div><font face=3D=
"monospace, monospace">Called from file &quot;<a href=3D"http://main.ml">ma=
in.ml</a>&quot;, line 36, characters 2-28</font></div></div><div><br></div>=
<div><div>Looks like the second packet is a gratuitous ARP.<br></div></div>=
<div><br></div><div>Luke</div><div><br></div></div></div></div><div class=
=3D"gmail_extra"><br><div class=3D"gmail_quote">On 12 March 2015 at 20:54, =
Mindy <span dir=3D"ltr">&lt;<a href=3D"mailto:mindy@somerandomidiot.com" ta=
rget=3D"_blank">mindy@somerandomidiot.com</a>&gt;</span> wrote:<br><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc s=
olid;padding-left:1ex">Hi all,<br>
<br>
I&#39;ve just made public `mirage-net-pcap`, a module that satisfies V1.NET=
WORK by supplying packets from a prerecorded pcap file (via crunch) and kee=
ping written packets in memory for later examination.=C2=A0 You can see it =
at <a href=3D"https://github.com/yomimono/mirage-net-pcap" target=3D"_blank=
">https://github.com/yomimono/<u></u>mirage-net-pcap</a> , and there&#39;s =
an example unikernel using it under `arp_tester` in my example-unikernels r=
epository at <a href=3D"https://github.com/yomimono/example-unikernels" tar=
get=3D"_blank">https://github.com/yomimono/<u></u>example-unikernels</a> . =
`mirage-net-pcap` works with both unix and xen backends, although the examp=
le code works only with Unix because of its use of oUnit.<br>
<br>
Right now there isn&#39;t facility for saving writes to persistent storage =
(i.e., writing to a pcap).=C2=A0 I started writing this and then realized i=
t was generally the opposite of what I actually wanted when writing testing=
 code that used `mirage-net-pcap`, but I do plan on adding this in a later =
release.<br>
<br>
I don&#39;t have a fork of the mirage frontend tool that nicely sets up a n=
etif in `<a href=3D"http://config.ml" target=3D"_blank">config.ml</a>` for =
the user currently, but stacks can be built on top of one in the normal way=
 (i.e., as in `mirage-skeleton/ethifv4`).<br>
<br>
Bad, horrible, okay, other?<br>
<br>
-Mindy<br>
<br>
______________________________<u></u>_________________<br>
MirageOS-devel mailing list<br>
<a href=3D"mailto:MirageOS-devel@lists.xenproject.org" target=3D"_blank">Mi=
rageOS-devel@lists.<u></u>xenproject.org</a><br>
<a href=3D"http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-de=
vel" target=3D"_blank">http://lists.xenproject.org/<u></u>cgi-bin/mailman/l=
istinfo/<u></u>mirageos-devel</a><br>
</blockquote></div><br></div>

--001a11c239cc2e83270511197655--


--===============1825287433847634897==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============1825287433847634897==--


From mirageos-devel-bounces@lists.xenproject.org Thu Mar 12 16:06:15 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 12 Mar 2015 16:06:15 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YW5cj-0008EQ-TB; Thu, 12 Mar 2015 16:06:13 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mindy@somerandomidiot.com>) id 1YW5ci-0008DJ-KK
	for mirageos-devel@lists.xenproject.org; Thu, 12 Mar 2015 16:06:12 +0000
Received: from [193.109.254.147] by server-16.bemta-14.messagelabs.com id
	7D/1A-28243-379B1055; Thu, 12 Mar 2015 16:06:11 +0000
X-Env-Sender: mindy@somerandomidiot.com
X-Msg-Ref: server-7.tower-27.messagelabs.com!1426176370!12327028!1
X-Originating-IP: [217.70.183.196]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogMjE3LjcwLjE4My4xOTYgPT4gMzk1MTY=\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 24996 invoked from network); 12 Mar 2015 16:06:10 -0000
Received: from relay4-d.mail.gandi.net (HELO relay4-d.mail.gandi.net)
	(217.70.183.196)
	by server-7.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 12 Mar 2015 16:06:10 -0000
Received: from mfilter27-d.gandi.net (mfilter27-d.gandi.net [217.70.178.155])
	by relay4-d.mail.gandi.net (Postfix) with ESMTP id 03B1F1720BF;
	Thu, 12 Mar 2015 17:06:10 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at mfilter27-d.gandi.net
Received: from relay4-d.mail.gandi.net ([217.70.183.196])
	by mfilter27-d.gandi.net (mfilter27-d.gandi.net [10.0.15.180])
	(amavisd-new, port 10024)
	with ESMTP id 3Plqhtze-nb3; Thu, 12 Mar 2015 17:06:08 +0100 (CET)
X-Originating-IP: 131.111.184.18
Received: from [172.17.25.233] (global-1-18.nat.csx.cam.ac.uk [131.111.184.18])
	(Authenticated sender: guybrush@somerandomidiot.com)
	by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 9A4361720A1;
	Thu, 12 Mar 2015 17:06:06 +0100 (CET)
Message-ID: <5501B96C.1060200@somerandomidiot.com>
Date: Thu, 12 Mar 2015 16:06:04 +0000
From: Mindy <mindy@somerandomidiot.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: Luke Dunstan <lukedunstan81@gmail.com>
References: <55018C89.9020905@somerandomidiot.com>
	<CAEui0wV7qd+8ck5gmCBa=JwOBmcaBuC9P6KuRXN5uXnk1-JVCQ@mail.gmail.com>
In-Reply-To: <CAEui0wV7qd+8ck5gmCBa=JwOBmcaBuC9P6KuRXN5uXnk1-JVCQ@mail.gmail.com>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] netif that reads from pcap / hoards writes
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2764600792117324223=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

This is a multi-part message in MIME format.
--===============2764600792117324223==
Content-Type: multipart/alternative;
 boundary="------------060104040701010505020807"

This is a multi-part message in MIME format.
--------------060104040701010505020807
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi Luke,

Ah, I'd thought of regulating the delays in the playback, but not of 
supplying other stuff in the stack with a stubbed-out OS.Time.sleep.  
That's a good idea.

The ARP test correctly fails on the current tcpip -- my motivation for 
writing this particular test was to be able to make some claims about a 
pull request I made some time ago to mirage-tcpip.  I'm currently using 
it to test whether my attempts to make a better patch for ARP are, in 
fact, actually better.  I should probably add something to the README to 
that effect.

-Mindy

On 03/12/2015 03:58 PM, Luke Dunstan wrote:
> Cool idea.
>
> For most tests I think it would be an advantage to use a stub 
> implementation of OS.Time.sleep so that the tests would run almost 
> instantly, regardless of time-outs. When you need to verify that the 
> unit under test is sleeping for the correct amount of time then you'd 
> need to record the calls to sleep, or something similar.
>
> The ARP test fails for me on test_queries_retried (extra debug 
> messages added):
>
> ARP: sending gratuitous from 192.168.2.222
> ARP: updating 192.168.2.7 -> 00:16:3e:7b:2b:4d
> ARP: transmitting probe -> 192.168.2.4
> # written: 2
>
> ff ff ff ff ff ff ff ff ff ff ff ff 08 06 00 01
> 08 00 06 04 00 01 ff ff ff ff ff ff c0 a8 02 de
> ff ff ff ff ff ff c0 a8 02 04
>
> ff ff ff ff ff ff ff ff ff ff ff ff 08 06 00 01
> 08 00 06 04 00 02 ff ff ff ff ff ff c0 a8 02 de
> ff ff ff ff ff ff 00 00 00 00
> Fatal error: exception OUnitTest.OUnit_failure("expected: Success but 
> got: Last 3 sent packets weren't ARP probes")
> Raised at file "src/core/lwt.ml <http://lwt.ml>", line 894, characters 
> 22-23
> Called from file "src/unix/lwt_main.ml <http://lwt_main.ml>", line 34, 
> characters 8-18
> Called from file "main.ml <http://main.ml>", line 36, characters 2-28
>
> Looks like the second packet is a gratuitous ARP.
>
> Luke
>
>
> On 12 March 2015 at 20:54, Mindy <mindy@somerandomidiot.com 
> <mailto:mindy@somerandomidiot.com>> wrote:
>
>     Hi all,
>
>     I've just made public `mirage-net-pcap`, a module that satisfies
>     V1.NETWORK by supplying packets from a prerecorded pcap file (via
>     crunch) and keeping written packets in memory for later
>     examination.  You can see it at
>     https://github.com/yomimono/mirage-net-pcap , and there's an
>     example unikernel using it under `arp_tester` in my
>     example-unikernels repository at
>     https://github.com/yomimono/example-unikernels . `mirage-net-pcap`
>     works with both unix and xen backends, although the example code
>     works only with Unix because of its use of oUnit.
>
>     Right now there isn't facility for saving writes to persistent
>     storage (i.e., writing to a pcap).  I started writing this and
>     then realized it was generally the opposite of what I actually
>     wanted when writing testing code that used `mirage-net-pcap`, but
>     I do plan on adding this in a later release.
>
>     I don't have a fork of the mirage frontend tool that nicely sets
>     up a netif in `config.ml <http://config.ml>` for the user
>     currently, but stacks can be built on top of one in the normal way
>     (i.e., as in `mirage-skeleton/ethifv4`).
>
>     Bad, horrible, okay, other?
>
>     -Mindy
>
>     _______________________________________________
>     MirageOS-devel mailing list
>     MirageOS-devel@lists.xenproject.org
>     <mailto:MirageOS-devel@lists.xenproject.org>
>     http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>
>


--------------060104040701010505020807
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html>
  <head>
    <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Ty=
pe">
  </head>
  <body text=3D"#000000" bgcolor=3D"#FFFFFF">
    Hi Luke,<br>
    <br>
    Ah, I'd thought of regulating the delays in the playback, but not of
    supplying other stuff in the stack with a stubbed-out
    OS.Time.sleep.=C2=A0 That's a good idea.<br>
    <br>
    The ARP test correctly fails on the current tcpip -- my motivation
    for writing this particular test was to be able to make some claims
    about a pull request I made some time ago to mirage-tcpip.=C2=A0 I'm
    currently using it to test whether my attempts to make a better
    patch for ARP are, in fact, actually better.=C2=A0 I should probably =
add
    something to the README to that effect.<br>
    <br>
    -Mindy<br>
    <br>
    <div class=3D"moz-cite-prefix">On 03/12/2015 03:58 PM, Luke Dunstan
      wrote:<br>
    </div>
    <blockquote
cite=3D"mid:CAEui0wV7qd+8ck5gmCBa=3DJwOBmcaBuC9P6KuRXN5uXnk1-JVCQ@mail.gm=
ail.com"
      type=3D"cite">
      <div dir=3D"ltr">Cool idea.
        <div><br>
        </div>
        <div>For most tests I think it would be an advantage to use a
          stub implementation of OS.Time.sleep so that the tests would
          run almost instantly, regardless of time-outs. When you need
          to verify that the unit under test is sleeping for the correct
          amount of time then you'd need to record the calls to sleep,
          or something similar.
          <div><br>
          </div>
          <div>The ARP test fails for me on=C2=A0test_queries_retried (ex=
tra
            debug messages added):
            <div><br>
            </div>
            <div>
              <div><font face=3D"monospace, monospace">ARP: sending
                  gratuitous from 192.168.2.222</font></div>
              <div><font face=3D"monospace, monospace">ARP: updating
                  192.168.2.7 -&gt; 00:16:3e:7b:2b:4d</font></div>
              <div><font face=3D"monospace, monospace">ARP: transmitting
                  probe -&gt; 192.168.2.4</font></div>
              <div><font face=3D"monospace, monospace"># written: 2</font=
></div>
              <div><font face=3D"monospace, monospace"><br>
                </font></div>
              <div><font face=3D"monospace, monospace">ff ff ff ff ff ff
                  ff ff ff ff ff ff 08 06 00 01=C2=A0</font></div>
              <div><font face=3D"monospace, monospace">08 00 06 04 00 01
                  ff ff ff ff ff ff c0 a8 02 de=C2=A0</font></div>
              <div><font face=3D"monospace, monospace">ff ff ff ff ff ff
                  c0 a8 02 04=C2=A0</font></div>
              <div><font face=3D"monospace, monospace"><br>
                </font></div>
              <div><font face=3D"monospace, monospace">ff ff ff ff ff ff
                  ff ff ff ff ff ff 08 06 00 01=C2=A0</font></div>
              <div><font face=3D"monospace, monospace">08 00 06 04 00 02
                  ff ff ff ff ff ff c0 a8 02 de=C2=A0</font></div>
              <div><font face=3D"monospace, monospace">ff ff ff ff ff ff
                  00 00 00 00=C2=A0</font></div>
              <div><font face=3D"monospace, monospace">Fatal error:
                  exception OUnitTest.OUnit_failure("expected: Success
                  but got: Last 3 sent packets weren't ARP probes")</font=
></div>
              <div><font face=3D"monospace, monospace">Raised at file
                  "src/core/<a moz-do-not-send=3D"true"
                    href=3D"http://lwt.ml">lwt.ml</a>", line 894,
                  characters 22-23</font></div>
              <div><font face=3D"monospace, monospace">Called from file
                  "src/unix/<a moz-do-not-send=3D"true"
                    href=3D"http://lwt_main.ml">lwt_main.ml</a>", line 34=
,
                  characters 8-18</font></div>
              <div><font face=3D"monospace, monospace">Called from file "=
<a
                    moz-do-not-send=3D"true" href=3D"http://main.ml">main=
.ml</a>",
                  line 36, characters 2-28</font></div>
            </div>
            <div><br>
            </div>
            <div>
              <div>Looks like the second packet is a gratuitous ARP.<br>
              </div>
            </div>
            <div><br>
            </div>
            <div>Luke</div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
      <div class=3D"gmail_extra"><br>
        <div class=3D"gmail_quote">On 12 March 2015 at 20:54, Mindy <span
            dir=3D"ltr">&lt;<a moz-do-not-send=3D"true"
              href=3D"mailto:mindy@somerandomidiot.com" target=3D"_blank"=
>mindy@somerandomidiot.com</a>&gt;</span>
          wrote:<br>
          <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
            <br>
            I've just made public `mirage-net-pcap`, a module that
            satisfies V1.NETWORK by supplying packets from a prerecorded
            pcap file (via crunch) and keeping written packets in memory
            for later examination.=C2=A0 You can see it at <a
              moz-do-not-send=3D"true"
              href=3D"https://github.com/yomimono/mirage-net-pcap"
              target=3D"_blank">https://github.com/yomimono/mirage-net-pc=
ap</a>
            , and there's an example unikernel using it under
            `arp_tester` in my example-unikernels repository at <a
              moz-do-not-send=3D"true"
              href=3D"https://github.com/yomimono/example-unikernels"
              target=3D"_blank">https://github.com/yomimono/example-unike=
rnels</a>
            . `mirage-net-pcap` works with both unix and xen backends,
            although the example code works only with Unix because of
            its use of oUnit.<br>
            <br>
            Right now there isn't facility for saving writes to
            persistent storage (i.e., writing to a pcap).=C2=A0 I started
            writing this and then realized it was generally the opposite
            of what I actually wanted when writing testing code that
            used `mirage-net-pcap`, but I do plan on adding this in a
            later release.<br>
            <br>
            I don't have a fork of the mirage frontend tool that nicely
            sets up a netif in `<a moz-do-not-send=3D"true"
              href=3D"http://config.ml" target=3D"_blank">config.ml</a>` =
for
            the user currently, but stacks can be built on top of one in
            the normal way (i.e., as in `mirage-skeleton/ethifv4`).<br>
            <br>
            Bad, horrible, okay, other?<br>
            <br>
            -Mindy<br>
            <br>
            _______________________________________________<br>
            MirageOS-devel mailing list<br>
            <a moz-do-not-send=3D"true"
              href=3D"mailto:MirageOS-devel@lists.xenproject.org"
              target=3D"_blank">MirageOS-devel@lists.xenproject.org</a><b=
r>
            <a moz-do-not-send=3D"true"
href=3D"http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-dev=
el"
              target=3D"_blank">http://lists.xenproject.org/cgi-bin/mailm=
an/listinfo/mirageos-devel</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>

--------------060104040701010505020807--


--===============2764600792117324223==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============2764600792117324223==--


From mirageos-devel-bounces@lists.xenproject.org Thu Mar 12 16:06:15 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 12 Mar 2015 16:06:15 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YW5cj-0008EQ-TB; Thu, 12 Mar 2015 16:06:13 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mindy@somerandomidiot.com>) id 1YW5ci-0008DJ-KK
	for mirageos-devel@lists.xenproject.org; Thu, 12 Mar 2015 16:06:12 +0000
Received: from [193.109.254.147] by server-16.bemta-14.messagelabs.com id
	7D/1A-28243-379B1055; Thu, 12 Mar 2015 16:06:11 +0000
X-Env-Sender: mindy@somerandomidiot.com
X-Msg-Ref: server-7.tower-27.messagelabs.com!1426176370!12327028!1
X-Originating-IP: [217.70.183.196]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogMjE3LjcwLjE4My4xOTYgPT4gMzk1MTY=\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 24996 invoked from network); 12 Mar 2015 16:06:10 -0000
Received: from relay4-d.mail.gandi.net (HELO relay4-d.mail.gandi.net)
	(217.70.183.196)
	by server-7.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 12 Mar 2015 16:06:10 -0000
Received: from mfilter27-d.gandi.net (mfilter27-d.gandi.net [217.70.178.155])
	by relay4-d.mail.gandi.net (Postfix) with ESMTP id 03B1F1720BF;
	Thu, 12 Mar 2015 17:06:10 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at mfilter27-d.gandi.net
Received: from relay4-d.mail.gandi.net ([217.70.183.196])
	by mfilter27-d.gandi.net (mfilter27-d.gandi.net [10.0.15.180])
	(amavisd-new, port 10024)
	with ESMTP id 3Plqhtze-nb3; Thu, 12 Mar 2015 17:06:08 +0100 (CET)
X-Originating-IP: 131.111.184.18
Received: from [172.17.25.233] (global-1-18.nat.csx.cam.ac.uk [131.111.184.18])
	(Authenticated sender: guybrush@somerandomidiot.com)
	by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 9A4361720A1;
	Thu, 12 Mar 2015 17:06:06 +0100 (CET)
Message-ID: <5501B96C.1060200@somerandomidiot.com>
Date: Thu, 12 Mar 2015 16:06:04 +0000
From: Mindy <mindy@somerandomidiot.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: Luke Dunstan <lukedunstan81@gmail.com>
References: <55018C89.9020905@somerandomidiot.com>
	<CAEui0wV7qd+8ck5gmCBa=JwOBmcaBuC9P6KuRXN5uXnk1-JVCQ@mail.gmail.com>
In-Reply-To: <CAEui0wV7qd+8ck5gmCBa=JwOBmcaBuC9P6KuRXN5uXnk1-JVCQ@mail.gmail.com>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] netif that reads from pcap / hoards writes
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2764600792117324223=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

This is a multi-part message in MIME format.
--===============2764600792117324223==
Content-Type: multipart/alternative;
 boundary="------------060104040701010505020807"

This is a multi-part message in MIME format.
--------------060104040701010505020807
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

Hi Luke,

Ah, I'd thought of regulating the delays in the playback, but not of 
supplying other stuff in the stack with a stubbed-out OS.Time.sleep.  
That's a good idea.

The ARP test correctly fails on the current tcpip -- my motivation for 
writing this particular test was to be able to make some claims about a 
pull request I made some time ago to mirage-tcpip.  I'm currently using 
it to test whether my attempts to make a better patch for ARP are, in 
fact, actually better.  I should probably add something to the README to 
that effect.

-Mindy

On 03/12/2015 03:58 PM, Luke Dunstan wrote:
> Cool idea.
>
> For most tests I think it would be an advantage to use a stub 
> implementation of OS.Time.sleep so that the tests would run almost 
> instantly, regardless of time-outs. When you need to verify that the 
> unit under test is sleeping for the correct amount of time then you'd 
> need to record the calls to sleep, or something similar.
>
> The ARP test fails for me on test_queries_retried (extra debug 
> messages added):
>
> ARP: sending gratuitous from 192.168.2.222
> ARP: updating 192.168.2.7 -> 00:16:3e:7b:2b:4d
> ARP: transmitting probe -> 192.168.2.4
> # written: 2
>
> ff ff ff ff ff ff ff ff ff ff ff ff 08 06 00 01
> 08 00 06 04 00 01 ff ff ff ff ff ff c0 a8 02 de
> ff ff ff ff ff ff c0 a8 02 04
>
> ff ff ff ff ff ff ff ff ff ff ff ff 08 06 00 01
> 08 00 06 04 00 02 ff ff ff ff ff ff c0 a8 02 de
> ff ff ff ff ff ff 00 00 00 00
> Fatal error: exception OUnitTest.OUnit_failure("expected: Success but 
> got: Last 3 sent packets weren't ARP probes")
> Raised at file "src/core/lwt.ml <http://lwt.ml>", line 894, characters 
> 22-23
> Called from file "src/unix/lwt_main.ml <http://lwt_main.ml>", line 34, 
> characters 8-18
> Called from file "main.ml <http://main.ml>", line 36, characters 2-28
>
> Looks like the second packet is a gratuitous ARP.
>
> Luke
>
>
> On 12 March 2015 at 20:54, Mindy <mindy@somerandomidiot.com 
> <mailto:mindy@somerandomidiot.com>> wrote:
>
>     Hi all,
>
>     I've just made public `mirage-net-pcap`, a module that satisfies
>     V1.NETWORK by supplying packets from a prerecorded pcap file (via
>     crunch) and keeping written packets in memory for later
>     examination.  You can see it at
>     https://github.com/yomimono/mirage-net-pcap , and there's an
>     example unikernel using it under `arp_tester` in my
>     example-unikernels repository at
>     https://github.com/yomimono/example-unikernels . `mirage-net-pcap`
>     works with both unix and xen backends, although the example code
>     works only with Unix because of its use of oUnit.
>
>     Right now there isn't facility for saving writes to persistent
>     storage (i.e., writing to a pcap).  I started writing this and
>     then realized it was generally the opposite of what I actually
>     wanted when writing testing code that used `mirage-net-pcap`, but
>     I do plan on adding this in a later release.
>
>     I don't have a fork of the mirage frontend tool that nicely sets
>     up a netif in `config.ml <http://config.ml>` for the user
>     currently, but stacks can be built on top of one in the normal way
>     (i.e., as in `mirage-skeleton/ethifv4`).
>
>     Bad, horrible, okay, other?
>
>     -Mindy
>
>     _______________________________________________
>     MirageOS-devel mailing list
>     MirageOS-devel@lists.xenproject.org
>     <mailto:MirageOS-devel@lists.xenproject.org>
>     http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>
>


--------------060104040701010505020807
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html>
  <head>
    <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Ty=
pe">
  </head>
  <body text=3D"#000000" bgcolor=3D"#FFFFFF">
    Hi Luke,<br>
    <br>
    Ah, I'd thought of regulating the delays in the playback, but not of
    supplying other stuff in the stack with a stubbed-out
    OS.Time.sleep.=C2=A0 That's a good idea.<br>
    <br>
    The ARP test correctly fails on the current tcpip -- my motivation
    for writing this particular test was to be able to make some claims
    about a pull request I made some time ago to mirage-tcpip.=C2=A0 I'm
    currently using it to test whether my attempts to make a better
    patch for ARP are, in fact, actually better.=C2=A0 I should probably =
add
    something to the README to that effect.<br>
    <br>
    -Mindy<br>
    <br>
    <div class=3D"moz-cite-prefix">On 03/12/2015 03:58 PM, Luke Dunstan
      wrote:<br>
    </div>
    <blockquote
cite=3D"mid:CAEui0wV7qd+8ck5gmCBa=3DJwOBmcaBuC9P6KuRXN5uXnk1-JVCQ@mail.gm=
ail.com"
      type=3D"cite">
      <div dir=3D"ltr">Cool idea.
        <div><br>
        </div>
        <div>For most tests I think it would be an advantage to use a
          stub implementation of OS.Time.sleep so that the tests would
          run almost instantly, regardless of time-outs. When you need
          to verify that the unit under test is sleeping for the correct
          amount of time then you'd need to record the calls to sleep,
          or something similar.
          <div><br>
          </div>
          <div>The ARP test fails for me on=C2=A0test_queries_retried (ex=
tra
            debug messages added):
            <div><br>
            </div>
            <div>
              <div><font face=3D"monospace, monospace">ARP: sending
                  gratuitous from 192.168.2.222</font></div>
              <div><font face=3D"monospace, monospace">ARP: updating
                  192.168.2.7 -&gt; 00:16:3e:7b:2b:4d</font></div>
              <div><font face=3D"monospace, monospace">ARP: transmitting
                  probe -&gt; 192.168.2.4</font></div>
              <div><font face=3D"monospace, monospace"># written: 2</font=
></div>
              <div><font face=3D"monospace, monospace"><br>
                </font></div>
              <div><font face=3D"monospace, monospace">ff ff ff ff ff ff
                  ff ff ff ff ff ff 08 06 00 01=C2=A0</font></div>
              <div><font face=3D"monospace, monospace">08 00 06 04 00 01
                  ff ff ff ff ff ff c0 a8 02 de=C2=A0</font></div>
              <div><font face=3D"monospace, monospace">ff ff ff ff ff ff
                  c0 a8 02 04=C2=A0</font></div>
              <div><font face=3D"monospace, monospace"><br>
                </font></div>
              <div><font face=3D"monospace, monospace">ff ff ff ff ff ff
                  ff ff ff ff ff ff 08 06 00 01=C2=A0</font></div>
              <div><font face=3D"monospace, monospace">08 00 06 04 00 02
                  ff ff ff ff ff ff c0 a8 02 de=C2=A0</font></div>
              <div><font face=3D"monospace, monospace">ff ff ff ff ff ff
                  00 00 00 00=C2=A0</font></div>
              <div><font face=3D"monospace, monospace">Fatal error:
                  exception OUnitTest.OUnit_failure("expected: Success
                  but got: Last 3 sent packets weren't ARP probes")</font=
></div>
              <div><font face=3D"monospace, monospace">Raised at file
                  "src/core/<a moz-do-not-send=3D"true"
                    href=3D"http://lwt.ml">lwt.ml</a>", line 894,
                  characters 22-23</font></div>
              <div><font face=3D"monospace, monospace">Called from file
                  "src/unix/<a moz-do-not-send=3D"true"
                    href=3D"http://lwt_main.ml">lwt_main.ml</a>", line 34=
,
                  characters 8-18</font></div>
              <div><font face=3D"monospace, monospace">Called from file "=
<a
                    moz-do-not-send=3D"true" href=3D"http://main.ml">main=
.ml</a>",
                  line 36, characters 2-28</font></div>
            </div>
            <div><br>
            </div>
            <div>
              <div>Looks like the second packet is a gratuitous ARP.<br>
              </div>
            </div>
            <div><br>
            </div>
            <div>Luke</div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
      <div class=3D"gmail_extra"><br>
        <div class=3D"gmail_quote">On 12 March 2015 at 20:54, Mindy <span
            dir=3D"ltr">&lt;<a moz-do-not-send=3D"true"
              href=3D"mailto:mindy@somerandomidiot.com" target=3D"_blank"=
>mindy@somerandomidiot.com</a>&gt;</span>
          wrote:<br>
          <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
            <br>
            I've just made public `mirage-net-pcap`, a module that
            satisfies V1.NETWORK by supplying packets from a prerecorded
            pcap file (via crunch) and keeping written packets in memory
            for later examination.=C2=A0 You can see it at <a
              moz-do-not-send=3D"true"
              href=3D"https://github.com/yomimono/mirage-net-pcap"
              target=3D"_blank">https://github.com/yomimono/mirage-net-pc=
ap</a>
            , and there's an example unikernel using it under
            `arp_tester` in my example-unikernels repository at <a
              moz-do-not-send=3D"true"
              href=3D"https://github.com/yomimono/example-unikernels"
              target=3D"_blank">https://github.com/yomimono/example-unike=
rnels</a>
            . `mirage-net-pcap` works with both unix and xen backends,
            although the example code works only with Unix because of
            its use of oUnit.<br>
            <br>
            Right now there isn't facility for saving writes to
            persistent storage (i.e., writing to a pcap).=C2=A0 I started
            writing this and then realized it was generally the opposite
            of what I actually wanted when writing testing code that
            used `mirage-net-pcap`, but I do plan on adding this in a
            later release.<br>
            <br>
            I don't have a fork of the mirage frontend tool that nicely
            sets up a netif in `<a moz-do-not-send=3D"true"
              href=3D"http://config.ml" target=3D"_blank">config.ml</a>` =
for
            the user currently, but stacks can be built on top of one in
            the normal way (i.e., as in `mirage-skeleton/ethifv4`).<br>
            <br>
            Bad, horrible, okay, other?<br>
            <br>
            -Mindy<br>
            <br>
            _______________________________________________<br>
            MirageOS-devel mailing list<br>
            <a moz-do-not-send=3D"true"
              href=3D"mailto:MirageOS-devel@lists.xenproject.org"
              target=3D"_blank">MirageOS-devel@lists.xenproject.org</a><b=
r>
            <a moz-do-not-send=3D"true"
href=3D"http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-dev=
el"
              target=3D"_blank">http://lists.xenproject.org/cgi-bin/mailm=
an/listinfo/mirageos-devel</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>

--------------060104040701010505020807--


--===============2764600792117324223==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============2764600792117324223==--


From mirageos-devel-bounces@lists.xenproject.org Fri Mar 13 23:17:11 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 13 Mar 2015 23:17:11 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YWYpD-0000Dw-On; Fri, 13 Mar 2015 23:17:03 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anand.prabhakar.patil@gmail.com>) id 1YWYpC-0000Dl-V0
	for MirageOS-devel@lists.xenproject.org; Fri, 13 Mar 2015 23:17:03 +0000
Received: from [85.158.137.68] by server-5.bemta-3.messagelabs.com id
	AE/A7-00925-EEF63055; Fri, 13 Mar 2015 23:17:02 +0000
X-Env-Sender: anand.prabhakar.patil@gmail.com
X-Msg-Ref: server-2.tower-31.messagelabs.com!1426288620!11934756!1
X-Originating-IP: [209.85.215.52]
X-SpamReason: No, hits=0.6 required=7.0 tests=MAILTO_TO_SPAM_ADDR, RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 2730 invoked from network); 13 Mar 2015 23:17:01 -0000
Received: from mail-la0-f52.google.com (HELO mail-la0-f52.google.com)
	(209.85.215.52)
	by server-2.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	13 Mar 2015 23:17:01 -0000
Received: by lamx15 with SMTP id x15so1047990lam.3
	for <MirageOS-devel@lists.xenproject.org>;
	Fri, 13 Mar 2015 16:17:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:content-type; bh=pYZDGjDufxvP2ST5S3Nk/2qp0IdNPMPaJZT6xnnMlNo=;
	b=B9/iYMpcRe5G5dp6fgLXOpD7dYUXOYCkHmTVFC5Sz1hwbKu1jFEiXWVeILQWsIp8j+
	Kr/DfHPY3EaxYs/hxRbVWMSn729ud3n4+soxBzr/oGUscpdaO559LwYMgVax8ewrsvVH
	S6xQtstyU8t5ih+8EPzux90uCurcV++YpVCKBXdELoyKun/JSUwgzdswdXCRuWUMUJL4
	3c6VxAf0AbNsi7jNuCcvH++Ue0kequCD/xGFkuyWmldPO3eL7Siyh6HLYS9Jm4ovD/zd
	V7fPJhYSV6YXi4Wf3fj2o2VXYWWBvAnYyboDS6TekNe5gntH7TyOlizLWPiTZXXWiklN
	k8rA==
X-Received: by 10.112.219.135 with SMTP id po7mr44712920lbc.111.1426288620288; 
	Fri, 13 Mar 2015 16:17:00 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.114.84.38 with HTTP; Fri, 13 Mar 2015 16:16:39 -0700 (PDT)
In-Reply-To: <CAFzWkZFQ=f=9uwm+4nNL2Xeiny0uOsk+E11LB9jGr+V1xMu8pw@mail.gmail.com>
References: <CAFzWkZGq54ogqtweyNNnVSR89K41pEuGkUPF+i3Y2brneHN9YQ@mail.gmail.com>
	<073A0B5C-531B-4B7B-ABA3-1D8A0EC4C4BA@recoil.org>
	<CAFzWkZFQrQOZQSO_0UZoxrsr2zFPE+6XFq5Vv6wGr7iJ-ARkWA@mail.gmail.com>
	<CAMu2m2KTSbcVn=DM3mMNYNNcYDJE-=P8gCYbKieAOfi2ifgiJw@mail.gmail.com>
	<CAFzWkZGPuMvu-zRY-YfMo2y9+Lcw5XCPGqVRD0fymeCuRa5sLQ@mail.gmail.com>
	<CAMu2m2+0S0cpMf+yK9_7s1oCWPXuS7tk7hbU2MYpZ4nOqGT=2A@mail.gmail.com>
	<CAFzWkZFQ=f=9uwm+4nNL2Xeiny0uOsk+E11LB9jGr+V1xMu8pw@mail.gmail.com>
From: Anand Patil <anand.prabhakar.patil@gmail.com>
Date: Fri, 13 Mar 2015 16:16:39 -0700
Message-ID: <CAFzWkZF_dcShQgAfa5oad3dLy6Nf62ksPo68CAQMXEABO4UE8w@mail.gmail.com>
To: "mirageos-devel@lists.xenproject.org" <MirageOS-devel@lists.xenproject.org>
Subject: [MirageOS-devel] Fwd:  COW XML questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi Ashish,

Great, thanks for the ppx_tools tip, I'll check it out and think about
moving over to it when I next have time to look at this.

Anand

On Tue, Mar 10, 2015 at 11:38 AM, Ashish Agarwal <agarwal1975@gmail.com> wrote:
> Thanks Anand. I took a look and will let you know if I do any work worth
> merging. Also, I'm unsure of your choice of camlp4. The community is moving
> away from that in favor of ppx. You might take a look at ppx_tools.
>
> On Tue, Mar 3, 2015 at 7:01 PM, Anand Patil
> <anand.prabhakar.patil@gmail.com> wrote:
>>
>> Hi Ashish,
>>
>> I knew this day would come. :) I'm still making progress, but haven't
>> had too much time available for hobby projects lately, so it's slow.
>> The current state is at https://github.com/apatil/auto-aws .
>>
>> It would be fun to work together with someone on this, either from
>> what I have or from scratch.
>>
>> Anand
>>
>> On Tue, Mar 3, 2015 at 2:31 PM, Ashish Agarwal <agarwal1975@gmail.com>
>> wrote:
>> > Hi Anand. Any progress on this? Is your repo public? Thanks.
>> >
>> >
>> > On Tue, Jan 6, 2015 at 1:32 PM, Anand Patil
>> > <anand.prabhakar.patil@gmail.com> wrote:
>> >>
>> >> Hi Anil and Thomas, thanks for the pointers. I'll keep plugging away
>> >> at this and will let you know how I get on.
>> >>
>> >> Anand
>> >>
>> >> On Tue, Jan 6, 2015 at 7:43 AM, Anil Madhavapeddy <anil@recoil.org>
>> >> wrote:
>> >> > On 5 Jan 2015, at 05:56, Anand Patil
>> >> > <anand.prabhakar.patil@gmail.com>
>> >> > wrote:
>> >> >
>> >> >> In order to learn OCaml and thence Mirage, I've been working a
>> >> >> little
>> >> >> bit on an automatically generated, complete AWS client along the
>> >> >> lines
>> >> >> of https://github.com/stripe/aws-go using camlp4. I've got the types
>> >> >> generated, and now need to generate to/from XML functions for each
>> >> >> record type.
>> >> >>
>> >> >
>> >> > Incidentally, this would be awesomely useful to have.  You might also
>> >> > want to look at Jyotsna Prakash's (manually written) bindings for
>> >> > helper functions that might come in useful:
>> >> >
>> >> > https://github.com/moonlightdrive/ocaml-ec2
>> >> >
>> >> > Feel free to ask here if you run into any blockers.
>> >> >
>> >> > -anil
>> >> >
>> >>
>> >> _______________________________________________
>> >> MirageOS-devel mailing list
>> >> MirageOS-devel@lists.xenproject.org
>> >> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>> >
>> >
>
>

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 13 23:17:11 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 13 Mar 2015 23:17:11 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YWYpD-0000Dw-On; Fri, 13 Mar 2015 23:17:03 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anand.prabhakar.patil@gmail.com>) id 1YWYpC-0000Dl-V0
	for MirageOS-devel@lists.xenproject.org; Fri, 13 Mar 2015 23:17:03 +0000
Received: from [85.158.137.68] by server-5.bemta-3.messagelabs.com id
	AE/A7-00925-EEF63055; Fri, 13 Mar 2015 23:17:02 +0000
X-Env-Sender: anand.prabhakar.patil@gmail.com
X-Msg-Ref: server-2.tower-31.messagelabs.com!1426288620!11934756!1
X-Originating-IP: [209.85.215.52]
X-SpamReason: No, hits=0.6 required=7.0 tests=MAILTO_TO_SPAM_ADDR, RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 2730 invoked from network); 13 Mar 2015 23:17:01 -0000
Received: from mail-la0-f52.google.com (HELO mail-la0-f52.google.com)
	(209.85.215.52)
	by server-2.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	13 Mar 2015 23:17:01 -0000
Received: by lamx15 with SMTP id x15so1047990lam.3
	for <MirageOS-devel@lists.xenproject.org>;
	Fri, 13 Mar 2015 16:17:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:content-type; bh=pYZDGjDufxvP2ST5S3Nk/2qp0IdNPMPaJZT6xnnMlNo=;
	b=B9/iYMpcRe5G5dp6fgLXOpD7dYUXOYCkHmTVFC5Sz1hwbKu1jFEiXWVeILQWsIp8j+
	Kr/DfHPY3EaxYs/hxRbVWMSn729ud3n4+soxBzr/oGUscpdaO559LwYMgVax8ewrsvVH
	S6xQtstyU8t5ih+8EPzux90uCurcV++YpVCKBXdELoyKun/JSUwgzdswdXCRuWUMUJL4
	3c6VxAf0AbNsi7jNuCcvH++Ue0kequCD/xGFkuyWmldPO3eL7Siyh6HLYS9Jm4ovD/zd
	V7fPJhYSV6YXi4Wf3fj2o2VXYWWBvAnYyboDS6TekNe5gntH7TyOlizLWPiTZXXWiklN
	k8rA==
X-Received: by 10.112.219.135 with SMTP id po7mr44712920lbc.111.1426288620288; 
	Fri, 13 Mar 2015 16:17:00 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.114.84.38 with HTTP; Fri, 13 Mar 2015 16:16:39 -0700 (PDT)
In-Reply-To: <CAFzWkZFQ=f=9uwm+4nNL2Xeiny0uOsk+E11LB9jGr+V1xMu8pw@mail.gmail.com>
References: <CAFzWkZGq54ogqtweyNNnVSR89K41pEuGkUPF+i3Y2brneHN9YQ@mail.gmail.com>
	<073A0B5C-531B-4B7B-ABA3-1D8A0EC4C4BA@recoil.org>
	<CAFzWkZFQrQOZQSO_0UZoxrsr2zFPE+6XFq5Vv6wGr7iJ-ARkWA@mail.gmail.com>
	<CAMu2m2KTSbcVn=DM3mMNYNNcYDJE-=P8gCYbKieAOfi2ifgiJw@mail.gmail.com>
	<CAFzWkZGPuMvu-zRY-YfMo2y9+Lcw5XCPGqVRD0fymeCuRa5sLQ@mail.gmail.com>
	<CAMu2m2+0S0cpMf+yK9_7s1oCWPXuS7tk7hbU2MYpZ4nOqGT=2A@mail.gmail.com>
	<CAFzWkZFQ=f=9uwm+4nNL2Xeiny0uOsk+E11LB9jGr+V1xMu8pw@mail.gmail.com>
From: Anand Patil <anand.prabhakar.patil@gmail.com>
Date: Fri, 13 Mar 2015 16:16:39 -0700
Message-ID: <CAFzWkZF_dcShQgAfa5oad3dLy6Nf62ksPo68CAQMXEABO4UE8w@mail.gmail.com>
To: "mirageos-devel@lists.xenproject.org" <MirageOS-devel@lists.xenproject.org>
Subject: [MirageOS-devel] Fwd:  COW XML questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi Ashish,

Great, thanks for the ppx_tools tip, I'll check it out and think about
moving over to it when I next have time to look at this.

Anand

On Tue, Mar 10, 2015 at 11:38 AM, Ashish Agarwal <agarwal1975@gmail.com> wrote:
> Thanks Anand. I took a look and will let you know if I do any work worth
> merging. Also, I'm unsure of your choice of camlp4. The community is moving
> away from that in favor of ppx. You might take a look at ppx_tools.
>
> On Tue, Mar 3, 2015 at 7:01 PM, Anand Patil
> <anand.prabhakar.patil@gmail.com> wrote:
>>
>> Hi Ashish,
>>
>> I knew this day would come. :) I'm still making progress, but haven't
>> had too much time available for hobby projects lately, so it's slow.
>> The current state is at https://github.com/apatil/auto-aws .
>>
>> It would be fun to work together with someone on this, either from
>> what I have or from scratch.
>>
>> Anand
>>
>> On Tue, Mar 3, 2015 at 2:31 PM, Ashish Agarwal <agarwal1975@gmail.com>
>> wrote:
>> > Hi Anand. Any progress on this? Is your repo public? Thanks.
>> >
>> >
>> > On Tue, Jan 6, 2015 at 1:32 PM, Anand Patil
>> > <anand.prabhakar.patil@gmail.com> wrote:
>> >>
>> >> Hi Anil and Thomas, thanks for the pointers. I'll keep plugging away
>> >> at this and will let you know how I get on.
>> >>
>> >> Anand
>> >>
>> >> On Tue, Jan 6, 2015 at 7:43 AM, Anil Madhavapeddy <anil@recoil.org>
>> >> wrote:
>> >> > On 5 Jan 2015, at 05:56, Anand Patil
>> >> > <anand.prabhakar.patil@gmail.com>
>> >> > wrote:
>> >> >
>> >> >> In order to learn OCaml and thence Mirage, I've been working a
>> >> >> little
>> >> >> bit on an automatically generated, complete AWS client along the
>> >> >> lines
>> >> >> of https://github.com/stripe/aws-go using camlp4. I've got the types
>> >> >> generated, and now need to generate to/from XML functions for each
>> >> >> record type.
>> >> >>
>> >> >
>> >> > Incidentally, this would be awesomely useful to have.  You might also
>> >> > want to look at Jyotsna Prakash's (manually written) bindings for
>> >> > helper functions that might come in useful:
>> >> >
>> >> > https://github.com/moonlightdrive/ocaml-ec2
>> >> >
>> >> > Feel free to ask here if you run into any blockers.
>> >> >
>> >> > -anil
>> >> >
>> >>
>> >> _______________________________________________
>> >> MirageOS-devel mailing list
>> >> MirageOS-devel@lists.xenproject.org
>> >> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>> >
>> >
>
>

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Sat Mar 14 21:13:53 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 14 Mar 2015 21:13:53 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YWtNQ-0002Qv-47; Sat, 14 Mar 2015 21:13:44 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <trevorsummerssmith@gmail.com>) id 1YWtNO-0002Qo-S0
	for mirageos-devel@lists.xenproject.org; Sat, 14 Mar 2015 21:13:43 +0000
Received: from [85.158.137.68] by server-13.bemta-3.messagelabs.com id
	70/25-28920-584A4055; Sat, 14 Mar 2015 21:13:41 +0000
X-Env-Sender: trevorsummerssmith@gmail.com
X-Msg-Ref: server-11.tower-31.messagelabs.com!1426367620!12133830!1
X-Originating-IP: [209.85.192.52]
X-SpamReason: No, hits=1.2 required=7.0 tests=HTML_20_30,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 17635 invoked from network); 14 Mar 2015 21:13:41 -0000
Received: from mail-qg0-f52.google.com (HELO mail-qg0-f52.google.com)
	(209.85.192.52)
	by server-11.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	14 Mar 2015 21:13:41 -0000
Received: by qgfa8 with SMTP id a8so12980766qgf.0
	for <mirageos-devel@lists.xenproject.org>;
	Sat, 14 Mar 2015 14:13:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=6XboHS9tyfs7G0lnW6vOyLiJQWdze4ofegxCDm4P3B4=;
	b=GnQuCG7CkCktkc5m2sF4tYJcDuiOzvgOZo/6Xx+M6DFDNLGgL3K81zm1bDeuTNr2Jd
	SbIxSaXYa9K7s3z0GMZhLhQ9OGhKBQ8lUWyWLnNZ7NhbR0OTnlK9GWsokixC3Iench4P
	JzQZuSdoF4vQaF51vv50s7Le/YIwgq1F9xc3zjgaCEpAwjBFtyZHC0D83zkWXNnUDvMb
	9/lz2bwdy/PWjHjz1Jp/AnssnfrhpzccVUM7+gXxWJvxyqvFCKE2eGSDcvXkJAhaLRry
	vpkS6jGQRzJ3QIB0jo/WIT0BQiGLq/60Z1BIqWNtzOgSpVpcWQ4oJANQpCBvDWb9JZmB
	RUow==
MIME-Version: 1.0
X-Received: by 10.140.29.74 with SMTP id a68mr65975396qga.106.1426367620033;
	Sat, 14 Mar 2015 14:13:40 -0700 (PDT)
Received: by 10.229.240.68 with HTTP; Sat, 14 Mar 2015 14:13:39 -0700 (PDT)
Date: Sat, 14 Mar 2015 17:13:39 -0400
Message-ID: <CAG-KTt-O4qTqeF=kGHvQ+zbczqmn5ODX4P974nxgrNOAgnAPXg@mail.gmail.com>
From: Trevor Smith <trevorsummerssmith@gmail.com>
To: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: [MirageOS-devel] CoHTTP Design: Polymorphic Variants
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2954305540335959178=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============2954305540335959178==
Content-Type: multipart/alternative; boundary=001a113a413e4fb23705114617cf

--001a113a413e4fb23705114617cf
Content-Type: text/plain; charset=UTF-8

Hello,

I am curious to hear the design tradeoffs that were considered in choosing
polymorphic variants vs variants in the code.mli types. I haven't really
wrapped my head around why that decision was made, and am eager to learn
more about real world use of polymorphic variants.

Thank you.

Trevor

--001a113a413e4fb23705114617cf
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello,<div><br></div><div>I am curious to hear the design =
tradeoffs that were considered in choosing polymorphic variants vs variants=
 in the code.mli types. I haven&#39;t really wrapped my head around why tha=
t decision was made, and am eager to learn more about real world use of pol=
ymorphic variants.</div><div><br></div><div>Thank you.</div><div><br></div>=
<div>Trevor</div></div>

--001a113a413e4fb23705114617cf--


--===============2954305540335959178==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============2954305540335959178==--


From mirageos-devel-bounces@lists.xenproject.org Sat Mar 14 21:13:53 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 14 Mar 2015 21:13:53 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YWtNQ-0002Qv-47; Sat, 14 Mar 2015 21:13:44 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <trevorsummerssmith@gmail.com>) id 1YWtNO-0002Qo-S0
	for mirageos-devel@lists.xenproject.org; Sat, 14 Mar 2015 21:13:43 +0000
Received: from [85.158.137.68] by server-13.bemta-3.messagelabs.com id
	70/25-28920-584A4055; Sat, 14 Mar 2015 21:13:41 +0000
X-Env-Sender: trevorsummerssmith@gmail.com
X-Msg-Ref: server-11.tower-31.messagelabs.com!1426367620!12133830!1
X-Originating-IP: [209.85.192.52]
X-SpamReason: No, hits=1.2 required=7.0 tests=HTML_20_30,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 17635 invoked from network); 14 Mar 2015 21:13:41 -0000
Received: from mail-qg0-f52.google.com (HELO mail-qg0-f52.google.com)
	(209.85.192.52)
	by server-11.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	14 Mar 2015 21:13:41 -0000
Received: by qgfa8 with SMTP id a8so12980766qgf.0
	for <mirageos-devel@lists.xenproject.org>;
	Sat, 14 Mar 2015 14:13:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=6XboHS9tyfs7G0lnW6vOyLiJQWdze4ofegxCDm4P3B4=;
	b=GnQuCG7CkCktkc5m2sF4tYJcDuiOzvgOZo/6Xx+M6DFDNLGgL3K81zm1bDeuTNr2Jd
	SbIxSaXYa9K7s3z0GMZhLhQ9OGhKBQ8lUWyWLnNZ7NhbR0OTnlK9GWsokixC3Iench4P
	JzQZuSdoF4vQaF51vv50s7Le/YIwgq1F9xc3zjgaCEpAwjBFtyZHC0D83zkWXNnUDvMb
	9/lz2bwdy/PWjHjz1Jp/AnssnfrhpzccVUM7+gXxWJvxyqvFCKE2eGSDcvXkJAhaLRry
	vpkS6jGQRzJ3QIB0jo/WIT0BQiGLq/60Z1BIqWNtzOgSpVpcWQ4oJANQpCBvDWb9JZmB
	RUow==
MIME-Version: 1.0
X-Received: by 10.140.29.74 with SMTP id a68mr65975396qga.106.1426367620033;
	Sat, 14 Mar 2015 14:13:40 -0700 (PDT)
Received: by 10.229.240.68 with HTTP; Sat, 14 Mar 2015 14:13:39 -0700 (PDT)
Date: Sat, 14 Mar 2015 17:13:39 -0400
Message-ID: <CAG-KTt-O4qTqeF=kGHvQ+zbczqmn5ODX4P974nxgrNOAgnAPXg@mail.gmail.com>
From: Trevor Smith <trevorsummerssmith@gmail.com>
To: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: [MirageOS-devel] CoHTTP Design: Polymorphic Variants
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2954305540335959178=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============2954305540335959178==
Content-Type: multipart/alternative; boundary=001a113a413e4fb23705114617cf

--001a113a413e4fb23705114617cf
Content-Type: text/plain; charset=UTF-8

Hello,

I am curious to hear the design tradeoffs that were considered in choosing
polymorphic variants vs variants in the code.mli types. I haven't really
wrapped my head around why that decision was made, and am eager to learn
more about real world use of polymorphic variants.

Thank you.

Trevor

--001a113a413e4fb23705114617cf
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello,<div><br></div><div>I am curious to hear the design =
tradeoffs that were considered in choosing polymorphic variants vs variants=
 in the code.mli types. I haven&#39;t really wrapped my head around why tha=
t decision was made, and am eager to learn more about real world use of pol=
ymorphic variants.</div><div><br></div><div>Thank you.</div><div><br></div>=
<div>Trevor</div></div>

--001a113a413e4fb23705114617cf--


--===============2954305540335959178==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============2954305540335959178==--


From mirageos-devel-bounces@lists.xenproject.org Sat Mar 14 21:17:42 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 14 Mar 2015 21:17:42 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YWtRG-0002Sy-GK; Sat, 14 Mar 2015 21:17:42 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <rudi.grinberg@gmail.com>) id 1YWtRF-0002St-DZ
	for mirageos-devel@lists.xenproject.org; Sat, 14 Mar 2015 21:17:41 +0000
Received: from [85.158.137.68] by server-9.bemta-3.messagelabs.com id
	6D/DA-08273-475A4055; Sat, 14 Mar 2015 21:17:40 +0000
X-Env-Sender: rudi.grinberg@gmail.com
X-Msg-Ref: server-11.tower-31.messagelabs.com!1426367858!12134245!1
X-Originating-IP: [209.85.213.181]
X-SpamReason: No, hits=0.0 required=7.0 tests=HTML_MESSAGE
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 24316 invoked from network); 14 Mar 2015 21:17:39 -0000
Received: from mail-ig0-f181.google.com (HELO mail-ig0-f181.google.com)
	(209.85.213.181)
	by server-11.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	14 Mar 2015 21:17:39 -0000
Received: by igbue6 with SMTP id ue6so10302523igb.1
	for <mirageos-devel@lists.xenproject.org>;
	Sat, 14 Mar 2015 14:17:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=date:from:to:message-id:in-reply-to:references:subject:mime-version
	:content-type; bh=vpnYDy4ln+vXJHH4ucK868KplwZVg2683XFjt2GU28E=;
	b=N2+u5Axcar1PrYQXItO5xNQFkj4JnJzht/MQNLD+yOLqk+njqLX22ZPbaR10wBWc0G
	f9pIcmHt/QBTYsu6udG8yUgq/6teDFKrzaicg73+dnARlr9iKqwKtsOme4YSyz+e8LEM
	ucpZGZoM4Nm/SAIhyI87neztR+m6oboL9+7XWeDbdyMYG311KpjG47Iw+Lv/rmtyrFGr
	8xjZV/T9u6RUgqdp9n6GjrQXA+h1TiSPGhnvzPUOhCfdEwZxQFbwShorhDF/PlQ44JSq
	xN6WneOGs8C5K70qDmdMYo60dN8vAE15l+Ug+emHBKakKeKEyBNHoqPBxIStj+uy7dBr
	ae3g==
X-Received: by 10.50.28.8 with SMTP id x8mr95581839igg.19.1426367858240;
	Sat, 14 Mar 2015 14:17:38 -0700 (PDT)
Received: from Rudis-MacBook-Pro.local ([66.49.218.159])
	by mx.google.com with ESMTPSA id f32sm3859672iod.30.2015.03.14.14.17.37
	(version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Sat, 14 Mar 2015 14:17:37 -0700 (PDT)
Date: Sat, 14 Mar 2015 17:20:41 -0400
From: Rudi Grinberg <rudi.grinberg@gmail.com>
To: "=?utf-8?Q?mirageos-devel=40lists.xenproject.org?="
	<mirageos-devel@lists.xenproject.org>, Trevor Smith
	<trevorsummerssmith@gmail.com>
Message-ID: <etPan.5504a629.643c9869.16d@Rudis-MacBook-Pro.local>
In-Reply-To: <CAG-KTt-O4qTqeF=kGHvQ+zbczqmn5ODX4P974nxgrNOAgnAPXg@mail.gmail.com>
References: <CAG-KTt-O4qTqeF=kGHvQ+zbczqmn5ODX4P974nxgrNOAgnAPXg@mail.gmail.com>
X-Mailer: Airmail Beta (297)
MIME-Version: 1.0
Subject: Re: [MirageOS-devel] CoHTTP Design: Polymorphic Variants
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============8527805374084610694=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============8527805374084610694==
Content-Type: multipart/alternative; boundary="5504a629_66334873_16d"

--5504a629_66334873_16d
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi Trevor,

This is the standard reference I usually refer people when they ask this:=
=C2=A0http://stackoverflow.com/questions/9367181/variants-or-polymorphic-=
variants

In cohttp=E2=80=99s case I think the benefits listed in 2, 3, and 4 apply=
.

Thanks,

Rudi.

On March 14, 2015 at 5:14:10 PM, Trevor Smith (trevorsummerssmith=40gmail=
.com) wrote:

I am curious to hear the design tradeoffs that were considered in choosin=
g polymorphic variants vs variants in the code.mli types. I haven't reall=
y wrapped my head around why that decision was made, and am eager to lear=
n more about real world use of polymorphic variants.


--5504a629_66334873_16d
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<html><head><style>body=7Bfont-family:Helvetica,Arial;font-size:13px=7D</=
style></head><body style=3D=22word-wrap: break-word; -webkit-nbsp-mode: s=
pace; -webkit-line-break: after-white-space;=22><div id=3D=22bloop=5Fcust=
omfont=22 style=3D=22font-family:Helvetica,Arial;font-size:13px; color: r=
gba(0,0,0,1.0); margin: 0px; line-height: auto;=22>Hi Trevor,</div><div i=
d=3D=22bloop=5Fcustomfont=22 style=3D=22font-family:Helvetica,Arial;font-=
size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;=22><br=
></div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22font-family:Helvetic=
a,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height:=
 auto;=22>This is the standard reference I usually refer people when they=
 ask this:&nbsp;<a href=3D=22http://stackoverflow.com/questions/9367181/v=
ariants-or-polymorphic-variants=22>http://stackoverflow.com/questions/936=
7181/variants-or-polymorphic-variants<br></a></div><div id=3D=22bloop=5Fc=
ustomfont=22 style=3D=22font-family:Helvetica,Arial;font-size:13px; color=
: rgba(0,0,0,1.0); margin: 0px; line-height: auto;=22><a href=3D=22http:/=
/stackoverflow.com/questions/9367181/variants-or-polymorphic-variants=22>=
<br></a></div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22font-family:H=
elvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-=
height: auto;=22>In cohttp=E2=80=99s case I think the benefits listed in =
2, 3, and 4 apply.</div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22fon=
t-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: =
0px; line-height: auto;=22><br></div><div id=3D=22bloop=5Fcustomfont=22 s=
tyle=3D=22font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1=
.0); margin: 0px; line-height: auto;=22>Thanks,</div><div id=3D=22bloop=5F=
customfont=22 style=3D=22font-family:Helvetica,Arial;font-size:13px; colo=
r: rgba(0,0,0,1.0); margin: 0px; line-height: auto;=22><br></div><div id=3D=
=22bloop=5Fcustomfont=22 style=3D=22font-family:Helvetica,Arial;font-size=
:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;=22>Rudi.</=
div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22font-family:Helvetica,A=
rial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: au=
to;=22><a href=3D=22http://stackoverflow.com/questions/9367181/variants-o=
r-polymorphic-variants=22><br></a></div><p class=3D=22airmail=5Fon=22 sty=
le=3D=22color:=23000;=22>On March 14, 2015 at 5:14:10 PM, Trevor Smith (<=
a href=3D=22mailto:trevorsummerssmith=40gmail.com=22>trevorsummerssmith=40=
gmail.com</a>) wrote:</p> <blockquote type=3D=22cite=22 class=3D=22clean=5F=
bq=22><span><div><div style=3D=22color: rgb(0, 0, 0); font-family: 'helve=
tica Neue', helvetica; font-size: 12.727272033691406px; font-style: norma=
l; font-variant: normal; font-weight: normal; letter-spacing: normal; lin=
e-height: 19.5px; orphans: auto; text-align: start; text-indent: 0px; tex=
t-transform: none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;=22>I am curious to hear the design tradeo=
ffs that were considered in choosing polymorphic variants vs variants in =
the code.mli types. I haven't really wrapped my head around why that deci=
sion was made, and am eager to learn more about real world use of polymor=
phic variants.</div><br class=3D=22Apple-interchange-newline=22></div></s=
pan></blockquote> <div id=3D=22bloop=5Fsign=5F1426367861941203200=22 clas=
s=3D=22bloop=5Fsign=22></div></body></html>
--5504a629_66334873_16d--



--===============8527805374084610694==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============8527805374084610694==--



From mirageos-devel-bounces@lists.xenproject.org Sat Mar 14 21:17:42 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 14 Mar 2015 21:17:42 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YWtRG-0002Sy-GK; Sat, 14 Mar 2015 21:17:42 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <rudi.grinberg@gmail.com>) id 1YWtRF-0002St-DZ
	for mirageos-devel@lists.xenproject.org; Sat, 14 Mar 2015 21:17:41 +0000
Received: from [85.158.137.68] by server-9.bemta-3.messagelabs.com id
	6D/DA-08273-475A4055; Sat, 14 Mar 2015 21:17:40 +0000
X-Env-Sender: rudi.grinberg@gmail.com
X-Msg-Ref: server-11.tower-31.messagelabs.com!1426367858!12134245!1
X-Originating-IP: [209.85.213.181]
X-SpamReason: No, hits=0.0 required=7.0 tests=HTML_MESSAGE
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 24316 invoked from network); 14 Mar 2015 21:17:39 -0000
Received: from mail-ig0-f181.google.com (HELO mail-ig0-f181.google.com)
	(209.85.213.181)
	by server-11.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	14 Mar 2015 21:17:39 -0000
Received: by igbue6 with SMTP id ue6so10302523igb.1
	for <mirageos-devel@lists.xenproject.org>;
	Sat, 14 Mar 2015 14:17:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=date:from:to:message-id:in-reply-to:references:subject:mime-version
	:content-type; bh=vpnYDy4ln+vXJHH4ucK868KplwZVg2683XFjt2GU28E=;
	b=N2+u5Axcar1PrYQXItO5xNQFkj4JnJzht/MQNLD+yOLqk+njqLX22ZPbaR10wBWc0G
	f9pIcmHt/QBTYsu6udG8yUgq/6teDFKrzaicg73+dnARlr9iKqwKtsOme4YSyz+e8LEM
	ucpZGZoM4Nm/SAIhyI87neztR+m6oboL9+7XWeDbdyMYG311KpjG47Iw+Lv/rmtyrFGr
	8xjZV/T9u6RUgqdp9n6GjrQXA+h1TiSPGhnvzPUOhCfdEwZxQFbwShorhDF/PlQ44JSq
	xN6WneOGs8C5K70qDmdMYo60dN8vAE15l+Ug+emHBKakKeKEyBNHoqPBxIStj+uy7dBr
	ae3g==
X-Received: by 10.50.28.8 with SMTP id x8mr95581839igg.19.1426367858240;
	Sat, 14 Mar 2015 14:17:38 -0700 (PDT)
Received: from Rudis-MacBook-Pro.local ([66.49.218.159])
	by mx.google.com with ESMTPSA id f32sm3859672iod.30.2015.03.14.14.17.37
	(version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Sat, 14 Mar 2015 14:17:37 -0700 (PDT)
Date: Sat, 14 Mar 2015 17:20:41 -0400
From: Rudi Grinberg <rudi.grinberg@gmail.com>
To: "=?utf-8?Q?mirageos-devel=40lists.xenproject.org?="
	<mirageos-devel@lists.xenproject.org>, Trevor Smith
	<trevorsummerssmith@gmail.com>
Message-ID: <etPan.5504a629.643c9869.16d@Rudis-MacBook-Pro.local>
In-Reply-To: <CAG-KTt-O4qTqeF=kGHvQ+zbczqmn5ODX4P974nxgrNOAgnAPXg@mail.gmail.com>
References: <CAG-KTt-O4qTqeF=kGHvQ+zbczqmn5ODX4P974nxgrNOAgnAPXg@mail.gmail.com>
X-Mailer: Airmail Beta (297)
MIME-Version: 1.0
Subject: Re: [MirageOS-devel] CoHTTP Design: Polymorphic Variants
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============8527805374084610694=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============8527805374084610694==
Content-Type: multipart/alternative; boundary="5504a629_66334873_16d"

--5504a629_66334873_16d
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi Trevor,

This is the standard reference I usually refer people when they ask this:=
=C2=A0http://stackoverflow.com/questions/9367181/variants-or-polymorphic-=
variants

In cohttp=E2=80=99s case I think the benefits listed in 2, 3, and 4 apply=
.

Thanks,

Rudi.

On March 14, 2015 at 5:14:10 PM, Trevor Smith (trevorsummerssmith=40gmail=
.com) wrote:

I am curious to hear the design tradeoffs that were considered in choosin=
g polymorphic variants vs variants in the code.mli types. I haven't reall=
y wrapped my head around why that decision was made, and am eager to lear=
n more about real world use of polymorphic variants.


--5504a629_66334873_16d
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<html><head><style>body=7Bfont-family:Helvetica,Arial;font-size:13px=7D</=
style></head><body style=3D=22word-wrap: break-word; -webkit-nbsp-mode: s=
pace; -webkit-line-break: after-white-space;=22><div id=3D=22bloop=5Fcust=
omfont=22 style=3D=22font-family:Helvetica,Arial;font-size:13px; color: r=
gba(0,0,0,1.0); margin: 0px; line-height: auto;=22>Hi Trevor,</div><div i=
d=3D=22bloop=5Fcustomfont=22 style=3D=22font-family:Helvetica,Arial;font-=
size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;=22><br=
></div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22font-family:Helvetic=
a,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height:=
 auto;=22>This is the standard reference I usually refer people when they=
 ask this:&nbsp;<a href=3D=22http://stackoverflow.com/questions/9367181/v=
ariants-or-polymorphic-variants=22>http://stackoverflow.com/questions/936=
7181/variants-or-polymorphic-variants<br></a></div><div id=3D=22bloop=5Fc=
ustomfont=22 style=3D=22font-family:Helvetica,Arial;font-size:13px; color=
: rgba(0,0,0,1.0); margin: 0px; line-height: auto;=22><a href=3D=22http:/=
/stackoverflow.com/questions/9367181/variants-or-polymorphic-variants=22>=
<br></a></div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22font-family:H=
elvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-=
height: auto;=22>In cohttp=E2=80=99s case I think the benefits listed in =
2, 3, and 4 apply.</div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22fon=
t-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: =
0px; line-height: auto;=22><br></div><div id=3D=22bloop=5Fcustomfont=22 s=
tyle=3D=22font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1=
.0); margin: 0px; line-height: auto;=22>Thanks,</div><div id=3D=22bloop=5F=
customfont=22 style=3D=22font-family:Helvetica,Arial;font-size:13px; colo=
r: rgba(0,0,0,1.0); margin: 0px; line-height: auto;=22><br></div><div id=3D=
=22bloop=5Fcustomfont=22 style=3D=22font-family:Helvetica,Arial;font-size=
:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;=22>Rudi.</=
div><div id=3D=22bloop=5Fcustomfont=22 style=3D=22font-family:Helvetica,A=
rial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: au=
to;=22><a href=3D=22http://stackoverflow.com/questions/9367181/variants-o=
r-polymorphic-variants=22><br></a></div><p class=3D=22airmail=5Fon=22 sty=
le=3D=22color:=23000;=22>On March 14, 2015 at 5:14:10 PM, Trevor Smith (<=
a href=3D=22mailto:trevorsummerssmith=40gmail.com=22>trevorsummerssmith=40=
gmail.com</a>) wrote:</p> <blockquote type=3D=22cite=22 class=3D=22clean=5F=
bq=22><span><div><div style=3D=22color: rgb(0, 0, 0); font-family: 'helve=
tica Neue', helvetica; font-size: 12.727272033691406px; font-style: norma=
l; font-variant: normal; font-weight: normal; letter-spacing: normal; lin=
e-height: 19.5px; orphans: auto; text-align: start; text-indent: 0px; tex=
t-transform: none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px;=22>I am curious to hear the design tradeo=
ffs that were considered in choosing polymorphic variants vs variants in =
the code.mli types. I haven't really wrapped my head around why that deci=
sion was made, and am eager to learn more about real world use of polymor=
phic variants.</div><br class=3D=22Apple-interchange-newline=22></div></s=
pan></blockquote> <div id=3D=22bloop=5Fsign=5F1426367861941203200=22 clas=
s=3D=22bloop=5Fsign=22></div></body></html>
--5504a629_66334873_16d--



--===============8527805374084610694==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============8527805374084610694==--



From mirageos-devel-bounces@lists.xenproject.org Sat Mar 14 23:32:21 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 14 Mar 2015 23:32:21 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YWvXS-0004yC-BZ; Sat, 14 Mar 2015 23:32:14 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <trevorsummerssmith@gmail.com>) id 1YWvXR-0004y7-4W
	for mirageos-devel@lists.xenproject.org; Sat, 14 Mar 2015 23:32:13 +0000
Received: from [193.109.254.147] by server-8.bemta-14.messagelabs.com id
	8E/88-30864-CF4C4055; Sat, 14 Mar 2015 23:32:12 +0000
X-Env-Sender: trevorsummerssmith@gmail.com
X-Msg-Ref: server-10.tower-27.messagelabs.com!1426375930!12936066!1
X-Originating-IP: [209.85.216.177]
X-SpamReason: No, hits=0.0 required=7.0 tests=HTML_MESSAGE
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 17339 invoked from network); 14 Mar 2015 23:32:11 -0000
Received: from mail-qc0-f177.google.com (HELO mail-qc0-f177.google.com)
	(209.85.216.177)
	by server-10.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	14 Mar 2015 23:32:11 -0000
Received: by qcbkw5 with SMTP id kw5so16983562qcb.2
	for <mirageos-devel@lists.xenproject.org>;
	Sat, 14 Mar 2015 16:32:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:references:from:date:message-id:subject:to
	:content-type; bh=ClePplhh/3s4bIM/HnMx9Ypk6P0uqW4u3k8n5Ap1tIw=;
	b=uhIm3zCX/6x89Y340R1bV/a77A9LSZ54gG60xp9PciK2B3yAzuNkeM88LOpio7QC/3
	sc4Xo5MhnuKuxgwEw6nv8jrmq1Lb362gA5w0VNzhNoPJAO/AFo3oei8rtWKdSjjdCbGW
	AwJuFm8Pztb7PA5sSaNhiBF7aK0K047PRvNLVAgoPBCqVLEGFwAecOmmIDsWyvFmiZAX
	0SN14I47kUQkIA/ZEFpa6LkkP3I4ULJHj66hLVlNb0BAyBM5G2EiHLdFlsiXlIcnVhdx
	7bibb/kH5Kt68gTmINaaX50YtXuesCRjXeQjBNbTnCJ3ScQEBsS6ACpdJiMnI1YRFV7F
	Si8w==
X-Received: by 10.55.31.143 with SMTP id n15mr75090713qkh.70.1426375930102;
	Sat, 14 Mar 2015 16:32:10 -0700 (PDT)
MIME-Version: 1.0
References: <CAG-KTt-O4qTqeF=kGHvQ+zbczqmn5ODX4P974nxgrNOAgnAPXg@mail.gmail.com>
	<etPan.5504a629.643c9869.16d@Rudis-MacBook-Pro.local>
From: Trevor Smith <trevorsummerssmith@gmail.com>
Date: Sat, 14 Mar 2015 23:32:09 +0000
Message-ID: <CAG-KTt9QKcsWQ3gva_rZqpXByFM5HPo6ts1CEUgeKz0=hoyYKA@mail.gmail.com>
To: Rudi Grinberg <rudi.grinberg@gmail.com>, 
	"mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] CoHTTP Design: Polymorphic Variants
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============7239250074518927880=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============7239250074518927880==
Content-Type: multipart/alternative; boundary=001a1147e97ca14aeb0511480600

--001a1147e97ca14aeb0511480600
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Rudi,
Thanks for the reply! Great link!
Trevor
On Sat, Mar 14, 2015 at 5:17 PM Rudi Grinberg <rudi.grinberg@gmail.com>
wrote:

> Hi Trevor,
>
> This is the standard reference I usually refer people when they ask this:
> http://stackoverflow.com/questions/9367181/variants-or-polymorphic-varian=
ts
>
>
> <http://stackoverflow.com/questions/9367181/variants-or-polymorphic-varia=
nts>
> In cohttp=E2=80=99s case I think the benefits listed in 2, 3, and 4 apply=
.
>
> Thanks,
>
> Rudi.
>
>
> <http://stackoverflow.com/questions/9367181/variants-or-polymorphic-varia=
nts>
>
> On March 14, 2015 at 5:14:10 PM, Trevor Smith (
> trevorsummerssmith@gmail.com) wrote:
>
> I am curious to hear the design tradeoffs that were considered in choosin=
g
> polymorphic variants vs variants in the code.mli types. I haven't really
> wrapped my head around why that decision was made, and am eager to learn
> more about real world use of polymorphic variants.
>
>

--001a1147e97ca14aeb0511480600
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Rudi,<br>Thanks for the reply! Great link!<br>Trevor<br><div class=3D"gmail=
_quote">On Sat, Mar 14, 2015 at 5:17 PM Rudi Grinberg &lt;<a href=3D"mailto=
:rudi.grinberg@gmail.com">rudi.grinberg@gmail.com</a>&gt; wrote:<br><blockq=
uote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc =
solid;padding-left:1ex"><div style=3D"word-wrap:break-word"><div style=3D"f=
ont-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;=
line-height:auto">Hi Trevor,</div><div style=3D"font-family:Helvetica,Arial=
;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></di=
v><div style=3D"font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0=
,1.0);margin:0px;line-height:auto">This is the standard reference I usually=
 refer people when they ask this:=C2=A0<a href=3D"http://stackoverflow.com/=
questions/9367181/variants-or-polymorphic-variants" target=3D"_blank">http:=
//stackoverflow.com/questions/9367181/variants-or-polymorphic-variants<br><=
/a></div><div style=3D"font-family:Helvetica,Arial;font-size:13px;color:rgb=
a(0,0,0,1.0);margin:0px;line-height:auto"><a href=3D"http://stackoverflow.c=
om/questions/9367181/variants-or-polymorphic-variants" target=3D"_blank"><b=
r></a></div><div style=3D"font-family:Helvetica,Arial;font-size:13px;color:=
rgba(0,0,0,1.0);margin:0px;line-height:auto">In cohttp=E2=80=99s case I thi=
nk the benefits listed in 2, 3, and 4 apply.</div><div style=3D"font-family=
:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-heigh=
t:auto"><br></div><div style=3D"font-family:Helvetica,Arial;font-size:13px;=
color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Thanks,</div><div style=
=3D"font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin=
:0px;line-height:auto"><br></div><div style=3D"font-family:Helvetica,Arial;=
font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Rudi.</di=
v></div><div style=3D"word-wrap:break-word"><div style=3D"font-family:Helve=
tica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto=
"><a href=3D"http://stackoverflow.com/questions/9367181/variants-or-polymor=
phic-variants" target=3D"_blank"><br></a></div><p style=3D"color:#000">On M=
arch 14, 2015 at 5:14:10 PM, Trevor Smith (<a href=3D"mailto:trevorsummerss=
mith@gmail.com" target=3D"_blank">trevorsummerssmith@gmail.com</a>) wrote:<=
/p> <blockquote type=3D"cite"><span><div><div style=3D"color:rgb(0,0,0);fon=
t-family:&#39;helvetica Neue&#39;,helvetica;font-size:12.727272033691406px;=
font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:nor=
mal;line-height:19.5px;text-align:start;text-indent:0px;text-transform:none=
;white-space:normal;word-spacing:0px">I am curious to hear the design trade=
offs that were considered in choosing polymorphic variants vs variants in t=
he code.mli types. I haven&#39;t really wrapped my head around why that dec=
ision was made, and am eager to learn more about real world use of polymorp=
hic variants.</div><br></div></span></blockquote> <div></div></div></blockq=
uote></div>

--001a1147e97ca14aeb0511480600--


--===============7239250074518927880==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============7239250074518927880==--


From mirageos-devel-bounces@lists.xenproject.org Sat Mar 14 23:32:21 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 14 Mar 2015 23:32:21 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YWvXS-0004yC-BZ; Sat, 14 Mar 2015 23:32:14 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <trevorsummerssmith@gmail.com>) id 1YWvXR-0004y7-4W
	for mirageos-devel@lists.xenproject.org; Sat, 14 Mar 2015 23:32:13 +0000
Received: from [193.109.254.147] by server-8.bemta-14.messagelabs.com id
	8E/88-30864-CF4C4055; Sat, 14 Mar 2015 23:32:12 +0000
X-Env-Sender: trevorsummerssmith@gmail.com
X-Msg-Ref: server-10.tower-27.messagelabs.com!1426375930!12936066!1
X-Originating-IP: [209.85.216.177]
X-SpamReason: No, hits=0.0 required=7.0 tests=HTML_MESSAGE
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 17339 invoked from network); 14 Mar 2015 23:32:11 -0000
Received: from mail-qc0-f177.google.com (HELO mail-qc0-f177.google.com)
	(209.85.216.177)
	by server-10.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	14 Mar 2015 23:32:11 -0000
Received: by qcbkw5 with SMTP id kw5so16983562qcb.2
	for <mirageos-devel@lists.xenproject.org>;
	Sat, 14 Mar 2015 16:32:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:references:from:date:message-id:subject:to
	:content-type; bh=ClePplhh/3s4bIM/HnMx9Ypk6P0uqW4u3k8n5Ap1tIw=;
	b=uhIm3zCX/6x89Y340R1bV/a77A9LSZ54gG60xp9PciK2B3yAzuNkeM88LOpio7QC/3
	sc4Xo5MhnuKuxgwEw6nv8jrmq1Lb362gA5w0VNzhNoPJAO/AFo3oei8rtWKdSjjdCbGW
	AwJuFm8Pztb7PA5sSaNhiBF7aK0K047PRvNLVAgoPBCqVLEGFwAecOmmIDsWyvFmiZAX
	0SN14I47kUQkIA/ZEFpa6LkkP3I4ULJHj66hLVlNb0BAyBM5G2EiHLdFlsiXlIcnVhdx
	7bibb/kH5Kt68gTmINaaX50YtXuesCRjXeQjBNbTnCJ3ScQEBsS6ACpdJiMnI1YRFV7F
	Si8w==
X-Received: by 10.55.31.143 with SMTP id n15mr75090713qkh.70.1426375930102;
	Sat, 14 Mar 2015 16:32:10 -0700 (PDT)
MIME-Version: 1.0
References: <CAG-KTt-O4qTqeF=kGHvQ+zbczqmn5ODX4P974nxgrNOAgnAPXg@mail.gmail.com>
	<etPan.5504a629.643c9869.16d@Rudis-MacBook-Pro.local>
From: Trevor Smith <trevorsummerssmith@gmail.com>
Date: Sat, 14 Mar 2015 23:32:09 +0000
Message-ID: <CAG-KTt9QKcsWQ3gva_rZqpXByFM5HPo6ts1CEUgeKz0=hoyYKA@mail.gmail.com>
To: Rudi Grinberg <rudi.grinberg@gmail.com>, 
	"mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] CoHTTP Design: Polymorphic Variants
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============7239250074518927880=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============7239250074518927880==
Content-Type: multipart/alternative; boundary=001a1147e97ca14aeb0511480600

--001a1147e97ca14aeb0511480600
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Rudi,
Thanks for the reply! Great link!
Trevor
On Sat, Mar 14, 2015 at 5:17 PM Rudi Grinberg <rudi.grinberg@gmail.com>
wrote:

> Hi Trevor,
>
> This is the standard reference I usually refer people when they ask this:
> http://stackoverflow.com/questions/9367181/variants-or-polymorphic-varian=
ts
>
>
> <http://stackoverflow.com/questions/9367181/variants-or-polymorphic-varia=
nts>
> In cohttp=E2=80=99s case I think the benefits listed in 2, 3, and 4 apply=
.
>
> Thanks,
>
> Rudi.
>
>
> <http://stackoverflow.com/questions/9367181/variants-or-polymorphic-varia=
nts>
>
> On March 14, 2015 at 5:14:10 PM, Trevor Smith (
> trevorsummerssmith@gmail.com) wrote:
>
> I am curious to hear the design tradeoffs that were considered in choosin=
g
> polymorphic variants vs variants in the code.mli types. I haven't really
> wrapped my head around why that decision was made, and am eager to learn
> more about real world use of polymorphic variants.
>
>

--001a1147e97ca14aeb0511480600
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Rudi,<br>Thanks for the reply! Great link!<br>Trevor<br><div class=3D"gmail=
_quote">On Sat, Mar 14, 2015 at 5:17 PM Rudi Grinberg &lt;<a href=3D"mailto=
:rudi.grinberg@gmail.com">rudi.grinberg@gmail.com</a>&gt; wrote:<br><blockq=
uote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc =
solid;padding-left:1ex"><div style=3D"word-wrap:break-word"><div style=3D"f=
ont-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;=
line-height:auto">Hi Trevor,</div><div style=3D"font-family:Helvetica,Arial=
;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></di=
v><div style=3D"font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0=
,1.0);margin:0px;line-height:auto">This is the standard reference I usually=
 refer people when they ask this:=C2=A0<a href=3D"http://stackoverflow.com/=
questions/9367181/variants-or-polymorphic-variants" target=3D"_blank">http:=
//stackoverflow.com/questions/9367181/variants-or-polymorphic-variants<br><=
/a></div><div style=3D"font-family:Helvetica,Arial;font-size:13px;color:rgb=
a(0,0,0,1.0);margin:0px;line-height:auto"><a href=3D"http://stackoverflow.c=
om/questions/9367181/variants-or-polymorphic-variants" target=3D"_blank"><b=
r></a></div><div style=3D"font-family:Helvetica,Arial;font-size:13px;color:=
rgba(0,0,0,1.0);margin:0px;line-height:auto">In cohttp=E2=80=99s case I thi=
nk the benefits listed in 2, 3, and 4 apply.</div><div style=3D"font-family=
:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-heigh=
t:auto"><br></div><div style=3D"font-family:Helvetica,Arial;font-size:13px;=
color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Thanks,</div><div style=
=3D"font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin=
:0px;line-height:auto"><br></div><div style=3D"font-family:Helvetica,Arial;=
font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">Rudi.</di=
v></div><div style=3D"word-wrap:break-word"><div style=3D"font-family:Helve=
tica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto=
"><a href=3D"http://stackoverflow.com/questions/9367181/variants-or-polymor=
phic-variants" target=3D"_blank"><br></a></div><p style=3D"color:#000">On M=
arch 14, 2015 at 5:14:10 PM, Trevor Smith (<a href=3D"mailto:trevorsummerss=
mith@gmail.com" target=3D"_blank">trevorsummerssmith@gmail.com</a>) wrote:<=
/p> <blockquote type=3D"cite"><span><div><div style=3D"color:rgb(0,0,0);fon=
t-family:&#39;helvetica Neue&#39;,helvetica;font-size:12.727272033691406px;=
font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:nor=
mal;line-height:19.5px;text-align:start;text-indent:0px;text-transform:none=
;white-space:normal;word-spacing:0px">I am curious to hear the design trade=
offs that were considered in choosing polymorphic variants vs variants in t=
he code.mli types. I haven&#39;t really wrapped my head around why that dec=
ision was made, and am eager to learn more about real world use of polymorp=
hic variants.</div><br></div></span></blockquote> <div></div></div></blockq=
uote></div>

--001a1147e97ca14aeb0511480600--


--===============7239250074518927880==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============7239250074518927880==--


From mirageos-devel-bounces@lists.xenproject.org Sun Mar 15 11:39:47 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 15 Mar 2015 11:39:47 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YX6tN-0000Ow-8h; Sun, 15 Mar 2015 11:39:37 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mmatalka@gmail.com>) id 1YX6tM-0000Ka-04
	for mirageos-devel@lists.xenproject.org; Sun, 15 Mar 2015 11:39:36 +0000
Received: from [85.158.137.68] by server-4.bemta-3.messagelabs.com id
	8F/35-10357-67F65055; Sun, 15 Mar 2015 11:39:34 +0000
X-Env-Sender: mmatalka@gmail.com
X-Msg-Ref: server-15.tower-31.messagelabs.com!1426419574!12089785!1
X-Originating-IP: [74.125.82.51]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 15087 invoked from network); 15 Mar 2015 11:39:34 -0000
Received: from mail-wg0-f51.google.com (HELO mail-wg0-f51.google.com)
	(74.125.82.51)
	by server-15.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	15 Mar 2015 11:39:34 -0000
Received: by wgdm6 with SMTP id m6so19522507wgd.2
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 15 Mar 2015 04:39:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:to:cc:subject:references:date:in-reply-to:message-id
	:user-agent:mime-version:content-type;
	bh=hbnyVuXcO2l0uJnlXB1WJ1mEdTK087EBojrfQtO/i4Q=;
	b=m6EWgC7GmIolN36+ixx1zB5UnnxWNmkShhQkhes6PZOlj4+shHFF185XgER9tvmoht
	7iwCa/QNt0n81Pc7xSF+gLyFkkStGAewpV2AH2m1pN49QNLcAMcLXtdUeJop+4xiziXK
	9MzcJRMCHcGFHTCNOJEwGBBWupznQykctaU1g033kl481zSp7TJlkJCWoPyRafJMCzCJ
	nPIWj8Pma4JTerHb5oJR8FRhXbQy+pyn3ycsPiPGBaEtGCtusz97yCW9XvgaFhIU5JAs
	ar9zsAoj1y9iJ3vAHqH5k7IzrKRqi9z9qdwBzX86zRBhtDG3ulmVJ/q6xFPtJ37jIWLC
	GQzA==
X-Received: by 10.180.198.162 with SMTP id jd2mr151097947wic.21.1426419573949; 
	Sun, 15 Mar 2015 04:39:33 -0700 (PDT)
Received: from localhost ([2a01:7e00::f03c:91ff:fe70:2696])
	by mx.google.com with ESMTPSA id
	nb4sm10704200wjc.20.2015.03.15.04.39.32
	(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Sun, 15 Mar 2015 04:39:32 -0700 (PDT)
From: Malcolm Matalka <mmatalka@gmail.com>
To: Trevor Smith <trevorsummerssmith@gmail.com>
References: <CAG-KTt-O4qTqeF=kGHvQ+zbczqmn5ODX4P974nxgrNOAgnAPXg@mail.gmail.com>
Date: Sun, 15 Mar 2015 11:39:32 +0000
In-Reply-To: <CAG-KTt-O4qTqeF=kGHvQ+zbczqmn5ODX4P974nxgrNOAgnAPXg@mail.gmail.com>
	(Trevor Smith's message of "Sat, 14 Mar 2015 17:13:39 -0400")
Message-ID: <87pp8afq17.fsf@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
MIME-Version: 1.0
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] CoHTTP Design: Polymorphic Variants
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

The biggest reason is that it makes doing any monadic Result.t work
possible.  Consider:

foo () >>= fun () ->
bar () >>= fun () ->
Cohttp.something () >>= function
  | Ok ... ->
  | Error ... ->


If every one of those functions returned a regular variant, you would
not be able to compose them like that.

Trevor Smith <trevorsummerssmith@gmail.com> writes:

> Hello,
>
> I am curious to hear the design tradeoffs that were considered in choosing
> polymorphic variants vs variants in the code.mli types. I haven't really
> wrapped my head around why that decision was made, and am eager to learn
> more about real world use of polymorphic variants.
>
> Thank you.
>
> Trevor
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Sun Mar 15 11:39:47 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 15 Mar 2015 11:39:47 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YX6tN-0000Ow-8h; Sun, 15 Mar 2015 11:39:37 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mmatalka@gmail.com>) id 1YX6tM-0000Ka-04
	for mirageos-devel@lists.xenproject.org; Sun, 15 Mar 2015 11:39:36 +0000
Received: from [85.158.137.68] by server-4.bemta-3.messagelabs.com id
	8F/35-10357-67F65055; Sun, 15 Mar 2015 11:39:34 +0000
X-Env-Sender: mmatalka@gmail.com
X-Msg-Ref: server-15.tower-31.messagelabs.com!1426419574!12089785!1
X-Originating-IP: [74.125.82.51]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 15087 invoked from network); 15 Mar 2015 11:39:34 -0000
Received: from mail-wg0-f51.google.com (HELO mail-wg0-f51.google.com)
	(74.125.82.51)
	by server-15.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	15 Mar 2015 11:39:34 -0000
Received: by wgdm6 with SMTP id m6so19522507wgd.2
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 15 Mar 2015 04:39:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:to:cc:subject:references:date:in-reply-to:message-id
	:user-agent:mime-version:content-type;
	bh=hbnyVuXcO2l0uJnlXB1WJ1mEdTK087EBojrfQtO/i4Q=;
	b=m6EWgC7GmIolN36+ixx1zB5UnnxWNmkShhQkhes6PZOlj4+shHFF185XgER9tvmoht
	7iwCa/QNt0n81Pc7xSF+gLyFkkStGAewpV2AH2m1pN49QNLcAMcLXtdUeJop+4xiziXK
	9MzcJRMCHcGFHTCNOJEwGBBWupznQykctaU1g033kl481zSp7TJlkJCWoPyRafJMCzCJ
	nPIWj8Pma4JTerHb5oJR8FRhXbQy+pyn3ycsPiPGBaEtGCtusz97yCW9XvgaFhIU5JAs
	ar9zsAoj1y9iJ3vAHqH5k7IzrKRqi9z9qdwBzX86zRBhtDG3ulmVJ/q6xFPtJ37jIWLC
	GQzA==
X-Received: by 10.180.198.162 with SMTP id jd2mr151097947wic.21.1426419573949; 
	Sun, 15 Mar 2015 04:39:33 -0700 (PDT)
Received: from localhost ([2a01:7e00::f03c:91ff:fe70:2696])
	by mx.google.com with ESMTPSA id
	nb4sm10704200wjc.20.2015.03.15.04.39.32
	(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Sun, 15 Mar 2015 04:39:32 -0700 (PDT)
From: Malcolm Matalka <mmatalka@gmail.com>
To: Trevor Smith <trevorsummerssmith@gmail.com>
References: <CAG-KTt-O4qTqeF=kGHvQ+zbczqmn5ODX4P974nxgrNOAgnAPXg@mail.gmail.com>
Date: Sun, 15 Mar 2015 11:39:32 +0000
In-Reply-To: <CAG-KTt-O4qTqeF=kGHvQ+zbczqmn5ODX4P974nxgrNOAgnAPXg@mail.gmail.com>
	(Trevor Smith's message of "Sat, 14 Mar 2015 17:13:39 -0400")
Message-ID: <87pp8afq17.fsf@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
MIME-Version: 1.0
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] CoHTTP Design: Polymorphic Variants
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

The biggest reason is that it makes doing any monadic Result.t work
possible.  Consider:

foo () >>= fun () ->
bar () >>= fun () ->
Cohttp.something () >>= function
  | Ok ... ->
  | Error ... ->


If every one of those functions returned a regular variant, you would
not be able to compose them like that.

Trevor Smith <trevorsummerssmith@gmail.com> writes:

> Hello,
>
> I am curious to hear the design tradeoffs that were considered in choosing
> polymorphic variants vs variants in the code.mli types. I haven't really
> wrapped my head around why that decision was made, and am eager to learn
> more about real world use of polymorphic variants.
>
> Thank you.
>
> Trevor
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Sun Mar 15 17:52:42 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 15 Mar 2015 17:52:42 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXCiK-000577-FO; Sun, 15 Mar 2015 17:52:36 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <trevorsummerssmith@gmail.com>) id 1YXCiJ-000572-39
	for mirageos-devel@lists.xenproject.org; Sun, 15 Mar 2015 17:52:35 +0000
Received: from [85.158.137.68] by server-6.bemta-3.messagelabs.com id
	34/F0-18734-2E6C5055; Sun, 15 Mar 2015 17:52:34 +0000
X-Env-Sender: trevorsummerssmith@gmail.com
X-Msg-Ref: server-7.tower-31.messagelabs.com!1426441951!12259351!1
X-Originating-IP: [209.85.192.52]
X-SpamReason: No, hits=0.4 required=7.0 tests=HTML_30_40,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 16235 invoked from network); 15 Mar 2015 17:52:32 -0000
Received: from mail-qg0-f52.google.com (HELO mail-qg0-f52.google.com)
	(209.85.192.52)
	by server-7.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	15 Mar 2015 17:52:32 -0000
Received: by qgez64 with SMTP id z64so23750757qge.2
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 15 Mar 2015 10:52:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=T/5+4tM8VNr1XhFveeHDQxu70/9wDFKM34Ixg3H7bfM=;
	b=q/y/ECp+w6v0gG1dlt6278kwePlV1zG1xlFRVv7jTgsAcgu+LIMaF/u4FN/87lXNtT
	KAL5g9ZcMnEz6Ak3h4u1ZWjnjwXl/5J5h0VQtJbeAT73wwa0AghNQ58tfKlskx5+PL6W
	XVy+KvoRCKWcgAwmxWtiv3sMavkUHsNegf3Pv8Je8YRgIgYv4qYXGS+YwvdA/2G7pIOs
	mNt3UDEeR2g+KBtGud1qp286e/CuNaB6j+c+soGpMJpqIrRCQ94vp/Ol64kj8Pg+amPX
	gWVZFZAcrMrQPJE/6DqHrBpDt3OGF5jM7sZxZ326dnLIT5vWwzwe2Dg5hI4rEF6VEM4d
	4rug==
MIME-Version: 1.0
X-Received: by 10.55.31.143 with SMTP id n15mr80723962qkh.70.1426441951508;
	Sun, 15 Mar 2015 10:52:31 -0700 (PDT)
Received: by 10.229.240.68 with HTTP; Sun, 15 Mar 2015 10:52:31 -0700 (PDT)
In-Reply-To: <87pp8afq17.fsf@gmail.com>
References: <CAG-KTt-O4qTqeF=kGHvQ+zbczqmn5ODX4P974nxgrNOAgnAPXg@mail.gmail.com>
	<87pp8afq17.fsf@gmail.com>
Date: Sun, 15 Mar 2015 13:52:31 -0400
Message-ID: <CAG-KTt_wXPq1+pieM8NEHgK9=5TZyqss7eUBWJw=UdNG2Z+sKg@mail.gmail.com>
From: Trevor Smith <trevorsummerssmith@gmail.com>
To: Malcolm Matalka <mmatalka@gmail.com>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] CoHTTP Design: Polymorphic Variants
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0169418267183905730=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============0169418267183905730==
Content-Type: multipart/alternative; boundary=001a1147e97ccffdfc0511576588

--001a1147e97ccffdfc0511576588
Content-Type: text/plain; charset=UTF-8

Malcolm,

Thanks for your response. I think I am dense and am not quite understanding
your point. In the example you gave the foo and bar both take and return
unit.  Can you explain a bit more your point?

Trevor

On Sun, Mar 15, 2015 at 7:39 AM, Malcolm Matalka <mmatalka@gmail.com> wrote:

> The biggest reason is that it makes doing any monadic Result.t work
> possible.  Consider:
>
> foo () >>= fun () ->
> bar () >>= fun () ->
> Cohttp.something () >>= function
>   | Ok ... ->
>   | Error ... ->
>
>
> If every one of those functions returned a regular variant, you would
> not be able to compose them like that.
>
> Trevor Smith <trevorsummerssmith@gmail.com> writes:
>
> > Hello,
> >
> > I am curious to hear the design tradeoffs that were considered in
> choosing
> > polymorphic variants vs variants in the code.mli types. I haven't really
> > wrapped my head around why that decision was made, and am eager to learn
> > more about real world use of polymorphic variants.
> >
> > Thank you.
> >
> > Trevor
> > _______________________________________________
> > MirageOS-devel mailing list
> > MirageOS-devel@lists.xenproject.org
> > http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>

--001a1147e97ccffdfc0511576588
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Malcolm,<div><br></div><div>Thanks for your response. I th=
ink I am dense and am not quite understanding your point. In the example yo=
u gave the foo and bar both take and return unit.=C2=A0 Can you explain a b=
it more your point?</div><div><br></div><div>Trevor</div></div><div class=
=3D"gmail_extra"><br><div class=3D"gmail_quote">On Sun, Mar 15, 2015 at 7:3=
9 AM, Malcolm Matalka <span dir=3D"ltr">&lt;<a href=3D"mailto:mmatalka@gmai=
l.com" target=3D"_blank">mmatalka@gmail.com</a>&gt;</span> wrote:<br><block=
quote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc=
 solid;padding-left:1ex">The biggest reason is that it makes doing any mona=
dic Result.t work<br>
possible.=C2=A0 Consider:<br>
<br>
foo () &gt;&gt;=3D fun () -&gt;<br>
bar () &gt;&gt;=3D fun () -&gt;<br>
Cohttp.something () &gt;&gt;=3D function<br>
=C2=A0 | Ok ... -&gt;<br>
=C2=A0 | Error ... -&gt;<br>
<br>
<br>
If every one of those functions returned a regular variant, you would<br>
not be able to compose them like that.<br>
<div><div class=3D"h5"><br>
Trevor Smith &lt;<a href=3D"mailto:trevorsummerssmith@gmail.com">trevorsumm=
erssmith@gmail.com</a>&gt; writes:<br>
<br>
&gt; Hello,<br>
&gt;<br>
&gt; I am curious to hear the design tradeoffs that were considered in choo=
sing<br>
&gt; polymorphic variants vs variants in the code.mli types. I haven&#39;t =
really<br>
&gt; wrapped my head around why that decision was made, and am eager to lea=
rn<br>
&gt; more about real world use of polymorphic variants.<br>
&gt;<br>
&gt; Thank you.<br>
&gt;<br>
&gt; Trevor<br>
</div></div>&gt; _______________________________________________<br>
&gt; MirageOS-devel mailing list<br>
&gt; <a href=3D"mailto:MirageOS-devel@lists.xenproject.org">MirageOS-devel@=
lists.xenproject.org</a><br>
&gt; <a href=3D"http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirage=
os-devel" target=3D"_blank">http://lists.xenproject.org/cgi-bin/mailman/lis=
tinfo/mirageos-devel</a><br>
</blockquote></div><br></div>

--001a1147e97ccffdfc0511576588--


--===============0169418267183905730==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============0169418267183905730==--


From mirageos-devel-bounces@lists.xenproject.org Sun Mar 15 17:52:42 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 15 Mar 2015 17:52:42 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXCiK-000577-FO; Sun, 15 Mar 2015 17:52:36 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <trevorsummerssmith@gmail.com>) id 1YXCiJ-000572-39
	for mirageos-devel@lists.xenproject.org; Sun, 15 Mar 2015 17:52:35 +0000
Received: from [85.158.137.68] by server-6.bemta-3.messagelabs.com id
	34/F0-18734-2E6C5055; Sun, 15 Mar 2015 17:52:34 +0000
X-Env-Sender: trevorsummerssmith@gmail.com
X-Msg-Ref: server-7.tower-31.messagelabs.com!1426441951!12259351!1
X-Originating-IP: [209.85.192.52]
X-SpamReason: No, hits=0.4 required=7.0 tests=HTML_30_40,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 16235 invoked from network); 15 Mar 2015 17:52:32 -0000
Received: from mail-qg0-f52.google.com (HELO mail-qg0-f52.google.com)
	(209.85.192.52)
	by server-7.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	15 Mar 2015 17:52:32 -0000
Received: by qgez64 with SMTP id z64so23750757qge.2
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 15 Mar 2015 10:52:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=T/5+4tM8VNr1XhFveeHDQxu70/9wDFKM34Ixg3H7bfM=;
	b=q/y/ECp+w6v0gG1dlt6278kwePlV1zG1xlFRVv7jTgsAcgu+LIMaF/u4FN/87lXNtT
	KAL5g9ZcMnEz6Ak3h4u1ZWjnjwXl/5J5h0VQtJbeAT73wwa0AghNQ58tfKlskx5+PL6W
	XVy+KvoRCKWcgAwmxWtiv3sMavkUHsNegf3Pv8Je8YRgIgYv4qYXGS+YwvdA/2G7pIOs
	mNt3UDEeR2g+KBtGud1qp286e/CuNaB6j+c+soGpMJpqIrRCQ94vp/Ol64kj8Pg+amPX
	gWVZFZAcrMrQPJE/6DqHrBpDt3OGF5jM7sZxZ326dnLIT5vWwzwe2Dg5hI4rEF6VEM4d
	4rug==
MIME-Version: 1.0
X-Received: by 10.55.31.143 with SMTP id n15mr80723962qkh.70.1426441951508;
	Sun, 15 Mar 2015 10:52:31 -0700 (PDT)
Received: by 10.229.240.68 with HTTP; Sun, 15 Mar 2015 10:52:31 -0700 (PDT)
In-Reply-To: <87pp8afq17.fsf@gmail.com>
References: <CAG-KTt-O4qTqeF=kGHvQ+zbczqmn5ODX4P974nxgrNOAgnAPXg@mail.gmail.com>
	<87pp8afq17.fsf@gmail.com>
Date: Sun, 15 Mar 2015 13:52:31 -0400
Message-ID: <CAG-KTt_wXPq1+pieM8NEHgK9=5TZyqss7eUBWJw=UdNG2Z+sKg@mail.gmail.com>
From: Trevor Smith <trevorsummerssmith@gmail.com>
To: Malcolm Matalka <mmatalka@gmail.com>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] CoHTTP Design: Polymorphic Variants
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0169418267183905730=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============0169418267183905730==
Content-Type: multipart/alternative; boundary=001a1147e97ccffdfc0511576588

--001a1147e97ccffdfc0511576588
Content-Type: text/plain; charset=UTF-8

Malcolm,

Thanks for your response. I think I am dense and am not quite understanding
your point. In the example you gave the foo and bar both take and return
unit.  Can you explain a bit more your point?

Trevor

On Sun, Mar 15, 2015 at 7:39 AM, Malcolm Matalka <mmatalka@gmail.com> wrote:

> The biggest reason is that it makes doing any monadic Result.t work
> possible.  Consider:
>
> foo () >>= fun () ->
> bar () >>= fun () ->
> Cohttp.something () >>= function
>   | Ok ... ->
>   | Error ... ->
>
>
> If every one of those functions returned a regular variant, you would
> not be able to compose them like that.
>
> Trevor Smith <trevorsummerssmith@gmail.com> writes:
>
> > Hello,
> >
> > I am curious to hear the design tradeoffs that were considered in
> choosing
> > polymorphic variants vs variants in the code.mli types. I haven't really
> > wrapped my head around why that decision was made, and am eager to learn
> > more about real world use of polymorphic variants.
> >
> > Thank you.
> >
> > Trevor
> > _______________________________________________
> > MirageOS-devel mailing list
> > MirageOS-devel@lists.xenproject.org
> > http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>

--001a1147e97ccffdfc0511576588
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Malcolm,<div><br></div><div>Thanks for your response. I th=
ink I am dense and am not quite understanding your point. In the example yo=
u gave the foo and bar both take and return unit.=C2=A0 Can you explain a b=
it more your point?</div><div><br></div><div>Trevor</div></div><div class=
=3D"gmail_extra"><br><div class=3D"gmail_quote">On Sun, Mar 15, 2015 at 7:3=
9 AM, Malcolm Matalka <span dir=3D"ltr">&lt;<a href=3D"mailto:mmatalka@gmai=
l.com" target=3D"_blank">mmatalka@gmail.com</a>&gt;</span> wrote:<br><block=
quote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc=
 solid;padding-left:1ex">The biggest reason is that it makes doing any mona=
dic Result.t work<br>
possible.=C2=A0 Consider:<br>
<br>
foo () &gt;&gt;=3D fun () -&gt;<br>
bar () &gt;&gt;=3D fun () -&gt;<br>
Cohttp.something () &gt;&gt;=3D function<br>
=C2=A0 | Ok ... -&gt;<br>
=C2=A0 | Error ... -&gt;<br>
<br>
<br>
If every one of those functions returned a regular variant, you would<br>
not be able to compose them like that.<br>
<div><div class=3D"h5"><br>
Trevor Smith &lt;<a href=3D"mailto:trevorsummerssmith@gmail.com">trevorsumm=
erssmith@gmail.com</a>&gt; writes:<br>
<br>
&gt; Hello,<br>
&gt;<br>
&gt; I am curious to hear the design tradeoffs that were considered in choo=
sing<br>
&gt; polymorphic variants vs variants in the code.mli types. I haven&#39;t =
really<br>
&gt; wrapped my head around why that decision was made, and am eager to lea=
rn<br>
&gt; more about real world use of polymorphic variants.<br>
&gt;<br>
&gt; Thank you.<br>
&gt;<br>
&gt; Trevor<br>
</div></div>&gt; _______________________________________________<br>
&gt; MirageOS-devel mailing list<br>
&gt; <a href=3D"mailto:MirageOS-devel@lists.xenproject.org">MirageOS-devel@=
lists.xenproject.org</a><br>
&gt; <a href=3D"http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirage=
os-devel" target=3D"_blank">http://lists.xenproject.org/cgi-bin/mailman/lis=
tinfo/mirageos-devel</a><br>
</blockquote></div><br></div>

--001a1147e97ccffdfc0511576588--


--===============0169418267183905730==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============0169418267183905730==--


From mirageos-devel-bounces@lists.xenproject.org Mon Mar 16 12:27:50 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 16 Mar 2015 12:27:50 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXU7V-0001vO-Gd; Mon, 16 Mar 2015 12:27:45 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YXU7U-0001vJ-C7
	for mirageos-devel@lists.xenproject.org; Mon, 16 Mar 2015 12:27:44 +0000
Received: from [193.109.254.147] by server-7.bemta-14.messagelabs.com id
	91/A1-32627-F3CC6055; Mon, 16 Mar 2015 12:27:43 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-10.tower-27.messagelabs.com!1426508862!13289416!1
X-Originating-IP: [209.85.212.176]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 10119 invoked from network); 16 Mar 2015 12:27:42 -0000
Received: from mail-wi0-f176.google.com (HELO mail-wi0-f176.google.com)
	(209.85.212.176)
	by server-10.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	16 Mar 2015 12:27:42 -0000
Received: by wibg7 with SMTP id g7so29376955wib.1
	for <mirageos-devel@lists.xenproject.org>;
	Mon, 16 Mar 2015 05:27:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:from:content-type:content-transfer-encoding:subject
	:message-id:date:to:mime-version;
	bh=V6lfc0jg9tHENUodJg8PIOcFPWMPPyqU/TrdlH7WGp4=;
	b=wderq2Z6vP93V3/Kwg56FYtlZCyABIFiMm1mZxPpr1Embe5J5Ip0K7RFFjq1/3HHQK
	gpm/y2hMIlQ0WgzQ0c8L8C+J0VbB3UrZ6X4YuI7rRW/oCtWc/OqA2Yw+JzWkME+2WQmi
	tiR59afv467oSoteCq65+WqO+Z3d1bx/EztQIQ7HuS7ASzW0nb2KyK1i5mfQ9gsP03AL
	2aINr3diciVdG26kzRbItMEoOJLMVmv4Dz5pjJuj5ZZuY97z58tG2GMlAgBWtRrCexu8
	KSErBQkXeoknlhh/C4FP1BEVtaZLZ5ovOtURLwwpbUS7HmbUimlcoKFsIPkopC3E+8mh
	f9JQ==
X-Received: by 10.180.91.79 with SMTP id cc15mr150929138wib.37.1426508862029; 
	Mon, 16 Mar 2015 05:27:42 -0700 (PDT)
Received: from ?IPv6:2001:630:212:248:78d5:f8bc:22ae:c09e?
	([2001:630:212:248:78d5:f8bc:22ae:c09e])
	by mx.google.com with ESMTPSA id ei3sm15172497wib.4.2015.03.16.05.27.39
	for <mirageos-devel@lists.xenproject.org>
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Mon, 16 Mar 2015 05:27:40 -0700 (PDT)
From: Thomas Gazagnaire <thomas@gazagnaire.org>
Message-Id: <8B1774B1-7301-4859-B62C-10E56D780D8C@gazagnaire.org>
Date: Mon, 16 Mar 2015 12:27:38 +0000
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
X-Mailer: Apple Mail (2.2070.6)
Subject: [MirageOS-devel] documentation update
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi,

I've updated http://mirage.github.io/mirage/ to contains the latest version of the API (as it was starting be quite lagging).

Not sure how it was updated before, but as I have created a gh-pages branch, which is updated automatically by doing `make update-doc`. I'm using ocamldoc + Daniel's CSS for now on, I hope to switch to codoc soon.

Best,
Thomas
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Mon Mar 16 12:27:50 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 16 Mar 2015 12:27:50 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXU7V-0001vO-Gd; Mon, 16 Mar 2015 12:27:45 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YXU7U-0001vJ-C7
	for mirageos-devel@lists.xenproject.org; Mon, 16 Mar 2015 12:27:44 +0000
Received: from [193.109.254.147] by server-7.bemta-14.messagelabs.com id
	91/A1-32627-F3CC6055; Mon, 16 Mar 2015 12:27:43 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-10.tower-27.messagelabs.com!1426508862!13289416!1
X-Originating-IP: [209.85.212.176]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 10119 invoked from network); 16 Mar 2015 12:27:42 -0000
Received: from mail-wi0-f176.google.com (HELO mail-wi0-f176.google.com)
	(209.85.212.176)
	by server-10.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	16 Mar 2015 12:27:42 -0000
Received: by wibg7 with SMTP id g7so29376955wib.1
	for <mirageos-devel@lists.xenproject.org>;
	Mon, 16 Mar 2015 05:27:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:from:content-type:content-transfer-encoding:subject
	:message-id:date:to:mime-version;
	bh=V6lfc0jg9tHENUodJg8PIOcFPWMPPyqU/TrdlH7WGp4=;
	b=wderq2Z6vP93V3/Kwg56FYtlZCyABIFiMm1mZxPpr1Embe5J5Ip0K7RFFjq1/3HHQK
	gpm/y2hMIlQ0WgzQ0c8L8C+J0VbB3UrZ6X4YuI7rRW/oCtWc/OqA2Yw+JzWkME+2WQmi
	tiR59afv467oSoteCq65+WqO+Z3d1bx/EztQIQ7HuS7ASzW0nb2KyK1i5mfQ9gsP03AL
	2aINr3diciVdG26kzRbItMEoOJLMVmv4Dz5pjJuj5ZZuY97z58tG2GMlAgBWtRrCexu8
	KSErBQkXeoknlhh/C4FP1BEVtaZLZ5ovOtURLwwpbUS7HmbUimlcoKFsIPkopC3E+8mh
	f9JQ==
X-Received: by 10.180.91.79 with SMTP id cc15mr150929138wib.37.1426508862029; 
	Mon, 16 Mar 2015 05:27:42 -0700 (PDT)
Received: from ?IPv6:2001:630:212:248:78d5:f8bc:22ae:c09e?
	([2001:630:212:248:78d5:f8bc:22ae:c09e])
	by mx.google.com with ESMTPSA id ei3sm15172497wib.4.2015.03.16.05.27.39
	for <mirageos-devel@lists.xenproject.org>
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Mon, 16 Mar 2015 05:27:40 -0700 (PDT)
From: Thomas Gazagnaire <thomas@gazagnaire.org>
Message-Id: <8B1774B1-7301-4859-B62C-10E56D780D8C@gazagnaire.org>
Date: Mon, 16 Mar 2015 12:27:38 +0000
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
X-Mailer: Apple Mail (2.2070.6)
Subject: [MirageOS-devel] documentation update
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi,

I've updated http://mirage.github.io/mirage/ to contains the latest version of the API (as it was starting be quite lagging).

Not sure how it was updated before, but as I have created a gh-pages branch, which is updated automatically by doing `make update-doc`. I'm using ocamldoc + Daniel's CSS for now on, I hope to switch to codoc soon.

Best,
Thomas
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Mon Mar 16 12:50:32 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 16 Mar 2015 12:50:32 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXUTY-0005lv-1b; Mon, 16 Mar 2015 12:50:32 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <amc79@cam.ac.uk>) id 1YXUTW-0005lc-Ac
	for mirageos-devel@lists.xenproject.org; Mon, 16 Mar 2015 12:50:30 +0000
Received: from [85.158.137.68] by server-2.bemta-3.messagelabs.com id
	F2/42-01923-591D6055; Mon, 16 Mar 2015 12:50:29 +0000
X-Env-Sender: amc79@cam.ac.uk
X-Msg-Ref: server-11.tower-31.messagelabs.com!1426510228!12557455!1
X-Originating-IP: [131.111.8.152]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogMTMxLjExMS44LjE1MiA9PiA4MDU1Mw==\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 10769 invoked from network); 16 Mar 2015 12:50:28 -0000
Received: from ppsw-52.csi.cam.ac.uk (HELO ppsw-52.csi.cam.ac.uk)
	(131.111.8.152)
	by server-11.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 16 Mar 2015 12:50:28 -0000
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from cpc17-cmbg14-2-0-cust360.5-4.cable.virginm.net
	([86.6.155.105]:63963 helo=[192.168.0.8])
	by ppsw-52.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.159]:587)
	with esmtpsa (PLAIN:amc79) (TLSv1:AES128-SHA:128)
	id 1YXUTU-0005QE-EG (Exim 4.82_3-c0e5623)
	(return-path <amc79@cam.ac.uk>); Mon, 16 Mar 2015 12:50:28 +0000
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
From: Amir Chaudhry <amc79@cam.ac.uk>
In-Reply-To: <8B1774B1-7301-4859-B62C-10E56D780D8C@gazagnaire.org>
Date: Mon, 16 Mar 2015 12:50:37 +0000
Message-Id: <2A595026-8A23-4B30-A560-D20EF2E1FDF4@cam.ac.uk>
References: <8B1774B1-7301-4859-B62C-10E56D780D8C@gazagnaire.org>
To: Thomas Gazagnaire <thomas@gazagnaire.org>,
	mirageos-devel <mirageos-devel@lists.xenproject.org>
X-Mailer: Apple Mail (2.1510)
Subject: Re: [MirageOS-devel] documentation update
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Thanks Thomas!

Just to note that the API link on openmirage.org points to http://mirage.github.io [1].  This update means that the `Mirage` link from that page actually points to the current docs now (because of the way GitHub pages work for projects).

It would be good to update the rest of the docs too and I've made an issue to track this [2].  If you're looking after a repo on the Mirage GitHub org, then repeating what Thomas has done would be a useful interim step.

Also, if anyone would like to help out with improving the CSS of codoc, please do get involved!  

[1] The repo for which is at https://github.com/mirage/mirage.github.io (which hasn't been updated in a while)
[2] https://github.com/mirage/mirage/issues/376

Best wishes,
Amir

On 16 Mar 2015, at 12:27, Thomas Gazagnaire <thomas@gazagnaire.org> wrote:

> Hi,
> 
> I've updated http://mirage.github.io/mirage/ to contains the latest version of the API (as it was starting be quite lagging).
> 
> Not sure how it was updated before, but as I have created a gh-pages branch, which is updated automatically by doing `make update-doc`. I'm using ocamldoc + Daniel's CSS for now on, I hope to switch to codoc soon.
> 
> Best,
> Thomas
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Mon Mar 16 12:50:32 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 16 Mar 2015 12:50:32 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXUTY-0005lv-1b; Mon, 16 Mar 2015 12:50:32 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <amc79@cam.ac.uk>) id 1YXUTW-0005lc-Ac
	for mirageos-devel@lists.xenproject.org; Mon, 16 Mar 2015 12:50:30 +0000
Received: from [85.158.137.68] by server-2.bemta-3.messagelabs.com id
	F2/42-01923-591D6055; Mon, 16 Mar 2015 12:50:29 +0000
X-Env-Sender: amc79@cam.ac.uk
X-Msg-Ref: server-11.tower-31.messagelabs.com!1426510228!12557455!1
X-Originating-IP: [131.111.8.152]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogMTMxLjExMS44LjE1MiA9PiA4MDU1Mw==\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 10769 invoked from network); 16 Mar 2015 12:50:28 -0000
Received: from ppsw-52.csi.cam.ac.uk (HELO ppsw-52.csi.cam.ac.uk)
	(131.111.8.152)
	by server-11.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 16 Mar 2015 12:50:28 -0000
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from cpc17-cmbg14-2-0-cust360.5-4.cable.virginm.net
	([86.6.155.105]:63963 helo=[192.168.0.8])
	by ppsw-52.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.159]:587)
	with esmtpsa (PLAIN:amc79) (TLSv1:AES128-SHA:128)
	id 1YXUTU-0005QE-EG (Exim 4.82_3-c0e5623)
	(return-path <amc79@cam.ac.uk>); Mon, 16 Mar 2015 12:50:28 +0000
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
From: Amir Chaudhry <amc79@cam.ac.uk>
In-Reply-To: <8B1774B1-7301-4859-B62C-10E56D780D8C@gazagnaire.org>
Date: Mon, 16 Mar 2015 12:50:37 +0000
Message-Id: <2A595026-8A23-4B30-A560-D20EF2E1FDF4@cam.ac.uk>
References: <8B1774B1-7301-4859-B62C-10E56D780D8C@gazagnaire.org>
To: Thomas Gazagnaire <thomas@gazagnaire.org>,
	mirageos-devel <mirageos-devel@lists.xenproject.org>
X-Mailer: Apple Mail (2.1510)
Subject: Re: [MirageOS-devel] documentation update
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Thanks Thomas!

Just to note that the API link on openmirage.org points to http://mirage.github.io [1].  This update means that the `Mirage` link from that page actually points to the current docs now (because of the way GitHub pages work for projects).

It would be good to update the rest of the docs too and I've made an issue to track this [2].  If you're looking after a repo on the Mirage GitHub org, then repeating what Thomas has done would be a useful interim step.

Also, if anyone would like to help out with improving the CSS of codoc, please do get involved!  

[1] The repo for which is at https://github.com/mirage/mirage.github.io (which hasn't been updated in a while)
[2] https://github.com/mirage/mirage/issues/376

Best wishes,
Amir

On 16 Mar 2015, at 12:27, Thomas Gazagnaire <thomas@gazagnaire.org> wrote:

> Hi,
> 
> I've updated http://mirage.github.io/mirage/ to contains the latest version of the API (as it was starting be quite lagging).
> 
> Not sure how it was updated before, but as I have created a gh-pages branch, which is updated automatically by doing `make update-doc`. I'm using ocamldoc + Daniel's CSS for now on, I hope to switch to codoc soon.
> 
> Best,
> Thomas
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Mon Mar 16 13:39:05 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 16 Mar 2015 13:39:05 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXVEV-0005Cs-DH; Mon, 16 Mar 2015 13:39:03 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <avsm2@cl.cam.ac.uk>) id 1YXVEU-0005C9-8e
	for mirageos-devel@lists.xenproject.org; Mon, 16 Mar 2015 13:39:02 +0000
Received: from [85.158.139.211] by server-10.bemta-5.messagelabs.com id
	EF/FB-14739-5FCD6055; Mon, 16 Mar 2015 13:39:01 +0000
X-Env-Sender: avsm2@cl.cam.ac.uk
X-Msg-Ref: server-5.tower-206.messagelabs.com!1426513140!10930861!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 21202 invoked from network); 16 Mar 2015 13:39:01 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-5.tower-206.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 16 Mar 2015 13:39:01 -0000
Received: from [IPv6:::1] (localhost [127.0.0.1]);
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id d4261938;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Mon, 16 Mar 2015 13:39:00 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <avsm2@cl.cam.ac.uk>
In-Reply-To: <8B1774B1-7301-4859-B62C-10E56D780D8C@gazagnaire.org>
Date: Mon, 16 Mar 2015 14:37:16 +0100
Message-Id: <B8E218B7-68EC-427C-9AB2-DDA3D31901AD@cl.cam.ac.uk>
References: <8B1774B1-7301-4859-B62C-10E56D780D8C@gazagnaire.org>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] documentation update
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 16 Mar 2015, at 13:27, Thomas Gazagnaire <thomas@gazagnaire.org> wrote:
> 
> Hi,
> 
> I've updated http://mirage.github.io/mirage/ to contains the latest version of the API (as it was starting be quite lagging).
> 
> Not sure how it was updated before, but as I have created a gh-pages branch, which is updated automatically by doing `make update-doc`. I'm using ocamldoc + Daniel's CSS for now on, I hope to switch to codoc soon.

Thanks, it was manually built by me before, so this is much better.

-anil
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Mon Mar 16 13:39:05 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 16 Mar 2015 13:39:05 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXVEV-0005Cs-DH; Mon, 16 Mar 2015 13:39:03 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <avsm2@cl.cam.ac.uk>) id 1YXVEU-0005C9-8e
	for mirageos-devel@lists.xenproject.org; Mon, 16 Mar 2015 13:39:02 +0000
Received: from [85.158.139.211] by server-10.bemta-5.messagelabs.com id
	EF/FB-14739-5FCD6055; Mon, 16 Mar 2015 13:39:01 +0000
X-Env-Sender: avsm2@cl.cam.ac.uk
X-Msg-Ref: server-5.tower-206.messagelabs.com!1426513140!10930861!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 21202 invoked from network); 16 Mar 2015 13:39:01 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-5.tower-206.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 16 Mar 2015 13:39:01 -0000
Received: from [IPv6:::1] (localhost [127.0.0.1]);
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id d4261938;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Mon, 16 Mar 2015 13:39:00 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <avsm2@cl.cam.ac.uk>
In-Reply-To: <8B1774B1-7301-4859-B62C-10E56D780D8C@gazagnaire.org>
Date: Mon, 16 Mar 2015 14:37:16 +0100
Message-Id: <B8E218B7-68EC-427C-9AB2-DDA3D31901AD@cl.cam.ac.uk>
References: <8B1774B1-7301-4859-B62C-10E56D780D8C@gazagnaire.org>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] documentation update
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 16 Mar 2015, at 13:27, Thomas Gazagnaire <thomas@gazagnaire.org> wrote:
> 
> Hi,
> 
> I've updated http://mirage.github.io/mirage/ to contains the latest version of the API (as it was starting be quite lagging).
> 
> Not sure how it was updated before, but as I have created a gh-pages branch, which is updated automatically by doing `make update-doc`. I'm using ocamldoc + Daniel's CSS for now on, I hope to switch to codoc soon.

Thanks, it was manually built by me before, so this is much better.

-anil
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Mon Mar 16 14:18:10 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 16 Mar 2015 14:18:10 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXVqK-0002Cd-Bx; Mon, 16 Mar 2015 14:18:08 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YXVqI-0002CV-Ng
	for mirageos-devel@lists.xenproject.org; Mon, 16 Mar 2015 14:18:06 +0000
Received: from [85.158.139.211] by server-11.bemta-5.messagelabs.com id
	42/B5-31121-E16E6055; Mon, 16 Mar 2015 14:18:06 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-12.tower-206.messagelabs.com!1426515484!10964227!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 23842 invoked from network); 16 Mar 2015 14:18:04 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-12.tower-206.messagelabs.com with DHE-RSA-AES256-SHA
	encrypted SMTP; 16 Mar 2015 14:18:04 -0000
Received: from [127.0.0.1] (localhost [127.0.0.1]);
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 60bea93e;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Mon, 16 Mar 2015 14:18:03 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <8B1774B1-7301-4859-B62C-10E56D780D8C@gazagnaire.org>
Date: Mon, 16 Mar 2015 15:18:03 +0100
Message-Id: <C5B1F6DC-EEBC-4F87-AFCA-4B41C8C831D0@recoil.org>
References: <8B1774B1-7301-4859-B62C-10E56D780D8C@gazagnaire.org>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] documentation update
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 16 Mar 2015, at 13:27, Thomas Gazagnaire <thomas@gazagnaire.org> wrote:
> 
> Hi,
> 
> I've updated http://mirage.github.io/mirage/ to contains the latest version of the API (as it was starting be quite lagging).
> 
> Not sure how it was updated before, but as I have created a gh-pages branch, which is updated automatically by doing `make update-doc`. I'm using ocamldoc + Daniel's CSS for now on, I hope to switch to codoc soon.

Thanks, it was manually built by me before, so this is much better.

-anil
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Mon Mar 16 14:18:10 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 16 Mar 2015 14:18:10 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXVqK-0002Cd-Bx; Mon, 16 Mar 2015 14:18:08 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YXVqI-0002CV-Ng
	for mirageos-devel@lists.xenproject.org; Mon, 16 Mar 2015 14:18:06 +0000
Received: from [85.158.139.211] by server-11.bemta-5.messagelabs.com id
	42/B5-31121-E16E6055; Mon, 16 Mar 2015 14:18:06 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-12.tower-206.messagelabs.com!1426515484!10964227!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 23842 invoked from network); 16 Mar 2015 14:18:04 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-12.tower-206.messagelabs.com with DHE-RSA-AES256-SHA
	encrypted SMTP; 16 Mar 2015 14:18:04 -0000
Received: from [127.0.0.1] (localhost [127.0.0.1]);
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 60bea93e;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Mon, 16 Mar 2015 14:18:03 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <8B1774B1-7301-4859-B62C-10E56D780D8C@gazagnaire.org>
Date: Mon, 16 Mar 2015 15:18:03 +0100
Message-Id: <C5B1F6DC-EEBC-4F87-AFCA-4B41C8C831D0@recoil.org>
References: <8B1774B1-7301-4859-B62C-10E56D780D8C@gazagnaire.org>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] documentation update
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 16 Mar 2015, at 13:27, Thomas Gazagnaire <thomas@gazagnaire.org> wrote:
> 
> Hi,
> 
> I've updated http://mirage.github.io/mirage/ to contains the latest version of the API (as it was starting be quite lagging).
> 
> Not sure how it was updated before, but as I have created a gh-pages branch, which is updated automatically by doing `make update-doc`. I'm using ocamldoc + Daniel's CSS for now on, I hope to switch to codoc soon.

Thanks, it was manually built by me before, so this is much better.

-anil
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Mon Mar 16 18:25:04 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 16 Mar 2015 18:25:04 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXZhB-0005aa-Hz; Mon, 16 Mar 2015 18:24:57 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YXZh9-0005a8-Vd
	for mirageos-devel@lists.xenproject.org; Mon, 16 Mar 2015 18:24:56 +0000
Received: from [193.109.254.147] by server-11.bemta-14.messagelabs.com id
	D8/86-09646-7FF17055; Mon, 16 Mar 2015 18:24:55 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-14.tower-27.messagelabs.com!1426530293!13383341!1
X-Originating-IP: [74.125.82.175]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 11171 invoked from network); 16 Mar 2015 18:24:54 -0000
Received: from mail-we0-f175.google.com (HELO mail-we0-f175.google.com)
	(74.125.82.175)
	by server-14.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	16 Mar 2015 18:24:54 -0000
Received: by wetk59 with SMTP id k59so44601466wet.3
	for <mirageos-devel@lists.xenproject.org>;
	Mon, 16 Mar 2015 11:24:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=6LoMGeSXCX9rI8vBkUfnXfbYggvT+jpqyWwT/RO2/Lg=;
	b=ByeheIH02iriUOqC75AGaJe4hrkT8SJyBulWGQduxIJ53pM1vjg4ajbTT+71sLI8E5
	FIsBfWkmeQUssmEreRlZ/lTCFfpw14Cxr+nNTkXYxQ+1SiOYEToQf4LX0X7y+TFOq/Dt
	57CzQQ1vNCHS7Hk+BrC6Jdsq6qT6/exkMQxM4GXk908nuwWIHVZa3F0Jl30CnnQUWprz
	O2kY4dS9k8+QysSsdXdQN+Lgvtf9vksgkAUKp0we0gKlDoPzeR0J1+y3YWDzG2cCQvaD
	V8CmLlkG4BluZ+joORz8IRQiFxdvG08ohbceThsclp/I60njdqlG81uEeDAZDMRCqJk1
	+x4w==
X-Received: by 10.194.156.133 with SMTP id we5mr127973592wjb.37.1426530293662; 
	Mon, 16 Mar 2015 11:24:53 -0700 (PDT)
Received: from ?IPv6:2001:630:212:248:31a4:19f8:50ed:3657?
	([2001:630:212:248:31a4:19f8:50ed:3657])
	by mx.google.com with ESMTPSA id
	cn10sm16438692wib.15.2015.03.16.11.24.51
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Mon, 16 Mar 2015 11:24:52 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <CAG4opy8k+tgKwfwMfaGzc3m-Tc_JjbkPPWEbqbwDwMBO5vpUtA@mail.gmail.com>
Date: Mon, 16 Mar 2015 18:24:51 +0000
Message-Id: <D6D4B5DE-6BC0-4AE4-8842-92612735A014@gazagnaire.org>
References: <CAG4opy8k+tgKwfwMfaGzc3m-Tc_JjbkPPWEbqbwDwMBO5vpUtA@mail.gmail.com>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Irmin API newbie questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi,

I've made a new release of Irmin (0.9.4) with better concurrency properties, that I've tried to explain what these properties are on the wiki:

https://github.com/mirage/irmin/wiki/concurrency

That release also fixes the performance issues you found with the computation of lcas. I'm working on fixing the other issues you found[1], and I'd especially like to improve the watch / notification API based on your very useful comments.

I've also started a roadmap page to get a sense of what needs to be done for 1.0:

https://github.com/mirage/irmin/wiki/Roadmap

And a list of the current and past (summer) projects related to Irmin (not really part of the 1.0 process, but can lead to interesting features for the next releases):

https://github.com/mirage/irmin/wiki/Projects

Best,
Thomas

[1] https://github.com/mirage/irmin/issues?q=is%3Aopen+is%3Aissue+label%3Abug




> On 9 Feb 2015, at 12:03, Thomas Leonard <talex5@gmail.com> wrote:
> 
> I'm trying to understand the Irmin API. The current documentation is
> good, but I'm still having trouble with some of the concepts. I'm
> looking at these sources:
> 
>  https://mirage.github.io/irmin/
>  https://github.com/mirage/irmin/wiki/Using-the-Irmin-API
> 
> 
> (BTW, I think it might be useful to add the equivalent git command
> next to functions in the documentation, since most people will
> understand that already)
> 
> 
> Anyway, my questions:
> 
> 
> The BASIC docs are missing
> (https://mirage.github.io/irmin/Irmin.BASIC.html), but the code shows:
> 
>  type ('a, 'b) basic = (module BASIC with type key = 'a and type value = 'b)
> 
> It seems that using Irmin.Contents.String gets me "key = string list",
> but "step" remains abstract. How do I use cons, decons, etc?
> 
> 
> If I have a RW store, I can watch a key:
> 
>  val watch : t -> key -> value option Lwt_stream.t
> 
> Presumably, I also need to take care to stop watching it when I'm
> done, otherwise the stream will grow without limit, right? I guess
> there should be an unwatch, or maybe this should be a React signal or
> something.
> 
> 
> I got a bit confused when I reached the BC page:
> 
>  https://mirage.github.io/irmin/Irmin.BC.html
> 
> It uses 'tag' to mean a pointer to a commit that is updates on each
> operation (i.e. what Git would call a 'branch'). I realise that tags
> and branches are the same thing internally, but 'branch' seems to
> capture better what Irmin is using them for ("The tag value is updated
> every time the store is updated, so every handle connected or which
> will be connected to the same tag will see the changes."). [ BTW,
> what's a "handle"? ]
> 
> 
> val update_tag : t -> tag -> unit Lwt.t
> update_tag t tag updates t's current branch with the contents of the
> branch named tag.
> 
> What does "update" mean here? Is this "git reset --hard tag"? A merge?
> A "--ff-only" merge?
> 
> 
> My mental model of Git is that the store is a DAG and I can append to
> any branch. e.g. we have:
> 
>   git commit-tree <tree> [(-p <parent>)...] < changelog
> 
> If I'm understanding the Irmin API correctly, each "store"
> (repository? branch?) has a current "tag" (branch) and I need to set
> the tag I want to work on, e.g.
> 
>  val switch : Store.t -> tag -> unit Lwt.t
> 
> If I want to work on another branch without changing the current
> branch for other users, I should "clone" the store:
> 
>  val clone_force : ('a -> Irmin.task) -> t -> tag -> ('a -> t) Lwt.t
> 
> But, this is not a "git clone", it's like "git branch tag" - a new
> branch I can work on without affecting the repository's default
> branch. It seems strange that Irmin has a mutable "current branch" at
> all - this seems like a UI concept that's only needed for command-line
> use (to save typing).
> 
> 
> A "head" is defined as "a given store revision" (i.e. what Git would
> call a commit). It wasn't clear to me at first whether a head was a
> commit or an anonymous branch. e.g.
> 
> val rename_tag : t -> tag -> [ `Duplicated_tag | `Ok ] Lwt.t
> Change the current tag name. Fail if a tag with the same name already
> exists. The head is unchanged.
> 
> "The head is unchanged" suggests that heads might change in other
> cases. Looking at the code, I see a "type head = Commit.key" in one
> place, so I guess they're (usually?) commits. Does "head" here mean
> "the default branch"?
> 
> 
> Finally, how do I get history? e.g. if I want to show users the recent
> changes to a document. I see a "slice" type, but it's not clear what I
> can do with it.
> 
> 
> Thanks!
> 
> 
> -- 
> Dr Thomas Leonard        http://0install.net/
> GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
> GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA
> 
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Mon Mar 16 18:25:04 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 16 Mar 2015 18:25:04 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXZhB-0005aa-Hz; Mon, 16 Mar 2015 18:24:57 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YXZh9-0005a8-Vd
	for mirageos-devel@lists.xenproject.org; Mon, 16 Mar 2015 18:24:56 +0000
Received: from [193.109.254.147] by server-11.bemta-14.messagelabs.com id
	D8/86-09646-7FF17055; Mon, 16 Mar 2015 18:24:55 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-14.tower-27.messagelabs.com!1426530293!13383341!1
X-Originating-IP: [74.125.82.175]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 11171 invoked from network); 16 Mar 2015 18:24:54 -0000
Received: from mail-we0-f175.google.com (HELO mail-we0-f175.google.com)
	(74.125.82.175)
	by server-14.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	16 Mar 2015 18:24:54 -0000
Received: by wetk59 with SMTP id k59so44601466wet.3
	for <mirageos-devel@lists.xenproject.org>;
	Mon, 16 Mar 2015 11:24:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=6LoMGeSXCX9rI8vBkUfnXfbYggvT+jpqyWwT/RO2/Lg=;
	b=ByeheIH02iriUOqC75AGaJe4hrkT8SJyBulWGQduxIJ53pM1vjg4ajbTT+71sLI8E5
	FIsBfWkmeQUssmEreRlZ/lTCFfpw14Cxr+nNTkXYxQ+1SiOYEToQf4LX0X7y+TFOq/Dt
	57CzQQ1vNCHS7Hk+BrC6Jdsq6qT6/exkMQxM4GXk908nuwWIHVZa3F0Jl30CnnQUWprz
	O2kY4dS9k8+QysSsdXdQN+Lgvtf9vksgkAUKp0we0gKlDoPzeR0J1+y3YWDzG2cCQvaD
	V8CmLlkG4BluZ+joORz8IRQiFxdvG08ohbceThsclp/I60njdqlG81uEeDAZDMRCqJk1
	+x4w==
X-Received: by 10.194.156.133 with SMTP id we5mr127973592wjb.37.1426530293662; 
	Mon, 16 Mar 2015 11:24:53 -0700 (PDT)
Received: from ?IPv6:2001:630:212:248:31a4:19f8:50ed:3657?
	([2001:630:212:248:31a4:19f8:50ed:3657])
	by mx.google.com with ESMTPSA id
	cn10sm16438692wib.15.2015.03.16.11.24.51
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Mon, 16 Mar 2015 11:24:52 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <CAG4opy8k+tgKwfwMfaGzc3m-Tc_JjbkPPWEbqbwDwMBO5vpUtA@mail.gmail.com>
Date: Mon, 16 Mar 2015 18:24:51 +0000
Message-Id: <D6D4B5DE-6BC0-4AE4-8842-92612735A014@gazagnaire.org>
References: <CAG4opy8k+tgKwfwMfaGzc3m-Tc_JjbkPPWEbqbwDwMBO5vpUtA@mail.gmail.com>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Irmin API newbie questions
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi,

I've made a new release of Irmin (0.9.4) with better concurrency properties, that I've tried to explain what these properties are on the wiki:

https://github.com/mirage/irmin/wiki/concurrency

That release also fixes the performance issues you found with the computation of lcas. I'm working on fixing the other issues you found[1], and I'd especially like to improve the watch / notification API based on your very useful comments.

I've also started a roadmap page to get a sense of what needs to be done for 1.0:

https://github.com/mirage/irmin/wiki/Roadmap

And a list of the current and past (summer) projects related to Irmin (not really part of the 1.0 process, but can lead to interesting features for the next releases):

https://github.com/mirage/irmin/wiki/Projects

Best,
Thomas

[1] https://github.com/mirage/irmin/issues?q=is%3Aopen+is%3Aissue+label%3Abug




> On 9 Feb 2015, at 12:03, Thomas Leonard <talex5@gmail.com> wrote:
> 
> I'm trying to understand the Irmin API. The current documentation is
> good, but I'm still having trouble with some of the concepts. I'm
> looking at these sources:
> 
>  https://mirage.github.io/irmin/
>  https://github.com/mirage/irmin/wiki/Using-the-Irmin-API
> 
> 
> (BTW, I think it might be useful to add the equivalent git command
> next to functions in the documentation, since most people will
> understand that already)
> 
> 
> Anyway, my questions:
> 
> 
> The BASIC docs are missing
> (https://mirage.github.io/irmin/Irmin.BASIC.html), but the code shows:
> 
>  type ('a, 'b) basic = (module BASIC with type key = 'a and type value = 'b)
> 
> It seems that using Irmin.Contents.String gets me "key = string list",
> but "step" remains abstract. How do I use cons, decons, etc?
> 
> 
> If I have a RW store, I can watch a key:
> 
>  val watch : t -> key -> value option Lwt_stream.t
> 
> Presumably, I also need to take care to stop watching it when I'm
> done, otherwise the stream will grow without limit, right? I guess
> there should be an unwatch, or maybe this should be a React signal or
> something.
> 
> 
> I got a bit confused when I reached the BC page:
> 
>  https://mirage.github.io/irmin/Irmin.BC.html
> 
> It uses 'tag' to mean a pointer to a commit that is updates on each
> operation (i.e. what Git would call a 'branch'). I realise that tags
> and branches are the same thing internally, but 'branch' seems to
> capture better what Irmin is using them for ("The tag value is updated
> every time the store is updated, so every handle connected or which
> will be connected to the same tag will see the changes."). [ BTW,
> what's a "handle"? ]
> 
> 
> val update_tag : t -> tag -> unit Lwt.t
> update_tag t tag updates t's current branch with the contents of the
> branch named tag.
> 
> What does "update" mean here? Is this "git reset --hard tag"? A merge?
> A "--ff-only" merge?
> 
> 
> My mental model of Git is that the store is a DAG and I can append to
> any branch. e.g. we have:
> 
>   git commit-tree <tree> [(-p <parent>)...] < changelog
> 
> If I'm understanding the Irmin API correctly, each "store"
> (repository? branch?) has a current "tag" (branch) and I need to set
> the tag I want to work on, e.g.
> 
>  val switch : Store.t -> tag -> unit Lwt.t
> 
> If I want to work on another branch without changing the current
> branch for other users, I should "clone" the store:
> 
>  val clone_force : ('a -> Irmin.task) -> t -> tag -> ('a -> t) Lwt.t
> 
> But, this is not a "git clone", it's like "git branch tag" - a new
> branch I can work on without affecting the repository's default
> branch. It seems strange that Irmin has a mutable "current branch" at
> all - this seems like a UI concept that's only needed for command-line
> use (to save typing).
> 
> 
> A "head" is defined as "a given store revision" (i.e. what Git would
> call a commit). It wasn't clear to me at first whether a head was a
> commit or an anonymous branch. e.g.
> 
> val rename_tag : t -> tag -> [ `Duplicated_tag | `Ok ] Lwt.t
> Change the current tag name. Fail if a tag with the same name already
> exists. The head is unchanged.
> 
> "The head is unchanged" suggests that heads might change in other
> cases. Looking at the code, I see a "type head = Commit.key" in one
> place, so I guess they're (usually?) commits. Does "head" here mean
> "the default branch"?
> 
> 
> Finally, how do I get history? e.g. if I want to show users the recent
> changes to a document. I see a "slice" type, but it's not clear what I
> can do with it.
> 
> 
> Thanks!
> 
> 
> -- 
> Dr Thomas Leonard        http://0install.net/
> GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
> GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA
> 
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 17 10:51:02 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 17 Mar 2015 10:51:02 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXp5N-0005GK-G2; Tue, 17 Mar 2015 10:50:57 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YXp5L-0005C3-TX
	for mirageos-devel@lists.xenproject.org; Tue, 17 Mar 2015 10:50:56 +0000
Received: from [85.158.137.68] by server-4.bemta-3.messagelabs.com id
	58/5E-10357-F0708055; Tue, 17 Mar 2015 10:50:55 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-14.tower-31.messagelabs.com!1426589452!10440107!1
X-Originating-IP: [74.125.82.173]
X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 29638 invoked from network); 17 Mar 2015 10:50:52 -0000
Received: from mail-we0-f173.google.com (HELO mail-we0-f173.google.com)
	(74.125.82.173)
	by server-14.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	17 Mar 2015 10:50:52 -0000
Received: by wegp1 with SMTP id p1so4489009weg.1
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 17 Mar 2015 03:50:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:from:content-type:content-transfer-encoding:subject
	:message-id:date:to:mime-version;
	bh=uOvASzEaVIHjrjroDALIbDlSxgEX8P6G5hhq0jxMCZ0=;
	b=YhOafkkPXnSys/K7dDB72j4VmlmSkzmGRfjRhQqkXGtyvtdHJPcKkxmLg+c4WNmllZ
	c4w2W6uFK+CijHCWWbVbeBB9F5ByeqTibbE/7O27Lni+TwN4VayZ+AdS8ciSGUFPZTUj
	exy4Qzwl2oAv1XOutccbxaWPWXjOW/Kl16N5mV/gejfexWD/O6zYu4wtUQmbtYgTlo8e
	APijGRNnNfjLwziOApa+7xVMhL9VDFci0HgwYIF9KSOmRm9euXMgps9Qs9fXwK3llCFv
	at0SXDD3lawZTYYHSdWgjpBG3x7650qCJGQsPs9dVjtIFMGPlA6hzeDOSECzEfZgB8Ub
	04jw==
X-Received: by 10.195.13.104 with SMTP id ex8mr128995479wjd.12.1426589452209; 
	Tue, 17 Mar 2015 03:50:52 -0700 (PDT)
Received: from ?IPv6:2001:630:212:248:cd27:a1e1:69ad:f683?
	([2001:630:212:248:cd27:a1e1:69ad:f683])
	by mx.google.com with ESMTPSA id
	bo1sm19395436wjb.15.2015.03.17.03.50.50
	for <mirageos-devel@lists.xenproject.org>
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 17 Mar 2015 03:50:50 -0700 (PDT)
From: Thomas Gazagnaire <thomas@gazagnaire.org>
Message-Id: <FA4CE73F-1C28-40ED-BC91-AA674465EFC7@gazagnaire.org>
Date: Tue, 17 Mar 2015 10:50:53 +0000
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
X-Mailer: Apple Mail (2.2070.6)
Subject: [MirageOS-devel] [ANN] release of io-page.1.5.0,
	mirage-unix.2.2.3 and mirage-xen.2.2.3
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

SGksCgpUaGVzZSByZWxlYXNlcyBjb250YWluIEhhbm5lcycgcGF0Y2hlcyB0byBtb3ZlIHRoZSBy
ZWxhdGVkIEMgc3R1YnMgZnJvbSBtaXJhZ2UvbWlyYWdlLXBsYXRmb3JtIHRvIG1pcmFnZS9pby1w
YWdlLiBUaGV5IGFyZSBwYXJ0IG9mIGFuIG9uZ29pbmcgZWZmb3J0IHRvIGRpc2FnZ3JlZ2F0ZSBt
aXJhZ2UvbWlyYWdlLXBsYXRmb3JtIHRvIHByb3ZpZGUgb25seSB0aGUgY29yZSBDIGNvZGUgbmVl
ZGVkIGZyb20gdW5peCBhbmQgeGVuWzFdLCBieSBtb3ZpbmcgdGhlIEMgc3R1YnMgaW4gdGhlaXIg
cmVsYXRlZCB1cHN0cmVhbSBwYWNrYWdlcyBDb250cmlidXRpb25zIGhlbHBpbmcgdG8gZ28gaW4g
dGhhdCBkaXJlY3Rpb24gYXJlIGFzIHVzdWFsIHdlbGNvbWUuCgpJJ3ZlIGFsc28gY2xvc2VkIH4y
MCBpc3N1ZXMgYW5kIGFkZGVkIGNvbG9yIHRvIHRoZSByZW1haW5pbmcgb25lIG9uIHRoZSBtaXJh
Z2UgYnVnIHRyYWNrZXJbMl0uCgpCZXN0LApUaG9tYXMKCm1pcmFnZS9taXJhZ2UtcGxhdGZvcm0g
KG1pcmFnZS11bml4LjIuMi4zLCBtaXJhZ2UteGVuLjIuMi4zKToK4oCiIEFkZCBvcGFtIGZpbGVz
IGZvciBtaXJhZ2UteGVuIGFuZCBtaXJhZ2UtdW5peCBPUEFNIHBhY2thZ2VzCuKAoiBSZW1vdmUg
cGFnZV9zdHVicy5jLCBub3cgcHJvdmlkZWQgYnkgaW8tcGFnZSAoIzEyMiwgcGF0Y2ggZnJvbSBA
aGFubmVzbSkKCm1pcmFnZS9pby1wYWdlLjEuMS41OgrigKIgRml4IGVxdWFsbGl0eSBvZiBpby1w
YWdlcyAoIzE3LCBwYXRjaCBmcm9tIEBoYW5uZXNtKQrigKIgSW1wb3J0IEMgc3R1YnMgZnJvbSBt
aXJhZ2UtcGxhdGZvcm0gKCMxOCwgcGF0Y2ggZnJvbSBAaGFubmVzbSkKClsxXSBodHRwczovL2dp
dGh1Yi5jb20vbWlyYWdlL21pcmFnZS1wbGF0Zm9ybS9pc3N1ZXMvMTI0ClsyXSBodHRwczovL2dp
dGh1Yi5jb20vbWlyYWdlL21pcmFnZS9pc3N1ZXMKCgpfX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fXwpNaXJhZ2VPUy1kZXZlbCBtYWlsaW5nIGxpc3QKTWlyYWdl
T1MtZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cDovL2xpc3RzLnhlbnByb2plY3Qub3Jn
L2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9taXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 17 10:51:02 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 17 Mar 2015 10:51:02 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXp5N-0005GK-G2; Tue, 17 Mar 2015 10:50:57 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YXp5L-0005C3-TX
	for mirageos-devel@lists.xenproject.org; Tue, 17 Mar 2015 10:50:56 +0000
Received: from [85.158.137.68] by server-4.bemta-3.messagelabs.com id
	58/5E-10357-F0708055; Tue, 17 Mar 2015 10:50:55 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-14.tower-31.messagelabs.com!1426589452!10440107!1
X-Originating-IP: [74.125.82.173]
X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 29638 invoked from network); 17 Mar 2015 10:50:52 -0000
Received: from mail-we0-f173.google.com (HELO mail-we0-f173.google.com)
	(74.125.82.173)
	by server-14.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	17 Mar 2015 10:50:52 -0000
Received: by wegp1 with SMTP id p1so4489009weg.1
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 17 Mar 2015 03:50:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:from:content-type:content-transfer-encoding:subject
	:message-id:date:to:mime-version;
	bh=uOvASzEaVIHjrjroDALIbDlSxgEX8P6G5hhq0jxMCZ0=;
	b=YhOafkkPXnSys/K7dDB72j4VmlmSkzmGRfjRhQqkXGtyvtdHJPcKkxmLg+c4WNmllZ
	c4w2W6uFK+CijHCWWbVbeBB9F5ByeqTibbE/7O27Lni+TwN4VayZ+AdS8ciSGUFPZTUj
	exy4Qzwl2oAv1XOutccbxaWPWXjOW/Kl16N5mV/gejfexWD/O6zYu4wtUQmbtYgTlo8e
	APijGRNnNfjLwziOApa+7xVMhL9VDFci0HgwYIF9KSOmRm9euXMgps9Qs9fXwK3llCFv
	at0SXDD3lawZTYYHSdWgjpBG3x7650qCJGQsPs9dVjtIFMGPlA6hzeDOSECzEfZgB8Ub
	04jw==
X-Received: by 10.195.13.104 with SMTP id ex8mr128995479wjd.12.1426589452209; 
	Tue, 17 Mar 2015 03:50:52 -0700 (PDT)
Received: from ?IPv6:2001:630:212:248:cd27:a1e1:69ad:f683?
	([2001:630:212:248:cd27:a1e1:69ad:f683])
	by mx.google.com with ESMTPSA id
	bo1sm19395436wjb.15.2015.03.17.03.50.50
	for <mirageos-devel@lists.xenproject.org>
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 17 Mar 2015 03:50:50 -0700 (PDT)
From: Thomas Gazagnaire <thomas@gazagnaire.org>
Message-Id: <FA4CE73F-1C28-40ED-BC91-AA674465EFC7@gazagnaire.org>
Date: Tue, 17 Mar 2015 10:50:53 +0000
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
X-Mailer: Apple Mail (2.2070.6)
Subject: [MirageOS-devel] [ANN] release of io-page.1.5.0,
	mirage-unix.2.2.3 and mirage-xen.2.2.3
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

SGksCgpUaGVzZSByZWxlYXNlcyBjb250YWluIEhhbm5lcycgcGF0Y2hlcyB0byBtb3ZlIHRoZSBy
ZWxhdGVkIEMgc3R1YnMgZnJvbSBtaXJhZ2UvbWlyYWdlLXBsYXRmb3JtIHRvIG1pcmFnZS9pby1w
YWdlLiBUaGV5IGFyZSBwYXJ0IG9mIGFuIG9uZ29pbmcgZWZmb3J0IHRvIGRpc2FnZ3JlZ2F0ZSBt
aXJhZ2UvbWlyYWdlLXBsYXRmb3JtIHRvIHByb3ZpZGUgb25seSB0aGUgY29yZSBDIGNvZGUgbmVl
ZGVkIGZyb20gdW5peCBhbmQgeGVuWzFdLCBieSBtb3ZpbmcgdGhlIEMgc3R1YnMgaW4gdGhlaXIg
cmVsYXRlZCB1cHN0cmVhbSBwYWNrYWdlcyBDb250cmlidXRpb25zIGhlbHBpbmcgdG8gZ28gaW4g
dGhhdCBkaXJlY3Rpb24gYXJlIGFzIHVzdWFsIHdlbGNvbWUuCgpJJ3ZlIGFsc28gY2xvc2VkIH4y
MCBpc3N1ZXMgYW5kIGFkZGVkIGNvbG9yIHRvIHRoZSByZW1haW5pbmcgb25lIG9uIHRoZSBtaXJh
Z2UgYnVnIHRyYWNrZXJbMl0uCgpCZXN0LApUaG9tYXMKCm1pcmFnZS9taXJhZ2UtcGxhdGZvcm0g
KG1pcmFnZS11bml4LjIuMi4zLCBtaXJhZ2UteGVuLjIuMi4zKToK4oCiIEFkZCBvcGFtIGZpbGVz
IGZvciBtaXJhZ2UteGVuIGFuZCBtaXJhZ2UtdW5peCBPUEFNIHBhY2thZ2VzCuKAoiBSZW1vdmUg
cGFnZV9zdHVicy5jLCBub3cgcHJvdmlkZWQgYnkgaW8tcGFnZSAoIzEyMiwgcGF0Y2ggZnJvbSBA
aGFubmVzbSkKCm1pcmFnZS9pby1wYWdlLjEuMS41OgrigKIgRml4IGVxdWFsbGl0eSBvZiBpby1w
YWdlcyAoIzE3LCBwYXRjaCBmcm9tIEBoYW5uZXNtKQrigKIgSW1wb3J0IEMgc3R1YnMgZnJvbSBt
aXJhZ2UtcGxhdGZvcm0gKCMxOCwgcGF0Y2ggZnJvbSBAaGFubmVzbSkKClsxXSBodHRwczovL2dp
dGh1Yi5jb20vbWlyYWdlL21pcmFnZS1wbGF0Zm9ybS9pc3N1ZXMvMTI0ClsyXSBodHRwczovL2dp
dGh1Yi5jb20vbWlyYWdlL21pcmFnZS9pc3N1ZXMKCgpfX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fXwpNaXJhZ2VPUy1kZXZlbCBtYWlsaW5nIGxpc3QKTWlyYWdl
T1MtZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cDovL2xpc3RzLnhlbnByb2plY3Qub3Jn
L2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9taXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 17 11:05:27 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 17 Mar 2015 11:05:27 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXpJP-00067q-23; Tue, 17 Mar 2015 11:05:27 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YXpJN-00067l-IJ
	for mirageos-devel@lists.xenproject.org; Tue, 17 Mar 2015 11:05:25 +0000
Received: from [85.158.139.211] by server-5.bemta-5.messagelabs.com id
	2F/E6-16213-47A08055; Tue, 17 Mar 2015 11:05:24 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-16.tower-206.messagelabs.com!1426590324!8324296!1
X-Originating-IP: [74.125.82.180]
X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 25944 invoked from network); 17 Mar 2015 11:05:24 -0000
Received: from mail-we0-f180.google.com (HELO mail-we0-f180.google.com)
	(74.125.82.180)
	by server-16.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	17 Mar 2015 11:05:24 -0000
Received: by weop45 with SMTP id p45so4805570weo.0
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 17 Mar 2015 04:05:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date
	:content-transfer-encoding:message-id:references:to;
	bh=/YqeKv0dGBA+LB1bowan85wQr7u0aitdC/IY1HFivTg=;
	b=UgvxMyh8mIhIXXdInqkDEdMp3kzZqjevKSpNv4iHBZiIkmW8y8vpoIOIRQNyREDZF6
	cS/PwbhVM02NGgGKZzBVRTLJ3ouFGLuLpDuiuyioK798KnKF392WaA02sWneUIFcpiMk
	UO6clLd5NO3uBww+gUSgHwud/M2xGkfrI0afuaacROanj/eMqt6XD2+05hdNk3X0gd/h
	svoUs9nNVRATFcXqJV2I7cxR7LWoai4sQQ7n/VikiBbFL9TgBfyQ2swqs+y8VWsdBkCO
	cSHLwb6d/wFkQVhtGYuGnZydzSLHTvmkfO8attQZGYJKhbLB6o2kgGpI2NQvFa8+GHnv
	pz+w==
X-Received: by 10.180.89.34 with SMTP id bl2mr45066519wib.23.1426590323928;
	Tue, 17 Mar 2015 04:05:23 -0700 (PDT)
Received: from ?IPv6:2001:630:212:248:cd27:a1e1:69ad:f683?
	([2001:630:212:248:cd27:a1e1:69ad:f683])
	by mx.google.com with ESMTPSA id md2sm2134362wic.19.2015.03.17.04.05.21
	for <mirageos-devel@lists.xenproject.org>
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 17 Mar 2015 04:05:23 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <FA4CE73F-1C28-40ED-BC91-AA674465EFC7@gazagnaire.org>
Date: Tue, 17 Mar 2015 11:05:21 +0000
Message-Id: <C319A37B-985E-4DE1-BC24-CA2F900A49E4@gazagnaire.org>
References: <FA4CE73F-1C28-40ED-BC91-AA674465EFC7@gazagnaire.org>
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
X-Mailer: Apple Mail (2.2070.6)
Subject: Re: [MirageOS-devel] [ANN] release of io-page.1.5.0,
	mirage-unix.2.2.3 and mirage-xen.2.2.3
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

QWN0dWFsbHksIHRoaXMgaW50cm9kdWNlcyBhIHJlY3Vyc2l2ZSBkZXBlbmRlbmN5IGluIHRoZSBv
cGFtIHJlcG9zaXRvcnkgKGlvLXBhZ2UgbmV3cyBtaXJhZ2UteGVuIHdoaWNoIG5lZWRzIG1pcmFn
ZS14ZW4pLiBUaGVyZSdzIG5vIGVhc3kgd2F5IHRvIGZpeCB0aGF0LCBJJ20gbG9va2luZyBpbnRv
IHRoYXQuCgo+IE9uIDE3IE1hciAyMDE1LCBhdCAxMDo1MCwgVGhvbWFzIEdhemFnbmFpcmUgPHRo
b21hc0BnYXphZ25haXJlLm9yZz4gd3JvdGU6Cj4gCj4gSGksCj4gCj4gVGhlc2UgcmVsZWFzZXMg
Y29udGFpbiBIYW5uZXMnIHBhdGNoZXMgdG8gbW92ZSB0aGUgcmVsYXRlZCBDIHN0dWJzIGZyb20g
bWlyYWdlL21pcmFnZS1wbGF0Zm9ybSB0byBtaXJhZ2UvaW8tcGFnZS4gVGhleSBhcmUgcGFydCBv
ZiBhbiBvbmdvaW5nIGVmZm9ydCB0byBkaXNhZ2dyZWdhdGUgbWlyYWdlL21pcmFnZS1wbGF0Zm9y
bSB0byBwcm92aWRlIG9ubHkgdGhlIGNvcmUgQyBjb2RlIG5lZWRlZCBmcm9tIHVuaXggYW5kIHhl
blsxXSwgYnkgbW92aW5nIHRoZSBDIHN0dWJzIGluIHRoZWlyIHJlbGF0ZWQgdXBzdHJlYW0gcGFj
a2FnZXMgQ29udHJpYnV0aW9ucyBoZWxwaW5nIHRvIGdvIGluIHRoYXQgZGlyZWN0aW9uIGFyZSBh
cyB1c3VhbCB3ZWxjb21lLgo+IAo+IEkndmUgYWxzbyBjbG9zZWQgfjIwIGlzc3VlcyBhbmQgYWRk
ZWQgY29sb3IgdG8gdGhlIHJlbWFpbmluZyBvbmUgb24gdGhlIG1pcmFnZSBidWcgdHJhY2tlclsy
XS4KPiAKPiBCZXN0LAo+IFRob21hcwo+IAo+IG1pcmFnZS9taXJhZ2UtcGxhdGZvcm0gKG1pcmFn
ZS11bml4LjIuMi4zLCBtaXJhZ2UteGVuLjIuMi4zKToKPiDigKIgQWRkIG9wYW0gZmlsZXMgZm9y
IG1pcmFnZS14ZW4gYW5kIG1pcmFnZS11bml4IE9QQU0gcGFja2FnZXMKPiDigKIgUmVtb3ZlIHBh
Z2Vfc3R1YnMuYywgbm93IHByb3ZpZGVkIGJ5IGlvLXBhZ2UgKCMxMjIsIHBhdGNoIGZyb20gQGhh
bm5lc20pCj4gCj4gbWlyYWdlL2lvLXBhZ2UuMS4xLjU6Cj4g4oCiIEZpeCBlcXVhbGxpdHkgb2Yg
aW8tcGFnZXMgKCMxNywgcGF0Y2ggZnJvbSBAaGFubmVzbSkKPiDigKIgSW1wb3J0IEMgc3R1YnMg
ZnJvbSBtaXJhZ2UtcGxhdGZvcm0gKCMxOCwgcGF0Y2ggZnJvbSBAaGFubmVzbSkKPiAKPiBbMV0g
aHR0cHM6Ly9naXRodWIuY29tL21pcmFnZS9taXJhZ2UtcGxhdGZvcm0vaXNzdWVzLzEyNAo+IFsy
XSBodHRwczovL2dpdGh1Yi5jb20vbWlyYWdlL21pcmFnZS9pc3N1ZXMKPiAKCgpfX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpNaXJhZ2VPUy1kZXZlbCBtYWls
aW5nIGxpc3QKTWlyYWdlT1MtZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cDovL2xpc3Rz
LnhlbnByb2plY3Qub3JnL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9taXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 17 11:05:27 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 17 Mar 2015 11:05:27 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXpJP-00067q-23; Tue, 17 Mar 2015 11:05:27 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YXpJN-00067l-IJ
	for mirageos-devel@lists.xenproject.org; Tue, 17 Mar 2015 11:05:25 +0000
Received: from [85.158.139.211] by server-5.bemta-5.messagelabs.com id
	2F/E6-16213-47A08055; Tue, 17 Mar 2015 11:05:24 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-16.tower-206.messagelabs.com!1426590324!8324296!1
X-Originating-IP: [74.125.82.180]
X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 25944 invoked from network); 17 Mar 2015 11:05:24 -0000
Received: from mail-we0-f180.google.com (HELO mail-we0-f180.google.com)
	(74.125.82.180)
	by server-16.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	17 Mar 2015 11:05:24 -0000
Received: by weop45 with SMTP id p45so4805570weo.0
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 17 Mar 2015 04:05:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date
	:content-transfer-encoding:message-id:references:to;
	bh=/YqeKv0dGBA+LB1bowan85wQr7u0aitdC/IY1HFivTg=;
	b=UgvxMyh8mIhIXXdInqkDEdMp3kzZqjevKSpNv4iHBZiIkmW8y8vpoIOIRQNyREDZF6
	cS/PwbhVM02NGgGKZzBVRTLJ3ouFGLuLpDuiuyioK798KnKF392WaA02sWneUIFcpiMk
	UO6clLd5NO3uBww+gUSgHwud/M2xGkfrI0afuaacROanj/eMqt6XD2+05hdNk3X0gd/h
	svoUs9nNVRATFcXqJV2I7cxR7LWoai4sQQ7n/VikiBbFL9TgBfyQ2swqs+y8VWsdBkCO
	cSHLwb6d/wFkQVhtGYuGnZydzSLHTvmkfO8attQZGYJKhbLB6o2kgGpI2NQvFa8+GHnv
	pz+w==
X-Received: by 10.180.89.34 with SMTP id bl2mr45066519wib.23.1426590323928;
	Tue, 17 Mar 2015 04:05:23 -0700 (PDT)
Received: from ?IPv6:2001:630:212:248:cd27:a1e1:69ad:f683?
	([2001:630:212:248:cd27:a1e1:69ad:f683])
	by mx.google.com with ESMTPSA id md2sm2134362wic.19.2015.03.17.04.05.21
	for <mirageos-devel@lists.xenproject.org>
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 17 Mar 2015 04:05:23 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <FA4CE73F-1C28-40ED-BC91-AA674465EFC7@gazagnaire.org>
Date: Tue, 17 Mar 2015 11:05:21 +0000
Message-Id: <C319A37B-985E-4DE1-BC24-CA2F900A49E4@gazagnaire.org>
References: <FA4CE73F-1C28-40ED-BC91-AA674465EFC7@gazagnaire.org>
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
X-Mailer: Apple Mail (2.2070.6)
Subject: Re: [MirageOS-devel] [ANN] release of io-page.1.5.0,
	mirage-unix.2.2.3 and mirage-xen.2.2.3
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

QWN0dWFsbHksIHRoaXMgaW50cm9kdWNlcyBhIHJlY3Vyc2l2ZSBkZXBlbmRlbmN5IGluIHRoZSBv
cGFtIHJlcG9zaXRvcnkgKGlvLXBhZ2UgbmV3cyBtaXJhZ2UteGVuIHdoaWNoIG5lZWRzIG1pcmFn
ZS14ZW4pLiBUaGVyZSdzIG5vIGVhc3kgd2F5IHRvIGZpeCB0aGF0LCBJJ20gbG9va2luZyBpbnRv
IHRoYXQuCgo+IE9uIDE3IE1hciAyMDE1LCBhdCAxMDo1MCwgVGhvbWFzIEdhemFnbmFpcmUgPHRo
b21hc0BnYXphZ25haXJlLm9yZz4gd3JvdGU6Cj4gCj4gSGksCj4gCj4gVGhlc2UgcmVsZWFzZXMg
Y29udGFpbiBIYW5uZXMnIHBhdGNoZXMgdG8gbW92ZSB0aGUgcmVsYXRlZCBDIHN0dWJzIGZyb20g
bWlyYWdlL21pcmFnZS1wbGF0Zm9ybSB0byBtaXJhZ2UvaW8tcGFnZS4gVGhleSBhcmUgcGFydCBv
ZiBhbiBvbmdvaW5nIGVmZm9ydCB0byBkaXNhZ2dyZWdhdGUgbWlyYWdlL21pcmFnZS1wbGF0Zm9y
bSB0byBwcm92aWRlIG9ubHkgdGhlIGNvcmUgQyBjb2RlIG5lZWRlZCBmcm9tIHVuaXggYW5kIHhl
blsxXSwgYnkgbW92aW5nIHRoZSBDIHN0dWJzIGluIHRoZWlyIHJlbGF0ZWQgdXBzdHJlYW0gcGFj
a2FnZXMgQ29udHJpYnV0aW9ucyBoZWxwaW5nIHRvIGdvIGluIHRoYXQgZGlyZWN0aW9uIGFyZSBh
cyB1c3VhbCB3ZWxjb21lLgo+IAo+IEkndmUgYWxzbyBjbG9zZWQgfjIwIGlzc3VlcyBhbmQgYWRk
ZWQgY29sb3IgdG8gdGhlIHJlbWFpbmluZyBvbmUgb24gdGhlIG1pcmFnZSBidWcgdHJhY2tlclsy
XS4KPiAKPiBCZXN0LAo+IFRob21hcwo+IAo+IG1pcmFnZS9taXJhZ2UtcGxhdGZvcm0gKG1pcmFn
ZS11bml4LjIuMi4zLCBtaXJhZ2UteGVuLjIuMi4zKToKPiDigKIgQWRkIG9wYW0gZmlsZXMgZm9y
IG1pcmFnZS14ZW4gYW5kIG1pcmFnZS11bml4IE9QQU0gcGFja2FnZXMKPiDigKIgUmVtb3ZlIHBh
Z2Vfc3R1YnMuYywgbm93IHByb3ZpZGVkIGJ5IGlvLXBhZ2UgKCMxMjIsIHBhdGNoIGZyb20gQGhh
bm5lc20pCj4gCj4gbWlyYWdlL2lvLXBhZ2UuMS4xLjU6Cj4g4oCiIEZpeCBlcXVhbGxpdHkgb2Yg
aW8tcGFnZXMgKCMxNywgcGF0Y2ggZnJvbSBAaGFubmVzbSkKPiDigKIgSW1wb3J0IEMgc3R1YnMg
ZnJvbSBtaXJhZ2UtcGxhdGZvcm0gKCMxOCwgcGF0Y2ggZnJvbSBAaGFubmVzbSkKPiAKPiBbMV0g
aHR0cHM6Ly9naXRodWIuY29tL21pcmFnZS9taXJhZ2UtcGxhdGZvcm0vaXNzdWVzLzEyNAo+IFsy
XSBodHRwczovL2dpdGh1Yi5jb20vbWlyYWdlL21pcmFnZS9pc3N1ZXMKPiAKCgpfX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpNaXJhZ2VPUy1kZXZlbCBtYWls
aW5nIGxpc3QKTWlyYWdlT1MtZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cDovL2xpc3Rz
LnhlbnByb2plY3Qub3JnL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9taXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 17 11:07:40 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 17 Mar 2015 11:07:40 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXpLX-0006MK-TN; Tue, 17 Mar 2015 11:07:39 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YXpLX-0006LZ-9k
	for mirageos-devel@lists.xenproject.org; Tue, 17 Mar 2015 11:07:39 +0000
Received: from [85.158.139.211] by server-7.bemta-5.messagelabs.com id
	FA/4C-17231-AFA08055; Tue, 17 Mar 2015 11:07:38 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-4.tower-206.messagelabs.com!1426590454!11224637!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.7 required=7.0 tests=BODY_RANDOM_LONG, RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 22707 invoked from network); 17 Mar 2015 11:07:37 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-4.tower-206.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 17 Mar 2015 11:07:37 -0000
Received: from [172.17.198.138] (147.67.4.98 [147.67.4.98]);
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id d8f8ba4e;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Tue, 17 Mar 2015 11:07:33 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <C319A37B-985E-4DE1-BC24-CA2F900A49E4@gazagnaire.org>
Date: Tue, 17 Mar 2015 12:07:37 +0100
Message-Id: <21C47819-A643-4277-943C-AA388828294A@recoil.org>
References: <FA4CE73F-1C28-40ED-BC91-AA674465EFC7@gazagnaire.org>
	<C319A37B-985E-4DE1-BC24-CA2F900A49E4@gazagnaire.org>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] [ANN] release of io-page.1.5.0,
	mirage-unix.2.2.3 and mirage-xen.2.2.3
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

SXQgc2hvdWxkIGJlIHBvc3NpYmxlIHRvIGNvbXBpbGUgdGhlIGlvLXBhZ2Ugc3R1YnMgd2l0aG91
dCBkZXBlbmRpbmcgb24gbWlyYWdlLXhlbi4gIFdlIGNvdWxkIGJyZWFrIGl0IHVwIGludG8gYSBt
aXJhZ2UteGVuLWhlYWRlcnMgcGFja2FnZSBpbiBhIHNpbWlsYXIgc3R5bGUgdG8gbWlyYWdlL21p
cmFnZS10eXBlcy4uLgoKQW5pbAoKPiBPbiAxNyBNYXIgMjAxNSwgYXQgMTI6MDUsIFRob21hcyBH
YXphZ25haXJlIDx0aG9tYXNAZ2F6YWduYWlyZS5vcmc+IHdyb3RlOgo+IAo+IEFjdHVhbGx5LCB0
aGlzIGludHJvZHVjZXMgYSByZWN1cnNpdmUgZGVwZW5kZW5jeSBpbiB0aGUgb3BhbSByZXBvc2l0
b3J5IChpby1wYWdlIG5ld3MgbWlyYWdlLXhlbiB3aGljaCBuZWVkcyBtaXJhZ2UteGVuKS4gVGhl
cmUncyBubyBlYXN5IHdheSB0byBmaXggdGhhdCwgSSdtIGxvb2tpbmcgaW50byB0aGF0Lgo+IAo+
PiBPbiAxNyBNYXIgMjAxNSwgYXQgMTA6NTAsIFRob21hcyBHYXphZ25haXJlIDx0aG9tYXNAZ2F6
YWduYWlyZS5vcmc+IHdyb3RlOgo+PiAKPj4gSGksCj4+IAo+PiBUaGVzZSByZWxlYXNlcyBjb250
YWluIEhhbm5lcycgcGF0Y2hlcyB0byBtb3ZlIHRoZSByZWxhdGVkIEMgc3R1YnMgZnJvbSBtaXJh
Z2UvbWlyYWdlLXBsYXRmb3JtIHRvIG1pcmFnZS9pby1wYWdlLiBUaGV5IGFyZSBwYXJ0IG9mIGFu
IG9uZ29pbmcgZWZmb3J0IHRvIGRpc2FnZ3JlZ2F0ZSBtaXJhZ2UvbWlyYWdlLXBsYXRmb3JtIHRv
IHByb3ZpZGUgb25seSB0aGUgY29yZSBDIGNvZGUgbmVlZGVkIGZyb20gdW5peCBhbmQgeGVuWzFd
LCBieSBtb3ZpbmcgdGhlIEMgc3R1YnMgaW4gdGhlaXIgcmVsYXRlZCB1cHN0cmVhbSBwYWNrYWdl
cyBDb250cmlidXRpb25zIGhlbHBpbmcgdG8gZ28gaW4gdGhhdCBkaXJlY3Rpb24gYXJlIGFzIHVz
dWFsIHdlbGNvbWUuCj4+IAo+PiBJJ3ZlIGFsc28gY2xvc2VkIH4yMCBpc3N1ZXMgYW5kIGFkZGVk
IGNvbG9yIHRvIHRoZSByZW1haW5pbmcgb25lIG9uIHRoZSBtaXJhZ2UgYnVnIHRyYWNrZXJbMl0u
Cj4+IAo+PiBCZXN0LAo+PiBUaG9tYXMKPj4gCj4+IG1pcmFnZS9taXJhZ2UtcGxhdGZvcm0gKG1p
cmFnZS11bml4LjIuMi4zLCBtaXJhZ2UteGVuLjIuMi4zKToKPj4g4oCiIEFkZCBvcGFtIGZpbGVz
IGZvciBtaXJhZ2UteGVuIGFuZCBtaXJhZ2UtdW5peCBPUEFNIHBhY2thZ2VzCj4+IOKAoiBSZW1v
dmUgcGFnZV9zdHVicy5jLCBub3cgcHJvdmlkZWQgYnkgaW8tcGFnZSAoIzEyMiwgcGF0Y2ggZnJv
bSBAaGFubmVzbSkKPj4gCj4+IG1pcmFnZS9pby1wYWdlLjEuMS41Ogo+PiDigKIgRml4IGVxdWFs
bGl0eSBvZiBpby1wYWdlcyAoIzE3LCBwYXRjaCBmcm9tIEBoYW5uZXNtKQo+PiDigKIgSW1wb3J0
IEMgc3R1YnMgZnJvbSBtaXJhZ2UtcGxhdGZvcm0gKCMxOCwgcGF0Y2ggZnJvbSBAaGFubmVzbSkK
Pj4gCj4+IFsxXSBodHRwczovL2dpdGh1Yi5jb20vbWlyYWdlL21pcmFnZS1wbGF0Zm9ybS9pc3N1
ZXMvMTI0Cj4+IFsyXSBodHRwczovL2dpdGh1Yi5jb20vbWlyYWdlL21pcmFnZS9pc3N1ZXMKPj4g
Cj4gCj4gCj4gX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18K
PiBNaXJhZ2VPUy1kZXZlbCBtYWlsaW5nIGxpc3QKPiBNaXJhZ2VPUy1kZXZlbEBsaXN0cy54ZW5w
cm9qZWN0Lm9yZwo+IGh0dHA6Ly9saXN0cy54ZW5wcm9qZWN0Lm9yZy9jZ2ktYmluL21haWxtYW4v
bGlzdGluZm8vbWlyYWdlb3MtZGV2ZWwKCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fXwpNaXJhZ2VPUy1kZXZlbCBtYWlsaW5nIGxpc3QKTWlyYWdlT1MtZGV2
ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cDovL2xpc3RzLnhlbnByb2plY3Qub3JnL2NnaS1i
aW4vbWFpbG1hbi9saXN0aW5mby9taXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 17 11:07:40 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 17 Mar 2015 11:07:40 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXpLX-0006MK-TN; Tue, 17 Mar 2015 11:07:39 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YXpLX-0006LZ-9k
	for mirageos-devel@lists.xenproject.org; Tue, 17 Mar 2015 11:07:39 +0000
Received: from [85.158.139.211] by server-7.bemta-5.messagelabs.com id
	FA/4C-17231-AFA08055; Tue, 17 Mar 2015 11:07:38 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-4.tower-206.messagelabs.com!1426590454!11224637!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.7 required=7.0 tests=BODY_RANDOM_LONG, RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 22707 invoked from network); 17 Mar 2015 11:07:37 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-4.tower-206.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 17 Mar 2015 11:07:37 -0000
Received: from [172.17.198.138] (147.67.4.98 [147.67.4.98]);
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id d8f8ba4e;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Tue, 17 Mar 2015 11:07:33 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <C319A37B-985E-4DE1-BC24-CA2F900A49E4@gazagnaire.org>
Date: Tue, 17 Mar 2015 12:07:37 +0100
Message-Id: <21C47819-A643-4277-943C-AA388828294A@recoil.org>
References: <FA4CE73F-1C28-40ED-BC91-AA674465EFC7@gazagnaire.org>
	<C319A37B-985E-4DE1-BC24-CA2F900A49E4@gazagnaire.org>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] [ANN] release of io-page.1.5.0,
	mirage-unix.2.2.3 and mirage-xen.2.2.3
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

SXQgc2hvdWxkIGJlIHBvc3NpYmxlIHRvIGNvbXBpbGUgdGhlIGlvLXBhZ2Ugc3R1YnMgd2l0aG91
dCBkZXBlbmRpbmcgb24gbWlyYWdlLXhlbi4gIFdlIGNvdWxkIGJyZWFrIGl0IHVwIGludG8gYSBt
aXJhZ2UteGVuLWhlYWRlcnMgcGFja2FnZSBpbiBhIHNpbWlsYXIgc3R5bGUgdG8gbWlyYWdlL21p
cmFnZS10eXBlcy4uLgoKQW5pbAoKPiBPbiAxNyBNYXIgMjAxNSwgYXQgMTI6MDUsIFRob21hcyBH
YXphZ25haXJlIDx0aG9tYXNAZ2F6YWduYWlyZS5vcmc+IHdyb3RlOgo+IAo+IEFjdHVhbGx5LCB0
aGlzIGludHJvZHVjZXMgYSByZWN1cnNpdmUgZGVwZW5kZW5jeSBpbiB0aGUgb3BhbSByZXBvc2l0
b3J5IChpby1wYWdlIG5ld3MgbWlyYWdlLXhlbiB3aGljaCBuZWVkcyBtaXJhZ2UteGVuKS4gVGhl
cmUncyBubyBlYXN5IHdheSB0byBmaXggdGhhdCwgSSdtIGxvb2tpbmcgaW50byB0aGF0Lgo+IAo+
PiBPbiAxNyBNYXIgMjAxNSwgYXQgMTA6NTAsIFRob21hcyBHYXphZ25haXJlIDx0aG9tYXNAZ2F6
YWduYWlyZS5vcmc+IHdyb3RlOgo+PiAKPj4gSGksCj4+IAo+PiBUaGVzZSByZWxlYXNlcyBjb250
YWluIEhhbm5lcycgcGF0Y2hlcyB0byBtb3ZlIHRoZSByZWxhdGVkIEMgc3R1YnMgZnJvbSBtaXJh
Z2UvbWlyYWdlLXBsYXRmb3JtIHRvIG1pcmFnZS9pby1wYWdlLiBUaGV5IGFyZSBwYXJ0IG9mIGFu
IG9uZ29pbmcgZWZmb3J0IHRvIGRpc2FnZ3JlZ2F0ZSBtaXJhZ2UvbWlyYWdlLXBsYXRmb3JtIHRv
IHByb3ZpZGUgb25seSB0aGUgY29yZSBDIGNvZGUgbmVlZGVkIGZyb20gdW5peCBhbmQgeGVuWzFd
LCBieSBtb3ZpbmcgdGhlIEMgc3R1YnMgaW4gdGhlaXIgcmVsYXRlZCB1cHN0cmVhbSBwYWNrYWdl
cyBDb250cmlidXRpb25zIGhlbHBpbmcgdG8gZ28gaW4gdGhhdCBkaXJlY3Rpb24gYXJlIGFzIHVz
dWFsIHdlbGNvbWUuCj4+IAo+PiBJJ3ZlIGFsc28gY2xvc2VkIH4yMCBpc3N1ZXMgYW5kIGFkZGVk
IGNvbG9yIHRvIHRoZSByZW1haW5pbmcgb25lIG9uIHRoZSBtaXJhZ2UgYnVnIHRyYWNrZXJbMl0u
Cj4+IAo+PiBCZXN0LAo+PiBUaG9tYXMKPj4gCj4+IG1pcmFnZS9taXJhZ2UtcGxhdGZvcm0gKG1p
cmFnZS11bml4LjIuMi4zLCBtaXJhZ2UteGVuLjIuMi4zKToKPj4g4oCiIEFkZCBvcGFtIGZpbGVz
IGZvciBtaXJhZ2UteGVuIGFuZCBtaXJhZ2UtdW5peCBPUEFNIHBhY2thZ2VzCj4+IOKAoiBSZW1v
dmUgcGFnZV9zdHVicy5jLCBub3cgcHJvdmlkZWQgYnkgaW8tcGFnZSAoIzEyMiwgcGF0Y2ggZnJv
bSBAaGFubmVzbSkKPj4gCj4+IG1pcmFnZS9pby1wYWdlLjEuMS41Ogo+PiDigKIgRml4IGVxdWFs
bGl0eSBvZiBpby1wYWdlcyAoIzE3LCBwYXRjaCBmcm9tIEBoYW5uZXNtKQo+PiDigKIgSW1wb3J0
IEMgc3R1YnMgZnJvbSBtaXJhZ2UtcGxhdGZvcm0gKCMxOCwgcGF0Y2ggZnJvbSBAaGFubmVzbSkK
Pj4gCj4+IFsxXSBodHRwczovL2dpdGh1Yi5jb20vbWlyYWdlL21pcmFnZS1wbGF0Zm9ybS9pc3N1
ZXMvMTI0Cj4+IFsyXSBodHRwczovL2dpdGh1Yi5jb20vbWlyYWdlL21pcmFnZS9pc3N1ZXMKPj4g
Cj4gCj4gCj4gX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18K
PiBNaXJhZ2VPUy1kZXZlbCBtYWlsaW5nIGxpc3QKPiBNaXJhZ2VPUy1kZXZlbEBsaXN0cy54ZW5w
cm9qZWN0Lm9yZwo+IGh0dHA6Ly9saXN0cy54ZW5wcm9qZWN0Lm9yZy9jZ2ktYmluL21haWxtYW4v
bGlzdGluZm8vbWlyYWdlb3MtZGV2ZWwKCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fXwpNaXJhZ2VPUy1kZXZlbCBtYWlsaW5nIGxpc3QKTWlyYWdlT1MtZGV2
ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cDovL2xpc3RzLnhlbnByb2plY3Qub3JnL2NnaS1i
aW4vbWFpbG1hbi9saXN0aW5mby9taXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 17 11:09:52 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 17 Mar 2015 11:09:52 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXpNg-00070Q-4P; Tue, 17 Mar 2015 11:09:52 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YXpNf-00070G-2n
	for mirageos-devel@lists.xenproject.org; Tue, 17 Mar 2015 11:09:51 +0000
Received: from [85.158.137.68] by server-10.bemta-3.messagelabs.com id
	9D/DD-30757-E7B08055; Tue, 17 Mar 2015 11:09:50 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-2.tower-31.messagelabs.com!1426590589!12861700!1
X-Originating-IP: [209.85.212.180]
X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 26541 invoked from network); 17 Mar 2015 11:09:49 -0000
Received: from mail-wi0-f180.google.com (HELO mail-wi0-f180.google.com)
	(209.85.212.180)
	by server-2.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	17 Mar 2015 11:09:49 -0000
Received: by wifj2 with SMTP id j2so7800747wif.1
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 17 Mar 2015 04:09:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=LuoP7RVwfBSZvXFcuQJBWdugA7Ea0MOTxysDe7tYYck=;
	b=ahhy9ZUD3TngWpYx/oD/Z3xsN9xe4TVZ5a3q2Yapu6Qm5fOaam1ZtQZS5iGd8JfMjR
	BPpiUYgbEuIx/njcLr/ZncshNArmck7Ng7crR2VAwyo0RsCNMxsLzOoYKC0aFsfjLrlX
	mbAo+tJ1mCbCFTgJ0zsgwIKyZZpJh2b4nSjzDM2JMVmBIiDeVcaP+SU50h296KYQEXRf
	EzDUAcDEFzLvRrTByhv9OmLT5KURCYvTodYc6ZQjqXcHhaxDatR7PNlTFWKJmS67euro
	C/6oWDGjTKhzAi9Hu12hSr9LtIHpD1MEUkyOdPJ3eDrS9G3op/75rcTp4USBJmYa85xo
	7p0A==
X-Received: by 10.181.8.103 with SMTP id dj7mr129503286wid.75.1426590589110;
	Tue, 17 Mar 2015 04:09:49 -0700 (PDT)
Received: from ?IPv6:2001:630:212:248:cd27:a1e1:69ad:f683?
	([2001:630:212:248:cd27:a1e1:69ad:f683])
	by mx.google.com with ESMTPSA id hl15sm2200955wib.3.2015.03.17.04.09.47
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 17 Mar 2015 04:09:47 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <21C47819-A643-4277-943C-AA388828294A@recoil.org>
Date: Tue, 17 Mar 2015 11:09:45 +0000
Message-Id: <FEAD71A4-F998-49B6-A358-67BF2A04BA60@gazagnaire.org>
References: <FA4CE73F-1C28-40ED-BC91-AA674465EFC7@gazagnaire.org>
	<C319A37B-985E-4DE1-BC24-CA2F900A49E4@gazagnaire.org>
	<21C47819-A643-4277-943C-AA388828294A@recoil.org>
To: Anil Madhavapeddy <anil@recoil.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] [ANN] release of io-page.1.5.0,
	mirage-unix.2.2.3 and mirage-xen.2.2.3
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

PiBJdCBzaG91bGQgYmUgcG9zc2libGUgdG8gY29tcGlsZSB0aGUgaW8tcGFnZSBzdHVicyB3aXRo
b3V0IGRlcGVuZGluZyBvbiBtaXJhZ2UteGVuLiAgV2UgY291bGQgYnJlYWsgaXQgdXAgaW50byBh
IG1pcmFnZS14ZW4taGVhZGVycyBwYWNrYWdlIGluIGEgc2ltaWxhciBzdHlsZSB0byBtaXJhZ2Uv
bWlyYWdlLXR5cGVzLi4uCgp5ZXMgdGhhdCB3YXMgaW5kZWVkIHdoYXQgSSB3YXMgdGhpbmtpbmcu
IEZvciBub3cgb24sIEkganVzdCByZXZlcnRlZDogaHR0cHM6Ly9naXRodWIuY29tL29jYW1sL29w
YW0tcmVwb3NpdG9yeS9wdWxsLzM3NTQKClRoaXMgbWVhbnMgdGhhdCBtaXJhZ2UtdW5peCBhbmQg
bWlyYWdlLWRlbiB3aWxsIG5lZWQgYSBkaWZmZXJlbnQgdmVyc2lvbiBvZiBpby1wYWdlIHdoaWNo
IGNvdWxkIHByb2R1Y2UgYmlnIHJlY29tcGlsYXRpb24gb24gYG1pcmFnZSBjb25maWd1cmVgLi4u
CgpUaG9tYXMKCj4gCj4gQW5pbAo+IAo+PiBPbiAxNyBNYXIgMjAxNSwgYXQgMTI6MDUsIFRob21h
cyBHYXphZ25haXJlIDx0aG9tYXNAZ2F6YWduYWlyZS5vcmc+IHdyb3RlOgo+PiAKPj4gQWN0dWFs
bHksIHRoaXMgaW50cm9kdWNlcyBhIHJlY3Vyc2l2ZSBkZXBlbmRlbmN5IGluIHRoZSBvcGFtIHJl
cG9zaXRvcnkgKGlvLXBhZ2UgbmV3cyBtaXJhZ2UteGVuIHdoaWNoIG5lZWRzIG1pcmFnZS14ZW4p
LiBUaGVyZSdzIG5vIGVhc3kgd2F5IHRvIGZpeCB0aGF0LCBJJ20gbG9va2luZyBpbnRvIHRoYXQu
Cj4+IAo+Pj4gT24gMTcgTWFyIDIwMTUsIGF0IDEwOjUwLCBUaG9tYXMgR2F6YWduYWlyZSA8dGhv
bWFzQGdhemFnbmFpcmUub3JnPiB3cm90ZToKPj4+IAo+Pj4gSGksCj4+PiAKPj4+IFRoZXNlIHJl
bGVhc2VzIGNvbnRhaW4gSGFubmVzJyBwYXRjaGVzIHRvIG1vdmUgdGhlIHJlbGF0ZWQgQyBzdHVi
cyBmcm9tIG1pcmFnZS9taXJhZ2UtcGxhdGZvcm0gdG8gbWlyYWdlL2lvLXBhZ2UuIFRoZXkgYXJl
IHBhcnQgb2YgYW4gb25nb2luZyBlZmZvcnQgdG8gZGlzYWdncmVnYXRlIG1pcmFnZS9taXJhZ2Ut
cGxhdGZvcm0gdG8gcHJvdmlkZSBvbmx5IHRoZSBjb3JlIEMgY29kZSBuZWVkZWQgZnJvbSB1bml4
IGFuZCB4ZW5bMV0sIGJ5IG1vdmluZyB0aGUgQyBzdHVicyBpbiB0aGVpciByZWxhdGVkIHVwc3Ry
ZWFtIHBhY2thZ2VzIENvbnRyaWJ1dGlvbnMgaGVscGluZyB0byBnbyBpbiB0aGF0IGRpcmVjdGlv
biBhcmUgYXMgdXN1YWwgd2VsY29tZS4KPj4+IAo+Pj4gSSd2ZSBhbHNvIGNsb3NlZCB+MjAgaXNz
dWVzIGFuZCBhZGRlZCBjb2xvciB0byB0aGUgcmVtYWluaW5nIG9uZSBvbiB0aGUgbWlyYWdlIGJ1
ZyB0cmFja2VyWzJdLgo+Pj4gCj4+PiBCZXN0LAo+Pj4gVGhvbWFzCj4+PiAKPj4+IG1pcmFnZS9t
aXJhZ2UtcGxhdGZvcm0gKG1pcmFnZS11bml4LjIuMi4zLCBtaXJhZ2UteGVuLjIuMi4zKToKPj4+
IOKAoiBBZGQgb3BhbSBmaWxlcyBmb3IgbWlyYWdlLXhlbiBhbmQgbWlyYWdlLXVuaXggT1BBTSBw
YWNrYWdlcwo+Pj4g4oCiIFJlbW92ZSBwYWdlX3N0dWJzLmMsIG5vdyBwcm92aWRlZCBieSBpby1w
YWdlICgjMTIyLCBwYXRjaCBmcm9tIEBoYW5uZXNtKQo+Pj4gCj4+PiBtaXJhZ2UvaW8tcGFnZS4x
LjEuNToKPj4+IOKAoiBGaXggZXF1YWxsaXR5IG9mIGlvLXBhZ2VzICgjMTcsIHBhdGNoIGZyb20g
QGhhbm5lc20pCj4+PiDigKIgSW1wb3J0IEMgc3R1YnMgZnJvbSBtaXJhZ2UtcGxhdGZvcm0gKCMx
OCwgcGF0Y2ggZnJvbSBAaGFubmVzbSkKPj4+IAo+Pj4gWzFdIGh0dHBzOi8vZ2l0aHViLmNvbS9t
aXJhZ2UvbWlyYWdlLXBsYXRmb3JtL2lzc3Vlcy8xMjQKPj4+IFsyXSBodHRwczovL2dpdGh1Yi5j
b20vbWlyYWdlL21pcmFnZS9pc3N1ZXMKPj4+IAo+PiAKPj4gCj4+IF9fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCj4+IE1pcmFnZU9TLWRldmVsIG1haWxpbmcg
bGlzdAo+PiBNaXJhZ2VPUy1kZXZlbEBsaXN0cy54ZW5wcm9qZWN0Lm9yZwo+PiBodHRwOi8vbGlz
dHMueGVucHJvamVjdC5vcmcvY2dpLWJpbi9tYWlsbWFuL2xpc3RpbmZvL21pcmFnZW9zLWRldmVs
Cj4gCgoKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTWly
YWdlT1MtZGV2ZWwgbWFpbGluZyBsaXN0Ck1pcmFnZU9TLWRldmVsQGxpc3RzLnhlbnByb2plY3Qu
b3JnCmh0dHA6Ly9saXN0cy54ZW5wcm9qZWN0Lm9yZy9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8v
bWlyYWdlb3MtZGV2ZWwK

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 17 11:09:52 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 17 Mar 2015 11:09:52 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXpNg-00070Q-4P; Tue, 17 Mar 2015 11:09:52 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YXpNf-00070G-2n
	for mirageos-devel@lists.xenproject.org; Tue, 17 Mar 2015 11:09:51 +0000
Received: from [85.158.137.68] by server-10.bemta-3.messagelabs.com id
	9D/DD-30757-E7B08055; Tue, 17 Mar 2015 11:09:50 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-2.tower-31.messagelabs.com!1426590589!12861700!1
X-Originating-IP: [209.85.212.180]
X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 26541 invoked from network); 17 Mar 2015 11:09:49 -0000
Received: from mail-wi0-f180.google.com (HELO mail-wi0-f180.google.com)
	(209.85.212.180)
	by server-2.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	17 Mar 2015 11:09:49 -0000
Received: by wifj2 with SMTP id j2so7800747wif.1
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 17 Mar 2015 04:09:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=LuoP7RVwfBSZvXFcuQJBWdugA7Ea0MOTxysDe7tYYck=;
	b=ahhy9ZUD3TngWpYx/oD/Z3xsN9xe4TVZ5a3q2Yapu6Qm5fOaam1ZtQZS5iGd8JfMjR
	BPpiUYgbEuIx/njcLr/ZncshNArmck7Ng7crR2VAwyo0RsCNMxsLzOoYKC0aFsfjLrlX
	mbAo+tJ1mCbCFTgJ0zsgwIKyZZpJh2b4nSjzDM2JMVmBIiDeVcaP+SU50h296KYQEXRf
	EzDUAcDEFzLvRrTByhv9OmLT5KURCYvTodYc6ZQjqXcHhaxDatR7PNlTFWKJmS67euro
	C/6oWDGjTKhzAi9Hu12hSr9LtIHpD1MEUkyOdPJ3eDrS9G3op/75rcTp4USBJmYa85xo
	7p0A==
X-Received: by 10.181.8.103 with SMTP id dj7mr129503286wid.75.1426590589110;
	Tue, 17 Mar 2015 04:09:49 -0700 (PDT)
Received: from ?IPv6:2001:630:212:248:cd27:a1e1:69ad:f683?
	([2001:630:212:248:cd27:a1e1:69ad:f683])
	by mx.google.com with ESMTPSA id hl15sm2200955wib.3.2015.03.17.04.09.47
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 17 Mar 2015 04:09:47 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <21C47819-A643-4277-943C-AA388828294A@recoil.org>
Date: Tue, 17 Mar 2015 11:09:45 +0000
Message-Id: <FEAD71A4-F998-49B6-A358-67BF2A04BA60@gazagnaire.org>
References: <FA4CE73F-1C28-40ED-BC91-AA674465EFC7@gazagnaire.org>
	<C319A37B-985E-4DE1-BC24-CA2F900A49E4@gazagnaire.org>
	<21C47819-A643-4277-943C-AA388828294A@recoil.org>
To: Anil Madhavapeddy <anil@recoil.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] [ANN] release of io-page.1.5.0,
	mirage-unix.2.2.3 and mirage-xen.2.2.3
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

PiBJdCBzaG91bGQgYmUgcG9zc2libGUgdG8gY29tcGlsZSB0aGUgaW8tcGFnZSBzdHVicyB3aXRo
b3V0IGRlcGVuZGluZyBvbiBtaXJhZ2UteGVuLiAgV2UgY291bGQgYnJlYWsgaXQgdXAgaW50byBh
IG1pcmFnZS14ZW4taGVhZGVycyBwYWNrYWdlIGluIGEgc2ltaWxhciBzdHlsZSB0byBtaXJhZ2Uv
bWlyYWdlLXR5cGVzLi4uCgp5ZXMgdGhhdCB3YXMgaW5kZWVkIHdoYXQgSSB3YXMgdGhpbmtpbmcu
IEZvciBub3cgb24sIEkganVzdCByZXZlcnRlZDogaHR0cHM6Ly9naXRodWIuY29tL29jYW1sL29w
YW0tcmVwb3NpdG9yeS9wdWxsLzM3NTQKClRoaXMgbWVhbnMgdGhhdCBtaXJhZ2UtdW5peCBhbmQg
bWlyYWdlLWRlbiB3aWxsIG5lZWQgYSBkaWZmZXJlbnQgdmVyc2lvbiBvZiBpby1wYWdlIHdoaWNo
IGNvdWxkIHByb2R1Y2UgYmlnIHJlY29tcGlsYXRpb24gb24gYG1pcmFnZSBjb25maWd1cmVgLi4u
CgpUaG9tYXMKCj4gCj4gQW5pbAo+IAo+PiBPbiAxNyBNYXIgMjAxNSwgYXQgMTI6MDUsIFRob21h
cyBHYXphZ25haXJlIDx0aG9tYXNAZ2F6YWduYWlyZS5vcmc+IHdyb3RlOgo+PiAKPj4gQWN0dWFs
bHksIHRoaXMgaW50cm9kdWNlcyBhIHJlY3Vyc2l2ZSBkZXBlbmRlbmN5IGluIHRoZSBvcGFtIHJl
cG9zaXRvcnkgKGlvLXBhZ2UgbmV3cyBtaXJhZ2UteGVuIHdoaWNoIG5lZWRzIG1pcmFnZS14ZW4p
LiBUaGVyZSdzIG5vIGVhc3kgd2F5IHRvIGZpeCB0aGF0LCBJJ20gbG9va2luZyBpbnRvIHRoYXQu
Cj4+IAo+Pj4gT24gMTcgTWFyIDIwMTUsIGF0IDEwOjUwLCBUaG9tYXMgR2F6YWduYWlyZSA8dGhv
bWFzQGdhemFnbmFpcmUub3JnPiB3cm90ZToKPj4+IAo+Pj4gSGksCj4+PiAKPj4+IFRoZXNlIHJl
bGVhc2VzIGNvbnRhaW4gSGFubmVzJyBwYXRjaGVzIHRvIG1vdmUgdGhlIHJlbGF0ZWQgQyBzdHVi
cyBmcm9tIG1pcmFnZS9taXJhZ2UtcGxhdGZvcm0gdG8gbWlyYWdlL2lvLXBhZ2UuIFRoZXkgYXJl
IHBhcnQgb2YgYW4gb25nb2luZyBlZmZvcnQgdG8gZGlzYWdncmVnYXRlIG1pcmFnZS9taXJhZ2Ut
cGxhdGZvcm0gdG8gcHJvdmlkZSBvbmx5IHRoZSBjb3JlIEMgY29kZSBuZWVkZWQgZnJvbSB1bml4
IGFuZCB4ZW5bMV0sIGJ5IG1vdmluZyB0aGUgQyBzdHVicyBpbiB0aGVpciByZWxhdGVkIHVwc3Ry
ZWFtIHBhY2thZ2VzIENvbnRyaWJ1dGlvbnMgaGVscGluZyB0byBnbyBpbiB0aGF0IGRpcmVjdGlv
biBhcmUgYXMgdXN1YWwgd2VsY29tZS4KPj4+IAo+Pj4gSSd2ZSBhbHNvIGNsb3NlZCB+MjAgaXNz
dWVzIGFuZCBhZGRlZCBjb2xvciB0byB0aGUgcmVtYWluaW5nIG9uZSBvbiB0aGUgbWlyYWdlIGJ1
ZyB0cmFja2VyWzJdLgo+Pj4gCj4+PiBCZXN0LAo+Pj4gVGhvbWFzCj4+PiAKPj4+IG1pcmFnZS9t
aXJhZ2UtcGxhdGZvcm0gKG1pcmFnZS11bml4LjIuMi4zLCBtaXJhZ2UteGVuLjIuMi4zKToKPj4+
IOKAoiBBZGQgb3BhbSBmaWxlcyBmb3IgbWlyYWdlLXhlbiBhbmQgbWlyYWdlLXVuaXggT1BBTSBw
YWNrYWdlcwo+Pj4g4oCiIFJlbW92ZSBwYWdlX3N0dWJzLmMsIG5vdyBwcm92aWRlZCBieSBpby1w
YWdlICgjMTIyLCBwYXRjaCBmcm9tIEBoYW5uZXNtKQo+Pj4gCj4+PiBtaXJhZ2UvaW8tcGFnZS4x
LjEuNToKPj4+IOKAoiBGaXggZXF1YWxsaXR5IG9mIGlvLXBhZ2VzICgjMTcsIHBhdGNoIGZyb20g
QGhhbm5lc20pCj4+PiDigKIgSW1wb3J0IEMgc3R1YnMgZnJvbSBtaXJhZ2UtcGxhdGZvcm0gKCMx
OCwgcGF0Y2ggZnJvbSBAaGFubmVzbSkKPj4+IAo+Pj4gWzFdIGh0dHBzOi8vZ2l0aHViLmNvbS9t
aXJhZ2UvbWlyYWdlLXBsYXRmb3JtL2lzc3Vlcy8xMjQKPj4+IFsyXSBodHRwczovL2dpdGh1Yi5j
b20vbWlyYWdlL21pcmFnZS9pc3N1ZXMKPj4+IAo+PiAKPj4gCj4+IF9fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCj4+IE1pcmFnZU9TLWRldmVsIG1haWxpbmcg
bGlzdAo+PiBNaXJhZ2VPUy1kZXZlbEBsaXN0cy54ZW5wcm9qZWN0Lm9yZwo+PiBodHRwOi8vbGlz
dHMueGVucHJvamVjdC5vcmcvY2dpLWJpbi9tYWlsbWFuL2xpc3RpbmZvL21pcmFnZW9zLWRldmVs
Cj4gCgoKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTWly
YWdlT1MtZGV2ZWwgbWFpbGluZyBsaXN0Ck1pcmFnZU9TLWRldmVsQGxpc3RzLnhlbnByb2plY3Qu
b3JnCmh0dHA6Ly9saXN0cy54ZW5wcm9qZWN0Lm9yZy9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8v
bWlyYWdlb3MtZGV2ZWwK

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 17 11:11:42 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 17 Mar 2015 11:11:42 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXpPS-0007qd-MT; Tue, 17 Mar 2015 11:11:42 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <hannes@mehnert.org>) id 1YXpPR-0007qM-K3
	for mirageos-devel@lists.xenproject.org; Tue, 17 Mar 2015 11:11:41 +0000
Received: from [85.158.139.211] by server-15.bemta-5.messagelabs.com id
	29/E6-19679-CEB08055; Tue, 17 Mar 2015 11:11:40 +0000
X-Env-Sender: hannes@mehnert.org
X-Msg-Ref: server-5.tower-206.messagelabs.com!1426590699!11185174!1
X-Originating-IP: [213.73.89.200]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 22609 invoked from network); 17 Mar 2015 11:11:40 -0000
Received: from mail.mehnert.org (HELO mail.mehnert.org) (213.73.89.200)
	by server-5.tower-206.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 17 Mar 2015 11:11:40 -0000
Received: from [128.232.110.109] (c109.al.cl.cam.ac.uk [128.232.110.109])
	(using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
	(Client CN "hannes@mehnert.org", Issuer "mehnert root CA" (verified OK))
	by mail.mehnert.org (Postfix) with ESMTPS id 47BC01EFD
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 17 Mar 2015 12:11:39 +0100 (CET)
Message-ID: <55080BD4.2080407@mehnert.org>
Date: Tue, 17 Mar 2015 11:11:16 +0000
From: Hannes Mehnert <hannes@mehnert.org>
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: mirageos-devel@lists.xenproject.org
References: <FA4CE73F-1C28-40ED-BC91-AA674465EFC7@gazagnaire.org>	<C319A37B-985E-4DE1-BC24-CA2F900A49E4@gazagnaire.org>
	<21C47819-A643-4277-943C-AA388828294A@recoil.org>
In-Reply-To: <21C47819-A643-4277-943C-AA388828294A@recoil.org>
OpenPGP: id=DF7C28EE
Subject: Re: [MirageOS-devel] [ANN] release of io-page.1.5.0,
 mirage-unix.2.2.3 and mirage-xen.2.2.3
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA384

On 03/17/2015 11:07, Anil Madhavapeddy wrote:
> It should be possible to compile the io-page stubs without
> depending on mirage-xen.  We could break it up into a
> mirage-xen-headers package in a similar style to
> mirage/mirage-types...

Maybe use mirage-xen-minios do decide whether to build Io_page with
xen support or not? Io_page needs the headers from there..

hannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCQAGBQJVCAvUAAoJELyJZYjffCjumvIP/0FiPB4qnl8sJiUg8HuGKUuO
Kkduy94IPyu+thVKEj81QJ4Kn2ue2Ljth9vcrjDZF+cMrfQyalgWDc/1Y6ZVFaie
yCd+5Nt8eE+V7pXEEudH6I87C01ARVTAfJOxVMaNuuTU+9RU9o3uYIAw6uLLc3Lf
+frPf2mWmUC7p+5WhqWGFZhhfdWq/vBYpXjqMED6hBXbnnb77CysTwrdRrYEhjGF
l4TYx8F7x2w4HvkPzM1T5JcJ+gW8R7GwTTgiGcdUFnoT6vN6UXyek/ehSwsVUyzS
RYKuBeNdRN60zzfCDV0OZoRVQRjsPrj1I7+nPH1kf6+khRxkwRoFiUej9iSMxxKy
OPCaHotZeHw1YZPFveyS5xqvae43zD7ruFajUmHwX17KiZpzFOBlvGoGP6r5PEAU
jcYZ1/KsWPN1vUMIKY4qYFobQj8yfQ5BmLNMMCgsPSUk+3gJgD8+GfCOtz6QHHl2
p7ztBw4jjrZR+rYbNBoGcI/uYFTzL8vzqu8kzEkQ3GR63ltcKBWN2HD7PvZxnseJ
yPDJ6gqSz5a2NOzSjlqIxBWKB4WwXXBiujpXAzqayyocy9pLzY4oAx/TEPP7QB1B
Jv2NILvHawDLj19cQ1W2H0c7S6h+dIvzGgOKqbBcyFeRcF9dUasG9s9k2pIXwc9H
UJH94K34S3+3qJuZg4pR
=jUKQ
-----END PGP SIGNATURE-----

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 17 11:11:42 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 17 Mar 2015 11:11:42 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXpPS-0007qd-MT; Tue, 17 Mar 2015 11:11:42 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <hannes@mehnert.org>) id 1YXpPR-0007qM-K3
	for mirageos-devel@lists.xenproject.org; Tue, 17 Mar 2015 11:11:41 +0000
Received: from [85.158.139.211] by server-15.bemta-5.messagelabs.com id
	29/E6-19679-CEB08055; Tue, 17 Mar 2015 11:11:40 +0000
X-Env-Sender: hannes@mehnert.org
X-Msg-Ref: server-5.tower-206.messagelabs.com!1426590699!11185174!1
X-Originating-IP: [213.73.89.200]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 22609 invoked from network); 17 Mar 2015 11:11:40 -0000
Received: from mail.mehnert.org (HELO mail.mehnert.org) (213.73.89.200)
	by server-5.tower-206.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 17 Mar 2015 11:11:40 -0000
Received: from [128.232.110.109] (c109.al.cl.cam.ac.uk [128.232.110.109])
	(using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
	(Client CN "hannes@mehnert.org", Issuer "mehnert root CA" (verified OK))
	by mail.mehnert.org (Postfix) with ESMTPS id 47BC01EFD
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 17 Mar 2015 12:11:39 +0100 (CET)
Message-ID: <55080BD4.2080407@mehnert.org>
Date: Tue, 17 Mar 2015 11:11:16 +0000
From: Hannes Mehnert <hannes@mehnert.org>
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: mirageos-devel@lists.xenproject.org
References: <FA4CE73F-1C28-40ED-BC91-AA674465EFC7@gazagnaire.org>	<C319A37B-985E-4DE1-BC24-CA2F900A49E4@gazagnaire.org>
	<21C47819-A643-4277-943C-AA388828294A@recoil.org>
In-Reply-To: <21C47819-A643-4277-943C-AA388828294A@recoil.org>
OpenPGP: id=DF7C28EE
Subject: Re: [MirageOS-devel] [ANN] release of io-page.1.5.0,
 mirage-unix.2.2.3 and mirage-xen.2.2.3
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA384

On 03/17/2015 11:07, Anil Madhavapeddy wrote:
> It should be possible to compile the io-page stubs without
> depending on mirage-xen.  We could break it up into a
> mirage-xen-headers package in a similar style to
> mirage/mirage-types...

Maybe use mirage-xen-minios do decide whether to build Io_page with
xen support or not? Io_page needs the headers from there..

hannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCQAGBQJVCAvUAAoJELyJZYjffCjumvIP/0FiPB4qnl8sJiUg8HuGKUuO
Kkduy94IPyu+thVKEj81QJ4Kn2ue2Ljth9vcrjDZF+cMrfQyalgWDc/1Y6ZVFaie
yCd+5Nt8eE+V7pXEEudH6I87C01ARVTAfJOxVMaNuuTU+9RU9o3uYIAw6uLLc3Lf
+frPf2mWmUC7p+5WhqWGFZhhfdWq/vBYpXjqMED6hBXbnnb77CysTwrdRrYEhjGF
l4TYx8F7x2w4HvkPzM1T5JcJ+gW8R7GwTTgiGcdUFnoT6vN6UXyek/ehSwsVUyzS
RYKuBeNdRN60zzfCDV0OZoRVQRjsPrj1I7+nPH1kf6+khRxkwRoFiUej9iSMxxKy
OPCaHotZeHw1YZPFveyS5xqvae43zD7ruFajUmHwX17KiZpzFOBlvGoGP6r5PEAU
jcYZ1/KsWPN1vUMIKY4qYFobQj8yfQ5BmLNMMCgsPSUk+3gJgD8+GfCOtz6QHHl2
p7ztBw4jjrZR+rYbNBoGcI/uYFTzL8vzqu8kzEkQ3GR63ltcKBWN2HD7PvZxnseJ
yPDJ6gqSz5a2NOzSjlqIxBWKB4WwXXBiujpXAzqayyocy9pLzY4oAx/TEPP7QB1B
Jv2NILvHawDLj19cQ1W2H0c7S6h+dIvzGgOKqbBcyFeRcF9dUasG9s9k2pIXwc9H
UJH94K34S3+3qJuZg4pR
=jUKQ
-----END PGP SIGNATURE-----

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 17 12:00:18 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 17 Mar 2015 12:00:18 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXqAP-0006RA-3a; Tue, 17 Mar 2015 12:00:13 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <hannes@mehnert.org>) id 1YXqAN-0006Qz-Nj
	for mirageos-devel@lists.xenproject.org; Tue, 17 Mar 2015 12:00:11 +0000
Received: from [85.158.137.68] by server-2.bemta-3.messagelabs.com id
	15/25-01923-A4718055; Tue, 17 Mar 2015 12:00:10 +0000
X-Env-Sender: hannes@mehnert.org
X-Msg-Ref: server-4.tower-31.messagelabs.com!1426593609!12850032!1
X-Originating-IP: [213.73.89.200]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 30576 invoked from network); 17 Mar 2015 12:00:10 -0000
Received: from mail.mehnert.org (HELO mail.mehnert.org) (213.73.89.200)
	by server-4.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 17 Mar 2015 12:00:10 -0000
Received: from [128.232.110.109] (c109.al.cl.cam.ac.uk [128.232.110.109])
	(using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
	(Client CN "hannes@mehnert.org", Issuer "mehnert root CA" (verified OK))
	by mail.mehnert.org (Postfix) with ESMTPS id E5D5A17D9;
	Tue, 17 Mar 2015 13:00:08 +0100 (CET)
Message-ID: <55081737.9020603@mehnert.org>
Date: Tue, 17 Mar 2015 11:59:51 +0000
From: Hannes Mehnert <hannes@mehnert.org>
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: Thomas Leonard <talex5@gmail.com>
References: <FA4CE73F-1C28-40ED-BC91-AA674465EFC7@gazagnaire.org>	<C319A37B-985E-4DE1-BC24-CA2F900A49E4@gazagnaire.org>	<21C47819-A643-4277-943C-AA388828294A@recoil.org>
	<55080BD4.2080407@mehnert.org>
In-Reply-To: <55080BD4.2080407@mehnert.org>
OpenPGP: id=DF7C28EE
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] [ANN] release of io-page.1.5.0,
 mirage-unix.2.2.3 and mirage-xen.2.2.3
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA384

Thomas,

On 03/17/2015 11:11, Hannes Mehnert wrote:
> Maybe use mirage-xen-minios do decide whether to build Io_page
> with xen support or not? Io_page needs the headers from there..

I now use the packages mirage-xen-minios opam and libminios-xen
pkg-config, which according to my limited understanding should be
good. Could you please look whether this makes sense (on my cubieboard
the output of pkg-config for mirage-xen and libminios-xen is the same)

https://github.com/mirage/io-page/pull/21

thanks,

hannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCQAGBQJVCBc3AAoJELyJZYjffCjugcEP/A5C6Y5j9CmITNNOI1uI6D6C
udPNW/v3ruji9bGcYKbDz1tjkMBRqF1W/5UKYGBKtlXgzNuw9qqJMlRWQSZYTv6u
U2KqbBC+edKH3hqJCpaOLNdY1SMEf3uuFX4vZAY94soYWFgzpBPkCetQfY8JS0F9
W/CawFNm2KqR4sRMaEg2VXkdvANaPK7mp7aYFCOoPCqG4Ywih48XDXJyCM1ELFaz
AdBGO7DLVQhwID6/8CN1Xc3GYtSg0e4BjJsXcPlu1aV9QNb8AWzZsODSwPAtPMNk
MzgoqaJUHVdJ86kidhfYsuZxFhMwZbyfaCnqBUGbwV12GsiPuM3UyqaJeZ6g6Uez
/lKjca9yCv2GeYjxcwGPLBArYUAJM1ppNTVb+kGz5OHpD8QIxnJZMn90KQRRBuB0
MfxtFnwKVB9FTle0MGN6x/0zXHLT/7sji/OlgnkhzGGg5xOPSjmQVhhgIOZuOnz/
0h1ZGJzgdxpF4Mex7VgagpBVoSlzIQX8usBv+qKN37R7WDWURpoqZYwRIjVbA9sA
QKSVJgXklG3iWOzDMOa8j+esrsHJnRztLs0MWdwTW70dnXduIMs8sW4lZ1BaTpav
+Y/5lG1Nd1EkcUsfNLHu7bNVgs9TNCAF/Vp3Onsa3AtVQbL0crAELoBtn2pMGr5Y
N2UR1fvurVtmVvZSI06z
=8QeZ
-----END PGP SIGNATURE-----

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 17 12:00:18 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 17 Mar 2015 12:00:18 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXqAP-0006RA-3a; Tue, 17 Mar 2015 12:00:13 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <hannes@mehnert.org>) id 1YXqAN-0006Qz-Nj
	for mirageos-devel@lists.xenproject.org; Tue, 17 Mar 2015 12:00:11 +0000
Received: from [85.158.137.68] by server-2.bemta-3.messagelabs.com id
	15/25-01923-A4718055; Tue, 17 Mar 2015 12:00:10 +0000
X-Env-Sender: hannes@mehnert.org
X-Msg-Ref: server-4.tower-31.messagelabs.com!1426593609!12850032!1
X-Originating-IP: [213.73.89.200]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 30576 invoked from network); 17 Mar 2015 12:00:10 -0000
Received: from mail.mehnert.org (HELO mail.mehnert.org) (213.73.89.200)
	by server-4.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 17 Mar 2015 12:00:10 -0000
Received: from [128.232.110.109] (c109.al.cl.cam.ac.uk [128.232.110.109])
	(using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
	(Client CN "hannes@mehnert.org", Issuer "mehnert root CA" (verified OK))
	by mail.mehnert.org (Postfix) with ESMTPS id E5D5A17D9;
	Tue, 17 Mar 2015 13:00:08 +0100 (CET)
Message-ID: <55081737.9020603@mehnert.org>
Date: Tue, 17 Mar 2015 11:59:51 +0000
From: Hannes Mehnert <hannes@mehnert.org>
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: Thomas Leonard <talex5@gmail.com>
References: <FA4CE73F-1C28-40ED-BC91-AA674465EFC7@gazagnaire.org>	<C319A37B-985E-4DE1-BC24-CA2F900A49E4@gazagnaire.org>	<21C47819-A643-4277-943C-AA388828294A@recoil.org>
	<55080BD4.2080407@mehnert.org>
In-Reply-To: <55080BD4.2080407@mehnert.org>
OpenPGP: id=DF7C28EE
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] [ANN] release of io-page.1.5.0,
 mirage-unix.2.2.3 and mirage-xen.2.2.3
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA384

Thomas,

On 03/17/2015 11:11, Hannes Mehnert wrote:
> Maybe use mirage-xen-minios do decide whether to build Io_page
> with xen support or not? Io_page needs the headers from there..

I now use the packages mirage-xen-minios opam and libminios-xen
pkg-config, which according to my limited understanding should be
good. Could you please look whether this makes sense (on my cubieboard
the output of pkg-config for mirage-xen and libminios-xen is the same)

https://github.com/mirage/io-page/pull/21

thanks,

hannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCQAGBQJVCBc3AAoJELyJZYjffCjugcEP/A5C6Y5j9CmITNNOI1uI6D6C
udPNW/v3ruji9bGcYKbDz1tjkMBRqF1W/5UKYGBKtlXgzNuw9qqJMlRWQSZYTv6u
U2KqbBC+edKH3hqJCpaOLNdY1SMEf3uuFX4vZAY94soYWFgzpBPkCetQfY8JS0F9
W/CawFNm2KqR4sRMaEg2VXkdvANaPK7mp7aYFCOoPCqG4Ywih48XDXJyCM1ELFaz
AdBGO7DLVQhwID6/8CN1Xc3GYtSg0e4BjJsXcPlu1aV9QNb8AWzZsODSwPAtPMNk
MzgoqaJUHVdJ86kidhfYsuZxFhMwZbyfaCnqBUGbwV12GsiPuM3UyqaJeZ6g6Uez
/lKjca9yCv2GeYjxcwGPLBArYUAJM1ppNTVb+kGz5OHpD8QIxnJZMn90KQRRBuB0
MfxtFnwKVB9FTle0MGN6x/0zXHLT/7sji/OlgnkhzGGg5xOPSjmQVhhgIOZuOnz/
0h1ZGJzgdxpF4Mex7VgagpBVoSlzIQX8usBv+qKN37R7WDWURpoqZYwRIjVbA9sA
QKSVJgXklG3iWOzDMOa8j+esrsHJnRztLs0MWdwTW70dnXduIMs8sW4lZ1BaTpav
+Y/5lG1Nd1EkcUsfNLHu7bNVgs9TNCAF/Vp3Onsa3AtVQbL0crAELoBtn2pMGr5Y
N2UR1fvurVtmVvZSI06z
=8QeZ
-----END PGP SIGNATURE-----

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 17 13:17:34 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 17 Mar 2015 13:17:34 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXrN9-00087U-K4; Tue, 17 Mar 2015 13:17:27 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YXrN8-00087P-1o
	for mirageos-devel@lists.xenproject.org; Tue, 17 Mar 2015 13:17:26 +0000
Received: from [85.158.137.68] by server-15.bemta-3.messagelabs.com id
	3A/36-10944-56928055; Tue, 17 Mar 2015 13:17:25 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-2.tower-31.messagelabs.com!1426598243!12922448!1
X-Originating-IP: [209.85.217.170]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 10276 invoked from network); 17 Mar 2015 13:17:24 -0000
Received: from mail-lb0-f170.google.com (HELO mail-lb0-f170.google.com)
	(209.85.217.170)
	by server-2.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	17 Mar 2015 13:17:24 -0000
Received: by lbcgn8 with SMTP id gn8so6678880lbc.2
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 17 Mar 2015 06:17:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=v+7lo+a9/Qo42SZaPOkF8/ivwPoRdAbbIaX7cuoKg9o=;
	b=v8vdsJIvIreUmR2hPHataG/6vVVTtGbXHcZ7I6Kec8U+rxo7q/yzzaEhYTrobVK/1r
	EGEQVqO/vARLtYT1CqUzFJevjKG329LzNTxQMgCV7N9jYzkksbJ5eQJoHm3BRbgr2hIY
	MrIsJNdRBzitv0lViuGiqrAgb9pTT+usM2Fov5iyJIGNl2ouhll6hsfm7V1S6QwMWCaD
	/Xm0TdD9Em7AQHi59Dwkh/T+MsCcuDFeADCnNjYZBRZ21+fQQjpuxTMSFJblsQPjhSlT
	vRrVwTGEI3Q/HK15MBcQJzNT7k8ZqbFBLkE1mh0s506xVoqdIKQUbIPB3gxYy5Bu6c9o
	B4YA==
MIME-Version: 1.0
X-Received: by 10.112.62.167 with SMTP id z7mr30456433lbr.115.1426598243393;
	Tue, 17 Mar 2015 06:17:23 -0700 (PDT)
Received: by 10.25.207.17 with HTTP; Tue, 17 Mar 2015 06:17:23 -0700 (PDT)
In-Reply-To: <55081737.9020603@mehnert.org>
References: <FA4CE73F-1C28-40ED-BC91-AA674465EFC7@gazagnaire.org>
	<C319A37B-985E-4DE1-BC24-CA2F900A49E4@gazagnaire.org>
	<21C47819-A643-4277-943C-AA388828294A@recoil.org>
	<55080BD4.2080407@mehnert.org> <55081737.9020603@mehnert.org>
Date: Tue, 17 Mar 2015 13:17:23 +0000
Message-ID: <CAG4opy_oyO-B5it1A4gzTpPBTXzc5yWqv=8EPMPME3J=BJKf_w@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: Hannes Mehnert <hannes@mehnert.org>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] [ANN] release of io-page.1.5.0,
 mirage-unix.2.2.3 and mirage-xen.2.2.3
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 17 March 2015 at 11:59, Hannes Mehnert <hannes@mehnert.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA384
>
> Thomas,
>
> On 03/17/2015 11:11, Hannes Mehnert wrote:
>> Maybe use mirage-xen-minios do decide whether to build Io_page
>> with xen support or not? Io_page needs the headers from there..
>
> I now use the packages mirage-xen-minios opam and libminios-xen
> pkg-config, which according to my limited understanding should be
> good. Could you please look whether this makes sense (on my cubieboard
> the output of pkg-config for mirage-xen and libminios-xen is the same)
>
> https://github.com/mirage/io-page/pull/21

One thing to watch out for is that mirage-platform provides the OCaml
headers (xen-ocaml/core), which Io_page (now) depends on. But,
xen-ocaml/bindings depends on Io_page. So there really is a cycle. You
might therefore want to split xen-ocaml/core out first.

( If the headers from pkg-config are the same then it's possible that
we're compiling against the Unix OCaml headers currently when building
Xen libraries, and maybe that's OK, I don't know. )


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 17 13:17:34 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 17 Mar 2015 13:17:34 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXrN9-00087U-K4; Tue, 17 Mar 2015 13:17:27 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YXrN8-00087P-1o
	for mirageos-devel@lists.xenproject.org; Tue, 17 Mar 2015 13:17:26 +0000
Received: from [85.158.137.68] by server-15.bemta-3.messagelabs.com id
	3A/36-10944-56928055; Tue, 17 Mar 2015 13:17:25 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-2.tower-31.messagelabs.com!1426598243!12922448!1
X-Originating-IP: [209.85.217.170]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 10276 invoked from network); 17 Mar 2015 13:17:24 -0000
Received: from mail-lb0-f170.google.com (HELO mail-lb0-f170.google.com)
	(209.85.217.170)
	by server-2.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	17 Mar 2015 13:17:24 -0000
Received: by lbcgn8 with SMTP id gn8so6678880lbc.2
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 17 Mar 2015 06:17:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=v+7lo+a9/Qo42SZaPOkF8/ivwPoRdAbbIaX7cuoKg9o=;
	b=v8vdsJIvIreUmR2hPHataG/6vVVTtGbXHcZ7I6Kec8U+rxo7q/yzzaEhYTrobVK/1r
	EGEQVqO/vARLtYT1CqUzFJevjKG329LzNTxQMgCV7N9jYzkksbJ5eQJoHm3BRbgr2hIY
	MrIsJNdRBzitv0lViuGiqrAgb9pTT+usM2Fov5iyJIGNl2ouhll6hsfm7V1S6QwMWCaD
	/Xm0TdD9Em7AQHi59Dwkh/T+MsCcuDFeADCnNjYZBRZ21+fQQjpuxTMSFJblsQPjhSlT
	vRrVwTGEI3Q/HK15MBcQJzNT7k8ZqbFBLkE1mh0s506xVoqdIKQUbIPB3gxYy5Bu6c9o
	B4YA==
MIME-Version: 1.0
X-Received: by 10.112.62.167 with SMTP id z7mr30456433lbr.115.1426598243393;
	Tue, 17 Mar 2015 06:17:23 -0700 (PDT)
Received: by 10.25.207.17 with HTTP; Tue, 17 Mar 2015 06:17:23 -0700 (PDT)
In-Reply-To: <55081737.9020603@mehnert.org>
References: <FA4CE73F-1C28-40ED-BC91-AA674465EFC7@gazagnaire.org>
	<C319A37B-985E-4DE1-BC24-CA2F900A49E4@gazagnaire.org>
	<21C47819-A643-4277-943C-AA388828294A@recoil.org>
	<55080BD4.2080407@mehnert.org> <55081737.9020603@mehnert.org>
Date: Tue, 17 Mar 2015 13:17:23 +0000
Message-ID: <CAG4opy_oyO-B5it1A4gzTpPBTXzc5yWqv=8EPMPME3J=BJKf_w@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: Hannes Mehnert <hannes@mehnert.org>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] [ANN] release of io-page.1.5.0,
 mirage-unix.2.2.3 and mirage-xen.2.2.3
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 17 March 2015 at 11:59, Hannes Mehnert <hannes@mehnert.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA384
>
> Thomas,
>
> On 03/17/2015 11:11, Hannes Mehnert wrote:
>> Maybe use mirage-xen-minios do decide whether to build Io_page
>> with xen support or not? Io_page needs the headers from there..
>
> I now use the packages mirage-xen-minios opam and libminios-xen
> pkg-config, which according to my limited understanding should be
> good. Could you please look whether this makes sense (on my cubieboard
> the output of pkg-config for mirage-xen and libminios-xen is the same)
>
> https://github.com/mirage/io-page/pull/21

One thing to watch out for is that mirage-platform provides the OCaml
headers (xen-ocaml/core), which Io_page (now) depends on. But,
xen-ocaml/bindings depends on Io_page. So there really is a cycle. You
might therefore want to split xen-ocaml/core out first.

( If the headers from pkg-config are the same then it's possible that
we're compiling against the Unix OCaml headers currently when building
Xen libraries, and maybe that's OK, I don't know. )


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 17 17:12:48 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 17 Mar 2015 17:12:48 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXv2m-00031i-6b; Tue, 17 Mar 2015 17:12:40 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <hannes@mehnert.org>) id 1YXv2l-00031d-Hl
	for mirageos-devel@lists.xenproject.org; Tue, 17 Mar 2015 17:12:39 +0000
Received: from [85.158.139.211] by server-11.bemta-5.messagelabs.com id
	79/B4-31121-68068055; Tue, 17 Mar 2015 17:12:38 +0000
X-Env-Sender: hannes@mehnert.org
X-Msg-Ref: server-3.tower-206.messagelabs.com!1426612357!3753393!1
X-Originating-IP: [213.73.89.200]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 8693 invoked from network); 17 Mar 2015 17:12:38 -0000
Received: from mail.mehnert.org (HELO mail.mehnert.org) (213.73.89.200)
	by server-3.tower-206.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 17 Mar 2015 17:12:38 -0000
Received: from [172.17.155.4] (global-1-26.nat.csx.cam.ac.uk [131.111.184.26])
	(using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
	(Client CN "hannes@mehnert.org", Issuer "mehnert root CA" (verified OK))
	by mail.mehnert.org (Postfix) with ESMTPS id D4CFB19A9
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 17 Mar 2015 18:12:36 +0100 (CET)
Message-ID: <55086072.8080008@mehnert.org>
Date: Tue, 17 Mar 2015 17:12:18 +0000
From: Hannes Mehnert <hannes@mehnert.org>
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
References: <FA4CE73F-1C28-40ED-BC91-AA674465EFC7@gazagnaire.org>	<C319A37B-985E-4DE1-BC24-CA2F900A49E4@gazagnaire.org>	<21C47819-A643-4277-943C-AA388828294A@recoil.org>	<55080BD4.2080407@mehnert.org>	<55081737.9020603@mehnert.org>
	<CAG4opy_oyO-B5it1A4gzTpPBTXzc5yWqv=8EPMPME3J=BJKf_w@mail.gmail.com>
In-Reply-To: <CAG4opy_oyO-B5it1A4gzTpPBTXzc5yWqv=8EPMPME3J=BJKf_w@mail.gmail.com>
OpenPGP: id=DF7C28EE
Subject: Re: [MirageOS-devel] [ANN] release of io-page.1.5.0,
 mirage-unix.2.2.3 and mirage-xen.2.2.3
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA384

Hey,

after further investigation and discussion with ThomasG I split
mirage-xen into separate libraries:
mirage-xen-posix: includes and minilibc
mirage-xen-ocaml: OCaml runtime (depends on mirage-xen-posix)
mirage-xen: bindings and OCaml OS library

Now, io-page depends on mirage-xen-ocaml, and mirage-xen depends on
io-page.

I reorganised the directory structure of mirage-platform slightly:
xen-posix contains - as before - the header files to pretend a posix
system (required to compile the OCaml runtime), plus minilibc and
float formating -- this is the home for mirage-xen-posix! installation
goes into .opam/x/lib/mirage-xen-posix and
.opam/x/include/mirage-xen-posix

xen-ocaml contains only the OCaml runtime (patches and build system),
installation into .opam/x/lib/mirage-xen-ocaml and
.opam/x/include/mirage-xen-ocaml

bindings and xen subdirectories form the mirage-xen package -- this
consists of various bindings and the OCaml OS module (in xen/).


I inserted the missing opam files, and adjusted the pkg-config files.
I also made the uninstall scripts remove the actual files they install.

https://github.com/mirage/mirage-platform/pull/125
https://github.com/mirage/io-page/pull/21

I tested this on my cubieboard from a fresh opam switch (using OCaml
4.01 and opam 1.2.0), compiling mirage-skeleton/console and running it
on Xen! travis is unhappy because it doesn't know about
mirage-xen-ocaml / mirage-xen-posix (yet).

I believe those pre-OCaml libraries, their interdependencies and
pkg-config magic needs to be documented somewhere (tell me where and
I'll write it up)...

and yes, ThomasL, OCaml includes from the Unix are in use, rather than
those from xen-ocaml...


hannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCQAGBQJVCGByAAoJELyJZYjffCju7LsP/2Xi+ULLZmTXWjD44f5Gjblx
WRSbX4UNdj9yJZ5J0N8bCSYLZWgEQ2r0PJyNR+z7uldVABxSt7vSaokYRbJnkbZi
Vjox4b/Phngioshi7zExLBNHBybLvFkMq29/wRhVGId1oBOORusiwG9Ze1nNMkHP
e/ZOD3+vvt4X2O7vma0WLF8G2tkLc25yS7t09a2HKQYLl49r0C9viQ71f9rD8cFK
lDC7zcdkyKM8bge+klzHuYSG/dJMtJKFHLdX/7yFYeyxBPpsvEJfky7FMzx/55CE
CWl2wozBBapQ56pKqWwrn2/nLU6N4tum+LcuTbFfsXfaikCuol6qH5AuSx8CEfHh
R6Ojasdb1HJFlUr3Jj1prtmTPWtqZ83A8qTtx0F3SPggx+6UmHseKj2b3QSPvrOW
m/1Kf1eFk1lmZbO0pbS+dMa9tZzhM4NUZsoNwtSuXhZJ1gr2rO95bKT7bGZlLlYN
tRv96r9JwU0HqyQRWBE07nv5L+tzvhEz7MoKnjubUnQULfleRd8UM3t+iqmBwIun
O1dkVBWmz1f4fGTexG9iA3NuetyI2rolbMsQdNaKMMuvDzrL+zuaEFTdg2xIBf8e
uG53ijjkVgp7/McoLMXBLibvNe1MMyLu8UGNdcYGRCiDwExn0gzMrmYWMEtAIDy1
VzECeDHzI524GofFBlIc
=qqyD
-----END PGP SIGNATURE-----

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 17 17:12:48 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 17 Mar 2015 17:12:48 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXv2m-00031i-6b; Tue, 17 Mar 2015 17:12:40 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <hannes@mehnert.org>) id 1YXv2l-00031d-Hl
	for mirageos-devel@lists.xenproject.org; Tue, 17 Mar 2015 17:12:39 +0000
Received: from [85.158.139.211] by server-11.bemta-5.messagelabs.com id
	79/B4-31121-68068055; Tue, 17 Mar 2015 17:12:38 +0000
X-Env-Sender: hannes@mehnert.org
X-Msg-Ref: server-3.tower-206.messagelabs.com!1426612357!3753393!1
X-Originating-IP: [213.73.89.200]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 8693 invoked from network); 17 Mar 2015 17:12:38 -0000
Received: from mail.mehnert.org (HELO mail.mehnert.org) (213.73.89.200)
	by server-3.tower-206.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 17 Mar 2015 17:12:38 -0000
Received: from [172.17.155.4] (global-1-26.nat.csx.cam.ac.uk [131.111.184.26])
	(using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
	(Client CN "hannes@mehnert.org", Issuer "mehnert root CA" (verified OK))
	by mail.mehnert.org (Postfix) with ESMTPS id D4CFB19A9
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 17 Mar 2015 18:12:36 +0100 (CET)
Message-ID: <55086072.8080008@mehnert.org>
Date: Tue, 17 Mar 2015 17:12:18 +0000
From: Hannes Mehnert <hannes@mehnert.org>
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
References: <FA4CE73F-1C28-40ED-BC91-AA674465EFC7@gazagnaire.org>	<C319A37B-985E-4DE1-BC24-CA2F900A49E4@gazagnaire.org>	<21C47819-A643-4277-943C-AA388828294A@recoil.org>	<55080BD4.2080407@mehnert.org>	<55081737.9020603@mehnert.org>
	<CAG4opy_oyO-B5it1A4gzTpPBTXzc5yWqv=8EPMPME3J=BJKf_w@mail.gmail.com>
In-Reply-To: <CAG4opy_oyO-B5it1A4gzTpPBTXzc5yWqv=8EPMPME3J=BJKf_w@mail.gmail.com>
OpenPGP: id=DF7C28EE
Subject: Re: [MirageOS-devel] [ANN] release of io-page.1.5.0,
 mirage-unix.2.2.3 and mirage-xen.2.2.3
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA384

Hey,

after further investigation and discussion with ThomasG I split
mirage-xen into separate libraries:
mirage-xen-posix: includes and minilibc
mirage-xen-ocaml: OCaml runtime (depends on mirage-xen-posix)
mirage-xen: bindings and OCaml OS library

Now, io-page depends on mirage-xen-ocaml, and mirage-xen depends on
io-page.

I reorganised the directory structure of mirage-platform slightly:
xen-posix contains - as before - the header files to pretend a posix
system (required to compile the OCaml runtime), plus minilibc and
float formating -- this is the home for mirage-xen-posix! installation
goes into .opam/x/lib/mirage-xen-posix and
.opam/x/include/mirage-xen-posix

xen-ocaml contains only the OCaml runtime (patches and build system),
installation into .opam/x/lib/mirage-xen-ocaml and
.opam/x/include/mirage-xen-ocaml

bindings and xen subdirectories form the mirage-xen package -- this
consists of various bindings and the OCaml OS module (in xen/).


I inserted the missing opam files, and adjusted the pkg-config files.
I also made the uninstall scripts remove the actual files they install.

https://github.com/mirage/mirage-platform/pull/125
https://github.com/mirage/io-page/pull/21

I tested this on my cubieboard from a fresh opam switch (using OCaml
4.01 and opam 1.2.0), compiling mirage-skeleton/console and running it
on Xen! travis is unhappy because it doesn't know about
mirage-xen-ocaml / mirage-xen-posix (yet).

I believe those pre-OCaml libraries, their interdependencies and
pkg-config magic needs to be documented somewhere (tell me where and
I'll write it up)...

and yes, ThomasL, OCaml includes from the Unix are in use, rather than
those from xen-ocaml...


hannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCQAGBQJVCGByAAoJELyJZYjffCju7LsP/2Xi+ULLZmTXWjD44f5Gjblx
WRSbX4UNdj9yJZ5J0N8bCSYLZWgEQ2r0PJyNR+z7uldVABxSt7vSaokYRbJnkbZi
Vjox4b/Phngioshi7zExLBNHBybLvFkMq29/wRhVGId1oBOORusiwG9Ze1nNMkHP
e/ZOD3+vvt4X2O7vma0WLF8G2tkLc25yS7t09a2HKQYLl49r0C9viQ71f9rD8cFK
lDC7zcdkyKM8bge+klzHuYSG/dJMtJKFHLdX/7yFYeyxBPpsvEJfky7FMzx/55CE
CWl2wozBBapQ56pKqWwrn2/nLU6N4tum+LcuTbFfsXfaikCuol6qH5AuSx8CEfHh
R6Ojasdb1HJFlUr3Jj1prtmTPWtqZ83A8qTtx0F3SPggx+6UmHseKj2b3QSPvrOW
m/1Kf1eFk1lmZbO0pbS+dMa9tZzhM4NUZsoNwtSuXhZJ1gr2rO95bKT7bGZlLlYN
tRv96r9JwU0HqyQRWBE07nv5L+tzvhEz7MoKnjubUnQULfleRd8UM3t+iqmBwIun
O1dkVBWmz1f4fGTexG9iA3NuetyI2rolbMsQdNaKMMuvDzrL+zuaEFTdg2xIBf8e
uG53ijjkVgp7/McoLMXBLibvNe1MMyLu8UGNdcYGRCiDwExn0gzMrmYWMEtAIDy1
VzECeDHzI524GofFBlIc
=qqyD
-----END PGP SIGNATURE-----

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 17 18:03:02 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 17 Mar 2015 18:03:02 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXvpT-000366-HY; Tue, 17 Mar 2015 18:02:59 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YXvpR-00034L-Sx
	for mirageos-devel@lists.xenproject.org; Tue, 17 Mar 2015 18:02:58 +0000
Received: from [85.158.139.211] by server-10.bemta-5.messagelabs.com id
	05/BE-14739-15C68055; Tue, 17 Mar 2015 18:02:57 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-6.tower-206.messagelabs.com!1426615376!11346045!1
X-Originating-IP: [74.125.82.173]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 10501 invoked from network); 17 Mar 2015 18:02:56 -0000
Received: from mail-we0-f173.google.com (HELO mail-we0-f173.google.com)
	(74.125.82.173)
	by server-6.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	17 Mar 2015 18:02:56 -0000
Received: by webcq43 with SMTP id cq43so13855570web.2
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 17 Mar 2015 11:02:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=ge2BtlLbuq+U7ClXI7dL3MiLmFcy+O0Q0DtWxfuY7MY=;
	b=vjzgATOKolV+sr6twsFH7x7K1zGibnieNFRLBPqZjUdmWuX1fgy50OjAXa6woFU3ye
	qnHqYHOWMpGvT3TqVQMJiPSlJHW6rYJQke6iF/jr/L6wZkEC17amwwGv4Q3EqbVgs4qP
	AGzrOu6pfDNLKc3bnb3J2EFQL7Qv8w3r/DspBjUMFTc3YaYPDsNGYhW7ycnsqLY7ukNT
	yT4DBogPMEiYYh2NqS1XEwPnfV58A7pyMscAexl+tkoGzCf1KRPGlEHfLY2KMQgFihHt
	4DHRCMbGyk8DDMjwue6x147mPfCPEp4NXntFejC2BOh/pRaHj8HN1y3PqaabRjRJvYz/
	r/Fw==
X-Received: by 10.194.95.133 with SMTP id dk5mr43271733wjb.143.1426615376221; 
	Tue, 17 Mar 2015 11:02:56 -0700 (PDT)
Received: from ?IPv6:2001:630:212:248:8915:426e:e9a8:6969?
	([2001:630:212:248:8915:426e:e9a8:6969])
	by mx.google.com with ESMTPSA id b4sm3671715wic.2.2015.03.17.11.02.53
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 17 Mar 2015 11:02:54 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <55086072.8080008@mehnert.org>
Date: Tue, 17 Mar 2015 18:02:53 +0000
Message-Id: <B62AEE6B-0616-4FA2-895E-EE7606160157@gazagnaire.org>
References: <FA4CE73F-1C28-40ED-BC91-AA674465EFC7@gazagnaire.org>
	<C319A37B-985E-4DE1-BC24-CA2F900A49E4@gazagnaire.org>
	<21C47819-A643-4277-943C-AA388828294A@recoil.org>
	<55080BD4.2080407@mehnert.org> <55081737.9020603@mehnert.org>
	<CAG4opy_oyO-B5it1A4gzTpPBTXzc5yWqv=8EPMPME3J=BJKf_w@mail.gmail.com>
	<55086072.8080008@mehnert.org>
To: Hannes Mehnert <hannes@mehnert.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] [ANN] release of io-page.1.5.0,
	mirage-unix.2.2.3 and mirage-xen.2.2.3
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Thanks Hannes! I'll prepare a staged release for all these packages. I believe it will be much easier to extract other C stubs now this is done!

Thomas

> On 17 Mar 2015, at 17:12, Hannes Mehnert <hannes@mehnert.org> wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA384
> 
> Hey,
> 
> after further investigation and discussion with ThomasG I split
> mirage-xen into separate libraries:
> mirage-xen-posix: includes and minilibc
> mirage-xen-ocaml: OCaml runtime (depends on mirage-xen-posix)
> mirage-xen: bindings and OCaml OS library
> 
> Now, io-page depends on mirage-xen-ocaml, and mirage-xen depends on
> io-page.
> 
> I reorganised the directory structure of mirage-platform slightly:
> xen-posix contains - as before - the header files to pretend a posix
> system (required to compile the OCaml runtime), plus minilibc and
> float formating -- this is the home for mirage-xen-posix! installation
> goes into .opam/x/lib/mirage-xen-posix and
> .opam/x/include/mirage-xen-posix
> 
> xen-ocaml contains only the OCaml runtime (patches and build system),
> installation into .opam/x/lib/mirage-xen-ocaml and
> .opam/x/include/mirage-xen-ocaml
> 
> bindings and xen subdirectories form the mirage-xen package -- this
> consists of various bindings and the OCaml OS module (in xen/).
> 
> 
> I inserted the missing opam files, and adjusted the pkg-config files.
> I also made the uninstall scripts remove the actual files they install.
> 
> https://github.com/mirage/mirage-platform/pull/125
> https://github.com/mirage/io-page/pull/21
> 
> I tested this on my cubieboard from a fresh opam switch (using OCaml
> 4.01 and opam 1.2.0), compiling mirage-skeleton/console and running it
> on Xen! travis is unhappy because it doesn't know about
> mirage-xen-ocaml / mirage-xen-posix (yet).
> 
> I believe those pre-OCaml libraries, their interdependencies and
> pkg-config magic needs to be documented somewhere (tell me where and
> I'll write it up)...
> 
> and yes, ThomasL, OCaml includes from the Unix are in use, rather than
> those from xen-ocaml...
> 
> 
> hannes
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
> 
> iQIcBAEBCQAGBQJVCGByAAoJELyJZYjffCju7LsP/2Xi+ULLZmTXWjD44f5Gjblx
> WRSbX4UNdj9yJZ5J0N8bCSYLZWgEQ2r0PJyNR+z7uldVABxSt7vSaokYRbJnkbZi
> Vjox4b/Phngioshi7zExLBNHBybLvFkMq29/wRhVGId1oBOORusiwG9Ze1nNMkHP
> e/ZOD3+vvt4X2O7vma0WLF8G2tkLc25yS7t09a2HKQYLl49r0C9viQ71f9rD8cFK
> lDC7zcdkyKM8bge+klzHuYSG/dJMtJKFHLdX/7yFYeyxBPpsvEJfky7FMzx/55CE
> CWl2wozBBapQ56pKqWwrn2/nLU6N4tum+LcuTbFfsXfaikCuol6qH5AuSx8CEfHh
> R6Ojasdb1HJFlUr3Jj1prtmTPWtqZ83A8qTtx0F3SPggx+6UmHseKj2b3QSPvrOW
> m/1Kf1eFk1lmZbO0pbS+dMa9tZzhM4NUZsoNwtSuXhZJ1gr2rO95bKT7bGZlLlYN
> tRv96r9JwU0HqyQRWBE07nv5L+tzvhEz7MoKnjubUnQULfleRd8UM3t+iqmBwIun
> O1dkVBWmz1f4fGTexG9iA3NuetyI2rolbMsQdNaKMMuvDzrL+zuaEFTdg2xIBf8e
> uG53ijjkVgp7/McoLMXBLibvNe1MMyLu8UGNdcYGRCiDwExn0gzMrmYWMEtAIDy1
> VzECeDHzI524GofFBlIc
> =qqyD
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 17 18:03:02 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 17 Mar 2015 18:03:02 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YXvpT-000366-HY; Tue, 17 Mar 2015 18:02:59 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YXvpR-00034L-Sx
	for mirageos-devel@lists.xenproject.org; Tue, 17 Mar 2015 18:02:58 +0000
Received: from [85.158.139.211] by server-10.bemta-5.messagelabs.com id
	05/BE-14739-15C68055; Tue, 17 Mar 2015 18:02:57 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-6.tower-206.messagelabs.com!1426615376!11346045!1
X-Originating-IP: [74.125.82.173]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 10501 invoked from network); 17 Mar 2015 18:02:56 -0000
Received: from mail-we0-f173.google.com (HELO mail-we0-f173.google.com)
	(74.125.82.173)
	by server-6.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	17 Mar 2015 18:02:56 -0000
Received: by webcq43 with SMTP id cq43so13855570web.2
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 17 Mar 2015 11:02:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=ge2BtlLbuq+U7ClXI7dL3MiLmFcy+O0Q0DtWxfuY7MY=;
	b=vjzgATOKolV+sr6twsFH7x7K1zGibnieNFRLBPqZjUdmWuX1fgy50OjAXa6woFU3ye
	qnHqYHOWMpGvT3TqVQMJiPSlJHW6rYJQke6iF/jr/L6wZkEC17amwwGv4Q3EqbVgs4qP
	AGzrOu6pfDNLKc3bnb3J2EFQL7Qv8w3r/DspBjUMFTc3YaYPDsNGYhW7ycnsqLY7ukNT
	yT4DBogPMEiYYh2NqS1XEwPnfV58A7pyMscAexl+tkoGzCf1KRPGlEHfLY2KMQgFihHt
	4DHRCMbGyk8DDMjwue6x147mPfCPEp4NXntFejC2BOh/pRaHj8HN1y3PqaabRjRJvYz/
	r/Fw==
X-Received: by 10.194.95.133 with SMTP id dk5mr43271733wjb.143.1426615376221; 
	Tue, 17 Mar 2015 11:02:56 -0700 (PDT)
Received: from ?IPv6:2001:630:212:248:8915:426e:e9a8:6969?
	([2001:630:212:248:8915:426e:e9a8:6969])
	by mx.google.com with ESMTPSA id b4sm3671715wic.2.2015.03.17.11.02.53
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 17 Mar 2015 11:02:54 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <55086072.8080008@mehnert.org>
Date: Tue, 17 Mar 2015 18:02:53 +0000
Message-Id: <B62AEE6B-0616-4FA2-895E-EE7606160157@gazagnaire.org>
References: <FA4CE73F-1C28-40ED-BC91-AA674465EFC7@gazagnaire.org>
	<C319A37B-985E-4DE1-BC24-CA2F900A49E4@gazagnaire.org>
	<21C47819-A643-4277-943C-AA388828294A@recoil.org>
	<55080BD4.2080407@mehnert.org> <55081737.9020603@mehnert.org>
	<CAG4opy_oyO-B5it1A4gzTpPBTXzc5yWqv=8EPMPME3J=BJKf_w@mail.gmail.com>
	<55086072.8080008@mehnert.org>
To: Hannes Mehnert <hannes@mehnert.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] [ANN] release of io-page.1.5.0,
	mirage-unix.2.2.3 and mirage-xen.2.2.3
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Thanks Hannes! I'll prepare a staged release for all these packages. I believe it will be much easier to extract other C stubs now this is done!

Thomas

> On 17 Mar 2015, at 17:12, Hannes Mehnert <hannes@mehnert.org> wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA384
> 
> Hey,
> 
> after further investigation and discussion with ThomasG I split
> mirage-xen into separate libraries:
> mirage-xen-posix: includes and minilibc
> mirage-xen-ocaml: OCaml runtime (depends on mirage-xen-posix)
> mirage-xen: bindings and OCaml OS library
> 
> Now, io-page depends on mirage-xen-ocaml, and mirage-xen depends on
> io-page.
> 
> I reorganised the directory structure of mirage-platform slightly:
> xen-posix contains - as before - the header files to pretend a posix
> system (required to compile the OCaml runtime), plus minilibc and
> float formating -- this is the home for mirage-xen-posix! installation
> goes into .opam/x/lib/mirage-xen-posix and
> .opam/x/include/mirage-xen-posix
> 
> xen-ocaml contains only the OCaml runtime (patches and build system),
> installation into .opam/x/lib/mirage-xen-ocaml and
> .opam/x/include/mirage-xen-ocaml
> 
> bindings and xen subdirectories form the mirage-xen package -- this
> consists of various bindings and the OCaml OS module (in xen/).
> 
> 
> I inserted the missing opam files, and adjusted the pkg-config files.
> I also made the uninstall scripts remove the actual files they install.
> 
> https://github.com/mirage/mirage-platform/pull/125
> https://github.com/mirage/io-page/pull/21
> 
> I tested this on my cubieboard from a fresh opam switch (using OCaml
> 4.01 and opam 1.2.0), compiling mirage-skeleton/console and running it
> on Xen! travis is unhappy because it doesn't know about
> mirage-xen-ocaml / mirage-xen-posix (yet).
> 
> I believe those pre-OCaml libraries, their interdependencies and
> pkg-config magic needs to be documented somewhere (tell me where and
> I'll write it up)...
> 
> and yes, ThomasL, OCaml includes from the Unix are in use, rather than
> those from xen-ocaml...
> 
> 
> hannes
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
> 
> iQIcBAEBCQAGBQJVCGByAAoJELyJZYjffCju7LsP/2Xi+ULLZmTXWjD44f5Gjblx
> WRSbX4UNdj9yJZ5J0N8bCSYLZWgEQ2r0PJyNR+z7uldVABxSt7vSaokYRbJnkbZi
> Vjox4b/Phngioshi7zExLBNHBybLvFkMq29/wRhVGId1oBOORusiwG9Ze1nNMkHP
> e/ZOD3+vvt4X2O7vma0WLF8G2tkLc25yS7t09a2HKQYLl49r0C9viQ71f9rD8cFK
> lDC7zcdkyKM8bge+klzHuYSG/dJMtJKFHLdX/7yFYeyxBPpsvEJfky7FMzx/55CE
> CWl2wozBBapQ56pKqWwrn2/nLU6N4tum+LcuTbFfsXfaikCuol6qH5AuSx8CEfHh
> R6Ojasdb1HJFlUr3Jj1prtmTPWtqZ83A8qTtx0F3SPggx+6UmHseKj2b3QSPvrOW
> m/1Kf1eFk1lmZbO0pbS+dMa9tZzhM4NUZsoNwtSuXhZJ1gr2rO95bKT7bGZlLlYN
> tRv96r9JwU0HqyQRWBE07nv5L+tzvhEz7MoKnjubUnQULfleRd8UM3t+iqmBwIun
> O1dkVBWmz1f4fGTexG9iA3NuetyI2rolbMsQdNaKMMuvDzrL+zuaEFTdg2xIBf8e
> uG53ijjkVgp7/McoLMXBLibvNe1MMyLu8UGNdcYGRCiDwExn0gzMrmYWMEtAIDy1
> VzECeDHzI524GofFBlIc
> =qqyD
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 18 13:49:48 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 18 Mar 2015 13:49:48 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYELs-00039f-Nl; Wed, 18 Mar 2015 13:49:40 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <ania.skorupa@yahoo.com>) id 1YYELr-00039a-Bp
	for mirageos-devel@lists.xenproject.org; Wed, 18 Mar 2015 13:49:39 +0000
Received: from [85.158.139.211] by server-17.bemta-5.messagelabs.com id
	68/D0-14924-27289055; Wed, 18 Mar 2015 13:49:38 +0000
X-Env-Sender: ania.skorupa@yahoo.com
X-Msg-Ref: server-15.tower-206.messagelabs.com!1426686576!8220830!1
X-Originating-IP: [98.138.120.215]
X-SpamReason: No, hits=1.2 required=7.0 tests=FORGED_YAHOO_RCVD,
	HTML_60_70,HTML_MESSAGE,RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 3401 invoked from network); 18 Mar 2015 13:49:37 -0000
Received: from nm42-vm9.bullet.mail.ne1.yahoo.com (HELO
	nm42-vm9.bullet.mail.ne1.yahoo.com) (98.138.120.215)
	by server-15.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	18 Mar 2015 13:49:37 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
	t=1426686575; bh=CqbCZ4kGXwFxeQRYl+KZN/8IAIFnDEW74rEt+NxEKcI=;
	h=Date:From:Reply-To:To:Subject:From:Subject;
	b=ORfzQp++BwKtlfbksoj4W/MVAlVU5m03Try4YqnnEo7n/jiPpqGTSVXyb2XyEYBJWKh5WUu+n9jfGmi+lHB7YH6JacVcPeSLAwSDUPRyDrlxpy0IkBxVJIysx2kc63aMIqcPEpuBGEgN6EqPIuFe7rEx4/DoHiVjjfyx368gzqAi/OV+wSYcazjGfN21wdZBuH3v3MwNwikllRlvLek4UDAHHR1kwqd/midOtA4Cu06HoHSjAgSWDWzlxTnevpDm80fbQCSQFNrjUsmL9GCBYMSQNKXYZjx4uiYG1hucM+gJ+6p1yCWmfVc6JLyjIpZradBTSO3A9htH/fo0Ko0DBA==
Received: from [127.0.0.1] by nm42.bullet.mail.ne1.yahoo.com with NNFMP;
	18 Mar 2015 13:49:35 -0000
Received: from [98.138.101.131] by nm42.bullet.mail.ne1.yahoo.com with NNFMP;
	18 Mar 2015 13:46:43 -0000
Received: from [98.139.170.179] by tm19.bullet.mail.ne1.yahoo.com with NNFMP;
	18 Mar 2015 13:46:43 -0000
Received: from [98.139.212.223] by tm22.bullet.mail.bf1.yahoo.com with NNFMP;
	18 Mar 2015 13:46:43 -0000
Received: from [127.0.0.1] by omp1032.mail.bf1.yahoo.com with NNFMP;
	18 Mar 2015 13:46:43 -0000
X-Yahoo-Newman-Property: ymail-4
X-Yahoo-Newman-Id: 262890.53257.bm@omp1032.mail.bf1.yahoo.com
X-YMail-OSG: IAFPdFAVM1nZHbaSmlPWojSHXMNu89sYwMBXQVVoQuJvs6__49r_OmvsxOqJiC7
	tf1XJxxgaACk68DjL21IyqaosI7HsAtZ71eg6vr4VLm_w2rtxBHtw40BL2yKvKZWS0ojghHPXSs8
	zKObO458G8fcBkwZVkDhCQdZ9Tx9r7QTKZdmtyCwC06aGtKI8mtxn_YNps.CeRIuHxq.bu.cj0Bm
	ewIKh4RotKrn1u1xjiQWFIOghx3rSaYi7iRRw0QpJ84VH3f3ahSJK7wCd9e60_4ZZpeEjP5vDPCM
	4Sjer7MnDNCFafQiYQtSktPXqC8DTndxcky0AWf47F3E5_ur03bBPihJSOL5yCf0YXMLeZFBopDr
	9QdqsjWQP3Q7r7aol9jFs1ysag2ZWVyk.vNLUE9BN_UUODWYYLFE3QRBro0HrRnitrO11Dhs_io4
	aD3v1nys5jnYaJflANwUhnmri9sySDeM0b6SLjt0gdpjTCkWRKDzELoIsVyc6VlLwfabGq73kU6F
	.f4S9uNxHDKo9TaRNeAOjD1zwEyBC0oa2VY6VdtNuRYQkZT72lf3xLSF3b_dISNGR__zjldvlb1E
	g2hiAM4MsrOszk9mLvnMXzQWdTxY-
Received: by 76.13.27.34; Wed, 18 Mar 2015 13:46:42 +0000 
Date: Wed, 18 Mar 2015 13:46:42 +0000 (UTC)
From: Ania Skorupa <ania.skorupa@yahoo.com>
To: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Message-ID: <2126732317.647616.1426686402465.JavaMail.yahoo@mail.yahoo.com>
MIME-Version: 1.0
Content-Length: 2630
Subject: [MirageOS-devel] problem installing mirage-net-xen (1.4.1)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Ania Skorupa <ania.skorupa@yahoo.com>
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============6775691124913952105=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============6775691124913952105==
Content-Type: multipart/alternative; 
	boundary="----=_Part_647615_1564569929.1426686402462"
Content-Length: 2088

------=_Part_647615_1564569929.1426686402462
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Hi,
I have a clean installation of opam on my machine. When installing mirage-net-xen, I receive the error:
[ERROR] curl: code 404 while downloading https://opam.ocaml.org/archives/io-page.1.2.0+opam.tar.gz
[ERROR] Could not download archives of io-page.1.2.0

if I first install io-page, it installs version 1.5.0. Then installing mirage-net-xen requires downgrading io-page from 1.5.0 to 1.2.0, which raises the same error. Is there any dependency problem?



------=_Part_647615_1564569929.1426686402462
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html><body><div style=3D"color:#000; background-color:#fff; font-family:He=
lveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;fo=
nt-size:16px"><div id=3D"yui_3_16_0_1_1426685874697_2833" dir=3D"ltr">Hi,</=
div><div id=3D"yui_3_16_0_1_1426685874697_2832" dir=3D"ltr"><br></div><div =
id=3D"yui_3_16_0_1_1426685874697_2786" dir=3D"ltr">I have a clean installat=
ion of opam on my machine. When installing mirage-net-xen, I receive the er=
ror:</div><div id=3D"yui_3_16_0_1_1426685874697_2804" dir=3D"ltr"><br></div=
><div id=3D"yui_3_16_0_1_1426685874697_2810" dir=3D"ltr">[ERROR] curl: code=
 404 while downloading https://opam.ocaml.org/archives/io-page.1.2.0+opam.t=
ar.gz<br style=3D"" class=3D"">[ERROR] Could not download archives of io-pa=
ge.1.2.0<br style=3D"" class=3D""><br></div><div id=3D"yui_3_16_0_1_1426685=
874697_2907" style=3D"" class=3D"" dir=3D"ltr">if I first install io-page, =
it installs version 1.5.0. Then installing mirage-net-xen requires downgrad=
ing io-page from 1.5.0 to 1.2.0, which raises the same error. Is there any =
dependency problem?<br></div><div id=3D"yui_3_16_0_1_1426685874697_2908" st=
yle=3D"" class=3D"" dir=3D"ltr"><br></div><div id=3D"yui_3_16_0_1_142668587=
4697_2940" style=3D"" class=3D"" dir=3D"ltr"><br style=3D"" class=3D""></di=
v></div></body></html>
------=_Part_647615_1564569929.1426686402462--


--===============6775691124913952105==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============6775691124913952105==--


From mirageos-devel-bounces@lists.xenproject.org Wed Mar 18 13:49:48 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 18 Mar 2015 13:49:48 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYELs-00039f-Nl; Wed, 18 Mar 2015 13:49:40 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <ania.skorupa@yahoo.com>) id 1YYELr-00039a-Bp
	for mirageos-devel@lists.xenproject.org; Wed, 18 Mar 2015 13:49:39 +0000
Received: from [85.158.139.211] by server-17.bemta-5.messagelabs.com id
	68/D0-14924-27289055; Wed, 18 Mar 2015 13:49:38 +0000
X-Env-Sender: ania.skorupa@yahoo.com
X-Msg-Ref: server-15.tower-206.messagelabs.com!1426686576!8220830!1
X-Originating-IP: [98.138.120.215]
X-SpamReason: No, hits=1.2 required=7.0 tests=FORGED_YAHOO_RCVD,
	HTML_60_70,HTML_MESSAGE,RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 3401 invoked from network); 18 Mar 2015 13:49:37 -0000
Received: from nm42-vm9.bullet.mail.ne1.yahoo.com (HELO
	nm42-vm9.bullet.mail.ne1.yahoo.com) (98.138.120.215)
	by server-15.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	18 Mar 2015 13:49:37 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
	t=1426686575; bh=CqbCZ4kGXwFxeQRYl+KZN/8IAIFnDEW74rEt+NxEKcI=;
	h=Date:From:Reply-To:To:Subject:From:Subject;
	b=ORfzQp++BwKtlfbksoj4W/MVAlVU5m03Try4YqnnEo7n/jiPpqGTSVXyb2XyEYBJWKh5WUu+n9jfGmi+lHB7YH6JacVcPeSLAwSDUPRyDrlxpy0IkBxVJIysx2kc63aMIqcPEpuBGEgN6EqPIuFe7rEx4/DoHiVjjfyx368gzqAi/OV+wSYcazjGfN21wdZBuH3v3MwNwikllRlvLek4UDAHHR1kwqd/midOtA4Cu06HoHSjAgSWDWzlxTnevpDm80fbQCSQFNrjUsmL9GCBYMSQNKXYZjx4uiYG1hucM+gJ+6p1yCWmfVc6JLyjIpZradBTSO3A9htH/fo0Ko0DBA==
Received: from [127.0.0.1] by nm42.bullet.mail.ne1.yahoo.com with NNFMP;
	18 Mar 2015 13:49:35 -0000
Received: from [98.138.101.131] by nm42.bullet.mail.ne1.yahoo.com with NNFMP;
	18 Mar 2015 13:46:43 -0000
Received: from [98.139.170.179] by tm19.bullet.mail.ne1.yahoo.com with NNFMP;
	18 Mar 2015 13:46:43 -0000
Received: from [98.139.212.223] by tm22.bullet.mail.bf1.yahoo.com with NNFMP;
	18 Mar 2015 13:46:43 -0000
Received: from [127.0.0.1] by omp1032.mail.bf1.yahoo.com with NNFMP;
	18 Mar 2015 13:46:43 -0000
X-Yahoo-Newman-Property: ymail-4
X-Yahoo-Newman-Id: 262890.53257.bm@omp1032.mail.bf1.yahoo.com
X-YMail-OSG: IAFPdFAVM1nZHbaSmlPWojSHXMNu89sYwMBXQVVoQuJvs6__49r_OmvsxOqJiC7
	tf1XJxxgaACk68DjL21IyqaosI7HsAtZ71eg6vr4VLm_w2rtxBHtw40BL2yKvKZWS0ojghHPXSs8
	zKObO458G8fcBkwZVkDhCQdZ9Tx9r7QTKZdmtyCwC06aGtKI8mtxn_YNps.CeRIuHxq.bu.cj0Bm
	ewIKh4RotKrn1u1xjiQWFIOghx3rSaYi7iRRw0QpJ84VH3f3ahSJK7wCd9e60_4ZZpeEjP5vDPCM
	4Sjer7MnDNCFafQiYQtSktPXqC8DTndxcky0AWf47F3E5_ur03bBPihJSOL5yCf0YXMLeZFBopDr
	9QdqsjWQP3Q7r7aol9jFs1ysag2ZWVyk.vNLUE9BN_UUODWYYLFE3QRBro0HrRnitrO11Dhs_io4
	aD3v1nys5jnYaJflANwUhnmri9sySDeM0b6SLjt0gdpjTCkWRKDzELoIsVyc6VlLwfabGq73kU6F
	.f4S9uNxHDKo9TaRNeAOjD1zwEyBC0oa2VY6VdtNuRYQkZT72lf3xLSF3b_dISNGR__zjldvlb1E
	g2hiAM4MsrOszk9mLvnMXzQWdTxY-
Received: by 76.13.27.34; Wed, 18 Mar 2015 13:46:42 +0000 
Date: Wed, 18 Mar 2015 13:46:42 +0000 (UTC)
From: Ania Skorupa <ania.skorupa@yahoo.com>
To: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Message-ID: <2126732317.647616.1426686402465.JavaMail.yahoo@mail.yahoo.com>
MIME-Version: 1.0
Content-Length: 2630
Subject: [MirageOS-devel] problem installing mirage-net-xen (1.4.1)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Ania Skorupa <ania.skorupa@yahoo.com>
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============6775691124913952105=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============6775691124913952105==
Content-Type: multipart/alternative; 
	boundary="----=_Part_647615_1564569929.1426686402462"
Content-Length: 2088

------=_Part_647615_1564569929.1426686402462
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Hi,
I have a clean installation of opam on my machine. When installing mirage-net-xen, I receive the error:
[ERROR] curl: code 404 while downloading https://opam.ocaml.org/archives/io-page.1.2.0+opam.tar.gz
[ERROR] Could not download archives of io-page.1.2.0

if I first install io-page, it installs version 1.5.0. Then installing mirage-net-xen requires downgrading io-page from 1.5.0 to 1.2.0, which raises the same error. Is there any dependency problem?



------=_Part_647615_1564569929.1426686402462
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html><body><div style=3D"color:#000; background-color:#fff; font-family:He=
lveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;fo=
nt-size:16px"><div id=3D"yui_3_16_0_1_1426685874697_2833" dir=3D"ltr">Hi,</=
div><div id=3D"yui_3_16_0_1_1426685874697_2832" dir=3D"ltr"><br></div><div =
id=3D"yui_3_16_0_1_1426685874697_2786" dir=3D"ltr">I have a clean installat=
ion of opam on my machine. When installing mirage-net-xen, I receive the er=
ror:</div><div id=3D"yui_3_16_0_1_1426685874697_2804" dir=3D"ltr"><br></div=
><div id=3D"yui_3_16_0_1_1426685874697_2810" dir=3D"ltr">[ERROR] curl: code=
 404 while downloading https://opam.ocaml.org/archives/io-page.1.2.0+opam.t=
ar.gz<br style=3D"" class=3D"">[ERROR] Could not download archives of io-pa=
ge.1.2.0<br style=3D"" class=3D""><br></div><div id=3D"yui_3_16_0_1_1426685=
874697_2907" style=3D"" class=3D"" dir=3D"ltr">if I first install io-page, =
it installs version 1.5.0. Then installing mirage-net-xen requires downgrad=
ing io-page from 1.5.0 to 1.2.0, which raises the same error. Is there any =
dependency problem?<br></div><div id=3D"yui_3_16_0_1_1426685874697_2908" st=
yle=3D"" class=3D"" dir=3D"ltr"><br></div><div id=3D"yui_3_16_0_1_142668587=
4697_2940" style=3D"" class=3D"" dir=3D"ltr"><br style=3D"" class=3D""></di=
v></div></body></html>
------=_Part_647615_1564569929.1426686402462--


--===============6775691124913952105==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============6775691124913952105==--


From mirageos-devel-bounces@lists.xenproject.org Wed Mar 18 13:51:48 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 18 Mar 2015 13:51:48 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYENv-0003NP-Va; Wed, 18 Mar 2015 13:51:47 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YYENv-0003NK-HJ
	for mirageos-devel@lists.xenproject.org; Wed, 18 Mar 2015 13:51:47 +0000
Received: from [85.158.139.211] by server-5.bemta-5.messagelabs.com id
	D4/CB-16213-2F289055; Wed, 18 Mar 2015 13:51:46 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-9.tower-206.messagelabs.com!1426686704!11565057!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.5 required=7.0 tests=HTML_60_70,HTML_MESSAGE,
	RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 27563 invoked from network); 18 Mar 2015 13:51:44 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-9.tower-206.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 18 Mar 2015 13:51:44 -0000
Received: from dhcp-172-17-28-96.wrd.wireless.private.cam.ac.uk
	(global-1-18.nat.csx.cam.ac.uk [131.111.184.18]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 01207163;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Wed, 18 Mar 2015 13:51:43 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <2126732317.647616.1426686402465.JavaMail.yahoo@mail.yahoo.com>
Date: Wed, 18 Mar 2015 13:51:51 +0000
Message-Id: <C3CECB98-9A9E-497F-B94D-6D62D773BCF3@recoil.org>
References: <2126732317.647616.1426686402465.JavaMail.yahoo@mail.yahoo.com>
To: Ania Skorupa <ania.skorupa@yahoo.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] problem installing mirage-net-xen (1.4.1)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1353429942091163647=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============1353429942091163647==
Content-Type: multipart/alternative; boundary="Apple-Mail=_51853B21-ADB9-42C0-B083-8542313FDC84"


--Apple-Mail=_51853B21-ADB9-42C0-B083-8542313FDC84
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

io-page.1.5.0 was reverted from the repository due to a cyclic =
dependency issue (which is now being fixed).  If you do `opam update`, =
it should delete the io-page.1.5.0 package and only attempt to install =
the older versions.

-anil

> On 18 Mar 2015, at 13:46, Ania Skorupa <ania.skorupa@yahoo.com> wrote:
>=20
> Hi,
>=20
> I have a clean installation of opam on my machine. When installing =
mirage-net-xen, I receive the error:
>=20
> [ERROR] curl: code 404 while downloading =
https://opam.ocaml.org/archives/io-page.1.2.0+opam.tar.gz
> [ERROR] Could not download archives of io-page.1.2.0
>=20
> if I first install io-page, it installs version 1.5.0. Then installing =
mirage-net-xen requires downgrading io-page from 1.5.0 to 1.2.0, which =
raises the same error. Is there any dependency problem?
>=20
>=20
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


--Apple-Mail=_51853B21-ADB9-42C0-B083-8542313FDC84
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">io-page.1.5.0 was reverted from the repository due to a =
cyclic dependency issue (which is now being fixed). &nbsp;If you do =
`opam update`, it should delete the io-page.1.5.0 package and only =
attempt to install the older versions.<div class=3D""><br =
class=3D""></div><div class=3D"">-anil</div><div class=3D""><br =
class=3D""><div><blockquote type=3D"cite" class=3D""><div class=3D"">On =
18 Mar 2015, at 13:46, Ania Skorupa &lt;<a =
href=3D"mailto:ania.skorupa@yahoo.com" =
class=3D"">ania.skorupa@yahoo.com</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div class=3D""><div =
style=3D"background-color: rgb(255, 255, 255); font-family: =
HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', =
sans-serif; font-size: 16px;" class=3D""><div =
id=3D"yui_3_16_0_1_1426685874697_2833" dir=3D"ltr" =
class=3D"">Hi,</div><div id=3D"yui_3_16_0_1_1426685874697_2832" =
dir=3D"ltr" class=3D""><br class=3D""></div><div =
id=3D"yui_3_16_0_1_1426685874697_2786" dir=3D"ltr" class=3D"">I have a =
clean installation of opam on my machine. When installing =
mirage-net-xen, I receive the error:</div><div =
id=3D"yui_3_16_0_1_1426685874697_2804" dir=3D"ltr" class=3D""><br =
class=3D""></div><div id=3D"yui_3_16_0_1_1426685874697_2810" dir=3D"ltr" =
class=3D"">[ERROR] curl: code 404 while downloading <a =
href=3D"https://opam.ocaml.org/archives/io-page.1.2.0+opam.tar.gz" =
class=3D"">https://opam.ocaml.org/archives/io-page.1.2.0+opam.tar.gz</a><b=
r style=3D"" class=3D"">[ERROR] Could not download archives of =
io-page.1.2.0<br style=3D"" class=3D""><br class=3D""></div><div =
id=3D"yui_3_16_0_1_1426685874697_2907" style=3D"" class=3D"" =
dir=3D"ltr">if I first install io-page, it installs version 1.5.0. Then =
installing mirage-net-xen requires downgrading io-page from 1.5.0 to =
1.2.0, which raises the same error. Is there any dependency problem?<br =
class=3D""></div><div id=3D"yui_3_16_0_1_1426685874697_2908" style=3D"" =
class=3D"" dir=3D"ltr"><br class=3D""></div><div =
id=3D"yui_3_16_0_1_1426685874697_2940" style=3D"" class=3D"" =
dir=3D"ltr"><br style=3D"" =
class=3D""></div></div></div>_____________________________________________=
__<br class=3D"">MirageOS-devel mailing list<br class=3D""><a =
href=3D"mailto:MirageOS-devel@lists.xenproject.org" =
class=3D"">MirageOS-devel@lists.xenproject.org</a><br =
class=3D"">http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-d=
evel<br class=3D""></div></blockquote></div><br =
class=3D""></div></body></html>=

--Apple-Mail=_51853B21-ADB9-42C0-B083-8542313FDC84--


--===============1353429942091163647==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============1353429942091163647==--


From mirageos-devel-bounces@lists.xenproject.org Wed Mar 18 13:51:48 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 18 Mar 2015 13:51:48 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYENv-0003NP-Va; Wed, 18 Mar 2015 13:51:47 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YYENv-0003NK-HJ
	for mirageos-devel@lists.xenproject.org; Wed, 18 Mar 2015 13:51:47 +0000
Received: from [85.158.139.211] by server-5.bemta-5.messagelabs.com id
	D4/CB-16213-2F289055; Wed, 18 Mar 2015 13:51:46 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-9.tower-206.messagelabs.com!1426686704!11565057!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.5 required=7.0 tests=HTML_60_70,HTML_MESSAGE,
	RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 27563 invoked from network); 18 Mar 2015 13:51:44 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-9.tower-206.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 18 Mar 2015 13:51:44 -0000
Received: from dhcp-172-17-28-96.wrd.wireless.private.cam.ac.uk
	(global-1-18.nat.csx.cam.ac.uk [131.111.184.18]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 01207163;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Wed, 18 Mar 2015 13:51:43 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <2126732317.647616.1426686402465.JavaMail.yahoo@mail.yahoo.com>
Date: Wed, 18 Mar 2015 13:51:51 +0000
Message-Id: <C3CECB98-9A9E-497F-B94D-6D62D773BCF3@recoil.org>
References: <2126732317.647616.1426686402465.JavaMail.yahoo@mail.yahoo.com>
To: Ania Skorupa <ania.skorupa@yahoo.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] problem installing mirage-net-xen (1.4.1)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1353429942091163647=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============1353429942091163647==
Content-Type: multipart/alternative; boundary="Apple-Mail=_51853B21-ADB9-42C0-B083-8542313FDC84"


--Apple-Mail=_51853B21-ADB9-42C0-B083-8542313FDC84
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

io-page.1.5.0 was reverted from the repository due to a cyclic =
dependency issue (which is now being fixed).  If you do `opam update`, =
it should delete the io-page.1.5.0 package and only attempt to install =
the older versions.

-anil

> On 18 Mar 2015, at 13:46, Ania Skorupa <ania.skorupa@yahoo.com> wrote:
>=20
> Hi,
>=20
> I have a clean installation of opam on my machine. When installing =
mirage-net-xen, I receive the error:
>=20
> [ERROR] curl: code 404 while downloading =
https://opam.ocaml.org/archives/io-page.1.2.0+opam.tar.gz
> [ERROR] Could not download archives of io-page.1.2.0
>=20
> if I first install io-page, it installs version 1.5.0. Then installing =
mirage-net-xen requires downgrading io-page from 1.5.0 to 1.2.0, which =
raises the same error. Is there any dependency problem?
>=20
>=20
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


--Apple-Mail=_51853B21-ADB9-42C0-B083-8542313FDC84
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">io-page.1.5.0 was reverted from the repository due to a =
cyclic dependency issue (which is now being fixed). &nbsp;If you do =
`opam update`, it should delete the io-page.1.5.0 package and only =
attempt to install the older versions.<div class=3D""><br =
class=3D""></div><div class=3D"">-anil</div><div class=3D""><br =
class=3D""><div><blockquote type=3D"cite" class=3D""><div class=3D"">On =
18 Mar 2015, at 13:46, Ania Skorupa &lt;<a =
href=3D"mailto:ania.skorupa@yahoo.com" =
class=3D"">ania.skorupa@yahoo.com</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div class=3D""><div =
style=3D"background-color: rgb(255, 255, 255); font-family: =
HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', =
sans-serif; font-size: 16px;" class=3D""><div =
id=3D"yui_3_16_0_1_1426685874697_2833" dir=3D"ltr" =
class=3D"">Hi,</div><div id=3D"yui_3_16_0_1_1426685874697_2832" =
dir=3D"ltr" class=3D""><br class=3D""></div><div =
id=3D"yui_3_16_0_1_1426685874697_2786" dir=3D"ltr" class=3D"">I have a =
clean installation of opam on my machine. When installing =
mirage-net-xen, I receive the error:</div><div =
id=3D"yui_3_16_0_1_1426685874697_2804" dir=3D"ltr" class=3D""><br =
class=3D""></div><div id=3D"yui_3_16_0_1_1426685874697_2810" dir=3D"ltr" =
class=3D"">[ERROR] curl: code 404 while downloading <a =
href=3D"https://opam.ocaml.org/archives/io-page.1.2.0+opam.tar.gz" =
class=3D"">https://opam.ocaml.org/archives/io-page.1.2.0+opam.tar.gz</a><b=
r style=3D"" class=3D"">[ERROR] Could not download archives of =
io-page.1.2.0<br style=3D"" class=3D""><br class=3D""></div><div =
id=3D"yui_3_16_0_1_1426685874697_2907" style=3D"" class=3D"" =
dir=3D"ltr">if I first install io-page, it installs version 1.5.0. Then =
installing mirage-net-xen requires downgrading io-page from 1.5.0 to =
1.2.0, which raises the same error. Is there any dependency problem?<br =
class=3D""></div><div id=3D"yui_3_16_0_1_1426685874697_2908" style=3D"" =
class=3D"" dir=3D"ltr"><br class=3D""></div><div =
id=3D"yui_3_16_0_1_1426685874697_2940" style=3D"" class=3D"" =
dir=3D"ltr"><br style=3D"" =
class=3D""></div></div></div>_____________________________________________=
__<br class=3D"">MirageOS-devel mailing list<br class=3D""><a =
href=3D"mailto:MirageOS-devel@lists.xenproject.org" =
class=3D"">MirageOS-devel@lists.xenproject.org</a><br =
class=3D"">http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-d=
evel<br class=3D""></div></blockquote></div><br =
class=3D""></div></body></html>=

--Apple-Mail=_51853B21-ADB9-42C0-B083-8542313FDC84--


--===============1353429942091163647==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============1353429942091163647==--


From mirageos-devel-bounces@lists.xenproject.org Wed Mar 18 18:18:03 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 18 Mar 2015 18:18:03 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYIXW-000880-LA; Wed, 18 Mar 2015 18:17:58 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YYIXV-00087v-02
	for mirageos-devel@lists.xenproject.org; Wed, 18 Mar 2015 18:17:57 +0000
Received: from [85.158.137.68] by server-4.bemta-3.messagelabs.com id
	3C/7F-10357-451C9055; Wed, 18 Mar 2015 18:17:56 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-7.tower-31.messagelabs.com!1426702675!13405119!1
X-Originating-IP: [74.125.82.175]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 4276 invoked from network); 18 Mar 2015 18:17:55 -0000
Received: from mail-we0-f175.google.com (HELO mail-we0-f175.google.com)
	(74.125.82.175)
	by server-7.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	18 Mar 2015 18:17:55 -0000
Received: by wegp1 with SMTP id p1so38973854weg.1
	for <mirageos-devel@lists.xenproject.org>;
	Wed, 18 Mar 2015 11:17:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=n5FGPRBDoCR3zN4wAeDHAWifqonhFY87hcqmNqSg2Hw=;
	b=w+gf9wSY+hT2A/VjPXChkxQBpC4eRiLEJvgj/X4A/7lyU/Opx6v6q/8rKpQAYNDGX7
	Ir7MaJ3zrmcJV7F/FiEFZYG9cB1U3P+HdXSBafcFrN2w2fThzJ2ElWaog7LP2LYDfS5/
	hEB5xCE2DT4FEk25zlGIzFKxWVIabX4njgHU7SS3FT8CJSoLPGangzNYvdS4HNVCgZ4r
	ee5sRe3AiXXgehjdWONxje+BKL/DJ3uSPpWq30P0PHSusSPzD+YKMCvl2nSPdE0sDOvl
	9sJzQXt7Zfxj0Ns3vDMHIIFoqpOAKS9lvX7WAv2YyFWqlhYLR7U98NcbGfGXna8W+V7M
	sKRw==
X-Received: by 10.180.93.5 with SMTP id cq5mr9252155wib.18.1426702675025;
	Wed, 18 Mar 2015 11:17:55 -0700 (PDT)
Received: from piana.mac.cl.cam.ac.uk (piana.mac.cl.cam.ac.uk. [128.232.56.38])
	by mx.google.com with ESMTPSA id hn8sm4209417wib.18.2015.03.18.11.17.53
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Wed, 18 Mar 2015 11:17:54 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <B62AEE6B-0616-4FA2-895E-EE7606160157@gazagnaire.org>
Date: Wed, 18 Mar 2015 18:17:53 +0000
Message-Id: <B04DBFB4-C56C-4BB5-A3A8-0CEA087A202E@gazagnaire.org>
References: <FA4CE73F-1C28-40ED-BC91-AA674465EFC7@gazagnaire.org>
	<C319A37B-985E-4DE1-BC24-CA2F900A49E4@gazagnaire.org>
	<21C47819-A643-4277-943C-AA388828294A@recoil.org>
	<55080BD4.2080407@mehnert.org> <55081737.9020603@mehnert.org>
	<CAG4opy_oyO-B5it1A4gzTpPBTXzc5yWqv=8EPMPME3J=BJKf_w@mail.gmail.com>
	<55086072.8080008@mehnert.org>
	<B62AEE6B-0616-4FA2-895E-EE7606160157@gazagnaire.org>
To: Hannes Mehnert <hannes@mehnert.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] [ANN] release of io-page.1.5.0,
	mirage-unix.2.2.3 and mirage-xen.2.2.3
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi,

>> after further investigation and discussion with ThomasG I split
>> mirage-xen into separate libraries:
>> mirage-xen-posix: includes and minilibc
>> mirage-xen-ocaml: OCaml runtime (depends on mirage-xen-posix)
>> mirage-xen: bindings and OCaml OS library
>> 
>> Now, io-page depends on mirage-xen-ocaml, and mirage-xen depends on
>> io-page.

The cyclic dependency is now solved: mirage-xen-posix.2.3.0, mirage-xen-ocaml.2.3.0, io-page.1.5.1 and mirage-xen.2.3.0 are now released.

>> I believe those pre-OCaml libraries, their interdependencies and
>> pkg-config magic needs to be documented somewhere (tell me where and
>> I'll write it up)...

I've already started updated the README.md in mirage-platform with your explanations, but please feel free to add more contents there.

>> and yes, ThomasL, OCaml includes from the Unix are in use, rather than
>> those from xen-ocaml...

I guess this should be fixed...

Best,
Thomas

>> 
>> 
>> hannes
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v2
>> 
>> iQIcBAEBCQAGBQJVCGByAAoJELyJZYjffCju7LsP/2Xi+ULLZmTXWjD44f5Gjblx
>> WRSbX4UNdj9yJZ5J0N8bCSYLZWgEQ2r0PJyNR+z7uldVABxSt7vSaokYRbJnkbZi
>> Vjox4b/Phngioshi7zExLBNHBybLvFkMq29/wRhVGId1oBOORusiwG9Ze1nNMkHP
>> e/ZOD3+vvt4X2O7vma0WLF8G2tkLc25yS7t09a2HKQYLl49r0C9viQ71f9rD8cFK
>> lDC7zcdkyKM8bge+klzHuYSG/dJMtJKFHLdX/7yFYeyxBPpsvEJfky7FMzx/55CE
>> CWl2wozBBapQ56pKqWwrn2/nLU6N4tum+LcuTbFfsXfaikCuol6qH5AuSx8CEfHh
>> R6Ojasdb1HJFlUr3Jj1prtmTPWtqZ83A8qTtx0F3SPggx+6UmHseKj2b3QSPvrOW
>> m/1Kf1eFk1lmZbO0pbS+dMa9tZzhM4NUZsoNwtSuXhZJ1gr2rO95bKT7bGZlLlYN
>> tRv96r9JwU0HqyQRWBE07nv5L+tzvhEz7MoKnjubUnQULfleRd8UM3t+iqmBwIun
>> O1dkVBWmz1f4fGTexG9iA3NuetyI2rolbMsQdNaKMMuvDzrL+zuaEFTdg2xIBf8e
>> uG53ijjkVgp7/McoLMXBLibvNe1MMyLu8UGNdcYGRCiDwExn0gzMrmYWMEtAIDy1
>> VzECeDHzI524GofFBlIc
>> =qqyD
>> -----END PGP SIGNATURE-----
>> 
>> _______________________________________________
>> MirageOS-devel mailing list
>> MirageOS-devel@lists.xenproject.org
>> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
> 


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 18 18:18:03 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 18 Mar 2015 18:18:03 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYIXW-000880-LA; Wed, 18 Mar 2015 18:17:58 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YYIXV-00087v-02
	for mirageos-devel@lists.xenproject.org; Wed, 18 Mar 2015 18:17:57 +0000
Received: from [85.158.137.68] by server-4.bemta-3.messagelabs.com id
	3C/7F-10357-451C9055; Wed, 18 Mar 2015 18:17:56 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-7.tower-31.messagelabs.com!1426702675!13405119!1
X-Originating-IP: [74.125.82.175]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 4276 invoked from network); 18 Mar 2015 18:17:55 -0000
Received: from mail-we0-f175.google.com (HELO mail-we0-f175.google.com)
	(74.125.82.175)
	by server-7.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	18 Mar 2015 18:17:55 -0000
Received: by wegp1 with SMTP id p1so38973854weg.1
	for <mirageos-devel@lists.xenproject.org>;
	Wed, 18 Mar 2015 11:17:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=n5FGPRBDoCR3zN4wAeDHAWifqonhFY87hcqmNqSg2Hw=;
	b=w+gf9wSY+hT2A/VjPXChkxQBpC4eRiLEJvgj/X4A/7lyU/Opx6v6q/8rKpQAYNDGX7
	Ir7MaJ3zrmcJV7F/FiEFZYG9cB1U3P+HdXSBafcFrN2w2fThzJ2ElWaog7LP2LYDfS5/
	hEB5xCE2DT4FEk25zlGIzFKxWVIabX4njgHU7SS3FT8CJSoLPGangzNYvdS4HNVCgZ4r
	ee5sRe3AiXXgehjdWONxje+BKL/DJ3uSPpWq30P0PHSusSPzD+YKMCvl2nSPdE0sDOvl
	9sJzQXt7Zfxj0Ns3vDMHIIFoqpOAKS9lvX7WAv2YyFWqlhYLR7U98NcbGfGXna8W+V7M
	sKRw==
X-Received: by 10.180.93.5 with SMTP id cq5mr9252155wib.18.1426702675025;
	Wed, 18 Mar 2015 11:17:55 -0700 (PDT)
Received: from piana.mac.cl.cam.ac.uk (piana.mac.cl.cam.ac.uk. [128.232.56.38])
	by mx.google.com with ESMTPSA id hn8sm4209417wib.18.2015.03.18.11.17.53
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Wed, 18 Mar 2015 11:17:54 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <B62AEE6B-0616-4FA2-895E-EE7606160157@gazagnaire.org>
Date: Wed, 18 Mar 2015 18:17:53 +0000
Message-Id: <B04DBFB4-C56C-4BB5-A3A8-0CEA087A202E@gazagnaire.org>
References: <FA4CE73F-1C28-40ED-BC91-AA674465EFC7@gazagnaire.org>
	<C319A37B-985E-4DE1-BC24-CA2F900A49E4@gazagnaire.org>
	<21C47819-A643-4277-943C-AA388828294A@recoil.org>
	<55080BD4.2080407@mehnert.org> <55081737.9020603@mehnert.org>
	<CAG4opy_oyO-B5it1A4gzTpPBTXzc5yWqv=8EPMPME3J=BJKf_w@mail.gmail.com>
	<55086072.8080008@mehnert.org>
	<B62AEE6B-0616-4FA2-895E-EE7606160157@gazagnaire.org>
To: Hannes Mehnert <hannes@mehnert.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] [ANN] release of io-page.1.5.0,
	mirage-unix.2.2.3 and mirage-xen.2.2.3
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi,

>> after further investigation and discussion with ThomasG I split
>> mirage-xen into separate libraries:
>> mirage-xen-posix: includes and minilibc
>> mirage-xen-ocaml: OCaml runtime (depends on mirage-xen-posix)
>> mirage-xen: bindings and OCaml OS library
>> 
>> Now, io-page depends on mirage-xen-ocaml, and mirage-xen depends on
>> io-page.

The cyclic dependency is now solved: mirage-xen-posix.2.3.0, mirage-xen-ocaml.2.3.0, io-page.1.5.1 and mirage-xen.2.3.0 are now released.

>> I believe those pre-OCaml libraries, their interdependencies and
>> pkg-config magic needs to be documented somewhere (tell me where and
>> I'll write it up)...

I've already started updated the README.md in mirage-platform with your explanations, but please feel free to add more contents there.

>> and yes, ThomasL, OCaml includes from the Unix are in use, rather than
>> those from xen-ocaml...

I guess this should be fixed...

Best,
Thomas

>> 
>> 
>> hannes
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v2
>> 
>> iQIcBAEBCQAGBQJVCGByAAoJELyJZYjffCju7LsP/2Xi+ULLZmTXWjD44f5Gjblx
>> WRSbX4UNdj9yJZ5J0N8bCSYLZWgEQ2r0PJyNR+z7uldVABxSt7vSaokYRbJnkbZi
>> Vjox4b/Phngioshi7zExLBNHBybLvFkMq29/wRhVGId1oBOORusiwG9Ze1nNMkHP
>> e/ZOD3+vvt4X2O7vma0WLF8G2tkLc25yS7t09a2HKQYLl49r0C9viQ71f9rD8cFK
>> lDC7zcdkyKM8bge+klzHuYSG/dJMtJKFHLdX/7yFYeyxBPpsvEJfky7FMzx/55CE
>> CWl2wozBBapQ56pKqWwrn2/nLU6N4tum+LcuTbFfsXfaikCuol6qH5AuSx8CEfHh
>> R6Ojasdb1HJFlUr3Jj1prtmTPWtqZ83A8qTtx0F3SPggx+6UmHseKj2b3QSPvrOW
>> m/1Kf1eFk1lmZbO0pbS+dMa9tZzhM4NUZsoNwtSuXhZJ1gr2rO95bKT7bGZlLlYN
>> tRv96r9JwU0HqyQRWBE07nv5L+tzvhEz7MoKnjubUnQULfleRd8UM3t+iqmBwIun
>> O1dkVBWmz1f4fGTexG9iA3NuetyI2rolbMsQdNaKMMuvDzrL+zuaEFTdg2xIBf8e
>> uG53ijjkVgp7/McoLMXBLibvNe1MMyLu8UGNdcYGRCiDwExn0gzMrmYWMEtAIDy1
>> VzECeDHzI524GofFBlIc
>> =qqyD
>> -----END PGP SIGNATURE-----
>> 
>> _______________________________________________
>> MirageOS-devel mailing list
>> MirageOS-devel@lists.xenproject.org
>> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
> 


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 19 10:22:52 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 19 Mar 2015 10:22:52 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYXbC-0001lk-MS; Thu, 19 Mar 2015 10:22:46 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <ania.skorupa@yahoo.com>) id 1YYXbA-0001lf-KZ
	for mirageos-devel@lists.xenproject.org; Thu, 19 Mar 2015 10:22:44 +0000
Received: from [85.158.139.211] by server-5.bemta-5.messagelabs.com id
	6E/AE-16213-373AA055; Thu, 19 Mar 2015 10:22:43 +0000
X-Env-Sender: ania.skorupa@yahoo.com
X-Msg-Ref: server-5.tower-206.messagelabs.com!1426760560!11780324!1
X-Originating-IP: [98.138.120.221]
X-SpamReason: No, hits=1.2 required=7.0 tests=FORGED_YAHOO_RCVD,
	HTML_60_70,HTML_MESSAGE,RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 31881 invoked from network); 19 Mar 2015 10:22:42 -0000
Received: from nm41-vm5.bullet.mail.ne1.yahoo.com (HELO
	nm41-vm5.bullet.mail.ne1.yahoo.com) (98.138.120.221)
	by server-5.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	19 Mar 2015 10:22:42 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
	t=1426760560; bh=jsLaMXOUFC9reVQMvFKfdsqWDcfWdNaa6Y/2AslD7BY=;
	h=Date:From:Reply-To:To:Subject:From:Subject;
	b=fg2151GXwiiKTno4RZ0H7OHvgjqSsLggcIjy8gKVf+8TV1XKPmxK3qljfnZMcifp4DPEkyQ5IyqgxbLEYjABKhbun3m6qXSopvwqfQD0+ZuVilaYTEXVlmoSC2oiS9ifWqhVXMy4X+0gQ4+MmewDxJfM3K/0e1rlHwuSbEePO5bHVY2Ar4DP0tGUVUG845rMdUfA5R/gOpBOKE/lQisQUVeKx/6lRFepZAvWt+jfurohTj1AZfjGPGakAJFfY/RWWIOnM8jIDheBX4zGzoK52QTHYqEmcjSLU0iXn9skM14D+n1Bkt7oLgW19OfEAU97hqXJ7Y7e9b+9yYhSK4vq5g==
Received: from [127.0.0.1] by nm41.bullet.mail.ne1.yahoo.com with NNFMP;
	19 Mar 2015 10:22:40 -0000
Received: from [98.138.226.176] by nm41.bullet.mail.ne1.yahoo.com with NNFMP;
	19 Mar 2015 10:20:00 -0000
Received: from [66.196.81.172] by tm11.bullet.mail.ne1.yahoo.com with NNFMP;
	19 Mar 2015 10:20:00 -0000
Received: from [98.139.212.225] by tm18.bullet.mail.bf1.yahoo.com with NNFMP;
	19 Mar 2015 10:20:00 -0000
Received: from [127.0.0.1] by omp1034.mail.bf1.yahoo.com with NNFMP;
	19 Mar 2015 10:20:00 -0000
X-Yahoo-Newman-Property: ymail-4
X-Yahoo-Newman-Id: 192191.59771.bm@omp1034.mail.bf1.yahoo.com
X-YMail-OSG: MaR3vFwVM1mPl4mVdM7rp9RFAqyhtw4zMzwsYIhtvZ7dyjy9FvPm7OttKbKHvuy
	LG.4TZrzWbnRUvUhi6zZTxCL3FQ_qFcFj8_t3efHgYEeQS63q3OiiApr1ZRKVgBi7GDgTyUQfO3Q
	OYbQY9yBLYXdI4HNlEPA8pjs4MD1XYybZskSycLnYmCt07k_XUzvudBsS7X0tYrRUxm41DnSixkP
	MB4QgHHVd3cvOBWP5E7AVCTnRQLtOIAoSuv6HYRVtiqGH5I6VnpsbWGWma1WIn_so4ZcIUMgwZpI
	v8OQf3Lgx25XT0o.3ltZuyTr6x6CP_yKZtvB2yB4Y7aIiUvXeqQ4uJHxqWn.qvaxKp2hluK_eWnv
	g0jkn2sP2Wvea8bxV1gFJ9m9M1JXDlbEFiyeUX4uksDyJJiSIOfRhGKd0Xw9XM2CD7.AqaPl4JBB
	EKsMQEeBhP15BwFAZ1Rf4d0Hq8J.2_rnADTBPyiWPT3OivFHVM0P92c7ScThl2HfzrpQ1lE8j69K
	pry.F
Received: by 66.196.80.122; Thu, 19 Mar 2015 10:19:59 +0000 
Date: Thu, 19 Mar 2015 10:19:59 +0000 (UTC)
From: Ania Skorupa <ania.skorupa@yahoo.com>
To: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Message-ID: <2023520211.563393.1426760399442.JavaMail.yahoo@mail.yahoo.com>
MIME-Version: 1.0
Content-Length: 1763
Subject: [MirageOS-devel] Connect in ethif
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Ania Skorupa <ania.skorupa@yahoo.com>
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============6966741747714261223=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============6966741747714261223==
Content-Type: multipart/alternative; 
	boundary="----=_Part_563392_828526474.1426760399440"
Content-Length: 1222

------=_Part_563392_828526474.1426760399440
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Hi all,
I am wondering if connect function in ethif is required, as it almost does nothing. I guess netif is the argument to the functor ethif, which has already connected to an interface through its own connect function.
Thanks.

------=_Part_563392_828526474.1426760399440
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_1_1426759782198_2563">Hi all,</div><div id="yui_3_16_0_1_1426759782198_2594" dir="ltr"><br></div><div id="yui_3_16_0_1_1426759782198_2595" dir="ltr">I am wondering if connect function in ethif is required, as it almost does nothing. I guess netif is the argument to the functor ethif, which has already connected to an interface through its own connect function.</div><div id="yui_3_16_0_1_1426759782198_7932" dir="ltr"><br></div><div id="yui_3_16_0_1_1426759782198_7931" dir="ltr">Thanks.<br></div></div></body></html>
------=_Part_563392_828526474.1426760399440--


--===============6966741747714261223==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============6966741747714261223==--


From mirageos-devel-bounces@lists.xenproject.org Thu Mar 19 10:22:52 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 19 Mar 2015 10:22:52 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYXbC-0001lk-MS; Thu, 19 Mar 2015 10:22:46 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <ania.skorupa@yahoo.com>) id 1YYXbA-0001lf-KZ
	for mirageos-devel@lists.xenproject.org; Thu, 19 Mar 2015 10:22:44 +0000
Received: from [85.158.139.211] by server-5.bemta-5.messagelabs.com id
	6E/AE-16213-373AA055; Thu, 19 Mar 2015 10:22:43 +0000
X-Env-Sender: ania.skorupa@yahoo.com
X-Msg-Ref: server-5.tower-206.messagelabs.com!1426760560!11780324!1
X-Originating-IP: [98.138.120.221]
X-SpamReason: No, hits=1.2 required=7.0 tests=FORGED_YAHOO_RCVD,
	HTML_60_70,HTML_MESSAGE,RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 31881 invoked from network); 19 Mar 2015 10:22:42 -0000
Received: from nm41-vm5.bullet.mail.ne1.yahoo.com (HELO
	nm41-vm5.bullet.mail.ne1.yahoo.com) (98.138.120.221)
	by server-5.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	19 Mar 2015 10:22:42 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
	t=1426760560; bh=jsLaMXOUFC9reVQMvFKfdsqWDcfWdNaa6Y/2AslD7BY=;
	h=Date:From:Reply-To:To:Subject:From:Subject;
	b=fg2151GXwiiKTno4RZ0H7OHvgjqSsLggcIjy8gKVf+8TV1XKPmxK3qljfnZMcifp4DPEkyQ5IyqgxbLEYjABKhbun3m6qXSopvwqfQD0+ZuVilaYTEXVlmoSC2oiS9ifWqhVXMy4X+0gQ4+MmewDxJfM3K/0e1rlHwuSbEePO5bHVY2Ar4DP0tGUVUG845rMdUfA5R/gOpBOKE/lQisQUVeKx/6lRFepZAvWt+jfurohTj1AZfjGPGakAJFfY/RWWIOnM8jIDheBX4zGzoK52QTHYqEmcjSLU0iXn9skM14D+n1Bkt7oLgW19OfEAU97hqXJ7Y7e9b+9yYhSK4vq5g==
Received: from [127.0.0.1] by nm41.bullet.mail.ne1.yahoo.com with NNFMP;
	19 Mar 2015 10:22:40 -0000
Received: from [98.138.226.176] by nm41.bullet.mail.ne1.yahoo.com with NNFMP;
	19 Mar 2015 10:20:00 -0000
Received: from [66.196.81.172] by tm11.bullet.mail.ne1.yahoo.com with NNFMP;
	19 Mar 2015 10:20:00 -0000
Received: from [98.139.212.225] by tm18.bullet.mail.bf1.yahoo.com with NNFMP;
	19 Mar 2015 10:20:00 -0000
Received: from [127.0.0.1] by omp1034.mail.bf1.yahoo.com with NNFMP;
	19 Mar 2015 10:20:00 -0000
X-Yahoo-Newman-Property: ymail-4
X-Yahoo-Newman-Id: 192191.59771.bm@omp1034.mail.bf1.yahoo.com
X-YMail-OSG: MaR3vFwVM1mPl4mVdM7rp9RFAqyhtw4zMzwsYIhtvZ7dyjy9FvPm7OttKbKHvuy
	LG.4TZrzWbnRUvUhi6zZTxCL3FQ_qFcFj8_t3efHgYEeQS63q3OiiApr1ZRKVgBi7GDgTyUQfO3Q
	OYbQY9yBLYXdI4HNlEPA8pjs4MD1XYybZskSycLnYmCt07k_XUzvudBsS7X0tYrRUxm41DnSixkP
	MB4QgHHVd3cvOBWP5E7AVCTnRQLtOIAoSuv6HYRVtiqGH5I6VnpsbWGWma1WIn_so4ZcIUMgwZpI
	v8OQf3Lgx25XT0o.3ltZuyTr6x6CP_yKZtvB2yB4Y7aIiUvXeqQ4uJHxqWn.qvaxKp2hluK_eWnv
	g0jkn2sP2Wvea8bxV1gFJ9m9M1JXDlbEFiyeUX4uksDyJJiSIOfRhGKd0Xw9XM2CD7.AqaPl4JBB
	EKsMQEeBhP15BwFAZ1Rf4d0Hq8J.2_rnADTBPyiWPT3OivFHVM0P92c7ScThl2HfzrpQ1lE8j69K
	pry.F
Received: by 66.196.80.122; Thu, 19 Mar 2015 10:19:59 +0000 
Date: Thu, 19 Mar 2015 10:19:59 +0000 (UTC)
From: Ania Skorupa <ania.skorupa@yahoo.com>
To: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Message-ID: <2023520211.563393.1426760399442.JavaMail.yahoo@mail.yahoo.com>
MIME-Version: 1.0
Content-Length: 1763
Subject: [MirageOS-devel] Connect in ethif
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Ania Skorupa <ania.skorupa@yahoo.com>
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============6966741747714261223=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============6966741747714261223==
Content-Type: multipart/alternative; 
	boundary="----=_Part_563392_828526474.1426760399440"
Content-Length: 1222

------=_Part_563392_828526474.1426760399440
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Hi all,
I am wondering if connect function in ethif is required, as it almost does nothing. I guess netif is the argument to the functor ethif, which has already connected to an interface through its own connect function.
Thanks.

------=_Part_563392_828526474.1426760399440
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_1_1426759782198_2563">Hi all,</div><div id="yui_3_16_0_1_1426759782198_2594" dir="ltr"><br></div><div id="yui_3_16_0_1_1426759782198_2595" dir="ltr">I am wondering if connect function in ethif is required, as it almost does nothing. I guess netif is the argument to the functor ethif, which has already connected to an interface through its own connect function.</div><div id="yui_3_16_0_1_1426759782198_7932" dir="ltr"><br></div><div id="yui_3_16_0_1_1426759782198_7931" dir="ltr">Thanks.<br></div></div></body></html>
------=_Part_563392_828526474.1426760399440--


--===============6966741747714261223==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============6966741747714261223==--


From mirageos-devel-bounces@lists.xenproject.org Thu Mar 19 14:47:14 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 19 Mar 2015 14:47:14 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYbj0-0008Rc-Mk; Thu, 19 Mar 2015 14:47:06 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YYbiz-0008RX-Mr
	for mirageos-devel@lists.xenproject.org; Thu, 19 Mar 2015 14:47:05 +0000
Received: from [193.109.254.147] by server-3.bemta-14.messagelabs.com id
	E5/F2-21221-861EA055; Thu, 19 Mar 2015 14:47:04 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-8.tower-27.messagelabs.com!1426776424!14352962!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 27537 invoked from network); 19 Mar 2015 14:47:04 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-8.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 19 Mar 2015 14:47:04 -0000
Received: from dhcp-172-17-154-157.eduroam.wireless.private.cam.ac.uk
	(global-1-26.nat.csx.cam.ac.uk [131.111.184.26]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id bdab3f6c;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Thu, 19 Mar 2015 14:47:03 +0000 (GMT)
From: Anil Madhavapeddy <anil@recoil.org>
Date: Thu, 19 Mar 2015 14:47:01 +0000
Message-Id: <6225C6E3-5DC1-4F2D-9826-7319E90F9FDA@recoil.org>
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
X-Mailer: Apple Mail (2.2070.6)
Cc: Lars Kurth <lars.kurth@citrix.com>
Subject: [MirageOS-devel] MegaMirage repository now updating via cron
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Lars asked me to refresh the `megamirage` repository, which is a full collection of libraries that we develop.  

https://github.com/mirage/megamirage

As a reminder, this is keyed off the TROVE file in mirage-www:

https://github.com/mirage/mirage-www/blob/master/TROVE

If you are developing a library (even if it's not released yet, but you want to grab the name), just send a pull request to add it to the TROVE and it will be mirrored in the megamirage submodule collection.

This now updates hourly off a cron job running on a VM, so it should stay fairly uptodate.  Lars: the README in megamirage has instructions on how to do a source code clone.

cheers,
Anil
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 19 14:47:14 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 19 Mar 2015 14:47:14 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYbj0-0008Rc-Mk; Thu, 19 Mar 2015 14:47:06 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YYbiz-0008RX-Mr
	for mirageos-devel@lists.xenproject.org; Thu, 19 Mar 2015 14:47:05 +0000
Received: from [193.109.254.147] by server-3.bemta-14.messagelabs.com id
	E5/F2-21221-861EA055; Thu, 19 Mar 2015 14:47:04 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-8.tower-27.messagelabs.com!1426776424!14352962!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 27537 invoked from network); 19 Mar 2015 14:47:04 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-8.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 19 Mar 2015 14:47:04 -0000
Received: from dhcp-172-17-154-157.eduroam.wireless.private.cam.ac.uk
	(global-1-26.nat.csx.cam.ac.uk [131.111.184.26]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id bdab3f6c;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Thu, 19 Mar 2015 14:47:03 +0000 (GMT)
From: Anil Madhavapeddy <anil@recoil.org>
Date: Thu, 19 Mar 2015 14:47:01 +0000
Message-Id: <6225C6E3-5DC1-4F2D-9826-7319E90F9FDA@recoil.org>
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
X-Mailer: Apple Mail (2.2070.6)
Cc: Lars Kurth <lars.kurth@citrix.com>
Subject: [MirageOS-devel] MegaMirage repository now updating via cron
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Lars asked me to refresh the `megamirage` repository, which is a full collection of libraries that we develop.  

https://github.com/mirage/megamirage

As a reminder, this is keyed off the TROVE file in mirage-www:

https://github.com/mirage/mirage-www/blob/master/TROVE

If you are developing a library (even if it's not released yet, but you want to grab the name), just send a pull request to add it to the TROVE and it will be mirrored in the megamirage submodule collection.

This now updates hourly off a cron job running on a VM, so it should stay fairly uptodate.  Lars: the README in megamirage has instructions on how to do a source code clone.

cheers,
Anil
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 19 14:53:24 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 19 Mar 2015 14:53:24 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYbp5-0000aJ-TX; Thu, 19 Mar 2015 14:53:23 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YYbp5-0000aD-Gi
	for mirageos-devel@lists.xenproject.org; Thu, 19 Mar 2015 14:53:23 +0000
Received: from [193.109.254.147] by server-13.bemta-14.messagelabs.com id
	EE/43-23283-2E2EA055; Thu, 19 Mar 2015 14:53:22 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-10.tower-27.messagelabs.com!1426776801!14358899!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.7 required=7.0 tests=BODY_RANDOM_LONG, RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 10625 invoked from network); 19 Mar 2015 14:53:22 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-10.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 19 Mar 2015 14:53:22 -0000
Received: from dhcp-172-17-154-157.eduroam.wireless.private.cam.ac.uk
	(global-1-26.nat.csx.cam.ac.uk [131.111.184.26]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 6f781c86;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Thu, 19 Mar 2015 14:53:21 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <6225C6E3-5DC1-4F2D-9826-7319E90F9FDA@recoil.org>
Date: Thu, 19 Mar 2015 14:53:19 +0000
Message-Id: <30BC03E2-5246-4FEF-8F7B-5B54633F4BDE@recoil.org>
References: <6225C6E3-5DC1-4F2D-9826-7319E90F9FDA@recoil.org>
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: Lars Kurth <lars.kurth@citrix.com>
Subject: Re: [MirageOS-devel] MegaMirage repository now updating via cron
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

I had a query about which repositories should be in your personal GitHub space, and which on the `mirage` organisation.

There is no general rule that all the libraries have to be under `mirage` (for example, the TLS libraries are under a separate `mirleft` domain, which is administered by Hannes and David).  However, it is useful to be able to administrate repositories from a single org from a perspective of adding collaborators, so as libraries mature and get more usable, it's useful to have them hosted under the `mirage` org.

The transfer is easily done via GitHub -- just contact one of the core team who have admin privileges on the `mirage` organisation.

-anil

> On 19 Mar 2015, at 14:47, Anil Madhavapeddy <anil@recoil.org> wrote:
> 
> Lars asked me to refresh the `megamirage` repository, which is a full collection of libraries that we develop.  
> 
> https://github.com/mirage/megamirage
> 
> As a reminder, this is keyed off the TROVE file in mirage-www:
> 
> https://github.com/mirage/mirage-www/blob/master/TROVE
> 
> If you are developing a library (even if it's not released yet, but you want to grab the name), just send a pull request to add it to the TROVE and it will be mirrored in the megamirage submodule collection.
> 
> This now updates hourly off a cron job running on a VM, so it should stay fairly uptodate.  Lars: the README in megamirage has instructions on how to do a source code clone.
> 
> cheers,
> Anil
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
> 


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 19 14:53:24 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 19 Mar 2015 14:53:24 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYbp5-0000aJ-TX; Thu, 19 Mar 2015 14:53:23 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YYbp5-0000aD-Gi
	for mirageos-devel@lists.xenproject.org; Thu, 19 Mar 2015 14:53:23 +0000
Received: from [193.109.254.147] by server-13.bemta-14.messagelabs.com id
	EE/43-23283-2E2EA055; Thu, 19 Mar 2015 14:53:22 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-10.tower-27.messagelabs.com!1426776801!14358899!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.7 required=7.0 tests=BODY_RANDOM_LONG, RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 10625 invoked from network); 19 Mar 2015 14:53:22 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-10.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 19 Mar 2015 14:53:22 -0000
Received: from dhcp-172-17-154-157.eduroam.wireless.private.cam.ac.uk
	(global-1-26.nat.csx.cam.ac.uk [131.111.184.26]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 6f781c86;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Thu, 19 Mar 2015 14:53:21 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <6225C6E3-5DC1-4F2D-9826-7319E90F9FDA@recoil.org>
Date: Thu, 19 Mar 2015 14:53:19 +0000
Message-Id: <30BC03E2-5246-4FEF-8F7B-5B54633F4BDE@recoil.org>
References: <6225C6E3-5DC1-4F2D-9826-7319E90F9FDA@recoil.org>
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: Lars Kurth <lars.kurth@citrix.com>
Subject: Re: [MirageOS-devel] MegaMirage repository now updating via cron
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

I had a query about which repositories should be in your personal GitHub space, and which on the `mirage` organisation.

There is no general rule that all the libraries have to be under `mirage` (for example, the TLS libraries are under a separate `mirleft` domain, which is administered by Hannes and David).  However, it is useful to be able to administrate repositories from a single org from a perspective of adding collaborators, so as libraries mature and get more usable, it's useful to have them hosted under the `mirage` org.

The transfer is easily done via GitHub -- just contact one of the core team who have admin privileges on the `mirage` organisation.

-anil

> On 19 Mar 2015, at 14:47, Anil Madhavapeddy <anil@recoil.org> wrote:
> 
> Lars asked me to refresh the `megamirage` repository, which is a full collection of libraries that we develop.  
> 
> https://github.com/mirage/megamirage
> 
> As a reminder, this is keyed off the TROVE file in mirage-www:
> 
> https://github.com/mirage/mirage-www/blob/master/TROVE
> 
> If you are developing a library (even if it's not released yet, but you want to grab the name), just send a pull request to add it to the TROVE and it will be mirrored in the megamirage submodule collection.
> 
> This now updates hourly off a cron job running on a VM, so it should stay fairly uptodate.  Lars: the README in megamirage has instructions on how to do a source code clone.
> 
> cheers,
> Anil
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
> 


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 19 17:50:50 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 19 Mar 2015 17:50:50 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYeah-0000D8-O7; Thu, 19 Mar 2015 17:50:43 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YYeag-0000Cs-JL
	for mirageos-devel@lists.xenproject.org; Thu, 19 Mar 2015 17:50:42 +0000
Received: from [85.158.137.68] by server-10.bemta-3.messagelabs.com id
	CE/CE-07799-17C0B055; Thu, 19 Mar 2015 17:50:41 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-6.tower-31.messagelabs.com!1426787440!9366124!1
X-Originating-IP: [74.125.82.177]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 19879 invoked from network); 19 Mar 2015 17:50:41 -0000
Received: from mail-we0-f177.google.com (HELO mail-we0-f177.google.com)
	(74.125.82.177)
	by server-6.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	19 Mar 2015 17:50:41 -0000
Received: by weop45 with SMTP id p45so63588059weo.0
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 19 Mar 2015 10:50:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=dIfGGTTHEbMp9iWoc3lZLXLMra+Aq2ssZ4M+8fAO+fg=;
	b=QB+84U7hms0i/YR3UG0JqaFbdR8GZiY1RTJStWB1QKK0LschYJXKgrHGMl5kj8mDb7
	4ss3IJwtmn2vEQ3zDRDzaTRSzANApSrBvHjEID9Xainq9ixWlmjXDxDN7SrdeaPV3CX/
	gqBtZ/k3qdxdEsx2PNc8/yB8pmNexKBS86et5sAKeC4FtP6nqLErewb0sZzB5T+lT3aI
	w/LkfaHK+7qCskl3o5xmfCMNSvxLxiWuOBrcg+IGDsbwj/tDe2cxksHRLNXehj2/wC/t
	I6IyRe09yJuqDYT6NlXOdDfcZAI0PgssQPccjREi9WxxOSdFqb+XdwU2SQdKOoRG7i5X
	dH0g==
X-Received: by 10.180.73.4 with SMTP id h4mr15581761wiv.77.1426787440599;
	Thu, 19 Mar 2015 10:50:40 -0700 (PDT)
Received: from piana.mac.cl.cam.ac.uk (piana.mac.cl.cam.ac.uk. [128.232.56.38])
	by mx.google.com with ESMTPSA id
	hj10sm2849892wjc.48.2015.03.19.10.50.38
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Thu, 19 Mar 2015 10:50:39 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <CAG4opy8S_Roej+Yp+L=vEZyuZCfpFdFrP5fPKp9vbo4wddCxrQ@mail.gmail.com>
Date: Thu, 19 Mar 2015 17:50:37 +0000
Message-Id: <6DCB3B79-915E-4590-9251-4E7E41099A21@gazagnaire.org>
References: <CAG4opy8S_Roej+Yp+L=vEZyuZCfpFdFrP5fPKp9vbo4wddCxrQ@mail.gmail.com>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Error handling in Mirage - request for
	comments!
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

> As part of my continuing mission to break all Mirage APIs, I've
> written up some thoughts on how to improve error handling:
> 
>  https://github.com/mirage/mirage-www/pull/274

I'm still like proposition 5 very much, so I've started to see what it could look like in practice:

https://github.com/mirage/mirage/pull/383

My plan is to adapt the various libraries needed to run mirage-skeleton on top of this. I think it will not be too much painful, mainly because the removal of DEVICE.connect means that there is no more DEVICE.id and DEVICE.error to care about. I'll keep the list updated on the progress.

While doing this, I've also cleaned up V1 documentation and updated it online: http://mirage.github.io/mirage/V1.html

Thomas

> 
> Although written as if it's a final design, it's intended only as a
> starting point for discussion, to find out what we do and don't agree
> on. Please add comments, information about successful approaches
> you've seen, etc.
> 
> 
> -- 
> Dr Thomas Leonard        http://0install.net/
> GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
> GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA
> 
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 19 17:50:50 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 19 Mar 2015 17:50:50 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYeah-0000D8-O7; Thu, 19 Mar 2015 17:50:43 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YYeag-0000Cs-JL
	for mirageos-devel@lists.xenproject.org; Thu, 19 Mar 2015 17:50:42 +0000
Received: from [85.158.137.68] by server-10.bemta-3.messagelabs.com id
	CE/CE-07799-17C0B055; Thu, 19 Mar 2015 17:50:41 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-6.tower-31.messagelabs.com!1426787440!9366124!1
X-Originating-IP: [74.125.82.177]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 19879 invoked from network); 19 Mar 2015 17:50:41 -0000
Received: from mail-we0-f177.google.com (HELO mail-we0-f177.google.com)
	(74.125.82.177)
	by server-6.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	19 Mar 2015 17:50:41 -0000
Received: by weop45 with SMTP id p45so63588059weo.0
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 19 Mar 2015 10:50:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=dIfGGTTHEbMp9iWoc3lZLXLMra+Aq2ssZ4M+8fAO+fg=;
	b=QB+84U7hms0i/YR3UG0JqaFbdR8GZiY1RTJStWB1QKK0LschYJXKgrHGMl5kj8mDb7
	4ss3IJwtmn2vEQ3zDRDzaTRSzANApSrBvHjEID9Xainq9ixWlmjXDxDN7SrdeaPV3CX/
	gqBtZ/k3qdxdEsx2PNc8/yB8pmNexKBS86et5sAKeC4FtP6nqLErewb0sZzB5T+lT3aI
	w/LkfaHK+7qCskl3o5xmfCMNSvxLxiWuOBrcg+IGDsbwj/tDe2cxksHRLNXehj2/wC/t
	I6IyRe09yJuqDYT6NlXOdDfcZAI0PgssQPccjREi9WxxOSdFqb+XdwU2SQdKOoRG7i5X
	dH0g==
X-Received: by 10.180.73.4 with SMTP id h4mr15581761wiv.77.1426787440599;
	Thu, 19 Mar 2015 10:50:40 -0700 (PDT)
Received: from piana.mac.cl.cam.ac.uk (piana.mac.cl.cam.ac.uk. [128.232.56.38])
	by mx.google.com with ESMTPSA id
	hj10sm2849892wjc.48.2015.03.19.10.50.38
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Thu, 19 Mar 2015 10:50:39 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <CAG4opy8S_Roej+Yp+L=vEZyuZCfpFdFrP5fPKp9vbo4wddCxrQ@mail.gmail.com>
Date: Thu, 19 Mar 2015 17:50:37 +0000
Message-Id: <6DCB3B79-915E-4590-9251-4E7E41099A21@gazagnaire.org>
References: <CAG4opy8S_Roej+Yp+L=vEZyuZCfpFdFrP5fPKp9vbo4wddCxrQ@mail.gmail.com>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Error handling in Mirage - request for
	comments!
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

> As part of my continuing mission to break all Mirage APIs, I've
> written up some thoughts on how to improve error handling:
> 
>  https://github.com/mirage/mirage-www/pull/274

I'm still like proposition 5 very much, so I've started to see what it could look like in practice:

https://github.com/mirage/mirage/pull/383

My plan is to adapt the various libraries needed to run mirage-skeleton on top of this. I think it will not be too much painful, mainly because the removal of DEVICE.connect means that there is no more DEVICE.id and DEVICE.error to care about. I'll keep the list updated on the progress.

While doing this, I've also cleaned up V1 documentation and updated it online: http://mirage.github.io/mirage/V1.html

Thomas

> 
> Although written as if it's a final design, it's intended only as a
> starting point for discussion, to find out what we do and don't agree
> on. Please add comments, information about successful approaches
> you've seen, etc.
> 
> 
> -- 
> Dr Thomas Leonard        http://0install.net/
> GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
> GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA
> 
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 20 13:07:56 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 20 Mar 2015 13:07:56 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYweT-0003pS-L7; Fri, 20 Mar 2015 13:07:49 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mindy@somerandomidiot.com>) id 1YYweS-0003ob-7q
	for mirageos-devel@lists.xenproject.org; Fri, 20 Mar 2015 13:07:48 +0000
Received: from [193.109.254.147] by server-11.bemta-14.messagelabs.com id
	23/C6-32337-3AB1C055; Fri, 20 Mar 2015 13:07:47 +0000
X-Env-Sender: mindy@somerandomidiot.com
X-Msg-Ref: server-16.tower-27.messagelabs.com!1426856866!6421460!1
X-Originating-IP: [217.70.183.197]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 23384 invoked from network); 20 Mar 2015 13:07:46 -0000
Received: from relay5-d.mail.gandi.net (HELO relay5-d.mail.gandi.net)
	(217.70.183.197)
	by server-16.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 20 Mar 2015 13:07:46 -0000
Received: from mfilter32-d.gandi.net (mfilter32-d.gandi.net [217.70.178.163])
	by relay5-d.mail.gandi.net (Postfix) with ESMTP id 993D741C04E
	for <mirageos-devel@lists.xenproject.org>;
	Fri, 20 Mar 2015 14:07:46 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at mfilter32-d.gandi.net
Received: from relay5-d.mail.gandi.net ([217.70.183.197])
	by mfilter32-d.gandi.net (mfilter32-d.gandi.net [10.0.15.180])
	(amavisd-new, port 10024)
	with ESMTP id AYIdSgNGl20T for <mirageos-devel@lists.xenproject.org>;
	Fri, 20 Mar 2015 14:07:45 +0100 (CET)
X-Originating-IP: 131.111.184.18
Received: from [172.17.26.127] (global-1-18.nat.csx.cam.ac.uk [131.111.184.18])
	(Authenticated sender: guybrush@somerandomidiot.com)
	by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 211EA41C07B
	for <mirageos-devel@lists.xenproject.org>;
	Fri, 20 Mar 2015 14:07:44 +0100 (CET)
Message-ID: <550C1B9F.7080200@somerandomidiot.com>
Date: Fri, 20 Mar 2015 13:07:43 +0000
From: Mindy <mindy@somerandomidiot.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: [MirageOS-devel] who's using the channel interface from
	mirage-tcpip?
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi folks,

Are there any users of the Channel interface from mirage-tcpip besides 
mirage-http (which uses it to provide an interface to cohttp)?

Alternately, are there any nice ways to automatically discover the 
answer to this question without bothering humans?

Thanks,
Mindy

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 20 13:07:56 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 20 Mar 2015 13:07:56 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYweT-0003pS-L7; Fri, 20 Mar 2015 13:07:49 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mindy@somerandomidiot.com>) id 1YYweS-0003ob-7q
	for mirageos-devel@lists.xenproject.org; Fri, 20 Mar 2015 13:07:48 +0000
Received: from [193.109.254.147] by server-11.bemta-14.messagelabs.com id
	23/C6-32337-3AB1C055; Fri, 20 Mar 2015 13:07:47 +0000
X-Env-Sender: mindy@somerandomidiot.com
X-Msg-Ref: server-16.tower-27.messagelabs.com!1426856866!6421460!1
X-Originating-IP: [217.70.183.197]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 23384 invoked from network); 20 Mar 2015 13:07:46 -0000
Received: from relay5-d.mail.gandi.net (HELO relay5-d.mail.gandi.net)
	(217.70.183.197)
	by server-16.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 20 Mar 2015 13:07:46 -0000
Received: from mfilter32-d.gandi.net (mfilter32-d.gandi.net [217.70.178.163])
	by relay5-d.mail.gandi.net (Postfix) with ESMTP id 993D741C04E
	for <mirageos-devel@lists.xenproject.org>;
	Fri, 20 Mar 2015 14:07:46 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at mfilter32-d.gandi.net
Received: from relay5-d.mail.gandi.net ([217.70.183.197])
	by mfilter32-d.gandi.net (mfilter32-d.gandi.net [10.0.15.180])
	(amavisd-new, port 10024)
	with ESMTP id AYIdSgNGl20T for <mirageos-devel@lists.xenproject.org>;
	Fri, 20 Mar 2015 14:07:45 +0100 (CET)
X-Originating-IP: 131.111.184.18
Received: from [172.17.26.127] (global-1-18.nat.csx.cam.ac.uk [131.111.184.18])
	(Authenticated sender: guybrush@somerandomidiot.com)
	by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 211EA41C07B
	for <mirageos-devel@lists.xenproject.org>;
	Fri, 20 Mar 2015 14:07:44 +0100 (CET)
Message-ID: <550C1B9F.7080200@somerandomidiot.com>
Date: Fri, 20 Mar 2015 13:07:43 +0000
From: Mindy <mindy@somerandomidiot.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: [MirageOS-devel] who's using the channel interface from
	mirage-tcpip?
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi folks,

Are there any users of the Channel interface from mirage-tcpip besides 
mirage-http (which uses it to provide an interface to cohttp)?

Alternately, are there any nice ways to automatically discover the 
answer to this question without bothering humans?

Thanks,
Mindy

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 20 13:18:17 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 20 Mar 2015 13:18:17 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYwoX-0006ZI-FC; Fri, 20 Mar 2015 13:18:13 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mindy@somerandomidiot.com>) id 1YYwoV-0006ZD-Ga
	for mirageos-devel@lists.xenproject.org; Fri, 20 Mar 2015 13:18:11 +0000
Received: from [193.109.254.147] by server-4.bemta-14.messagelabs.com id
	10/1E-02712-21E1C055; Fri, 20 Mar 2015 13:18:10 +0000
X-Env-Sender: mindy@somerandomidiot.com
X-Msg-Ref: server-15.tower-27.messagelabs.com!1426857489!11839056!1
X-Originating-IP: [217.70.183.198]
X-SpamReason: No, hits=0.3 required=7.0 tests=HTML_60_70,HTML_MESSAGE
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 9294 invoked from network); 20 Mar 2015 13:18:09 -0000
Received: from relay6-d.mail.gandi.net (HELO relay6-d.mail.gandi.net)
	(217.70.183.198)
	by server-15.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 20 Mar 2015 13:18:09 -0000
Received: from mfilter16-d.gandi.net (mfilter16-d.gandi.net [217.70.178.144])
	by relay6-d.mail.gandi.net (Postfix) with ESMTP id A6C3EFB8B1
	for <mirageos-devel@lists.xenproject.org>;
	Fri, 20 Mar 2015 14:18:09 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at mfilter16-d.gandi.net
Received: from relay6-d.mail.gandi.net ([217.70.183.198])
	by mfilter16-d.gandi.net (mfilter16-d.gandi.net [10.0.15.180])
	(amavisd-new, port 10024)
	with ESMTP id mKFFRTv27leC for <mirageos-devel@lists.xenproject.org>;
	Fri, 20 Mar 2015 14:18:08 +0100 (CET)
X-Originating-IP: 131.111.184.18
Received: from [172.17.26.127] (global-1-18.nat.csx.cam.ac.uk [131.111.184.18])
	(Authenticated sender: guybrush@somerandomidiot.com)
	by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 18C5FFB8C9
	for <mirageos-devel@lists.xenproject.org>;
	Fri, 20 Mar 2015 14:18:07 +0100 (CET)
Message-ID: <550C1E0E.8020408@somerandomidiot.com>
Date: Fri, 20 Mar 2015 13:18:06 +0000
From: Mindy <mindy@somerandomidiot.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: mirageos-devel@lists.xenproject.org
References: <2023520211.563393.1426760399442.JavaMail.yahoo@mail.yahoo.com>
In-Reply-To: <2023520211.563393.1426760399442.JavaMail.yahoo@mail.yahoo.com>
Subject: Re: [MirageOS-devel] Connect in ethif
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============7975429383591430704=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

This is a multi-part message in MIME format.
--===============7975429383591430704==
Content-Type: multipart/alternative;
 boundary="------------070500010103060500020209"

This is a multi-part message in MIME format.
--------------070500010103060500020209
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit

Hi Ania,

The connect function itself doesn't "do" much, but it's needed for 
providing an Ethif.t for stack users -- either to build higher stack 
layers (e.g. Ipv4.t, Ipv6.t) on top of, or to use directly in 
applications where a user is building their own application on top of 
the Ethernet layer.

I'm not sure I completely understood your question, though?

-Mindy

On 03/19/2015 10:19 AM, Ania Skorupa wrote:
> Hi all,
>
> I am wondering if connect function in ethif is required, as it almost 
> does nothing. I guess netif is the argument to the functor ethif, 
> which has already connected to an interface through its own connect 
> function.
>
> Thanks.
>
>
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


--------------070500010103060500020209
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Ania,<br>
    <br>
    The connect function itself doesn't "do" much, but it's needed for
    providing an Ethif.t for stack users -- either to build higher stack
    layers (e.g. Ipv4.t, Ipv6.t) on top of, or to use directly in
    applications where a user is building their own application on top
    of the Ethernet layer.<br>
    <br>
    I'm not sure I completely understood your question, though?<br>
    <br>
    -Mindy<br>
    <br>
    <div class="moz-cite-prefix">On 03/19/2015 10:19 AM, Ania Skorupa
      wrote:<br>
    </div>
    <blockquote
      cite="mid:2023520211.563393.1426760399442.JavaMail.yahoo@mail.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff;
        font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
        Lucida Grande, sans-serif;font-size:16px">
        <div dir="ltr" id="yui_3_16_0_1_1426759782198_2563">Hi all,</div>
        <div id="yui_3_16_0_1_1426759782198_2594" dir="ltr"><br>
        </div>
        <div id="yui_3_16_0_1_1426759782198_2595" dir="ltr">I am
          wondering if connect function in ethif is required, as it
          almost does nothing. I guess netif is the argument to the
          functor ethif, which has already connected to an interface
          through its own connect function.</div>
        <div id="yui_3_16_0_1_1426759782198_7932" dir="ltr"><br>
        </div>
        <div id="yui_3_16_0_1_1426759782198_7931" dir="ltr">Thanks.<br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
MirageOS-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:MirageOS-devel@lists.xenproject.org">MirageOS-devel@lists.xenproject.org</a>
<a class="moz-txt-link-freetext" href="http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel">http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>

--------------070500010103060500020209--


--===============7975429383591430704==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============7975429383591430704==--


From mirageos-devel-bounces@lists.xenproject.org Fri Mar 20 13:18:17 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 20 Mar 2015 13:18:17 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYwoX-0006ZI-FC; Fri, 20 Mar 2015 13:18:13 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mindy@somerandomidiot.com>) id 1YYwoV-0006ZD-Ga
	for mirageos-devel@lists.xenproject.org; Fri, 20 Mar 2015 13:18:11 +0000
Received: from [193.109.254.147] by server-4.bemta-14.messagelabs.com id
	10/1E-02712-21E1C055; Fri, 20 Mar 2015 13:18:10 +0000
X-Env-Sender: mindy@somerandomidiot.com
X-Msg-Ref: server-15.tower-27.messagelabs.com!1426857489!11839056!1
X-Originating-IP: [217.70.183.198]
X-SpamReason: No, hits=0.3 required=7.0 tests=HTML_60_70,HTML_MESSAGE
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 9294 invoked from network); 20 Mar 2015 13:18:09 -0000
Received: from relay6-d.mail.gandi.net (HELO relay6-d.mail.gandi.net)
	(217.70.183.198)
	by server-15.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 20 Mar 2015 13:18:09 -0000
Received: from mfilter16-d.gandi.net (mfilter16-d.gandi.net [217.70.178.144])
	by relay6-d.mail.gandi.net (Postfix) with ESMTP id A6C3EFB8B1
	for <mirageos-devel@lists.xenproject.org>;
	Fri, 20 Mar 2015 14:18:09 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at mfilter16-d.gandi.net
Received: from relay6-d.mail.gandi.net ([217.70.183.198])
	by mfilter16-d.gandi.net (mfilter16-d.gandi.net [10.0.15.180])
	(amavisd-new, port 10024)
	with ESMTP id mKFFRTv27leC for <mirageos-devel@lists.xenproject.org>;
	Fri, 20 Mar 2015 14:18:08 +0100 (CET)
X-Originating-IP: 131.111.184.18
Received: from [172.17.26.127] (global-1-18.nat.csx.cam.ac.uk [131.111.184.18])
	(Authenticated sender: guybrush@somerandomidiot.com)
	by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 18C5FFB8C9
	for <mirageos-devel@lists.xenproject.org>;
	Fri, 20 Mar 2015 14:18:07 +0100 (CET)
Message-ID: <550C1E0E.8020408@somerandomidiot.com>
Date: Fri, 20 Mar 2015 13:18:06 +0000
From: Mindy <mindy@somerandomidiot.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: mirageos-devel@lists.xenproject.org
References: <2023520211.563393.1426760399442.JavaMail.yahoo@mail.yahoo.com>
In-Reply-To: <2023520211.563393.1426760399442.JavaMail.yahoo@mail.yahoo.com>
Subject: Re: [MirageOS-devel] Connect in ethif
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============7975429383591430704=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

This is a multi-part message in MIME format.
--===============7975429383591430704==
Content-Type: multipart/alternative;
 boundary="------------070500010103060500020209"

This is a multi-part message in MIME format.
--------------070500010103060500020209
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit

Hi Ania,

The connect function itself doesn't "do" much, but it's needed for 
providing an Ethif.t for stack users -- either to build higher stack 
layers (e.g. Ipv4.t, Ipv6.t) on top of, or to use directly in 
applications where a user is building their own application on top of 
the Ethernet layer.

I'm not sure I completely understood your question, though?

-Mindy

On 03/19/2015 10:19 AM, Ania Skorupa wrote:
> Hi all,
>
> I am wondering if connect function in ethif is required, as it almost 
> does nothing. I guess netif is the argument to the functor ethif, 
> which has already connected to an interface through its own connect 
> function.
>
> Thanks.
>
>
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


--------------070500010103060500020209
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: 7bit

<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Ania,<br>
    <br>
    The connect function itself doesn't "do" much, but it's needed for
    providing an Ethif.t for stack users -- either to build higher stack
    layers (e.g. Ipv4.t, Ipv6.t) on top of, or to use directly in
    applications where a user is building their own application on top
    of the Ethernet layer.<br>
    <br>
    I'm not sure I completely understood your question, though?<br>
    <br>
    -Mindy<br>
    <br>
    <div class="moz-cite-prefix">On 03/19/2015 10:19 AM, Ania Skorupa
      wrote:<br>
    </div>
    <blockquote
      cite="mid:2023520211.563393.1426760399442.JavaMail.yahoo@mail.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff;
        font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
        Lucida Grande, sans-serif;font-size:16px">
        <div dir="ltr" id="yui_3_16_0_1_1426759782198_2563">Hi all,</div>
        <div id="yui_3_16_0_1_1426759782198_2594" dir="ltr"><br>
        </div>
        <div id="yui_3_16_0_1_1426759782198_2595" dir="ltr">I am
          wondering if connect function in ethif is required, as it
          almost does nothing. I guess netif is the argument to the
          functor ethif, which has already connected to an interface
          through its own connect function.</div>
        <div id="yui_3_16_0_1_1426759782198_7932" dir="ltr"><br>
        </div>
        <div id="yui_3_16_0_1_1426759782198_7931" dir="ltr">Thanks.<br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
MirageOS-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:MirageOS-devel@lists.xenproject.org">MirageOS-devel@lists.xenproject.org</a>
<a class="moz-txt-link-freetext" href="http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel">http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>

--------------070500010103060500020209--


--===============7975429383591430704==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============7975429383591430704==--


From mirageos-devel-bounces@lists.xenproject.org Fri Mar 20 13:27:17 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 20 Mar 2015 13:27:17 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYwxI-0007Wx-VZ; Fri, 20 Mar 2015 13:27:16 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YYwxH-0007WX-IT
	for mirageos-devel@lists.xenproject.org; Fri, 20 Mar 2015 13:27:15 +0000
Received: from [85.158.137.68] by server-9.bemta-3.messagelabs.com id
	F7/1C-01814-2302C055; Fri, 20 Mar 2015 13:27:14 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-14.tower-31.messagelabs.com!1426858033!11630776!1
X-Originating-IP: [209.85.215.46]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 13102 invoked from network); 20 Mar 2015 13:27:14 -0000
Received: from mail-la0-f46.google.com (HELO mail-la0-f46.google.com)
	(209.85.215.46)
	by server-14.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	20 Mar 2015 13:27:14 -0000
Received: by labe2 with SMTP id e2so11611749lab.3
	for <mirageos-devel@lists.xenproject.org>;
	Fri, 20 Mar 2015 06:27:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=gaKrAelpC9SAA0/8HYf6OngWJM+IQy+WM5udSlQA6FA=;
	b=OPnTo7kFpe4GQNpAGLVk1NcmRtWAohA0OF4Xe8O9vKT0qxgopSkN7BXmM20RSAL+Zr
	uERTaO4ohroibnZR2mjUDHCwcFPM39fwc7zduBEZznkMcCqNfxr1EtqrhgXAvNIvpFeC
	tR5JWGhTQ2z97ax03JDBRUZAs3t+Hc9rI4Z2TyEkCiTMJqD4NUIEP/xcXQpPhj9bhLqy
	zfazRVTSBZ54dQtncWkhABhsHFYNMGMoGn0dOJKb+tsrAT92D7iTIFeRlMpixUAlD9Sd
	OuQzqoz79zDsuZ6C5UobvtuyulIJZOdOLxtzZksIpYvQKQQhMlhAO/G+leAyO9XwSmSq
	vJiw==
MIME-Version: 1.0
X-Received: by 10.152.8.52 with SMTP id o20mr44434585laa.4.1426858033138; Fri,
	20 Mar 2015 06:27:13 -0700 (PDT)
Received: by 10.25.207.17 with HTTP; Fri, 20 Mar 2015 06:27:13 -0700 (PDT)
In-Reply-To: <550C1B9F.7080200@somerandomidiot.com>
References: <550C1B9F.7080200@somerandomidiot.com>
Date: Fri, 20 Mar 2015 13:27:13 +0000
Message-ID: <CAG4opy_XzUdT6K-53UMs43n6dyB7E8ZTVZdoYZhkRrrGkf9x3Q@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: Mindy <mindy@somerandomidiot.com>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] who's using the channel interface from
	mirage-tcpip?
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 20 March 2015 at 13:07, Mindy <mindy@somerandomidiot.com> wrote:
> Hi folks,
>
> Are there any users of the Channel interface from mirage-tcpip besides
> mirage-http (which uses it to provide an interface to cohttp)?

That's the only one I know.

> Alternately, are there any nice ways to automatically discover the answer to
> this question without bothering humans?

I don't know about "nice", but if you're worried about breaking
something with an API change then it's "possible" to fork mirage-dev,
point it at your modified tcpip library and let it rebuild everything
(on Travis or locally).

It would be nice if there were a web UI where you could paste a set of
git URLs and have it rebuild everything with those URLs pinned.


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 20 13:27:17 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 20 Mar 2015 13:27:17 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYwxI-0007Wx-VZ; Fri, 20 Mar 2015 13:27:16 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YYwxH-0007WX-IT
	for mirageos-devel@lists.xenproject.org; Fri, 20 Mar 2015 13:27:15 +0000
Received: from [85.158.137.68] by server-9.bemta-3.messagelabs.com id
	F7/1C-01814-2302C055; Fri, 20 Mar 2015 13:27:14 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-14.tower-31.messagelabs.com!1426858033!11630776!1
X-Originating-IP: [209.85.215.46]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 13102 invoked from network); 20 Mar 2015 13:27:14 -0000
Received: from mail-la0-f46.google.com (HELO mail-la0-f46.google.com)
	(209.85.215.46)
	by server-14.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	20 Mar 2015 13:27:14 -0000
Received: by labe2 with SMTP id e2so11611749lab.3
	for <mirageos-devel@lists.xenproject.org>;
	Fri, 20 Mar 2015 06:27:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=gaKrAelpC9SAA0/8HYf6OngWJM+IQy+WM5udSlQA6FA=;
	b=OPnTo7kFpe4GQNpAGLVk1NcmRtWAohA0OF4Xe8O9vKT0qxgopSkN7BXmM20RSAL+Zr
	uERTaO4ohroibnZR2mjUDHCwcFPM39fwc7zduBEZznkMcCqNfxr1EtqrhgXAvNIvpFeC
	tR5JWGhTQ2z97ax03JDBRUZAs3t+Hc9rI4Z2TyEkCiTMJqD4NUIEP/xcXQpPhj9bhLqy
	zfazRVTSBZ54dQtncWkhABhsHFYNMGMoGn0dOJKb+tsrAT92D7iTIFeRlMpixUAlD9Sd
	OuQzqoz79zDsuZ6C5UobvtuyulIJZOdOLxtzZksIpYvQKQQhMlhAO/G+leAyO9XwSmSq
	vJiw==
MIME-Version: 1.0
X-Received: by 10.152.8.52 with SMTP id o20mr44434585laa.4.1426858033138; Fri,
	20 Mar 2015 06:27:13 -0700 (PDT)
Received: by 10.25.207.17 with HTTP; Fri, 20 Mar 2015 06:27:13 -0700 (PDT)
In-Reply-To: <550C1B9F.7080200@somerandomidiot.com>
References: <550C1B9F.7080200@somerandomidiot.com>
Date: Fri, 20 Mar 2015 13:27:13 +0000
Message-ID: <CAG4opy_XzUdT6K-53UMs43n6dyB7E8ZTVZdoYZhkRrrGkf9x3Q@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: Mindy <mindy@somerandomidiot.com>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] who's using the channel interface from
	mirage-tcpip?
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 20 March 2015 at 13:07, Mindy <mindy@somerandomidiot.com> wrote:
> Hi folks,
>
> Are there any users of the Channel interface from mirage-tcpip besides
> mirage-http (which uses it to provide an interface to cohttp)?

That's the only one I know.

> Alternately, are there any nice ways to automatically discover the answer to
> this question without bothering humans?

I don't know about "nice", but if you're worried about breaking
something with an API change then it's "possible" to fork mirage-dev,
point it at your modified tcpip library and let it rebuild everything
(on Travis or locally).

It would be nice if there were a web UI where you could paste a set of
git URLs and have it rebuild everything with those URLs pinned.


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 20 13:49:45 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 20 Mar 2015 13:49:45 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYxJ2-0002pw-Is; Fri, 20 Mar 2015 13:49:44 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YYxJ1-0002of-46
	for mirageos-devel@lists.xenproject.org; Fri, 20 Mar 2015 13:49:43 +0000
Received: from [193.109.254.147] by server-6.bemta-14.messagelabs.com id
	08/DD-14813-6752C055; Fri, 20 Mar 2015 13:49:42 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-5.tower-27.messagelabs.com!1426859381!7207459!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 6159 invoked from network); 20 Mar 2015 13:49:41 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-5.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 20 Mar 2015 13:49:41 -0000
Received: from [192.168.1.39] (cpc7-cmbg14-2-0-cust238.5-4.cable.virginm.net
	[86.30.244.239]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 1e1ccee1;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Fri, 20 Mar 2015 13:49:41 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAG4opy_XzUdT6K-53UMs43n6dyB7E8ZTVZdoYZhkRrrGkf9x3Q@mail.gmail.com>
Date: Fri, 20 Mar 2015 13:49:40 +0000
Message-Id: <0910BF7A-5DCC-4FEA-84FE-765D1316F55E@recoil.org>
References: <550C1B9F.7080200@somerandomidiot.com>
	<CAG4opy_XzUdT6K-53UMs43n6dyB7E8ZTVZdoYZhkRrrGkf9x3Q@mail.gmail.com>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] who's using the channel interface from
	mirage-tcpip?
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 20 Mar 2015, at 13:27, Thomas Leonard <talex5@gmail.com> wrote:
> 
> On 20 March 2015 at 13:07, Mindy <mindy@somerandomidiot.com> wrote:
>> Hi folks,
>> 
>> Are there any users of the Channel interface from mirage-tcpip besides
>> mirage-http (which uses it to provide an interface to cohttp)?
> 
> That's the only one I know.

Likewise.

>> Alternately, are there any nice ways to automatically discover the answer to
>> this question without bothering humans?
> 
> I don't know about "nice", but if you're worried about breaking
> something with an API change then it's "possible" to fork mirage-dev,
> point it at your modified tcpip library and let it rebuild everything
> (on Travis or locally).

The other option is: ask the megamirage at https://github.com/mirage/megamirage and follow the README instructions to clone it.

A grep through there reveals:

$ grep -rl CHANNEL *|more
mirage/lib/mirage.ml
mirage/lib/mirage.mli
mirage/types/V1.mli
mirage/types/V1_LWT.mli
mirage-decks/assets/reveal.js-2.6.2/plugin/highlight/highlight.js
mirage-http/lib/HTTP_IO.ml
mirage-http/lib/HTTP_IO.mli
mirage-platform/xen/runtime/ocaml/io.h
mirage-tcpip/channel/channel.mli
ocaml-tls/rfc/rfc5746.txt

There may be be others of course, but if they're not tracked in the megamirage repository cluster then the other only way of finding them will be via the GitHub search UI.

> It would be nice if there were a web UI where you could paste a set of
> git URLs and have it rebuild everything with those URLs pinned.

Absolutely.  I've actually just fixed the https://github.com/mirage/is-mirage-broken build after your mirage-skeleton changes, but it's the ideal candidate for this.  The scripts could be extended to regularly build *all* branches of mirage-dev.  Then the flow of work would simply be to push to an experimental mirage-dev branch and wait for is-mirage-broken to build all the packages.

-anil


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 20 13:49:45 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 20 Mar 2015 13:49:45 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYxJ2-0002pw-Is; Fri, 20 Mar 2015 13:49:44 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YYxJ1-0002of-46
	for mirageos-devel@lists.xenproject.org; Fri, 20 Mar 2015 13:49:43 +0000
Received: from [193.109.254.147] by server-6.bemta-14.messagelabs.com id
	08/DD-14813-6752C055; Fri, 20 Mar 2015 13:49:42 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-5.tower-27.messagelabs.com!1426859381!7207459!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 6159 invoked from network); 20 Mar 2015 13:49:41 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-5.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 20 Mar 2015 13:49:41 -0000
Received: from [192.168.1.39] (cpc7-cmbg14-2-0-cust238.5-4.cable.virginm.net
	[86.30.244.239]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 1e1ccee1;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Fri, 20 Mar 2015 13:49:41 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAG4opy_XzUdT6K-53UMs43n6dyB7E8ZTVZdoYZhkRrrGkf9x3Q@mail.gmail.com>
Date: Fri, 20 Mar 2015 13:49:40 +0000
Message-Id: <0910BF7A-5DCC-4FEA-84FE-765D1316F55E@recoil.org>
References: <550C1B9F.7080200@somerandomidiot.com>
	<CAG4opy_XzUdT6K-53UMs43n6dyB7E8ZTVZdoYZhkRrrGkf9x3Q@mail.gmail.com>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] who's using the channel interface from
	mirage-tcpip?
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 20 Mar 2015, at 13:27, Thomas Leonard <talex5@gmail.com> wrote:
> 
> On 20 March 2015 at 13:07, Mindy <mindy@somerandomidiot.com> wrote:
>> Hi folks,
>> 
>> Are there any users of the Channel interface from mirage-tcpip besides
>> mirage-http (which uses it to provide an interface to cohttp)?
> 
> That's the only one I know.

Likewise.

>> Alternately, are there any nice ways to automatically discover the answer to
>> this question without bothering humans?
> 
> I don't know about "nice", but if you're worried about breaking
> something with an API change then it's "possible" to fork mirage-dev,
> point it at your modified tcpip library and let it rebuild everything
> (on Travis or locally).

The other option is: ask the megamirage at https://github.com/mirage/megamirage and follow the README instructions to clone it.

A grep through there reveals:

$ grep -rl CHANNEL *|more
mirage/lib/mirage.ml
mirage/lib/mirage.mli
mirage/types/V1.mli
mirage/types/V1_LWT.mli
mirage-decks/assets/reveal.js-2.6.2/plugin/highlight/highlight.js
mirage-http/lib/HTTP_IO.ml
mirage-http/lib/HTTP_IO.mli
mirage-platform/xen/runtime/ocaml/io.h
mirage-tcpip/channel/channel.mli
ocaml-tls/rfc/rfc5746.txt

There may be be others of course, but if they're not tracked in the megamirage repository cluster then the other only way of finding them will be via the GitHub search UI.

> It would be nice if there were a web UI where you could paste a set of
> git URLs and have it rebuild everything with those URLs pinned.

Absolutely.  I've actually just fixed the https://github.com/mirage/is-mirage-broken build after your mirage-skeleton changes, but it's the ideal candidate for this.  The scripts could be extended to regularly build *all* branches of mirage-dev.  Then the flow of work would simply be to push to an experimental mirage-dev branch and wait for is-mirage-broken to build all the packages.

-anil


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 20 13:52:22 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 20 Mar 2015 13:52:22 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYxLZ-0003w5-Ts; Fri, 20 Mar 2015 13:52:21 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <ania.skorupa@yahoo.com>) id 1YYxLX-0003uu-V6
	for mirageos-devel@lists.xenproject.org; Fri, 20 Mar 2015 13:52:20 +0000
Received: from [85.158.139.211] by server-10.bemta-5.messagelabs.com id
	45/3E-10587-3162C055; Fri, 20 Mar 2015 13:52:19 +0000
X-Env-Sender: ania.skorupa@yahoo.com
X-Msg-Ref: server-8.tower-206.messagelabs.com!1426859536!12143798!1
X-Originating-IP: [98.136.216.221]
X-SpamReason: No, hits=0.9 required=7.0 tests=FORGED_YAHOO_RCVD,
	HTML_MESSAGE,RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 29676 invoked from network); 20 Mar 2015 13:52:18 -0000
Received: from nm36-vm6.bullet.mail.gq1.yahoo.com (HELO
	nm36-vm6.bullet.mail.gq1.yahoo.com) (98.136.216.221)
	by server-8.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	20 Mar 2015 13:52:18 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
	t=1426859536; bh=fX1MsTKkF65d0hncnACP5cPlfvDEYWXGNdMnHeEMflI=;
	h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject;
	b=skM4vK0fplx6eJDJ7K2WQdXtSPvh3yX2b1W3QfuoDy+SgU1PQZYWeLPnYF9R4r91v06sjdIeh7nvEG3EzW5IRiLatjluZB4qK/VgzHJ+cbsMU9anuKuZTOeErc4NR0I0u7d4+taH2QhoCuVHiFAbgZlp/uCuvXqETq3dc6Q1trQ7vjqKeEjsbRGXNKRGPLKzzF7G1+ngDZm2opCXZ/rvN2N8+OQHf7dBHcEPpNzUk7TwPkOLCj+J5GDSWkWjEhaWUaC8GFK1Eg37luQn8M+Uoe8hcw41ovQsb9mtDVty5ql4RqBFZXRESYCVc3/AG1ACq5Kb74bGjlSRlsZcF1uwfA==
Received: from [127.0.0.1] by nm36.bullet.mail.gq1.yahoo.com with NNFMP;
	20 Mar 2015 13:52:16 -0000
Received: from [98.137.12.58] by nm36.bullet.mail.gq1.yahoo.com with NNFMP;
	20 Mar 2015 13:49:25 -0000
Received: from [98.139.170.178] by tm3.bullet.mail.gq1.yahoo.com with NNFMP;
	20 Mar 2015 13:49:24 -0000
Received: from [98.139.212.196] by tm21.bullet.mail.bf1.yahoo.com with NNFMP;
	20 Mar 2015 13:49:23 -0000
Received: from [127.0.0.1] by omp1005.mail.bf1.yahoo.com with NNFMP;
	20 Mar 2015 13:49:23 -0000
X-Yahoo-Newman-Property: ymail-4
X-Yahoo-Newman-Id: 916551.66486.bm@omp1005.mail.bf1.yahoo.com
X-YMail-OSG: 3lmUYZgVM1nGA9Oc8uCLmJqUFoWyV40UXXsdhvJHiVmBQKnJAtR71FeNBy1ltao
	zO8ndLCKC5_1RE0aY8cHYVNVl76AmmcDVGOesPW.S_dA5cgX0lXpneqRPSM79td53s7A9Css6L.5
	SOfYdnxZydncZKhscCJde6O5kvSXPZzu7t4K1UVlPEQODQUpcbH_t37J5QO.87NF3ninkkHTPwtS
	7iVHTDDwfosHqA4G0PIM78IviQDbrz..56rA07vDV7JmWjEHUl.Z9LtqQXkI.VVdzCgFOzlXXtbi
	i7KuQlLlsPFKgh94MyXqrYVf_iNpIKP6poJtFPyO82MVjeioF53w.9dkxdBZwD7nurF0yCDRx7rY
	zQfwNIMZHY6c11vTpFip5ViV4OMFRsCUz_LvENJnosiGN0bfVPBz.giDeqvbl3byebwHqzgQltdH
	tOhfuoEFjgO9ZDV6hW8SMYBJV_RM1LTUJD0Zygt4Nv1wAsO8PHPnLcYVdLrDDr.OWF4ZXDXlmETu
	05bnAth4AzOI_8zW28XiKH6MvO2YS6aOqfEd9OMxGHfGnsDPRA1Fa
Received: by 76.13.26.143; Fri, 20 Mar 2015 13:49:23 +0000 
Date: Fri, 20 Mar 2015 13:49:23 +0000 (UTC)
From: Ania Skorupa <ania.skorupa@yahoo.com>
To: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Message-ID: <1225364237.1636597.1426859363176.JavaMail.yahoo@mail.yahoo.com>
In-Reply-To: <2023520211.563393.1426760399442.JavaMail.yahoo@mail.yahoo.com>
References: <2023520211.563393.1426760399442.JavaMail.yahoo@mail.yahoo.com>
MIME-Version: 1.0
Content-Length: 4060
Subject: Re: [MirageOS-devel] Connect in ethif
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Ania Skorupa <ania.skorupa@yahoo.com>
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============3803466847885829212=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============3803466847885829212==
Content-Type: multipart/alternative; 
	boundary="----=_Part_1636596_329174138.1426859363165"
Content-Length: 3518

------=_Part_1636596_329174138.1426859363165
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi Mindy,
The only functionality of "connect" in ethif.ml is returning the input argu=
ment (and adding a trace label):

let connect netif =3D
=C2=A0=C2=A0=C2=A0 MProf.Trace.label "ethif.connect";
=C2=A0=C2=A0 return (`Ok { netif })
=20
so, what is the circumstance that this function would be called?=20




     On Thursday, March 19, 2015 10:19 AM, Ania Skorupa <ania.skorupa@yahoo=
.com> wrote:
  =20

 Hi all,
I am wondering if connect function in ethif is required, as it almost does =
nothing. I guess netif is the argument to the functor ethif, which has alre=
ady connected to an interface through its own connect function.
Thanks.


  
------=_Part_1636596_329174138.1426859363165
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html><body><div style=3D"color:#000; background-color:#fff; font-family:He=
lveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;fo=
nt-size:16px"><div id=3D"yui_3_16_0_1_1426858751290_9877" dir=3D"ltr"><span=
 id=3D"yui_3_16_0_1_1426858751290_10798">Hi Mindy,</span></div><div id=3D"y=
ui_3_16_0_1_1426858751290_9876" dir=3D"ltr"><br></div><div id=3D"yui_3_16_0=
_1_1426858751290_9723" dir=3D"ltr">The only functionality of "connect" in e=
thif.ml is returning the input argument (and adding a trace label):<br></di=
v><div id=3D"yui_3_16_0_1_1426858751290_9875" dir=3D"ltr"><br></div><div id=
=3D"yui_3_16_0_1_1426858751290_10797" dir=3D"ltr">let connect netif =3D<br =
style=3D"" class=3D"">&nbsp;&nbsp;&nbsp; MProf.Trace.label "ethif.connect";=
<br style=3D"" class=3D"">&nbsp;&nbsp; return (`Ok { netif })<br><span></sp=
an></div>  <div style=3D"" class=3D"" id=3D"yui_3_16_0_1_1426858751290_9723=
" dir=3D"ltr"><br></div><div id=3D"yui_3_16_0_1_1426858751290_12019" style=
=3D"" class=3D"" dir=3D"ltr">so, what is the circumstance that this functio=
n would be called? <br></div><br><br><div class=3D"qtdSeparateBR"><br><br><=
/div><div style=3D"display: block;" class=3D"yahoo_quoted"> <div style=3D"f=
ont-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande,=
 sans-serif; font-size: 16px;"> <div style=3D"font-family: HelveticaNeue, H=
elvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px=
;"> <div dir=3D"ltr"> <font face=3D"Arial" size=3D"2"> On Thursday, March 1=
9, 2015 10:19 AM, Ania Skorupa &lt;ania.skorupa@yahoo.com&gt; wrote:<br> </=
font> </div>  <br><br> <div class=3D"y_msg_container"><div id=3D"yiv2313354=
981"><div><div style=3D"color:#000;background-color:#fff;font-family:Helvet=
icaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-s=
ize:16px;"><div dir=3D"ltr" id=3D"yiv2313354981yui_3_16_0_1_1426759782198_2=
563">Hi all,</div><div id=3D"yiv2313354981yui_3_16_0_1_1426759782198_2594" =
dir=3D"ltr"><br></div><div id=3D"yiv2313354981yui_3_16_0_1_1426759782198_25=
95" dir=3D"ltr">I am wondering if connect function in ethif is required, as=
 it almost does nothing. I guess netif is the argument to the functor ethif=
, which has already connected to an interface through its own connect funct=
ion.</div><div id=3D"yiv2313354981yui_3_16_0_1_1426759782198_7932" dir=3D"l=
tr"><br></div><div id=3D"yiv2313354981yui_3_16_0_1_1426759782198_7931" dir=
=3D"ltr">Thanks.<br></div></div></div></div><br><br></div>  </div> </div>  =
</div></div></body></html>
------=_Part_1636596_329174138.1426859363165--


--===============3803466847885829212==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============3803466847885829212==--


From mirageos-devel-bounces@lists.xenproject.org Fri Mar 20 13:52:22 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 20 Mar 2015 13:52:22 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYxLZ-0003w5-Ts; Fri, 20 Mar 2015 13:52:21 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <ania.skorupa@yahoo.com>) id 1YYxLX-0003uu-V6
	for mirageos-devel@lists.xenproject.org; Fri, 20 Mar 2015 13:52:20 +0000
Received: from [85.158.139.211] by server-10.bemta-5.messagelabs.com id
	45/3E-10587-3162C055; Fri, 20 Mar 2015 13:52:19 +0000
X-Env-Sender: ania.skorupa@yahoo.com
X-Msg-Ref: server-8.tower-206.messagelabs.com!1426859536!12143798!1
X-Originating-IP: [98.136.216.221]
X-SpamReason: No, hits=0.9 required=7.0 tests=FORGED_YAHOO_RCVD,
	HTML_MESSAGE,RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 29676 invoked from network); 20 Mar 2015 13:52:18 -0000
Received: from nm36-vm6.bullet.mail.gq1.yahoo.com (HELO
	nm36-vm6.bullet.mail.gq1.yahoo.com) (98.136.216.221)
	by server-8.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	20 Mar 2015 13:52:18 -0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
	t=1426859536; bh=fX1MsTKkF65d0hncnACP5cPlfvDEYWXGNdMnHeEMflI=;
	h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject;
	b=skM4vK0fplx6eJDJ7K2WQdXtSPvh3yX2b1W3QfuoDy+SgU1PQZYWeLPnYF9R4r91v06sjdIeh7nvEG3EzW5IRiLatjluZB4qK/VgzHJ+cbsMU9anuKuZTOeErc4NR0I0u7d4+taH2QhoCuVHiFAbgZlp/uCuvXqETq3dc6Q1trQ7vjqKeEjsbRGXNKRGPLKzzF7G1+ngDZm2opCXZ/rvN2N8+OQHf7dBHcEPpNzUk7TwPkOLCj+J5GDSWkWjEhaWUaC8GFK1Eg37luQn8M+Uoe8hcw41ovQsb9mtDVty5ql4RqBFZXRESYCVc3/AG1ACq5Kb74bGjlSRlsZcF1uwfA==
Received: from [127.0.0.1] by nm36.bullet.mail.gq1.yahoo.com with NNFMP;
	20 Mar 2015 13:52:16 -0000
Received: from [98.137.12.58] by nm36.bullet.mail.gq1.yahoo.com with NNFMP;
	20 Mar 2015 13:49:25 -0000
Received: from [98.139.170.178] by tm3.bullet.mail.gq1.yahoo.com with NNFMP;
	20 Mar 2015 13:49:24 -0000
Received: from [98.139.212.196] by tm21.bullet.mail.bf1.yahoo.com with NNFMP;
	20 Mar 2015 13:49:23 -0000
Received: from [127.0.0.1] by omp1005.mail.bf1.yahoo.com with NNFMP;
	20 Mar 2015 13:49:23 -0000
X-Yahoo-Newman-Property: ymail-4
X-Yahoo-Newman-Id: 916551.66486.bm@omp1005.mail.bf1.yahoo.com
X-YMail-OSG: 3lmUYZgVM1nGA9Oc8uCLmJqUFoWyV40UXXsdhvJHiVmBQKnJAtR71FeNBy1ltao
	zO8ndLCKC5_1RE0aY8cHYVNVl76AmmcDVGOesPW.S_dA5cgX0lXpneqRPSM79td53s7A9Css6L.5
	SOfYdnxZydncZKhscCJde6O5kvSXPZzu7t4K1UVlPEQODQUpcbH_t37J5QO.87NF3ninkkHTPwtS
	7iVHTDDwfosHqA4G0PIM78IviQDbrz..56rA07vDV7JmWjEHUl.Z9LtqQXkI.VVdzCgFOzlXXtbi
	i7KuQlLlsPFKgh94MyXqrYVf_iNpIKP6poJtFPyO82MVjeioF53w.9dkxdBZwD7nurF0yCDRx7rY
	zQfwNIMZHY6c11vTpFip5ViV4OMFRsCUz_LvENJnosiGN0bfVPBz.giDeqvbl3byebwHqzgQltdH
	tOhfuoEFjgO9ZDV6hW8SMYBJV_RM1LTUJD0Zygt4Nv1wAsO8PHPnLcYVdLrDDr.OWF4ZXDXlmETu
	05bnAth4AzOI_8zW28XiKH6MvO2YS6aOqfEd9OMxGHfGnsDPRA1Fa
Received: by 76.13.26.143; Fri, 20 Mar 2015 13:49:23 +0000 
Date: Fri, 20 Mar 2015 13:49:23 +0000 (UTC)
From: Ania Skorupa <ania.skorupa@yahoo.com>
To: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Message-ID: <1225364237.1636597.1426859363176.JavaMail.yahoo@mail.yahoo.com>
In-Reply-To: <2023520211.563393.1426760399442.JavaMail.yahoo@mail.yahoo.com>
References: <2023520211.563393.1426760399442.JavaMail.yahoo@mail.yahoo.com>
MIME-Version: 1.0
Content-Length: 4060
Subject: Re: [MirageOS-devel] Connect in ethif
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
Reply-To: Ania Skorupa <ania.skorupa@yahoo.com>
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============3803466847885829212=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============3803466847885829212==
Content-Type: multipart/alternative; 
	boundary="----=_Part_1636596_329174138.1426859363165"
Content-Length: 3518

------=_Part_1636596_329174138.1426859363165
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi Mindy,
The only functionality of "connect" in ethif.ml is returning the input argu=
ment (and adding a trace label):

let connect netif =3D
=C2=A0=C2=A0=C2=A0 MProf.Trace.label "ethif.connect";
=C2=A0=C2=A0 return (`Ok { netif })
=20
so, what is the circumstance that this function would be called?=20




     On Thursday, March 19, 2015 10:19 AM, Ania Skorupa <ania.skorupa@yahoo=
.com> wrote:
  =20

 Hi all,
I am wondering if connect function in ethif is required, as it almost does =
nothing. I guess netif is the argument to the functor ethif, which has alre=
ady connected to an interface through its own connect function.
Thanks.


  
------=_Part_1636596_329174138.1426859363165
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html><body><div style=3D"color:#000; background-color:#fff; font-family:He=
lveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;fo=
nt-size:16px"><div id=3D"yui_3_16_0_1_1426858751290_9877" dir=3D"ltr"><span=
 id=3D"yui_3_16_0_1_1426858751290_10798">Hi Mindy,</span></div><div id=3D"y=
ui_3_16_0_1_1426858751290_9876" dir=3D"ltr"><br></div><div id=3D"yui_3_16_0=
_1_1426858751290_9723" dir=3D"ltr">The only functionality of "connect" in e=
thif.ml is returning the input argument (and adding a trace label):<br></di=
v><div id=3D"yui_3_16_0_1_1426858751290_9875" dir=3D"ltr"><br></div><div id=
=3D"yui_3_16_0_1_1426858751290_10797" dir=3D"ltr">let connect netif =3D<br =
style=3D"" class=3D"">&nbsp;&nbsp;&nbsp; MProf.Trace.label "ethif.connect";=
<br style=3D"" class=3D"">&nbsp;&nbsp; return (`Ok { netif })<br><span></sp=
an></div>  <div style=3D"" class=3D"" id=3D"yui_3_16_0_1_1426858751290_9723=
" dir=3D"ltr"><br></div><div id=3D"yui_3_16_0_1_1426858751290_12019" style=
=3D"" class=3D"" dir=3D"ltr">so, what is the circumstance that this functio=
n would be called? <br></div><br><br><div class=3D"qtdSeparateBR"><br><br><=
/div><div style=3D"display: block;" class=3D"yahoo_quoted"> <div style=3D"f=
ont-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande,=
 sans-serif; font-size: 16px;"> <div style=3D"font-family: HelveticaNeue, H=
elvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px=
;"> <div dir=3D"ltr"> <font face=3D"Arial" size=3D"2"> On Thursday, March 1=
9, 2015 10:19 AM, Ania Skorupa &lt;ania.skorupa@yahoo.com&gt; wrote:<br> </=
font> </div>  <br><br> <div class=3D"y_msg_container"><div id=3D"yiv2313354=
981"><div><div style=3D"color:#000;background-color:#fff;font-family:Helvet=
icaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-s=
ize:16px;"><div dir=3D"ltr" id=3D"yiv2313354981yui_3_16_0_1_1426759782198_2=
563">Hi all,</div><div id=3D"yiv2313354981yui_3_16_0_1_1426759782198_2594" =
dir=3D"ltr"><br></div><div id=3D"yiv2313354981yui_3_16_0_1_1426759782198_25=
95" dir=3D"ltr">I am wondering if connect function in ethif is required, as=
 it almost does nothing. I guess netif is the argument to the functor ethif=
, which has already connected to an interface through its own connect funct=
ion.</div><div id=3D"yiv2313354981yui_3_16_0_1_1426759782198_7932" dir=3D"l=
tr"><br></div><div id=3D"yiv2313354981yui_3_16_0_1_1426759782198_7931" dir=
=3D"ltr">Thanks.<br></div></div></div></div><br><br></div>  </div> </div>  =
</div></div></body></html>
------=_Part_1636596_329174138.1426859363165--


--===============3803466847885829212==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============3803466847885829212==--


From mirageos-devel-bounces@lists.xenproject.org Fri Mar 20 16:42:06 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 20 Mar 2015 16:42:06 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYzzl-0008WT-8H; Fri, 20 Mar 2015 16:42:01 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YYzzj-0008Uh-O3
	for mirageos-devel@lists.xenproject.org; Fri, 20 Mar 2015 16:41:59 +0000
Received: from [193.109.254.147] by server-7.bemta-14.messagelabs.com id
	30/77-23320-7DD4C055; Fri, 20 Mar 2015 16:41:59 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-7.tower-27.messagelabs.com!1426869717!11871951!1
X-Originating-IP: [74.125.82.173]
X-SpamReason: No, hits=0.0 required=7.0 tests=HTML_MESSAGE
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 14821 invoked from network); 20 Mar 2015 16:41:58 -0000
Received: from mail-we0-f173.google.com (HELO mail-we0-f173.google.com)
	(74.125.82.173)
	by server-7.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	20 Mar 2015 16:41:58 -0000
Received: by webcq43 with SMTP id cq43so86529560web.2
	for <mirageos-devel@lists.xenproject.org>;
	Fri, 20 Mar 2015 09:41:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:message-id:references:to;
	bh=UAmWDCc2yf3DciGCwqWY3CvHkqOd9lAevXAmVynVvHk=;
	b=vv3pRLsneWtvsz3PO1PQpFGV6QfaDK80gJGLhfgDNSmymJ2/4JkumStyJuPbTEBtxU
	cA/Sw6QBbxJPTD51ZuAZuO4SAkwbnPeRURhaQHmAslZbLnYjcwZBcpETk/oo5I08f8UT
	Kg4SewlPoN//e0qK9IX8wOnwGugaZlp7FNBYUV0TOFFrMehhecZO/aDq4S2UIK/UcP3N
	UwEyVXvw+PUiFunsgzNxfZwYUSxT3PVXbNMQaafrgo5aLz4BZHHEofbk9YOB0fV50sNd
	7aRu4n4Ya0GZUT2DRQclW8XO7Ybt4tBBrpJ0sjdrpC7qniU+wLnV62wRhzIvCjlusJW7
	GzVg==
X-Received: by 10.180.95.97 with SMTP id dj1mr6621065wib.43.1426869717774;
	Fri, 20 Mar 2015 09:41:57 -0700 (PDT)
Received: from [192.168.0.2] (cpc25-cmbg14-2-0-cust121.5-4.cable.virginm.net.
	[213.106.112.122])
	by mx.google.com with ESMTPSA id nh17sm3741909wic.5.2015.03.20.09.41.56
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Fri, 20 Mar 2015 09:41:56 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <1225364237.1636597.1426859363176.JavaMail.yahoo@mail.yahoo.com>
Date: Fri, 20 Mar 2015 16:41:54 +0000
Message-Id: <3D98FD0F-F586-443B-B092-7502FB38482F@gazagnaire.org>
References: <2023520211.563393.1426760399442.JavaMail.yahoo@mail.yahoo.com>
	<1225364237.1636597.1426859363176.JavaMail.yahoo@mail.yahoo.com>
To: Ania Skorupa <ania.skorupa@yahoo.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Connect in ethif
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0911721945468718965=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============0911721945468718965==
Content-Type: multipart/alternative; boundary="Apple-Mail=_80FD489E-B053-4E0D-898A-2477DC351A76"


--Apple-Mail=_80FD489E-B053-4E0D-898A-2477DC351A76
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

> let connect netif =3D
>     MProf.Trace.label "ethif.connect";
>    return (`Ok { netif })
>=20
> so, what is the circumstance that this function would be called?=20


This is because Ethif is a V1.DEVICE which used to need a connect =
function. This is not really the case anymore so I guess this would be =
clean up at some point.

Thomas


>=20
>=20
>=20
>=20
> On Thursday, March 19, 2015 10:19 AM, Ania Skorupa =
<ania.skorupa@yahoo.com> wrote:
>=20
>=20
> Hi all,
>=20
> I am wondering if connect function in ethif is required, as it almost =
does nothing. I guess netif is the argument to the functor ethif, which =
has already connected to an interface through its own connect function.
>=20
> Thanks.
>=20
>=20
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


--Apple-Mail=_80FD489E-B053-4E0D-898A-2477DC351A76
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div><blockquote type=3D"cite" class=3D""><div class=3D""><div =
class=3D""><div style=3D"background-color: rgb(255, 255, 255); =
font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida =
Grande', sans-serif; font-size: 16px;" class=3D""><div =
id=3D"yui_3_16_0_1_1426858751290_10797" dir=3D"ltr" class=3D"">let =
connect netif =3D<br style=3D"" class=3D"">&nbsp;&nbsp;&nbsp; =
MProf.Trace.label "ethif.connect";<br style=3D"" class=3D"">&nbsp;&nbsp; =
return (`Ok { netif })</div></div></div></div></blockquote><blockquote =
type=3D"cite" class=3D""><div class=3D""><div class=3D""><div =
style=3D"background-color: rgb(255, 255, 255); font-family: =
HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', =
sans-serif; font-size: 16px;" class=3D""><div =
id=3D"yui_3_16_0_1_1426858751290_10797" dir=3D"ltr" class=3D""><span =
class=3D""></span></div>  <div style=3D"" class=3D"" =
id=3D"yui_3_16_0_1_1426858751290_9723" dir=3D"ltr"><br =
class=3D""></div><div id=3D"yui_3_16_0_1_1426858751290_12019" style=3D"" =
class=3D"" dir=3D"ltr">so, what is the circumstance that this function =
would be called? <br =
class=3D""></div></div></div></div></blockquote><div><br =
class=3D""></div><div><br class=3D""></div>This is because Ethif is a =
V1.DEVICE which used to need a connect function. This is not really the =
case anymore so I guess this would be clean up at some =
point.</div><div><br class=3D""></div><div>Thomas</div><div><br =
class=3D""></div><div><br class=3D""><blockquote type=3D"cite" =
class=3D""><div class=3D""><div class=3D""><div style=3D"background-color:=
 rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', =
Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;" =
class=3D""><br class=3D""><br class=3D""><div class=3D"qtdSeparateBR"><br =
class=3D""><br class=3D""></div><div style=3D"display: block;" =
class=3D"yahoo_quoted"> <div style=3D"font-family: HelveticaNeue, =
Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: =
16px;" class=3D""> <div style=3D"font-family: HelveticaNeue, Helvetica =
Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" =
class=3D""> <div dir=3D"ltr" class=3D""> <font face=3D"Arial" size=3D"2" =
class=3D""> On Thursday, March 19, 2015 10:19 AM, Ania Skorupa &lt;<a =
href=3D"mailto:ania.skorupa@yahoo.com" =
class=3D"">ania.skorupa@yahoo.com</a>&gt; wrote:<br class=3D""> </font> =
</div>  <br class=3D""><br class=3D""> <div class=3D"y_msg_container"><div=
 id=3D"yiv2313354981" class=3D""><div class=3D""><div =
style=3D"background-color: rgb(255, 255, 255); font-family: =
HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', =
sans-serif; font-size: 16px;" class=3D""><div dir=3D"ltr" =
id=3D"yiv2313354981yui_3_16_0_1_1426759782198_2563" class=3D"">Hi =
all,</div><div id=3D"yiv2313354981yui_3_16_0_1_1426759782198_2594" =
dir=3D"ltr" class=3D""><br class=3D""></div><div =
id=3D"yiv2313354981yui_3_16_0_1_1426759782198_2595" dir=3D"ltr" =
class=3D"">I am wondering if connect function in ethif is required, as =
it almost does nothing. I guess netif is the argument to the functor =
ethif, which has already connected to an interface through its own =
connect function.</div><div =
id=3D"yiv2313354981yui_3_16_0_1_1426759782198_7932" dir=3D"ltr" =
class=3D""><br class=3D""></div><div =
id=3D"yiv2313354981yui_3_16_0_1_1426759782198_7931" dir=3D"ltr" =
class=3D"">Thanks.<br class=3D""></div></div></div></div><br =
class=3D""><br class=3D""></div>  </div> </div>  =
</div></div></div>_______________________________________________<br =
class=3D"">MirageOS-devel mailing list<br class=3D""><a =
href=3D"mailto:MirageOS-devel@lists.xenproject.org" =
class=3D"">MirageOS-devel@lists.xenproject.org</a><br =
class=3D"">http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-d=
evel<br class=3D""></div></blockquote></div><br class=3D""></body></html>=

--Apple-Mail=_80FD489E-B053-4E0D-898A-2477DC351A76--


--===============0911721945468718965==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============0911721945468718965==--


From mirageos-devel-bounces@lists.xenproject.org Fri Mar 20 16:42:06 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 20 Mar 2015 16:42:06 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YYzzl-0008WT-8H; Fri, 20 Mar 2015 16:42:01 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YYzzj-0008Uh-O3
	for mirageos-devel@lists.xenproject.org; Fri, 20 Mar 2015 16:41:59 +0000
Received: from [193.109.254.147] by server-7.bemta-14.messagelabs.com id
	30/77-23320-7DD4C055; Fri, 20 Mar 2015 16:41:59 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-7.tower-27.messagelabs.com!1426869717!11871951!1
X-Originating-IP: [74.125.82.173]
X-SpamReason: No, hits=0.0 required=7.0 tests=HTML_MESSAGE
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 14821 invoked from network); 20 Mar 2015 16:41:58 -0000
Received: from mail-we0-f173.google.com (HELO mail-we0-f173.google.com)
	(74.125.82.173)
	by server-7.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	20 Mar 2015 16:41:58 -0000
Received: by webcq43 with SMTP id cq43so86529560web.2
	for <mirageos-devel@lists.xenproject.org>;
	Fri, 20 Mar 2015 09:41:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:message-id:references:to;
	bh=UAmWDCc2yf3DciGCwqWY3CvHkqOd9lAevXAmVynVvHk=;
	b=vv3pRLsneWtvsz3PO1PQpFGV6QfaDK80gJGLhfgDNSmymJ2/4JkumStyJuPbTEBtxU
	cA/Sw6QBbxJPTD51ZuAZuO4SAkwbnPeRURhaQHmAslZbLnYjcwZBcpETk/oo5I08f8UT
	Kg4SewlPoN//e0qK9IX8wOnwGugaZlp7FNBYUV0TOFFrMehhecZO/aDq4S2UIK/UcP3N
	UwEyVXvw+PUiFunsgzNxfZwYUSxT3PVXbNMQaafrgo5aLz4BZHHEofbk9YOB0fV50sNd
	7aRu4n4Ya0GZUT2DRQclW8XO7Ybt4tBBrpJ0sjdrpC7qniU+wLnV62wRhzIvCjlusJW7
	GzVg==
X-Received: by 10.180.95.97 with SMTP id dj1mr6621065wib.43.1426869717774;
	Fri, 20 Mar 2015 09:41:57 -0700 (PDT)
Received: from [192.168.0.2] (cpc25-cmbg14-2-0-cust121.5-4.cable.virginm.net.
	[213.106.112.122])
	by mx.google.com with ESMTPSA id nh17sm3741909wic.5.2015.03.20.09.41.56
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Fri, 20 Mar 2015 09:41:56 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <1225364237.1636597.1426859363176.JavaMail.yahoo@mail.yahoo.com>
Date: Fri, 20 Mar 2015 16:41:54 +0000
Message-Id: <3D98FD0F-F586-443B-B092-7502FB38482F@gazagnaire.org>
References: <2023520211.563393.1426760399442.JavaMail.yahoo@mail.yahoo.com>
	<1225364237.1636597.1426859363176.JavaMail.yahoo@mail.yahoo.com>
To: Ania Skorupa <ania.skorupa@yahoo.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Connect in ethif
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0911721945468718965=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============0911721945468718965==
Content-Type: multipart/alternative; boundary="Apple-Mail=_80FD489E-B053-4E0D-898A-2477DC351A76"


--Apple-Mail=_80FD489E-B053-4E0D-898A-2477DC351A76
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

> let connect netif =3D
>     MProf.Trace.label "ethif.connect";
>    return (`Ok { netif })
>=20
> so, what is the circumstance that this function would be called?=20


This is because Ethif is a V1.DEVICE which used to need a connect =
function. This is not really the case anymore so I guess this would be =
clean up at some point.

Thomas


>=20
>=20
>=20
>=20
> On Thursday, March 19, 2015 10:19 AM, Ania Skorupa =
<ania.skorupa@yahoo.com> wrote:
>=20
>=20
> Hi all,
>=20
> I am wondering if connect function in ethif is required, as it almost =
does nothing. I guess netif is the argument to the functor ethif, which =
has already connected to an interface through its own connect function.
>=20
> Thanks.
>=20
>=20
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


--Apple-Mail=_80FD489E-B053-4E0D-898A-2477DC351A76
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div><blockquote type=3D"cite" class=3D""><div class=3D""><div =
class=3D""><div style=3D"background-color: rgb(255, 255, 255); =
font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida =
Grande', sans-serif; font-size: 16px;" class=3D""><div =
id=3D"yui_3_16_0_1_1426858751290_10797" dir=3D"ltr" class=3D"">let =
connect netif =3D<br style=3D"" class=3D"">&nbsp;&nbsp;&nbsp; =
MProf.Trace.label "ethif.connect";<br style=3D"" class=3D"">&nbsp;&nbsp; =
return (`Ok { netif })</div></div></div></div></blockquote><blockquote =
type=3D"cite" class=3D""><div class=3D""><div class=3D""><div =
style=3D"background-color: rgb(255, 255, 255); font-family: =
HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', =
sans-serif; font-size: 16px;" class=3D""><div =
id=3D"yui_3_16_0_1_1426858751290_10797" dir=3D"ltr" class=3D""><span =
class=3D""></span></div>  <div style=3D"" class=3D"" =
id=3D"yui_3_16_0_1_1426858751290_9723" dir=3D"ltr"><br =
class=3D""></div><div id=3D"yui_3_16_0_1_1426858751290_12019" style=3D"" =
class=3D"" dir=3D"ltr">so, what is the circumstance that this function =
would be called? <br =
class=3D""></div></div></div></div></blockquote><div><br =
class=3D""></div><div><br class=3D""></div>This is because Ethif is a =
V1.DEVICE which used to need a connect function. This is not really the =
case anymore so I guess this would be clean up at some =
point.</div><div><br class=3D""></div><div>Thomas</div><div><br =
class=3D""></div><div><br class=3D""><blockquote type=3D"cite" =
class=3D""><div class=3D""><div class=3D""><div style=3D"background-color:=
 rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', =
Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;" =
class=3D""><br class=3D""><br class=3D""><div class=3D"qtdSeparateBR"><br =
class=3D""><br class=3D""></div><div style=3D"display: block;" =
class=3D"yahoo_quoted"> <div style=3D"font-family: HelveticaNeue, =
Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: =
16px;" class=3D""> <div style=3D"font-family: HelveticaNeue, Helvetica =
Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" =
class=3D""> <div dir=3D"ltr" class=3D""> <font face=3D"Arial" size=3D"2" =
class=3D""> On Thursday, March 19, 2015 10:19 AM, Ania Skorupa &lt;<a =
href=3D"mailto:ania.skorupa@yahoo.com" =
class=3D"">ania.skorupa@yahoo.com</a>&gt; wrote:<br class=3D""> </font> =
</div>  <br class=3D""><br class=3D""> <div class=3D"y_msg_container"><div=
 id=3D"yiv2313354981" class=3D""><div class=3D""><div =
style=3D"background-color: rgb(255, 255, 255); font-family: =
HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', =
sans-serif; font-size: 16px;" class=3D""><div dir=3D"ltr" =
id=3D"yiv2313354981yui_3_16_0_1_1426759782198_2563" class=3D"">Hi =
all,</div><div id=3D"yiv2313354981yui_3_16_0_1_1426759782198_2594" =
dir=3D"ltr" class=3D""><br class=3D""></div><div =
id=3D"yiv2313354981yui_3_16_0_1_1426759782198_2595" dir=3D"ltr" =
class=3D"">I am wondering if connect function in ethif is required, as =
it almost does nothing. I guess netif is the argument to the functor =
ethif, which has already connected to an interface through its own =
connect function.</div><div =
id=3D"yiv2313354981yui_3_16_0_1_1426759782198_7932" dir=3D"ltr" =
class=3D""><br class=3D""></div><div =
id=3D"yiv2313354981yui_3_16_0_1_1426759782198_7931" dir=3D"ltr" =
class=3D"">Thanks.<br class=3D""></div></div></div></div><br =
class=3D""><br class=3D""></div>  </div> </div>  =
</div></div></div>_______________________________________________<br =
class=3D"">MirageOS-devel mailing list<br class=3D""><a =
href=3D"mailto:MirageOS-devel@lists.xenproject.org" =
class=3D"">MirageOS-devel@lists.xenproject.org</a><br =
class=3D"">http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-d=
evel<br class=3D""></div></blockquote></div><br class=3D""></body></html>=

--Apple-Mail=_80FD489E-B053-4E0D-898A-2477DC351A76--


--===============0911721945468718965==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============0911721945468718965==--


From mirageos-devel-bounces@lists.xenproject.org Sat Mar 21 12:30:21 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 21 Mar 2015 12:30:21 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YZIXc-0001pm-EW; Sat, 21 Mar 2015 12:30:12 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mmatalka@gmail.com>) id 1YZIXa-0001m6-S6
	for mirageos-devel@lists.xenproject.org; Sat, 21 Mar 2015 12:30:11 +0000
Received: from [85.158.137.68] by server-15.bemta-3.messagelabs.com id
	B2/4C-10326-2546D055; Sat, 21 Mar 2015 12:30:10 +0000
X-Env-Sender: mmatalka@gmail.com
X-Msg-Ref: server-4.tower-31.messagelabs.com!1426941009!14213467!1
X-Originating-IP: [209.85.212.170]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 25150 invoked from network); 21 Mar 2015 12:30:09 -0000
Received: from mail-wi0-f170.google.com (HELO mail-wi0-f170.google.com)
	(209.85.212.170)
	by server-4.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	21 Mar 2015 12:30:09 -0000
Received: by wibgn9 with SMTP id gn9so12729094wib.1
	for <mirageos-devel@lists.xenproject.org>;
	Sat, 21 Mar 2015 05:30:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:to:cc:subject:references:date:in-reply-to:message-id
	:user-agent:mime-version:content-type;
	bh=DC7TVMUyfcGJl6ozx39KCacGBO4iRbmmRY2ukFKMw34=;
	b=cDU6jbcR7E5Zf5kAtDszSKnmFZ6ab1aE0Vmzaliod2pfqI6B5kMeiMxRupFj6fZHyl
	t75rQQqgyWaWnPS+3q3EwG3SDTAYKmJqHxdexU4PDz3o+WIUlpmBWSHYwnuUY0ycHipI
	kNKjTZQ60HKFAdcohkALnvj8746Die6yNVQSYiJ8APpo0HmKPfXFxs6DrljTniILnwnD
	mIoUeEa7mGJHfWZ2QInVbGZHyzJfPjP8nx4yRFAbINBcrqQ8UqiYHYrB0XQ74A+lL3TA
	Vvqgy2J1n4my3n7IQerh2boFoITN/yR3htN3hu2xl+E0tVMXEgircu+WeBZOFahQhAdj
	yC1Q==
X-Received: by 10.194.193.69 with SMTP id hm5mr39364915wjc.43.1426941009036;
	Sat, 21 Mar 2015 05:30:09 -0700 (PDT)
Received: from localhost ([2a01:7e00::f03c:91ff:fe70:2696])
	by mx.google.com with ESMTPSA id 14sm10434871wjv.29.2015.03.21.05.30.07
	(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Sat, 21 Mar 2015 05:30:08 -0700 (PDT)
From: Malcolm Matalka <mmatalka@gmail.com>
To: Trevor Smith <trevorsummerssmith@gmail.com>
References: <CAG-KTt-O4qTqeF=kGHvQ+zbczqmn5ODX4P974nxgrNOAgnAPXg@mail.gmail.com>
	<87pp8afq17.fsf@gmail.com>
	<CAG-KTt_wXPq1+pieM8NEHgK9=5TZyqss7eUBWJw=UdNG2Z+sKg@mail.gmail.com>
Date: Sat, 21 Mar 2015 12:30:06 +0000
In-Reply-To: <CAG-KTt_wXPq1+pieM8NEHgK9=5TZyqss7eUBWJw=UdNG2Z+sKg@mail.gmail.com>
	(Trevor Smith's message of "Sun, 15 Mar 2015 13:52:31 -0400")
Message-ID: <87zj76h6sx.fsf@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
MIME-Version: 1.0
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] CoHTTP Design: Polymorphic Variants
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

They a unit on success, but what about failure.

Consider:

type error1 = Bad1 | Bad2
type error2 = Bad3 | Bad4

val foo : unit -> (unit, error1) Result.t
val bar : unit -> (unit, error2) Result.t

What type does (>>=) have in order to make that work?

On the other hand, if we do:

type error1 = [> `Bad1 | `Bad2 ]
type error2 = [> `Bad3 | `Bad4 ]

The error values will compose and ocaml will union the variants together
so the final type of:

(foo () >>= fun () -> bar ()) is

(unit, [> `Bad1 | `Bad2 | `Bad3 | `Bad4 ]) Result.t

That is a quick explanation that may not make sense.


Trevor Smith <trevorsummerssmith@gmail.com> writes:

> Malcolm,
>
> Thanks for your response. I think I am dense and am not quite understanding
> your point. In the example you gave the foo and bar both take and return
> unit.  Can you explain a bit more your point?
>
> Trevor
>
> On Sun, Mar 15, 2015 at 7:39 AM, Malcolm Matalka <mmatalka@gmail.com> wrote:
>
>> The biggest reason is that it makes doing any monadic Result.t work
>> possible.  Consider:
>>
>> foo () >>= fun () ->
>> bar () >>= fun () ->
>> Cohttp.something () >>= function
>>   | Ok ... ->
>>   | Error ... ->
>>
>>
>> If every one of those functions returned a regular variant, you would
>> not be able to compose them like that.
>>
>> Trevor Smith <trevorsummerssmith@gmail.com> writes:
>>
>> > Hello,
>> >
>> > I am curious to hear the design tradeoffs that were considered in
>> choosing
>> > polymorphic variants vs variants in the code.mli types. I haven't really
>> > wrapped my head around why that decision was made, and am eager to learn
>> > more about real world use of polymorphic variants.
>> >
>> > Thank you.
>> >
>> > Trevor
>> > _______________________________________________
>> > MirageOS-devel mailing list
>> > MirageOS-devel@lists.xenproject.org
>> > http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>>

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Sat Mar 21 12:30:21 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 21 Mar 2015 12:30:21 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YZIXc-0001pm-EW; Sat, 21 Mar 2015 12:30:12 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mmatalka@gmail.com>) id 1YZIXa-0001m6-S6
	for mirageos-devel@lists.xenproject.org; Sat, 21 Mar 2015 12:30:11 +0000
Received: from [85.158.137.68] by server-15.bemta-3.messagelabs.com id
	B2/4C-10326-2546D055; Sat, 21 Mar 2015 12:30:10 +0000
X-Env-Sender: mmatalka@gmail.com
X-Msg-Ref: server-4.tower-31.messagelabs.com!1426941009!14213467!1
X-Originating-IP: [209.85.212.170]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 25150 invoked from network); 21 Mar 2015 12:30:09 -0000
Received: from mail-wi0-f170.google.com (HELO mail-wi0-f170.google.com)
	(209.85.212.170)
	by server-4.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	21 Mar 2015 12:30:09 -0000
Received: by wibgn9 with SMTP id gn9so12729094wib.1
	for <mirageos-devel@lists.xenproject.org>;
	Sat, 21 Mar 2015 05:30:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:to:cc:subject:references:date:in-reply-to:message-id
	:user-agent:mime-version:content-type;
	bh=DC7TVMUyfcGJl6ozx39KCacGBO4iRbmmRY2ukFKMw34=;
	b=cDU6jbcR7E5Zf5kAtDszSKnmFZ6ab1aE0Vmzaliod2pfqI6B5kMeiMxRupFj6fZHyl
	t75rQQqgyWaWnPS+3q3EwG3SDTAYKmJqHxdexU4PDz3o+WIUlpmBWSHYwnuUY0ycHipI
	kNKjTZQ60HKFAdcohkALnvj8746Die6yNVQSYiJ8APpo0HmKPfXFxs6DrljTniILnwnD
	mIoUeEa7mGJHfWZ2QInVbGZHyzJfPjP8nx4yRFAbINBcrqQ8UqiYHYrB0XQ74A+lL3TA
	Vvqgy2J1n4my3n7IQerh2boFoITN/yR3htN3hu2xl+E0tVMXEgircu+WeBZOFahQhAdj
	yC1Q==
X-Received: by 10.194.193.69 with SMTP id hm5mr39364915wjc.43.1426941009036;
	Sat, 21 Mar 2015 05:30:09 -0700 (PDT)
Received: from localhost ([2a01:7e00::f03c:91ff:fe70:2696])
	by mx.google.com with ESMTPSA id 14sm10434871wjv.29.2015.03.21.05.30.07
	(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Sat, 21 Mar 2015 05:30:08 -0700 (PDT)
From: Malcolm Matalka <mmatalka@gmail.com>
To: Trevor Smith <trevorsummerssmith@gmail.com>
References: <CAG-KTt-O4qTqeF=kGHvQ+zbczqmn5ODX4P974nxgrNOAgnAPXg@mail.gmail.com>
	<87pp8afq17.fsf@gmail.com>
	<CAG-KTt_wXPq1+pieM8NEHgK9=5TZyqss7eUBWJw=UdNG2Z+sKg@mail.gmail.com>
Date: Sat, 21 Mar 2015 12:30:06 +0000
In-Reply-To: <CAG-KTt_wXPq1+pieM8NEHgK9=5TZyqss7eUBWJw=UdNG2Z+sKg@mail.gmail.com>
	(Trevor Smith's message of "Sun, 15 Mar 2015 13:52:31 -0400")
Message-ID: <87zj76h6sx.fsf@gmail.com>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
MIME-Version: 1.0
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] CoHTTP Design: Polymorphic Variants
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

They a unit on success, but what about failure.

Consider:

type error1 = Bad1 | Bad2
type error2 = Bad3 | Bad4

val foo : unit -> (unit, error1) Result.t
val bar : unit -> (unit, error2) Result.t

What type does (>>=) have in order to make that work?

On the other hand, if we do:

type error1 = [> `Bad1 | `Bad2 ]
type error2 = [> `Bad3 | `Bad4 ]

The error values will compose and ocaml will union the variants together
so the final type of:

(foo () >>= fun () -> bar ()) is

(unit, [> `Bad1 | `Bad2 | `Bad3 | `Bad4 ]) Result.t

That is a quick explanation that may not make sense.


Trevor Smith <trevorsummerssmith@gmail.com> writes:

> Malcolm,
>
> Thanks for your response. I think I am dense and am not quite understanding
> your point. In the example you gave the foo and bar both take and return
> unit.  Can you explain a bit more your point?
>
> Trevor
>
> On Sun, Mar 15, 2015 at 7:39 AM, Malcolm Matalka <mmatalka@gmail.com> wrote:
>
>> The biggest reason is that it makes doing any monadic Result.t work
>> possible.  Consider:
>>
>> foo () >>= fun () ->
>> bar () >>= fun () ->
>> Cohttp.something () >>= function
>>   | Ok ... ->
>>   | Error ... ->
>>
>>
>> If every one of those functions returned a regular variant, you would
>> not be able to compose them like that.
>>
>> Trevor Smith <trevorsummerssmith@gmail.com> writes:
>>
>> > Hello,
>> >
>> > I am curious to hear the design tradeoffs that were considered in
>> choosing
>> > polymorphic variants vs variants in the code.mli types. I haven't really
>> > wrapped my head around why that decision was made, and am eager to learn
>> > more about real world use of polymorphic variants.
>> >
>> > Thank you.
>> >
>> > Trevor
>> > _______________________________________________
>> > MirageOS-devel mailing list
>> > MirageOS-devel@lists.xenproject.org
>> > http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>>

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Sat Mar 21 15:56:38 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 21 Mar 2015 15:56:38 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YZLlI-0007eg-O2; Sat, 21 Mar 2015 15:56:32 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <trevorsummerssmith@gmail.com>) id 1YZLlH-0007eb-54
	for mirageos-devel@lists.xenproject.org; Sat, 21 Mar 2015 15:56:31 +0000
Received: from [85.158.139.211] by server-11.bemta-5.messagelabs.com id
	61/79-24916-EA49D055; Sat, 21 Mar 2015 15:56:30 +0000
X-Env-Sender: trevorsummerssmith@gmail.com
X-Msg-Ref: server-5.tower-206.messagelabs.com!1426953386!12308223!1
X-Originating-IP: [209.85.216.172]
X-SpamReason: No, hits=0.1 required=7.0 tests=HTML_30_40,HTML_MESSAGE
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 19789 invoked from network); 21 Mar 2015 15:56:27 -0000
Received: from mail-qc0-f172.google.com (HELO mail-qc0-f172.google.com)
	(209.85.216.172)
	by server-5.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	21 Mar 2015 15:56:27 -0000
Received: by qcto4 with SMTP id o4so115906411qct.3
	for <mirageos-devel@lists.xenproject.org>;
	Sat, 21 Mar 2015 08:56:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:references:from:date:message-id:subject:to:cc
	:content-type; bh=X74bZV5RCC10v7x1V1sHH4HpPEHCAmIq5k/NbaM1MkU=;
	b=1GRrQvSGnCP97jQV/1KXVTVNRVZUE+h6aHP/nnJvNX+Tan/k6XulSF2uAke3M1jsTb
	+Pz2AYRcLHvonQkeWwU386MLN4Mc/G2QNk1E5Zncp4w0wvq/lrvnp6ddXaEPUXTtSsVq
	wa/7yN88yld6Qt5qZwmlsLVJZzoxClUF13z4tnM2j1BSavTvGeA8wUY4KIdTnVoBeFYP
	AdUkzD8SJ1OmcRlv/Nev/VJA7NAt5YdbOhpLJ0AEvBuHsD+5JR9vH4JyMxvv8KbZsxqN
	LEvE6qkfrIDGYMdsrb1VoS5KqOveb541nmbNEREwVojnXk8C5WuiVfjUOTn19VoXkXPz
	SDIQ==
X-Received: by 10.140.21.75 with SMTP id 69mr103659542qgk.13.1426953386404;
	Sat, 21 Mar 2015 08:56:26 -0700 (PDT)
MIME-Version: 1.0
References: <CAG-KTt-O4qTqeF=kGHvQ+zbczqmn5ODX4P974nxgrNOAgnAPXg@mail.gmail.com>
	<87pp8afq17.fsf@gmail.com>
	<CAG-KTt_wXPq1+pieM8NEHgK9=5TZyqss7eUBWJw=UdNG2Z+sKg@mail.gmail.com>
	<87zj76h6sx.fsf@gmail.com>
From: Trevor Smith <trevorsummerssmith@gmail.com>
Date: Sat, 21 Mar 2015 15:56:25 +0000
Message-ID: <CAG-KTt-i88vHwcptWdBPGEQqjciDiaqe1fEefY2OKsByO7cy6A@mail.gmail.com>
To: Malcolm Matalka <mmatalka@gmail.com>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] CoHTTP Design: Polymorphic Variants
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============7166784631805284876=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============7166784631805284876==
Content-Type: multipart/alternative; boundary=001a11c14fdcb532370511ce7995

--001a11c14fdcb532370511ce7995
Content-Type: text/plain; charset=UTF-8

Malcolm,
That is very clear and answers my question! Thanks for taking the time to
explain that.
Trevor
On Sat, Mar 21, 2015 at 8:30 AM Malcolm Matalka <mmatalka@gmail.com> wrote:

> They a unit on success, but what about failure.
>
> Consider:
>
> type error1 = Bad1 | Bad2
> type error2 = Bad3 | Bad4
>
> val foo : unit -> (unit, error1) Result.t
> val bar : unit -> (unit, error2) Result.t
>
> What type does (>>=) have in order to make that work?
>
> On the other hand, if we do:
>
> type error1 = [> `Bad1 | `Bad2 ]
> type error2 = [> `Bad3 | `Bad4 ]
>
> The error values will compose and ocaml will union the variants together
> so the final type of:
>
> (foo () >>= fun () -> bar ()) is
>
> (unit, [> `Bad1 | `Bad2 | `Bad3 | `Bad4 ]) Result.t
>
> That is a quick explanation that may not make sense.
>
>
> Trevor Smith <trevorsummerssmith@gmail.com> writes:
>
> > Malcolm,
> >
> > Thanks for your response. I think I am dense and am not quite
> understanding
> > your point. In the example you gave the foo and bar both take and return
> > unit.  Can you explain a bit more your point?
> >
> > Trevor
> >
> > On Sun, Mar 15, 2015 at 7:39 AM, Malcolm Matalka <mmatalka@gmail.com>
> wrote:
> >
> >> The biggest reason is that it makes doing any monadic Result.t work
> >> possible.  Consider:
> >>
> >> foo () >>= fun () ->
> >> bar () >>= fun () ->
> >> Cohttp.something () >>= function
> >>   | Ok ... ->
> >>   | Error ... ->
> >>
> >>
> >> If every one of those functions returned a regular variant, you would
> >> not be able to compose them like that.
> >>
> >> Trevor Smith <trevorsummerssmith@gmail.com> writes:
> >>
> >> > Hello,
> >> >
> >> > I am curious to hear the design tradeoffs that were considered in
> >> choosing
> >> > polymorphic variants vs variants in the code.mli types. I haven't
> really
> >> > wrapped my head around why that decision was made, and am eager to
> learn
> >> > more about real world use of polymorphic variants.
> >> >
> >> > Thank you.
> >> >
> >> > Trevor
> >> > _______________________________________________
> >> > MirageOS-devel mailing list
> >> > MirageOS-devel@lists.xenproject.org
> >> > http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
> >>
>

--001a11c14fdcb532370511ce7995
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Malcolm,<br>That is very clear and answers my question! Thanks for taking t=
he time to explain that.<br>Trevor<br><div class=3D"gmail_quote">On Sat, Ma=
r 21, 2015 at 8:30 AM Malcolm Matalka &lt;<a href=3D"mailto:mmatalka@gmail.=
com">mmatalka@gmail.com</a>&gt; wrote:<br><blockquote class=3D"gmail_quote"=
 style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Th=
ey a unit on success, but what about failure.<br>
<br>
Consider:<br>
<br>
type error1 =3D Bad1 | Bad2<br>
type error2 =3D Bad3 | Bad4<br>
<br>
val foo : unit -&gt; (unit, error1) Result.t<br>
val bar : unit -&gt; (unit, error2) Result.t<br>
<br>
What type does (&gt;&gt;=3D) have in order to make that work?<br>
<br>
On the other hand, if we do:<br>
<br>
type error1 =3D [&gt; `Bad1 | `Bad2 ]<br>
type error2 =3D [&gt; `Bad3 | `Bad4 ]<br>
<br>
The error values will compose and ocaml will union the variants together<br=
>
so the final type of:<br>
<br>
(foo () &gt;&gt;=3D fun () -&gt; bar ()) is<br>
<br>
(unit, [&gt; `Bad1 | `Bad2 | `Bad3 | `Bad4 ]) Result.t<br>
<br>
That is a quick explanation that may not make sense.<br>
<br>
<br>
Trevor Smith &lt;<a href=3D"mailto:trevorsummerssmith@gmail.com" target=3D"=
_blank">trevorsummerssmith@gmail.com</a>&gt; writes:<br>
<br>
&gt; Malcolm,<br>
&gt;<br>
&gt; Thanks for your response. I think I am dense and am not quite understa=
nding<br>
&gt; your point. In the example you gave the foo and bar both take and retu=
rn<br>
&gt; unit.=C2=A0 Can you explain a bit more your point?<br>
&gt;<br>
&gt; Trevor<br>
&gt;<br>
&gt; On Sun, Mar 15, 2015 at 7:39 AM, Malcolm Matalka &lt;<a href=3D"mailto=
:mmatalka@gmail.com" target=3D"_blank">mmatalka@gmail.com</a>&gt; wrote:<br=
>
&gt;<br>
&gt;&gt; The biggest reason is that it makes doing any monadic Result.t wor=
k<br>
&gt;&gt; possible.=C2=A0 Consider:<br>
&gt;&gt;<br>
&gt;&gt; foo () &gt;&gt;=3D fun () -&gt;<br>
&gt;&gt; bar () &gt;&gt;=3D fun () -&gt;<br>
&gt;&gt; Cohttp.something () &gt;&gt;=3D function<br>
&gt;&gt;=C2=A0 =C2=A0| Ok ... -&gt;<br>
&gt;&gt;=C2=A0 =C2=A0| Error ... -&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; If every one of those functions returned a regular variant, you wo=
uld<br>
&gt;&gt; not be able to compose them like that.<br>
&gt;&gt;<br>
&gt;&gt; Trevor Smith &lt;<a href=3D"mailto:trevorsummerssmith@gmail.com" t=
arget=3D"_blank">trevorsummerssmith@gmail.com</a>&gt; writes:<br>
&gt;&gt;<br>
&gt;&gt; &gt; Hello,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I am curious to hear the design tradeoffs that were considere=
d in<br>
&gt;&gt; choosing<br>
&gt;&gt; &gt; polymorphic variants vs variants in the code.mli types. I hav=
en&#39;t really<br>
&gt;&gt; &gt; wrapped my head around why that decision was made, and am eag=
er to learn<br>
&gt;&gt; &gt; more about real world use of polymorphic variants.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thank you.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Trevor<br>
&gt;&gt; &gt; ______________________________<u></u>_________________<br>
&gt;&gt; &gt; MirageOS-devel mailing list<br>
&gt;&gt; &gt; <a href=3D"mailto:MirageOS-devel@lists.xenproject.org" target=
=3D"_blank">MirageOS-devel@lists.<u></u>xenproject.org</a><br>
&gt;&gt; &gt; <a href=3D"http://lists.xenproject.org/cgi-bin/mailman/listin=
fo/mirageos-devel" target=3D"_blank">http://lists.xenproject.org/<u></u>cgi=
-bin/mailman/listinfo/<u></u>mirageos-devel</a><br>
&gt;&gt;<br>
</blockquote></div>

--001a11c14fdcb532370511ce7995--


--===============7166784631805284876==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============7166784631805284876==--


From mirageos-devel-bounces@lists.xenproject.org Sat Mar 21 15:56:38 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 21 Mar 2015 15:56:38 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YZLlI-0007eg-O2; Sat, 21 Mar 2015 15:56:32 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <trevorsummerssmith@gmail.com>) id 1YZLlH-0007eb-54
	for mirageos-devel@lists.xenproject.org; Sat, 21 Mar 2015 15:56:31 +0000
Received: from [85.158.139.211] by server-11.bemta-5.messagelabs.com id
	61/79-24916-EA49D055; Sat, 21 Mar 2015 15:56:30 +0000
X-Env-Sender: trevorsummerssmith@gmail.com
X-Msg-Ref: server-5.tower-206.messagelabs.com!1426953386!12308223!1
X-Originating-IP: [209.85.216.172]
X-SpamReason: No, hits=0.1 required=7.0 tests=HTML_30_40,HTML_MESSAGE
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 19789 invoked from network); 21 Mar 2015 15:56:27 -0000
Received: from mail-qc0-f172.google.com (HELO mail-qc0-f172.google.com)
	(209.85.216.172)
	by server-5.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	21 Mar 2015 15:56:27 -0000
Received: by qcto4 with SMTP id o4so115906411qct.3
	for <mirageos-devel@lists.xenproject.org>;
	Sat, 21 Mar 2015 08:56:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:references:from:date:message-id:subject:to:cc
	:content-type; bh=X74bZV5RCC10v7x1V1sHH4HpPEHCAmIq5k/NbaM1MkU=;
	b=1GRrQvSGnCP97jQV/1KXVTVNRVZUE+h6aHP/nnJvNX+Tan/k6XulSF2uAke3M1jsTb
	+Pz2AYRcLHvonQkeWwU386MLN4Mc/G2QNk1E5Zncp4w0wvq/lrvnp6ddXaEPUXTtSsVq
	wa/7yN88yld6Qt5qZwmlsLVJZzoxClUF13z4tnM2j1BSavTvGeA8wUY4KIdTnVoBeFYP
	AdUkzD8SJ1OmcRlv/Nev/VJA7NAt5YdbOhpLJ0AEvBuHsD+5JR9vH4JyMxvv8KbZsxqN
	LEvE6qkfrIDGYMdsrb1VoS5KqOveb541nmbNEREwVojnXk8C5WuiVfjUOTn19VoXkXPz
	SDIQ==
X-Received: by 10.140.21.75 with SMTP id 69mr103659542qgk.13.1426953386404;
	Sat, 21 Mar 2015 08:56:26 -0700 (PDT)
MIME-Version: 1.0
References: <CAG-KTt-O4qTqeF=kGHvQ+zbczqmn5ODX4P974nxgrNOAgnAPXg@mail.gmail.com>
	<87pp8afq17.fsf@gmail.com>
	<CAG-KTt_wXPq1+pieM8NEHgK9=5TZyqss7eUBWJw=UdNG2Z+sKg@mail.gmail.com>
	<87zj76h6sx.fsf@gmail.com>
From: Trevor Smith <trevorsummerssmith@gmail.com>
Date: Sat, 21 Mar 2015 15:56:25 +0000
Message-ID: <CAG-KTt-i88vHwcptWdBPGEQqjciDiaqe1fEefY2OKsByO7cy6A@mail.gmail.com>
To: Malcolm Matalka <mmatalka@gmail.com>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] CoHTTP Design: Polymorphic Variants
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============7166784631805284876=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============7166784631805284876==
Content-Type: multipart/alternative; boundary=001a11c14fdcb532370511ce7995

--001a11c14fdcb532370511ce7995
Content-Type: text/plain; charset=UTF-8

Malcolm,
That is very clear and answers my question! Thanks for taking the time to
explain that.
Trevor
On Sat, Mar 21, 2015 at 8:30 AM Malcolm Matalka <mmatalka@gmail.com> wrote:

> They a unit on success, but what about failure.
>
> Consider:
>
> type error1 = Bad1 | Bad2
> type error2 = Bad3 | Bad4
>
> val foo : unit -> (unit, error1) Result.t
> val bar : unit -> (unit, error2) Result.t
>
> What type does (>>=) have in order to make that work?
>
> On the other hand, if we do:
>
> type error1 = [> `Bad1 | `Bad2 ]
> type error2 = [> `Bad3 | `Bad4 ]
>
> The error values will compose and ocaml will union the variants together
> so the final type of:
>
> (foo () >>= fun () -> bar ()) is
>
> (unit, [> `Bad1 | `Bad2 | `Bad3 | `Bad4 ]) Result.t
>
> That is a quick explanation that may not make sense.
>
>
> Trevor Smith <trevorsummerssmith@gmail.com> writes:
>
> > Malcolm,
> >
> > Thanks for your response. I think I am dense and am not quite
> understanding
> > your point. In the example you gave the foo and bar both take and return
> > unit.  Can you explain a bit more your point?
> >
> > Trevor
> >
> > On Sun, Mar 15, 2015 at 7:39 AM, Malcolm Matalka <mmatalka@gmail.com>
> wrote:
> >
> >> The biggest reason is that it makes doing any monadic Result.t work
> >> possible.  Consider:
> >>
> >> foo () >>= fun () ->
> >> bar () >>= fun () ->
> >> Cohttp.something () >>= function
> >>   | Ok ... ->
> >>   | Error ... ->
> >>
> >>
> >> If every one of those functions returned a regular variant, you would
> >> not be able to compose them like that.
> >>
> >> Trevor Smith <trevorsummerssmith@gmail.com> writes:
> >>
> >> > Hello,
> >> >
> >> > I am curious to hear the design tradeoffs that were considered in
> >> choosing
> >> > polymorphic variants vs variants in the code.mli types. I haven't
> really
> >> > wrapped my head around why that decision was made, and am eager to
> learn
> >> > more about real world use of polymorphic variants.
> >> >
> >> > Thank you.
> >> >
> >> > Trevor
> >> > _______________________________________________
> >> > MirageOS-devel mailing list
> >> > MirageOS-devel@lists.xenproject.org
> >> > http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
> >>
>

--001a11c14fdcb532370511ce7995
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Malcolm,<br>That is very clear and answers my question! Thanks for taking t=
he time to explain that.<br>Trevor<br><div class=3D"gmail_quote">On Sat, Ma=
r 21, 2015 at 8:30 AM Malcolm Matalka &lt;<a href=3D"mailto:mmatalka@gmail.=
com">mmatalka@gmail.com</a>&gt; wrote:<br><blockquote class=3D"gmail_quote"=
 style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Th=
ey a unit on success, but what about failure.<br>
<br>
Consider:<br>
<br>
type error1 =3D Bad1 | Bad2<br>
type error2 =3D Bad3 | Bad4<br>
<br>
val foo : unit -&gt; (unit, error1) Result.t<br>
val bar : unit -&gt; (unit, error2) Result.t<br>
<br>
What type does (&gt;&gt;=3D) have in order to make that work?<br>
<br>
On the other hand, if we do:<br>
<br>
type error1 =3D [&gt; `Bad1 | `Bad2 ]<br>
type error2 =3D [&gt; `Bad3 | `Bad4 ]<br>
<br>
The error values will compose and ocaml will union the variants together<br=
>
so the final type of:<br>
<br>
(foo () &gt;&gt;=3D fun () -&gt; bar ()) is<br>
<br>
(unit, [&gt; `Bad1 | `Bad2 | `Bad3 | `Bad4 ]) Result.t<br>
<br>
That is a quick explanation that may not make sense.<br>
<br>
<br>
Trevor Smith &lt;<a href=3D"mailto:trevorsummerssmith@gmail.com" target=3D"=
_blank">trevorsummerssmith@gmail.com</a>&gt; writes:<br>
<br>
&gt; Malcolm,<br>
&gt;<br>
&gt; Thanks for your response. I think I am dense and am not quite understa=
nding<br>
&gt; your point. In the example you gave the foo and bar both take and retu=
rn<br>
&gt; unit.=C2=A0 Can you explain a bit more your point?<br>
&gt;<br>
&gt; Trevor<br>
&gt;<br>
&gt; On Sun, Mar 15, 2015 at 7:39 AM, Malcolm Matalka &lt;<a href=3D"mailto=
:mmatalka@gmail.com" target=3D"_blank">mmatalka@gmail.com</a>&gt; wrote:<br=
>
&gt;<br>
&gt;&gt; The biggest reason is that it makes doing any monadic Result.t wor=
k<br>
&gt;&gt; possible.=C2=A0 Consider:<br>
&gt;&gt;<br>
&gt;&gt; foo () &gt;&gt;=3D fun () -&gt;<br>
&gt;&gt; bar () &gt;&gt;=3D fun () -&gt;<br>
&gt;&gt; Cohttp.something () &gt;&gt;=3D function<br>
&gt;&gt;=C2=A0 =C2=A0| Ok ... -&gt;<br>
&gt;&gt;=C2=A0 =C2=A0| Error ... -&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; If every one of those functions returned a regular variant, you wo=
uld<br>
&gt;&gt; not be able to compose them like that.<br>
&gt;&gt;<br>
&gt;&gt; Trevor Smith &lt;<a href=3D"mailto:trevorsummerssmith@gmail.com" t=
arget=3D"_blank">trevorsummerssmith@gmail.com</a>&gt; writes:<br>
&gt;&gt;<br>
&gt;&gt; &gt; Hello,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I am curious to hear the design tradeoffs that were considere=
d in<br>
&gt;&gt; choosing<br>
&gt;&gt; &gt; polymorphic variants vs variants in the code.mli types. I hav=
en&#39;t really<br>
&gt;&gt; &gt; wrapped my head around why that decision was made, and am eag=
er to learn<br>
&gt;&gt; &gt; more about real world use of polymorphic variants.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Thank you.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Trevor<br>
&gt;&gt; &gt; ______________________________<u></u>_________________<br>
&gt;&gt; &gt; MirageOS-devel mailing list<br>
&gt;&gt; &gt; <a href=3D"mailto:MirageOS-devel@lists.xenproject.org" target=
=3D"_blank">MirageOS-devel@lists.<u></u>xenproject.org</a><br>
&gt;&gt; &gt; <a href=3D"http://lists.xenproject.org/cgi-bin/mailman/listin=
fo/mirageos-devel" target=3D"_blank">http://lists.xenproject.org/<u></u>cgi=
-bin/mailman/listinfo/<u></u>mirageos-devel</a><br>
&gt;&gt;<br>
</blockquote></div>

--001a11c14fdcb532370511ce7995--


--===============7166784631805284876==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============7166784631805284876==--


From mirageos-devel-bounces@lists.xenproject.org Sun Mar 22 13:44:02 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 22 Mar 2015 13:44:02 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YZgAU-0001Fx-IA; Sun, 22 Mar 2015 13:43:54 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YZgAT-0001Fs-5W
	for mirageos-devel@lists.xenproject.org; Sun, 22 Mar 2015 13:43:53 +0000
Received: from [193.109.254.147] by server-1.bemta-14.messagelabs.com id
	B1/26-01386-817CE055; Sun, 22 Mar 2015 13:43:52 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-13.tower-27.messagelabs.com!1427031831!12156319!1
X-Originating-IP: [209.85.217.170]
X-SpamReason: No, hits=1.1 required=7.0 tests=BODY_RANDOM_LONG,
	MAILTO_TO_SPAM_ADDR,RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 24176 invoked from network); 22 Mar 2015 13:43:51 -0000
Received: from mail-lb0-f170.google.com (HELO mail-lb0-f170.google.com)
	(209.85.217.170)
	by server-13.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	22 Mar 2015 13:43:51 -0000
Received: by lbcgn8 with SMTP id gn8so102564564lbc.2
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 22 Mar 2015 06:43:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=A17vCsvzzXzz4I7VBD7QHfCN/sIyVRd4ggpUbcntP3Y=;
	b=dfKcJbwedwK0wgESmZ7Rqtg0Tr7Z+lltMM6/ck4rj/eBRE8GwMSUuVYW+sblDXb8+/
	WeZMXy7NMWYAO6kr4oUAIcw3tKrIA62BCIZU0gpfoJSLoXMAe+fLixf6IYaGXpuirBPJ
	mjxFnrWRBvXkJ4ZmrempR/H4SZbuRTpW1h3/ENewcPSMaWN4K17bPfmVkoSqqy6/4R2B
	onxytLsbc1cpOFcJxzXiAQbWjpCi8y7/0ZGZxXKzhr4czcoVfNL5XXH217ILCSJ/y1YU
	KXxDzz2cBIscOsyabR3PJlo/shjAMRf8U3bHIcUfjVDjEz16czXk1Jt5UfCV1KLQ2hJi
	gAvA==
MIME-Version: 1.0
X-Received: by 10.152.6.197 with SMTP id d5mr9437209laa.121.1427031830419;
	Sun, 22 Mar 2015 06:43:50 -0700 (PDT)
Received: by 10.25.207.17 with HTTP; Sun, 22 Mar 2015 06:43:50 -0700 (PDT)
In-Reply-To: <87lhk4csew.fsf@study.localdomain>
References: <CAG4opy9mf+NEhYAs-tj0JYNocVS0dGU9oxqam+hqFK5ZJq7VLg@mail.gmail.com>
	<20150202.014549.1883720051237442569.Christophe.Troestler@umons.ac.be>
	<CAG4opy9X-rg5qY+Yu0c-OJ8NumJSAPMVLr01xoHt99y9_i==8w@mail.gmail.com>
	<20150204.001614.26478837567139584.Christophe.Troestler@umons.ac.be>
	<CAG4opy8uTBQS4cM75dYEm=Jsa3078wMPNW+BQEHNsu7Mb4OJ8Q@mail.gmail.com>
	<87oap97rvw.fsf@study.localdomain>
	<CAG4opy9e5iq7rMPrSDzqiPbJZeJe8Wctg0trc1CbFZJG8ARNqw@mail.gmail.com>
	<87lhk4csew.fsf@study.localdomain>
Date: Sun, 22 Mar 2015 13:43:50 +0000
Message-ID: <CAG4opy9AdJwqcPZyP6KDoPR4-25NDqmUiApSX_D9obraQ2y0jg@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: Leo White <lpw25@cam.ac.uk>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Error handling in Mirage - request for
	comments!
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 11 February 2015 at 16:41, Leo White <lpw25@cam.ac.uk> wrote:
>>
>> I've had a go at writing this proposal up ("system 5"):
>>
>>   https://github.com/talex5/mirage-www/blob/errors/tmpl/wiki/error-handling.md
>>
>> I think someone who wants to advocate this style should check it /
>> change it. It probably needs some worked examples showing it being
>> used too.
>>
>
> The interface given for "system 5" is not comparable for the one given
> for "system 4", giving a false sense of verbosity to the "system 5"
> example. The equivalent to the "system 4" example, would just be:

Good point. I've updated the system 4 example to include the exception
definitions:

https://github.com/talex5/mirage-www/commit/97b149b9e04e9127920961d25f5082e36c124bc4

>   type error
>
>   val pp_error : formatter -> error -> string
>
>   val read :
>     t -> int64 -> page_aligned_buffer list ->
>     (int, error) result
>
> Constructors of `error` should only be exposed if they are intended to
> be matched on. So if `read` has a kind of error ``Foo` which was
> intended to be matched on then the "system 5" approach would be:
>
>   type error = private [> `Foo]
>
>   val pp_error : formatter -> error -> string
>
>   val read :
>     t -> int64 -> page_aligned_buffer list ->
>     (int, error) result
>
> whilst "system 4" would probably look like:
>
>   exception Foo
>
>   val read :
>     t -> int64 -> page_aligned_buffer list -> int
>
> The splitting of `error` up into `write_error` and `read_error` is only
> needed if you have an interface with different sets of matchable
> errors. So if you had a `read` function with a matchable error ``Foo`
> and a `write` function with matchable error ``Bar`, then you would get
> the following:
>
>   type read_error = private [> `Foo]
>   type write_error = private [> `Bar]
>
>   type error
>   val pp_error : formatter -> error -> string
>
>   val write_error : write_error -> error
>   val read_error : read_error -> error
>
>   val read :
>     t -> int64 -> page_aligned_buffer list ->
>     (int, read_error) result
>
>   val write :
>     t -> int64 -> page_aligned_buffer list ->
>     (int, write_error) result
>
> whilst "system 4" would probably look like:
>
>   exception Foo
>
>   exception Bar
>
>   val read :
>     t -> int64 -> page_aligned_buffer list -> int
>
>   val write :
>     t -> int64 -> page_aligned_buffer list -> int
>
> A key benefit of "system 5" is that the signature contains all the
> interesting information about `read` and `write`. It clearly states that
> they are expected to fail sometimes, and that the only errors on which it is
> reasonable to behave specially are a `Foo` returned by `read` or a `Bar`
> returned by `write`. `System 4` does not convey any of this information.

Yes, but the question is whether this information is worth the
overhead. In particular:

- We must assume that some implementation of a Mirage module type may
produce an error (they're all about I/O, after all), so annotating
every function to say this doesn't provide any extra information.

- Knowing that e.g. `read` won't return `Is_read_only` is useful when
doing exhaustive matching, but we can't do that anyway for generic
module types.

>>> Some nice combinators should be provided for using ('a, 'b) Result.t and
>>> ('a, 'b) Result.t Lwt. and for lifting an ('a, Foo.error) Result.t into
>>> an ('a, Bar.error) Result.t.
>>>
>>> Exceptions that escape their intended scope, should always be treated as
>>> a programming error.
>>
>> Yes, by definition. But what should the "intended scope" be, and how
>> do we ensure the producer and consumers of the exception agree?
>
> Exceptions should basically never delibrately cross module
> boundaries. They should certainly not be part of the exposed API of a
> library. By "exceptions that escape their scope" I essentially meant
> exceptions used in third-party APIs (e.g. Not_found produced by
> List.find), these should always be caught as early as possible and
> handled appropriately.
>
> Occasionally it is reasonable for an exception like "Invalid_argument"
> to be part of a library API, where the exception is not intended to be
> caught but merely to indicate that there has been a programmer error.
>
> It is also reasonable to use exceptions locally for control-flow, but
> again these should not escape into the visible API.

That's one approach, but others are possible (though I think everyone
agrees that Not_found shouldn't be an exception). Personally, I'd say
anything you wouldn't feel comfortable displaying to the user
shouldn't be an exception.


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Sun Mar 22 13:44:02 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 22 Mar 2015 13:44:02 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YZgAU-0001Fx-IA; Sun, 22 Mar 2015 13:43:54 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YZgAT-0001Fs-5W
	for mirageos-devel@lists.xenproject.org; Sun, 22 Mar 2015 13:43:53 +0000
Received: from [193.109.254.147] by server-1.bemta-14.messagelabs.com id
	B1/26-01386-817CE055; Sun, 22 Mar 2015 13:43:52 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-13.tower-27.messagelabs.com!1427031831!12156319!1
X-Originating-IP: [209.85.217.170]
X-SpamReason: No, hits=1.1 required=7.0 tests=BODY_RANDOM_LONG,
	MAILTO_TO_SPAM_ADDR,RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 24176 invoked from network); 22 Mar 2015 13:43:51 -0000
Received: from mail-lb0-f170.google.com (HELO mail-lb0-f170.google.com)
	(209.85.217.170)
	by server-13.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	22 Mar 2015 13:43:51 -0000
Received: by lbcgn8 with SMTP id gn8so102564564lbc.2
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 22 Mar 2015 06:43:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=A17vCsvzzXzz4I7VBD7QHfCN/sIyVRd4ggpUbcntP3Y=;
	b=dfKcJbwedwK0wgESmZ7Rqtg0Tr7Z+lltMM6/ck4rj/eBRE8GwMSUuVYW+sblDXb8+/
	WeZMXy7NMWYAO6kr4oUAIcw3tKrIA62BCIZU0gpfoJSLoXMAe+fLixf6IYaGXpuirBPJ
	mjxFnrWRBvXkJ4ZmrempR/H4SZbuRTpW1h3/ENewcPSMaWN4K17bPfmVkoSqqy6/4R2B
	onxytLsbc1cpOFcJxzXiAQbWjpCi8y7/0ZGZxXKzhr4czcoVfNL5XXH217ILCSJ/y1YU
	KXxDzz2cBIscOsyabR3PJlo/shjAMRf8U3bHIcUfjVDjEz16czXk1Jt5UfCV1KLQ2hJi
	gAvA==
MIME-Version: 1.0
X-Received: by 10.152.6.197 with SMTP id d5mr9437209laa.121.1427031830419;
	Sun, 22 Mar 2015 06:43:50 -0700 (PDT)
Received: by 10.25.207.17 with HTTP; Sun, 22 Mar 2015 06:43:50 -0700 (PDT)
In-Reply-To: <87lhk4csew.fsf@study.localdomain>
References: <CAG4opy9mf+NEhYAs-tj0JYNocVS0dGU9oxqam+hqFK5ZJq7VLg@mail.gmail.com>
	<20150202.014549.1883720051237442569.Christophe.Troestler@umons.ac.be>
	<CAG4opy9X-rg5qY+Yu0c-OJ8NumJSAPMVLr01xoHt99y9_i==8w@mail.gmail.com>
	<20150204.001614.26478837567139584.Christophe.Troestler@umons.ac.be>
	<CAG4opy8uTBQS4cM75dYEm=Jsa3078wMPNW+BQEHNsu7Mb4OJ8Q@mail.gmail.com>
	<87oap97rvw.fsf@study.localdomain>
	<CAG4opy9e5iq7rMPrSDzqiPbJZeJe8Wctg0trc1CbFZJG8ARNqw@mail.gmail.com>
	<87lhk4csew.fsf@study.localdomain>
Date: Sun, 22 Mar 2015 13:43:50 +0000
Message-ID: <CAG4opy9AdJwqcPZyP6KDoPR4-25NDqmUiApSX_D9obraQ2y0jg@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: Leo White <lpw25@cam.ac.uk>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Error handling in Mirage - request for
	comments!
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 11 February 2015 at 16:41, Leo White <lpw25@cam.ac.uk> wrote:
>>
>> I've had a go at writing this proposal up ("system 5"):
>>
>>   https://github.com/talex5/mirage-www/blob/errors/tmpl/wiki/error-handling.md
>>
>> I think someone who wants to advocate this style should check it /
>> change it. It probably needs some worked examples showing it being
>> used too.
>>
>
> The interface given for "system 5" is not comparable for the one given
> for "system 4", giving a false sense of verbosity to the "system 5"
> example. The equivalent to the "system 4" example, would just be:

Good point. I've updated the system 4 example to include the exception
definitions:

https://github.com/talex5/mirage-www/commit/97b149b9e04e9127920961d25f5082e36c124bc4

>   type error
>
>   val pp_error : formatter -> error -> string
>
>   val read :
>     t -> int64 -> page_aligned_buffer list ->
>     (int, error) result
>
> Constructors of `error` should only be exposed if they are intended to
> be matched on. So if `read` has a kind of error ``Foo` which was
> intended to be matched on then the "system 5" approach would be:
>
>   type error = private [> `Foo]
>
>   val pp_error : formatter -> error -> string
>
>   val read :
>     t -> int64 -> page_aligned_buffer list ->
>     (int, error) result
>
> whilst "system 4" would probably look like:
>
>   exception Foo
>
>   val read :
>     t -> int64 -> page_aligned_buffer list -> int
>
> The splitting of `error` up into `write_error` and `read_error` is only
> needed if you have an interface with different sets of matchable
> errors. So if you had a `read` function with a matchable error ``Foo`
> and a `write` function with matchable error ``Bar`, then you would get
> the following:
>
>   type read_error = private [> `Foo]
>   type write_error = private [> `Bar]
>
>   type error
>   val pp_error : formatter -> error -> string
>
>   val write_error : write_error -> error
>   val read_error : read_error -> error
>
>   val read :
>     t -> int64 -> page_aligned_buffer list ->
>     (int, read_error) result
>
>   val write :
>     t -> int64 -> page_aligned_buffer list ->
>     (int, write_error) result
>
> whilst "system 4" would probably look like:
>
>   exception Foo
>
>   exception Bar
>
>   val read :
>     t -> int64 -> page_aligned_buffer list -> int
>
>   val write :
>     t -> int64 -> page_aligned_buffer list -> int
>
> A key benefit of "system 5" is that the signature contains all the
> interesting information about `read` and `write`. It clearly states that
> they are expected to fail sometimes, and that the only errors on which it is
> reasonable to behave specially are a `Foo` returned by `read` or a `Bar`
> returned by `write`. `System 4` does not convey any of this information.

Yes, but the question is whether this information is worth the
overhead. In particular:

- We must assume that some implementation of a Mirage module type may
produce an error (they're all about I/O, after all), so annotating
every function to say this doesn't provide any extra information.

- Knowing that e.g. `read` won't return `Is_read_only` is useful when
doing exhaustive matching, but we can't do that anyway for generic
module types.

>>> Some nice combinators should be provided for using ('a, 'b) Result.t and
>>> ('a, 'b) Result.t Lwt. and for lifting an ('a, Foo.error) Result.t into
>>> an ('a, Bar.error) Result.t.
>>>
>>> Exceptions that escape their intended scope, should always be treated as
>>> a programming error.
>>
>> Yes, by definition. But what should the "intended scope" be, and how
>> do we ensure the producer and consumers of the exception agree?
>
> Exceptions should basically never delibrately cross module
> boundaries. They should certainly not be part of the exposed API of a
> library. By "exceptions that escape their scope" I essentially meant
> exceptions used in third-party APIs (e.g. Not_found produced by
> List.find), these should always be caught as early as possible and
> handled appropriately.
>
> Occasionally it is reasonable for an exception like "Invalid_argument"
> to be part of a library API, where the exception is not intended to be
> caught but merely to indicate that there has been a programmer error.
>
> It is also reasonable to use exceptions locally for control-flow, but
> again these should not escape into the visible API.

That's one approach, but others are possible (though I think everyone
agrees that Not_found shouldn't be an exception). Personally, I'd say
anything you wouldn't feel comfortable displaying to the user
shouldn't be an exception.


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Sun Mar 22 15:03:16 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 22 Mar 2015 15:03:16 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YZhPC-0002U3-1L; Sun, 22 Mar 2015 15:03:10 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <daniel.buenzli@erratique.ch>) id 1YZhPA-0002Ty-BK
	for mirageos-devel@lists.xenproject.org; Sun, 22 Mar 2015 15:03:08 +0000
Received: from [85.158.139.211] by server-13.bemta-5.messagelabs.com id
	5B/16-29186-BA9DE055; Sun, 22 Mar 2015 15:03:07 +0000
X-Env-Sender: daniel.buenzli@erratique.ch
X-Msg-Ref: server-3.tower-206.messagelabs.com!1427036584!4835065!1
X-Originating-IP: [74.55.86.74]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNzQuNTUuODYuNzQgPT4gMzA4NTYz\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 1455 invoked from network); 22 Mar 2015 15:03:05 -0000
Received: from mail6.webfaction.com (HELO smtp.webfaction.com) (74.55.86.74)
	by server-3.tower-206.messagelabs.com with SMTP;
	22 Mar 2015 15:03:05 -0000
Received: from [172.20.10.2]
	(59.237.197.178.dynamic.wless.lssmb00p-cgnat.res.cust.swisscom.ch
	[178.197.237.59])
	by smtp.webfaction.com (Postfix) with ESMTP id 0992D20F182B;
	Sun, 22 Mar 2015 15:03:02 +0000 (UTC)
Date: Sun, 22 Mar 2015 16:02:59 +0100
From: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
To: Thomas Leonard <talex5@gmail.com>
Message-ID: <CF8B685CB30142548F7684212DCB340A@erratique.ch>
In-Reply-To: <CAG4opy9AdJwqcPZyP6KDoPR4-25NDqmUiApSX_D9obraQ2y0jg@mail.gmail.com>
References: <CAG4opy9mf+NEhYAs-tj0JYNocVS0dGU9oxqam+hqFK5ZJq7VLg@mail.gmail.com>
	<20150202.014549.1883720051237442569.Christophe.Troestler@umons.ac.be>
	<CAG4opy9X-rg5qY+Yu0c-OJ8NumJSAPMVLr01xoHt99y9_i==8w@mail.gmail.com>
	<20150204.001614.26478837567139584.Christophe.Troestler@umons.ac.be>
	<CAG4opy8uTBQS4cM75dYEm=Jsa3078wMPNW+BQEHNsu7Mb4OJ8Q@mail.gmail.com>
	<87oap97rvw.fsf@study.localdomain>
	<CAG4opy9e5iq7rMPrSDzqiPbJZeJe8Wctg0trc1CbFZJG8ARNqw@mail.gmail.com>
	<87lhk4csew.fsf@study.localdomain>
	<CAG4opy9AdJwqcPZyP6KDoPR4-25NDqmUiApSX_D9obraQ2y0jg@mail.gmail.com>
X-Mailer: sparrow 1.6.4 (build 1178)
MIME-Version: 1.0
Content-Disposition: inline
Cc: Leo White <lpw25@cam.ac.uk>,
	"=?utf-8?Q?mirageos-devel=40lists.xenproject.org?="
	<mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Error handling in Mirage - request for
 comments!
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

TGUgZGltYW5jaGUsIDIyIG1hcnMgMjAxNSDDoCAxNDo0MywgVGhvbWFzIExlb25hcmQgYSDDqWNy
aXQgOgo+IFllcywgYnV0IHRoZSBxdWVzdGlvbiBpcyB3aGV0aGVyIHRoaXMgaW5mb3JtYXRpb24g
aXMgd29ydGggdGhlCj4gb3ZlcmhlYWQuICAKCkFnYWluIHByb2dyYW1tYXRpY2FsbHkgdGhlcmUn
cyBubyBvdmVyaGVhZCBpZiB5b3UgYXJlIHVzaW5nIHRoZSByaWdodCBzZXQgb2YgY29tYmluYXRv
cnMgYW5kIHR5cGUgZGVmaW5pdGlvbnMuIFlvdSBjYW4gc2F5IHRoZXJlIGlzIGEgcGVyZm9ybWFu
Y2Ugb3ZlcmhlYWQgYnV0IGF0IGEgY2VydGFpbiBwb2ludCB5b3UgaGF2ZSB0byBjaG9vc2Ugd2hl
dGhlciB5b3Ugd2FudCBjb3JyZWN0LCBzYWZlIGFuZCByZWxpYWJsZSBzeXN0ZW1zIG9yIGZhdm91
ciBwZXJmb3JtYW5jZS4gSSdtIHN0cm9uZ2x5IGluIGZhdm91ciBvZiB0aGUgZm9ybWVyIGFuZCBo
YXZlIGJvdGggd2hlbmV2ZXIgcG9zc2libGUuICAKCj4gLSBXZSBtdXN0IGFzc3VtZSB0aGF0IHNv
bWUgaW1wbGVtZW50YXRpb24gb2YgYSBNaXJhZ2UgbW9kdWxlIHR5cGUgbWF5Cj4gcHJvZHVjZSBh
biBlcnJvciAodGhleSdyZSBhbGwgYWJvdXQgSS9PLCBhZnRlciBhbGwpLCBzbyBhbm5vdGF0aW5n
Cj4gZXZlcnkgZnVuY3Rpb24gdG8gc2F5IHRoaXMgZG9lc24ndCBwcm92aWRlIGFueSBleHRyYSBp
bmZvcm1hdGlvbi4KClRoaXMgbWlzc2VzIHRoZSBwb2ludC4gSGF2aW5nIGV2ZXJ5IGZ1bmN0aW9u
cyBhbm5vdGF0ZWQgcHJvdmlkZXMgeW91IGluZm9ybWF0aW9uICppbiB0aGUgdHlwZSBzeXN0ZW0q
IHdoaWNoIGdpdmVzIHlvdSBhIG1lY2hhbmlzbSB0byAqZW5mb3JjZSogZ29vZCBhbmQgY29ycmVj
dCBlcnJvciBoYW5kbGluZyBpbiB0aGUgcHJvZ3JhbS4gVXNpbmcgZXhjZXB0aW9ucyBkb2Vzbid0
IGFsbG93IHlvdSB0byBlbmZvcmNlIGVycm9yIGhhbmRsaW5nIGFuZCBpcyBvdGhlcndpc2UgdmVy
eSBkYW5nZXJvdXMgYmVjYXVzZSAxKSBZb3UgYmFzaWNhbGx5IGRvbid0IGtub3cgd2hlbiB0aGV5
IGhhcHBlbiBleGNlcHQgdGhyb3VnaCBkb2N1bWVudGF0aW9uLCBzbyB0aGV5IGFyZSBlYXN5IHRv
IG1pc3MgYW5kIG5vdCBoYW5kbGUgdGhlbSAoaWYgZG9jdW1lbnRhdGlvbiBleGlzdHMgYXQgYWxs
Li4uKSAyKSBUaGV5IGRpc3J1cHQgeW91ciB3aG9sZSBjYWxsc3RhY2ssIHBvc3NpYmx5IGxlYWtp
bmcgcmVzb3VyY2VzIGFuZCBwdXR0aW5nIHlvdXIgcHJvZ3JhbSBpbiBhIGJhZCBzdGF0ZSBieSBi
cmVha2luZyBpbnZhcmlhbnRzIHRoYXQgc2hvdWxkIGhvbGQgaW4gb3VyIHN5c3RlbSAgMykgVGhl
IHNvdXJjZSBvZiB0aGUgZXhjZXB0aW9uIG1heSBiZSBoYXJkIHRvIHRyYWNrIDQpIFRoZXkgYXJl
IGhhcmQgdG8gcmVhc29uIGFib3V0IGFuZCBoYW5kbGUgY29ycmVjdGx5LgogIApCZXN0LAoKRGFu
aWVsCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpNaXJh
Z2VPUy1kZXZlbCBtYWlsaW5nIGxpc3QKTWlyYWdlT1MtZGV2ZWxAbGlzdHMueGVucHJvamVjdC5v
cmcKaHR0cDovL2xpc3RzLnhlbnByb2plY3Qub3JnL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9t
aXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Sun Mar 22 15:03:16 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 22 Mar 2015 15:03:16 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YZhPC-0002U3-1L; Sun, 22 Mar 2015 15:03:10 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <daniel.buenzli@erratique.ch>) id 1YZhPA-0002Ty-BK
	for mirageos-devel@lists.xenproject.org; Sun, 22 Mar 2015 15:03:08 +0000
Received: from [85.158.139.211] by server-13.bemta-5.messagelabs.com id
	5B/16-29186-BA9DE055; Sun, 22 Mar 2015 15:03:07 +0000
X-Env-Sender: daniel.buenzli@erratique.ch
X-Msg-Ref: server-3.tower-206.messagelabs.com!1427036584!4835065!1
X-Originating-IP: [74.55.86.74]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNzQuNTUuODYuNzQgPT4gMzA4NTYz\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 1455 invoked from network); 22 Mar 2015 15:03:05 -0000
Received: from mail6.webfaction.com (HELO smtp.webfaction.com) (74.55.86.74)
	by server-3.tower-206.messagelabs.com with SMTP;
	22 Mar 2015 15:03:05 -0000
Received: from [172.20.10.2]
	(59.237.197.178.dynamic.wless.lssmb00p-cgnat.res.cust.swisscom.ch
	[178.197.237.59])
	by smtp.webfaction.com (Postfix) with ESMTP id 0992D20F182B;
	Sun, 22 Mar 2015 15:03:02 +0000 (UTC)
Date: Sun, 22 Mar 2015 16:02:59 +0100
From: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
To: Thomas Leonard <talex5@gmail.com>
Message-ID: <CF8B685CB30142548F7684212DCB340A@erratique.ch>
In-Reply-To: <CAG4opy9AdJwqcPZyP6KDoPR4-25NDqmUiApSX_D9obraQ2y0jg@mail.gmail.com>
References: <CAG4opy9mf+NEhYAs-tj0JYNocVS0dGU9oxqam+hqFK5ZJq7VLg@mail.gmail.com>
	<20150202.014549.1883720051237442569.Christophe.Troestler@umons.ac.be>
	<CAG4opy9X-rg5qY+Yu0c-OJ8NumJSAPMVLr01xoHt99y9_i==8w@mail.gmail.com>
	<20150204.001614.26478837567139584.Christophe.Troestler@umons.ac.be>
	<CAG4opy8uTBQS4cM75dYEm=Jsa3078wMPNW+BQEHNsu7Mb4OJ8Q@mail.gmail.com>
	<87oap97rvw.fsf@study.localdomain>
	<CAG4opy9e5iq7rMPrSDzqiPbJZeJe8Wctg0trc1CbFZJG8ARNqw@mail.gmail.com>
	<87lhk4csew.fsf@study.localdomain>
	<CAG4opy9AdJwqcPZyP6KDoPR4-25NDqmUiApSX_D9obraQ2y0jg@mail.gmail.com>
X-Mailer: sparrow 1.6.4 (build 1178)
MIME-Version: 1.0
Content-Disposition: inline
Cc: Leo White <lpw25@cam.ac.uk>,
	"=?utf-8?Q?mirageos-devel=40lists.xenproject.org?="
	<mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Error handling in Mirage - request for
 comments!
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

TGUgZGltYW5jaGUsIDIyIG1hcnMgMjAxNSDDoCAxNDo0MywgVGhvbWFzIExlb25hcmQgYSDDqWNy
aXQgOgo+IFllcywgYnV0IHRoZSBxdWVzdGlvbiBpcyB3aGV0aGVyIHRoaXMgaW5mb3JtYXRpb24g
aXMgd29ydGggdGhlCj4gb3ZlcmhlYWQuICAKCkFnYWluIHByb2dyYW1tYXRpY2FsbHkgdGhlcmUn
cyBubyBvdmVyaGVhZCBpZiB5b3UgYXJlIHVzaW5nIHRoZSByaWdodCBzZXQgb2YgY29tYmluYXRv
cnMgYW5kIHR5cGUgZGVmaW5pdGlvbnMuIFlvdSBjYW4gc2F5IHRoZXJlIGlzIGEgcGVyZm9ybWFu
Y2Ugb3ZlcmhlYWQgYnV0IGF0IGEgY2VydGFpbiBwb2ludCB5b3UgaGF2ZSB0byBjaG9vc2Ugd2hl
dGhlciB5b3Ugd2FudCBjb3JyZWN0LCBzYWZlIGFuZCByZWxpYWJsZSBzeXN0ZW1zIG9yIGZhdm91
ciBwZXJmb3JtYW5jZS4gSSdtIHN0cm9uZ2x5IGluIGZhdm91ciBvZiB0aGUgZm9ybWVyIGFuZCBo
YXZlIGJvdGggd2hlbmV2ZXIgcG9zc2libGUuICAKCj4gLSBXZSBtdXN0IGFzc3VtZSB0aGF0IHNv
bWUgaW1wbGVtZW50YXRpb24gb2YgYSBNaXJhZ2UgbW9kdWxlIHR5cGUgbWF5Cj4gcHJvZHVjZSBh
biBlcnJvciAodGhleSdyZSBhbGwgYWJvdXQgSS9PLCBhZnRlciBhbGwpLCBzbyBhbm5vdGF0aW5n
Cj4gZXZlcnkgZnVuY3Rpb24gdG8gc2F5IHRoaXMgZG9lc24ndCBwcm92aWRlIGFueSBleHRyYSBp
bmZvcm1hdGlvbi4KClRoaXMgbWlzc2VzIHRoZSBwb2ludC4gSGF2aW5nIGV2ZXJ5IGZ1bmN0aW9u
cyBhbm5vdGF0ZWQgcHJvdmlkZXMgeW91IGluZm9ybWF0aW9uICppbiB0aGUgdHlwZSBzeXN0ZW0q
IHdoaWNoIGdpdmVzIHlvdSBhIG1lY2hhbmlzbSB0byAqZW5mb3JjZSogZ29vZCBhbmQgY29ycmVj
dCBlcnJvciBoYW5kbGluZyBpbiB0aGUgcHJvZ3JhbS4gVXNpbmcgZXhjZXB0aW9ucyBkb2Vzbid0
IGFsbG93IHlvdSB0byBlbmZvcmNlIGVycm9yIGhhbmRsaW5nIGFuZCBpcyBvdGhlcndpc2UgdmVy
eSBkYW5nZXJvdXMgYmVjYXVzZSAxKSBZb3UgYmFzaWNhbGx5IGRvbid0IGtub3cgd2hlbiB0aGV5
IGhhcHBlbiBleGNlcHQgdGhyb3VnaCBkb2N1bWVudGF0aW9uLCBzbyB0aGV5IGFyZSBlYXN5IHRv
IG1pc3MgYW5kIG5vdCBoYW5kbGUgdGhlbSAoaWYgZG9jdW1lbnRhdGlvbiBleGlzdHMgYXQgYWxs
Li4uKSAyKSBUaGV5IGRpc3J1cHQgeW91ciB3aG9sZSBjYWxsc3RhY2ssIHBvc3NpYmx5IGxlYWtp
bmcgcmVzb3VyY2VzIGFuZCBwdXR0aW5nIHlvdXIgcHJvZ3JhbSBpbiBhIGJhZCBzdGF0ZSBieSBi
cmVha2luZyBpbnZhcmlhbnRzIHRoYXQgc2hvdWxkIGhvbGQgaW4gb3VyIHN5c3RlbSAgMykgVGhl
IHNvdXJjZSBvZiB0aGUgZXhjZXB0aW9uIG1heSBiZSBoYXJkIHRvIHRyYWNrIDQpIFRoZXkgYXJl
IGhhcmQgdG8gcmVhc29uIGFib3V0IGFuZCBoYW5kbGUgY29ycmVjdGx5LgogIApCZXN0LAoKRGFu
aWVsCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpNaXJh
Z2VPUy1kZXZlbCBtYWlsaW5nIGxpc3QKTWlyYWdlT1MtZGV2ZWxAbGlzdHMueGVucHJvamVjdC5v
cmcKaHR0cDovL2xpc3RzLnhlbnByb2plY3Qub3JnL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9t
aXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Mon Mar 23 15:55:36 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 23 Mar 2015 15:55:36 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Ya4hM-0005sO-Mh; Mon, 23 Mar 2015 15:55:28 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <magnus@v0.no>) id 1Ya4hL-0005s6-2d
	for mirageos-devel@lists.xenproject.org; Mon, 23 Mar 2015 15:55:27 +0000
Received: from [85.158.137.68] by server-15.bemta-3.messagelabs.com id
	3A/21-10326-E6730155; Mon, 23 Mar 2015 15:55:26 +0000
X-Env-Sender: magnus@v0.no
X-Msg-Ref: server-6.tower-31.messagelabs.com!1427126124!10300929!1
X-Originating-IP: [66.111.4.27]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNjYuMTExLjQuMjcgPT4gODQ2Mw==\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 15108 invoked from network); 23 Mar 2015 15:55:25 -0000
Received: from out3-smtp.messagingengine.com (HELO
	out3-smtp.messagingengine.com) (66.111.4.27)
	by server-6.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 23 Mar 2015 15:55:25 -0000
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43])
	by mailout.nyi.internal (Postfix) with ESMTP id AA77C206BB
	for <mirageos-devel@lists.xenproject.org>;
	Mon, 23 Mar 2015 11:55:21 -0400 (EDT)
Received: from web3 ([10.202.2.213])
	by compute3.internal (MEProxy); Mon, 23 Mar 2015 11:55:24 -0400
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=v0.no; h=
	message-id:x-sasl-enc:from:to:mime-version
	:content-transfer-encoding:content-type:subject:date; s=mesmtp;
	bh=eeOKxHOef5wmh74A/NH+UExrqZo=; b=dg3pszd6QuzCBq1oBcT8eG9ZW5W0
	KbitQHC6KM5GY5PaI6Gt9cIIYZIg+hkjXPaUNd+EuUmWmPkBQMocmuJamXXfiFVj
	IaRDHtFn474r5eUVx3GsikDlo+zPS+NzmGOqZpc0gT2KWqcCFcQG9cmIp1vZVBiN
	KReqvuWb/VF2NDo=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=
	messagingengine.com; h=message-id:x-sasl-enc:from:to
	:mime-version:content-transfer-encoding:content-type:subject
	:date; s=smtpout; bh=eeOKxHOef5wmh74A/NH+UExrqZo=; b=u4kKw1a6X83
	CM0t/+al6zDFaPDnwFfyMQkFuO+owp/UpPnoSKyxDMTH8EhTP3QfRO3UwOFzqup5
	9NmcWabVwvLnrCEoJr984DdvWKlj5pvsbaNYy5UoEa9PQuyMJx4STGoJMOnoqGi9
	k9Zwlv/cqNUFci9fhPQiKB9TpokzoDX4=
Received: by web3.nyi.internal (Postfix, from userid 99)
	id 0D6B21048E8; Mon, 23 Mar 2015 11:55:23 -0400 (EDT)
Message-Id: <1427126123.430506.244046706.2C497031@webmail.messagingengine.com>
X-Sasl-Enc: QAGZ1iuUeeJw6oyOkJw1N2D94uMxN1HHoxpBeqKfY6eq 1427126123
From: Magnus Skjegstad <magnus@v0.no>
To: mirageos-devel@lists.xenproject.org
MIME-Version: 1.0
X-Mailer: MessagingEngine.com Webmail Interface - ajax-15db86eb
Date: Mon, 23 Mar 2015 15:55:23 +0000
Subject: [MirageOS-devel] Problem with Lwt and TCP/IP
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Dear all

I am working on a virtual network interface/software bridge
implementation for Mirage [1]. The idea is to provide a Vnetif module
that can be used as a replacement for Netif. Network stacks using Vnetif
can then be connected to the same software backend and send frames to
each other. An example unikernel with two threads connecting over TCP is
available here [2]. 

Initially I wrote the backend [3] so that the write function would block
until all calls to the listeners had returned. This does unfortunately
not work with the Mirage TCP/IP stack as some of the calls to listen
will block while waiting for more data. To fix this I now run the
listener functions optionally in Lwt.async (as specified with the
use_async_readers-parameter to Basic_backend.create). This could starve
the listener threads as write never blocks, but TCP/IP should adjust its
rate automatically.

The workaround seems to run fine under Xen and the iperf-like throughput
between two threads with [4] is about 400 000 KBit/s in Xen/Virtualbox.
In Unix mode the throughput is about 1 200 000 KBit/s. Unfortunately,
the test also sometimes deadlocks in Unix mode.

I thought the deadlock could be caused by the faster write threads
starving the listeners, so I added an Lwt.pause in iperf_self.ml after
each call to write [5]. The test then runs fine under Unix, with a
reduced throughput of about 500 000 KBit/s. Unfortunately, the call to
Lwt.pause is much slower under Xen and the throughput is around 46
Kbit/s (!). 

I am not sure what would be the best way to fix this. If there is a
race, I guess it is likely that it is in either mirage-tcpip or in my
code. I have not been able to find one in the vnetif code, but maybe
there is something I have overlooked that is triggered under high load.
The code works fine when I run iperf without TCP/IP and with async
disabled [6] (tested with throughput around 17 000 000 KBit/s).

A solution could also be to try to speed up Lwt.pause in Xen, so that we
at least could run the same iperf test on both platforms. In the run
loop in [7] the domain is blocked when there are no new events on the
event channel, even when there are paused threads. By adding a check for
Lwt.paused_count () = 0 before blocking the domain (code here [8]), the
Xen w/Lwt.pause iperf throughput is 60 000 KBit/s (still slow, but
useable). 

Any thoughts or ideas on how to proceed appreciated :-)
 
1. https://github.com/MagnusS/mirage-vnetif
2.
https://github.com/MagnusS/mirage-vnetif/blob/master/examples/connect/unikernel.ml
3.
https://github.com/MagnusS/mirage-vnetif/blob/master/lib/basic_backend.ml
4.
https://github.com/MagnusS/mirage-vnetif/tree/master/examples/iperf_self
5.
https://github.com/MagnusS/mirage-vnetif/blob/lwt-pause/examples/iperf_self/iperf_self.ml#L94
6.
https://github.com/MagnusS/mirage-vnetif/blob/master/examples/iperf_vnetif/iperf_vnetif.ml
7. https://github.com/mirage/mirage-platform/blob/master/xen/lib/main.ml
8.
https://github.com/MagnusS/mirage-platform/blob/xen-fast-pause/xen/lib/main.ml#L77

Magnus

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Mon Mar 23 15:55:36 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 23 Mar 2015 15:55:36 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Ya4hM-0005sO-Mh; Mon, 23 Mar 2015 15:55:28 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <magnus@v0.no>) id 1Ya4hL-0005s6-2d
	for mirageos-devel@lists.xenproject.org; Mon, 23 Mar 2015 15:55:27 +0000
Received: from [85.158.137.68] by server-15.bemta-3.messagelabs.com id
	3A/21-10326-E6730155; Mon, 23 Mar 2015 15:55:26 +0000
X-Env-Sender: magnus@v0.no
X-Msg-Ref: server-6.tower-31.messagelabs.com!1427126124!10300929!1
X-Originating-IP: [66.111.4.27]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNjYuMTExLjQuMjcgPT4gODQ2Mw==\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 15108 invoked from network); 23 Mar 2015 15:55:25 -0000
Received: from out3-smtp.messagingengine.com (HELO
	out3-smtp.messagingengine.com) (66.111.4.27)
	by server-6.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 23 Mar 2015 15:55:25 -0000
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43])
	by mailout.nyi.internal (Postfix) with ESMTP id AA77C206BB
	for <mirageos-devel@lists.xenproject.org>;
	Mon, 23 Mar 2015 11:55:21 -0400 (EDT)
Received: from web3 ([10.202.2.213])
	by compute3.internal (MEProxy); Mon, 23 Mar 2015 11:55:24 -0400
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=v0.no; h=
	message-id:x-sasl-enc:from:to:mime-version
	:content-transfer-encoding:content-type:subject:date; s=mesmtp;
	bh=eeOKxHOef5wmh74A/NH+UExrqZo=; b=dg3pszd6QuzCBq1oBcT8eG9ZW5W0
	KbitQHC6KM5GY5PaI6Gt9cIIYZIg+hkjXPaUNd+EuUmWmPkBQMocmuJamXXfiFVj
	IaRDHtFn474r5eUVx3GsikDlo+zPS+NzmGOqZpc0gT2KWqcCFcQG9cmIp1vZVBiN
	KReqvuWb/VF2NDo=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=
	messagingengine.com; h=message-id:x-sasl-enc:from:to
	:mime-version:content-transfer-encoding:content-type:subject
	:date; s=smtpout; bh=eeOKxHOef5wmh74A/NH+UExrqZo=; b=u4kKw1a6X83
	CM0t/+al6zDFaPDnwFfyMQkFuO+owp/UpPnoSKyxDMTH8EhTP3QfRO3UwOFzqup5
	9NmcWabVwvLnrCEoJr984DdvWKlj5pvsbaNYy5UoEa9PQuyMJx4STGoJMOnoqGi9
	k9Zwlv/cqNUFci9fhPQiKB9TpokzoDX4=
Received: by web3.nyi.internal (Postfix, from userid 99)
	id 0D6B21048E8; Mon, 23 Mar 2015 11:55:23 -0400 (EDT)
Message-Id: <1427126123.430506.244046706.2C497031@webmail.messagingengine.com>
X-Sasl-Enc: QAGZ1iuUeeJw6oyOkJw1N2D94uMxN1HHoxpBeqKfY6eq 1427126123
From: Magnus Skjegstad <magnus@v0.no>
To: mirageos-devel@lists.xenproject.org
MIME-Version: 1.0
X-Mailer: MessagingEngine.com Webmail Interface - ajax-15db86eb
Date: Mon, 23 Mar 2015 15:55:23 +0000
Subject: [MirageOS-devel] Problem with Lwt and TCP/IP
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Dear all

I am working on a virtual network interface/software bridge
implementation for Mirage [1]. The idea is to provide a Vnetif module
that can be used as a replacement for Netif. Network stacks using Vnetif
can then be connected to the same software backend and send frames to
each other. An example unikernel with two threads connecting over TCP is
available here [2]. 

Initially I wrote the backend [3] so that the write function would block
until all calls to the listeners had returned. This does unfortunately
not work with the Mirage TCP/IP stack as some of the calls to listen
will block while waiting for more data. To fix this I now run the
listener functions optionally in Lwt.async (as specified with the
use_async_readers-parameter to Basic_backend.create). This could starve
the listener threads as write never blocks, but TCP/IP should adjust its
rate automatically.

The workaround seems to run fine under Xen and the iperf-like throughput
between two threads with [4] is about 400 000 KBit/s in Xen/Virtualbox.
In Unix mode the throughput is about 1 200 000 KBit/s. Unfortunately,
the test also sometimes deadlocks in Unix mode.

I thought the deadlock could be caused by the faster write threads
starving the listeners, so I added an Lwt.pause in iperf_self.ml after
each call to write [5]. The test then runs fine under Unix, with a
reduced throughput of about 500 000 KBit/s. Unfortunately, the call to
Lwt.pause is much slower under Xen and the throughput is around 46
Kbit/s (!). 

I am not sure what would be the best way to fix this. If there is a
race, I guess it is likely that it is in either mirage-tcpip or in my
code. I have not been able to find one in the vnetif code, but maybe
there is something I have overlooked that is triggered under high load.
The code works fine when I run iperf without TCP/IP and with async
disabled [6] (tested with throughput around 17 000 000 KBit/s).

A solution could also be to try to speed up Lwt.pause in Xen, so that we
at least could run the same iperf test on both platforms. In the run
loop in [7] the domain is blocked when there are no new events on the
event channel, even when there are paused threads. By adding a check for
Lwt.paused_count () = 0 before blocking the domain (code here [8]), the
Xen w/Lwt.pause iperf throughput is 60 000 KBit/s (still slow, but
useable). 

Any thoughts or ideas on how to proceed appreciated :-)
 
1. https://github.com/MagnusS/mirage-vnetif
2.
https://github.com/MagnusS/mirage-vnetif/blob/master/examples/connect/unikernel.ml
3.
https://github.com/MagnusS/mirage-vnetif/blob/master/lib/basic_backend.ml
4.
https://github.com/MagnusS/mirage-vnetif/tree/master/examples/iperf_self
5.
https://github.com/MagnusS/mirage-vnetif/blob/lwt-pause/examples/iperf_self/iperf_self.ml#L94
6.
https://github.com/MagnusS/mirage-vnetif/blob/master/examples/iperf_vnetif/iperf_vnetif.ml
7. https://github.com/mirage/mirage-platform/blob/master/xen/lib/main.ml
8.
https://github.com/MagnusS/mirage-platform/blob/xen-fast-pause/xen/lib/main.ml#L77

Magnus

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Mon Mar 23 16:24:58 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 23 Mar 2015 16:24:58 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Ya59s-0002HF-RB; Mon, 23 Mar 2015 16:24:56 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <Dave.Scott@citrix.com>) id 1Ya59r-0002H4-2M
	for mirageos-devel@lists.xenproject.org; Mon, 23 Mar 2015 16:24:55 +0000
Received: from [85.158.137.68] by server-10.bemta-3.messagelabs.com id
	29/F7-07799-65E30155; Mon, 23 Mar 2015 16:24:54 +0000
X-Env-Sender: Dave.Scott@citrix.com
X-Msg-Ref: server-4.tower-31.messagelabs.com!1427127893!14695052!1
X-Originating-IP: [185.25.65.24]
X-SpamReason: No, hits=0.0 required=7.0 tests=received_headers: No 
	Received headers
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 28606 invoked from network); 23 Mar 2015 16:24:53 -0000
Received: from smtp.eu.citrix.com (HELO SMTP.EU.CITRIX.COM) (185.25.65.24)
	by server-4.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	23 Mar 2015 16:24:53 -0000
X-IronPort-AV: E=Sophos;i="5.11,452,1422921600"; d="scan'208";a="33026464"
From: Dave Scott <Dave.Scott@citrix.com>
To: Magnus Skjegstad <magnus@v0.no>
Thread-Topic: [MirageOS-devel] Problem with Lwt and TCP/IP
Thread-Index: AQHQZYHdvlkKHA+xOUm8wDz2QDXFpZ0qL/sA
Date: Mon, 23 Mar 2015 16:24:52 +0000
Message-ID: <198EF0F7-C6F6-4C22-B545-A17396F53899@citrix.com>
References: <1427126123.430506.244046706.2C497031@webmail.messagingengine.com>
In-Reply-To: <1427126123.430506.244046706.2C497031@webmail.messagingengine.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Content-ID: <6B7F65022698C6459C030F95413F391E@citrix.com>
MIME-Version: 1.0
X-DLP: AMS1
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Problem with Lwt and TCP/IP
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

DQo+IE9uIDIzIE1hciAyMDE1LCBhdCAxNTo1NSwgTWFnbnVzIFNramVnc3RhZCA8bWFnbnVzQHYw
Lm5vPiB3cm90ZToNCj4gDQo+IERlYXIgYWxsDQo+IA0KPiBJIGFtIHdvcmtpbmcgb24gYSB2aXJ0
dWFsIG5ldHdvcmsgaW50ZXJmYWNlL3NvZnR3YXJlIGJyaWRnZQ0KPiBpbXBsZW1lbnRhdGlvbiBm
b3IgTWlyYWdlIFsxXS4gVGhlIGlkZWEgaXMgdG8gcHJvdmlkZSBhIFZuZXRpZiBtb2R1bGUNCj4g
dGhhdCBjYW4gYmUgdXNlZCBhcyBhIHJlcGxhY2VtZW50IGZvciBOZXRpZi4gTmV0d29yayBzdGFj
a3MgdXNpbmcgVm5ldGlmDQo+IGNhbiB0aGVuIGJlIGNvbm5lY3RlZCB0byB0aGUgc2FtZSBzb2Z0
d2FyZSBiYWNrZW5kIGFuZCBzZW5kIGZyYW1lcyB0bw0KPiBlYWNoIG90aGVyLiBBbiBleGFtcGxl
IHVuaWtlcm5lbCB3aXRoIHR3byB0aHJlYWRzIGNvbm5lY3Rpbmcgb3ZlciBUQ1AgaXMNCj4gYXZh
aWxhYmxlIGhlcmUgWzJdLiANCj4gDQo+IEluaXRpYWxseSBJIHdyb3RlIHRoZSBiYWNrZW5kIFsz
XSBzbyB0aGF0IHRoZSB3cml0ZSBmdW5jdGlvbiB3b3VsZCBibG9jaw0KPiB1bnRpbCBhbGwgY2Fs
bHMgdG8gdGhlIGxpc3RlbmVycyBoYWQgcmV0dXJuZWQuIFRoaXMgZG9lcyB1bmZvcnR1bmF0ZWx5
DQo+IG5vdCB3b3JrIHdpdGggdGhlIE1pcmFnZSBUQ1AvSVAgc3RhY2sgYXMgc29tZSBvZiB0aGUg
Y2FsbHMgdG8gbGlzdGVuDQo+IHdpbGwgYmxvY2sgd2hpbGUgd2FpdGluZyBmb3IgbW9yZSBkYXRh
LiBUbyBmaXggdGhpcyBJIG5vdyBydW4gdGhlDQo+IGxpc3RlbmVyIGZ1bmN0aW9ucyBvcHRpb25h
bGx5IGluIEx3dC5hc3luYyAoYXMgc3BlY2lmaWVkIHdpdGggdGhlDQo+IHVzZV9hc3luY19yZWFk
ZXJzLXBhcmFtZXRlciB0byBCYXNpY19iYWNrZW5kLmNyZWF0ZSkuIFRoaXMgY291bGQgc3RhcnZl
DQo+IHRoZSBsaXN0ZW5lciB0aHJlYWRzIGFzIHdyaXRlIG5ldmVyIGJsb2NrcywgYnV0IFRDUC9J
UCBzaG91bGQgYWRqdXN0IGl0cw0KPiByYXRlIGF1dG9tYXRpY2FsbHkuDQo+IA0KPiBUaGUgd29y
a2Fyb3VuZCBzZWVtcyB0byBydW4gZmluZSB1bmRlciBYZW4gYW5kIHRoZSBpcGVyZi1saWtlIHRo
cm91Z2hwdXQNCj4gYmV0d2VlbiB0d28gdGhyZWFkcyB3aXRoIFs0XSBpcyBhYm91dCA0MDAgMDAw
IEtCaXQvcyBpbiBYZW4vVmlydHVhbGJveC4NCj4gSW4gVW5peCBtb2RlIHRoZSB0aHJvdWdocHV0
IGlzIGFib3V0IDEgMjAwIDAwMCBLQml0L3MuIFVuZm9ydHVuYXRlbHksDQo+IHRoZSB0ZXN0IGFs
c28gc29tZXRpbWVzIGRlYWRsb2NrcyBpbiBVbml4IG1vZGUuDQoNCknigJlkIGxvdmUgdG8ga25v
dyB3aGVyZSBpdOKAmXMgZGVhZGxvY2tpbmcuIFBlcmhhcHMgdHJ5IHJlcHJvZHVjaW5nIGl0IHdp
dGggdHJhY2luZyBlbmFibGVkPw0KDQpodHRwOi8vb3Blbm1pcmFnZS5vcmcvd2lraS9wcm9maWxp
bmcNCg0KWyBJIGhvcGUgaXQgcmVwcm9kdWNlcyBhdCBhIGxvd2VyIHRocm91Z2hwdXQhIF0NCg0K
PiANCj4gSSB0aG91Z2h0IHRoZSBkZWFkbG9jayBjb3VsZCBiZSBjYXVzZWQgYnkgdGhlIGZhc3Rl
ciB3cml0ZSB0aHJlYWRzDQo+IHN0YXJ2aW5nIHRoZSBsaXN0ZW5lcnMsIHNvIEkgYWRkZWQgYW4g
THd0LnBhdXNlIGluIGlwZXJmX3NlbGYubWwgYWZ0ZXINCj4gZWFjaCBjYWxsIHRvIHdyaXRlIFs1
XS4gVGhlIHRlc3QgdGhlbiBydW5zIGZpbmUgdW5kZXIgVW5peCwgd2l0aCBhDQo+IHJlZHVjZWQg
dGhyb3VnaHB1dCBvZiBhYm91dCA1MDAgMDAwIEtCaXQvcy4gVW5mb3J0dW5hdGVseSwgdGhlIGNh
bGwgdG8NCj4gTHd0LnBhdXNlIGlzIG11Y2ggc2xvd2VyIHVuZGVyIFhlbiBhbmQgdGhlIHRocm91
Z2hwdXQgaXMgYXJvdW5kIDQ2DQo+IEtiaXQvcyAoISkuIA0KPiANCj4gSSBhbSBub3Qgc3VyZSB3
aGF0IHdvdWxkIGJlIHRoZSBiZXN0IHdheSB0byBmaXggdGhpcy4gSWYgdGhlcmUgaXMgYQ0KPiBy
YWNlLCBJIGd1ZXNzIGl0IGlzIGxpa2VseSB0aGF0IGl0IGlzIGluIGVpdGhlciBtaXJhZ2UtdGNw
aXAgb3IgaW4gbXkNCj4gY29kZS4gSSBoYXZlIG5vdCBiZWVuIGFibGUgdG8gZmluZCBvbmUgaW4g
dGhlIHZuZXRpZiBjb2RlLCBidXQgbWF5YmUNCj4gdGhlcmUgaXMgc29tZXRoaW5nIEkgaGF2ZSBv
dmVybG9va2VkIHRoYXQgaXMgdHJpZ2dlcmVkIHVuZGVyIGhpZ2ggbG9hZC4NCj4gVGhlIGNvZGUg
d29ya3MgZmluZSB3aGVuIEkgcnVuIGlwZXJmIHdpdGhvdXQgVENQL0lQIGFuZCB3aXRoIGFzeW5j
DQo+IGRpc2FibGVkIFs2XSAodGVzdGVkIHdpdGggdGhyb3VnaHB1dCBhcm91bmQgMTcgMDAwIDAw
MCBLQml0L3MpLg0KPiANCj4gQSBzb2x1dGlvbiBjb3VsZCBhbHNvIGJlIHRvIHRyeSB0byBzcGVl
ZCB1cCBMd3QucGF1c2UgaW4gWGVuLCBzbyB0aGF0IHdlDQo+IGF0IGxlYXN0IGNvdWxkIHJ1biB0
aGUgc2FtZSBpcGVyZiB0ZXN0IG9uIGJvdGggcGxhdGZvcm1zLiBJbiB0aGUgcnVuDQo+IGxvb3Ag
aW4gWzddIHRoZSBkb21haW4gaXMgYmxvY2tlZCB3aGVuIHRoZXJlIGFyZSBubyBuZXcgZXZlbnRz
IG9uIHRoZQ0KPiBldmVudCBjaGFubmVsLCBldmVuIHdoZW4gdGhlcmUgYXJlIHBhdXNlZCB0aHJl
YWRzLiBCeSBhZGRpbmcgYSBjaGVjayBmb3INCj4gTHd0LnBhdXNlZF9jb3VudCAoKSA9IDAgYmVm
b3JlIGJsb2NraW5nIHRoZSBkb21haW4gKGNvZGUgaGVyZSBbOF0pLCB0aGUNCj4gWGVuIHcvTHd0
LnBhdXNlIGlwZXJmIHRocm91Z2hwdXQgaXMgNjAgMDAwIEtCaXQvcyAoc3RpbGwgc2xvdywgYnV0
DQo+IHVzZWFibGUpLiANCg0KVGhlIEx3dC5wYXVzZSB0aGluZyBzb3VuZHMgbGlrZSBpdOKAmXMg
cHJvYmFibHkgbWFza2luZyBhIGJ1ZyBlbHNld2hlcmUgdGhhdCB3ZSBvdWdodCB0byB0cmFjayBk
b3duLg0KDQpJIGRvbuKAmXQgcmVhbGx5IHVuZGVyc3RhbmQgaG93IHBhdXNlIGlzIHN1cHBvc2Vk
IHRvIGJlIHVzZWQuIEluIGZhY3QgSeKAmWQgbmV2ZXIgbm90aWNlZCBpdCBleGlzdGVkIHVudGls
IHlvdSBwb2ludGVkIGl0IG91dCEgVGhlIGRvY3MganVzdCBzYXkNCg0KLSBwYXVzZSAoKSBpcyBh
IHNsZWVwaW5nIHRocmVhZCB3aGljaCBpcyB3YWtlIHVwIG9uIHRoZSBuZXh0IGNhbGwgdG8gTHd0
LuKAi3dha2V1cF9wYXVzZWQuDQotIHdha2V1cF9wYXVzZWQgKCkgd2FrZXMgdXAgYWxsIHRocmVh
ZHMgd2hpY2ggc3VzcGVuZGVkIHRoZW1zZWx2ZXMgd2l0aCBMd3Qu4oCLcGF1c2UuIFRoaXMgZnVu
Y3Rpb24gaXMgY2FsbGVkIGJ5IHRoZSBzY2hlZHVsZXIsIGJlZm9yZSBlbnRlcmluZyB0aGUgbWFp
biBsb29wDQoNCkl0IHNvdW5kcyBsaWtlIHRoZXJl4oCZcyBubyBndWFyYW50ZWUgdGhhdCB0aGUg
c2NoZWR1bGVyIGlzIGdvaW5nIHRvIGJlIHJ1biBhbnkgdGltZSBzb29uLiBXaXRoIHlvdXIgcHJv
cG9zZWQgbW9kaWZpY2F0aW9uLCBob3cgc2ltaWxhciB3b3VsZCBhIHBhdXNlZCB0aHJlYWQgYmUg
dG8gYSB0aHJlYWQgc2xlZXBpbmcgZm9yIDAgc2Vjb25kcz8NCg0KPiBBbnkgdGhvdWdodHMgb3Ig
aWRlYXMgb24gaG93IHRvIHByb2NlZWQgYXBwcmVjaWF0ZWQgOi0pDQoNClNvcnJ5IEkgY291bGRu
4oCZdCBiZSBtb3JlIGhlbHBmdWwhDQoNCkRhdmUNCg0KPiANCj4gMS4gaHR0cHM6Ly9naXRodWIu
Y29tL01hZ251c1MvbWlyYWdlLXZuZXRpZg0KPiAyLg0KPiBodHRwczovL2dpdGh1Yi5jb20vTWFn
bnVzUy9taXJhZ2Utdm5ldGlmL2Jsb2IvbWFzdGVyL2V4YW1wbGVzL2Nvbm5lY3QvdW5pa2VybmVs
Lm1sDQo+IDMuDQo+IGh0dHBzOi8vZ2l0aHViLmNvbS9NYWdudXNTL21pcmFnZS12bmV0aWYvYmxv
Yi9tYXN0ZXIvbGliL2Jhc2ljX2JhY2tlbmQubWwNCj4gNC4NCj4gaHR0cHM6Ly9naXRodWIuY29t
L01hZ251c1MvbWlyYWdlLXZuZXRpZi90cmVlL21hc3Rlci9leGFtcGxlcy9pcGVyZl9zZWxmDQo+
IDUuDQo+IGh0dHBzOi8vZ2l0aHViLmNvbS9NYWdudXNTL21pcmFnZS12bmV0aWYvYmxvYi9sd3Qt
cGF1c2UvZXhhbXBsZXMvaXBlcmZfc2VsZi9pcGVyZl9zZWxmLm1sI0w5NA0KPiA2Lg0KPiBodHRw
czovL2dpdGh1Yi5jb20vTWFnbnVzUy9taXJhZ2Utdm5ldGlmL2Jsb2IvbWFzdGVyL2V4YW1wbGVz
L2lwZXJmX3ZuZXRpZi9pcGVyZl92bmV0aWYubWwNCj4gNy4gaHR0cHM6Ly9naXRodWIuY29tL21p
cmFnZS9taXJhZ2UtcGxhdGZvcm0vYmxvYi9tYXN0ZXIveGVuL2xpYi9tYWluLm1sDQo+IDguDQo+
IGh0dHBzOi8vZ2l0aHViLmNvbS9NYWdudXNTL21pcmFnZS1wbGF0Zm9ybS9ibG9iL3hlbi1mYXN0
LXBhdXNlL3hlbi9saWIvbWFpbi5tbCNMNzcNCj4gDQo+IE1hZ251cw0KPiANCj4gX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18NCj4gTWlyYWdlT1MtZGV2ZWwg
bWFpbGluZyBsaXN0DQo+IE1pcmFnZU9TLWRldmVsQGxpc3RzLnhlbnByb2plY3Qub3JnDQo+IGh0
dHA6Ly9saXN0cy54ZW5wcm9qZWN0Lm9yZy9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbWlyYWdl
b3MtZGV2ZWwNCg0KX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X18KTWlyYWdlT1MtZGV2ZWwgbWFpbGluZyBsaXN0Ck1pcmFnZU9TLWRldmVsQGxpc3RzLnhlbnBy
b2plY3Qub3JnCmh0dHA6Ly9saXN0cy54ZW5wcm9qZWN0Lm9yZy9jZ2ktYmluL21haWxtYW4vbGlz
dGluZm8vbWlyYWdlb3MtZGV2ZWwK

From mirageos-devel-bounces@lists.xenproject.org Mon Mar 23 16:24:58 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 23 Mar 2015 16:24:58 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Ya59s-0002HF-RB; Mon, 23 Mar 2015 16:24:56 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <Dave.Scott@citrix.com>) id 1Ya59r-0002H4-2M
	for mirageos-devel@lists.xenproject.org; Mon, 23 Mar 2015 16:24:55 +0000
Received: from [85.158.137.68] by server-10.bemta-3.messagelabs.com id
	29/F7-07799-65E30155; Mon, 23 Mar 2015 16:24:54 +0000
X-Env-Sender: Dave.Scott@citrix.com
X-Msg-Ref: server-4.tower-31.messagelabs.com!1427127893!14695052!1
X-Originating-IP: [185.25.65.24]
X-SpamReason: No, hits=0.0 required=7.0 tests=received_headers: No 
	Received headers
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 28606 invoked from network); 23 Mar 2015 16:24:53 -0000
Received: from smtp.eu.citrix.com (HELO SMTP.EU.CITRIX.COM) (185.25.65.24)
	by server-4.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	23 Mar 2015 16:24:53 -0000
X-IronPort-AV: E=Sophos;i="5.11,452,1422921600"; d="scan'208";a="33026464"
From: Dave Scott <Dave.Scott@citrix.com>
To: Magnus Skjegstad <magnus@v0.no>
Thread-Topic: [MirageOS-devel] Problem with Lwt and TCP/IP
Thread-Index: AQHQZYHdvlkKHA+xOUm8wDz2QDXFpZ0qL/sA
Date: Mon, 23 Mar 2015 16:24:52 +0000
Message-ID: <198EF0F7-C6F6-4C22-B545-A17396F53899@citrix.com>
References: <1427126123.430506.244046706.2C497031@webmail.messagingengine.com>
In-Reply-To: <1427126123.430506.244046706.2C497031@webmail.messagingengine.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Content-ID: <6B7F65022698C6459C030F95413F391E@citrix.com>
MIME-Version: 1.0
X-DLP: AMS1
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Problem with Lwt and TCP/IP
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

DQo+IE9uIDIzIE1hciAyMDE1LCBhdCAxNTo1NSwgTWFnbnVzIFNramVnc3RhZCA8bWFnbnVzQHYw
Lm5vPiB3cm90ZToNCj4gDQo+IERlYXIgYWxsDQo+IA0KPiBJIGFtIHdvcmtpbmcgb24gYSB2aXJ0
dWFsIG5ldHdvcmsgaW50ZXJmYWNlL3NvZnR3YXJlIGJyaWRnZQ0KPiBpbXBsZW1lbnRhdGlvbiBm
b3IgTWlyYWdlIFsxXS4gVGhlIGlkZWEgaXMgdG8gcHJvdmlkZSBhIFZuZXRpZiBtb2R1bGUNCj4g
dGhhdCBjYW4gYmUgdXNlZCBhcyBhIHJlcGxhY2VtZW50IGZvciBOZXRpZi4gTmV0d29yayBzdGFj
a3MgdXNpbmcgVm5ldGlmDQo+IGNhbiB0aGVuIGJlIGNvbm5lY3RlZCB0byB0aGUgc2FtZSBzb2Z0
d2FyZSBiYWNrZW5kIGFuZCBzZW5kIGZyYW1lcyB0bw0KPiBlYWNoIG90aGVyLiBBbiBleGFtcGxl
IHVuaWtlcm5lbCB3aXRoIHR3byB0aHJlYWRzIGNvbm5lY3Rpbmcgb3ZlciBUQ1AgaXMNCj4gYXZh
aWxhYmxlIGhlcmUgWzJdLiANCj4gDQo+IEluaXRpYWxseSBJIHdyb3RlIHRoZSBiYWNrZW5kIFsz
XSBzbyB0aGF0IHRoZSB3cml0ZSBmdW5jdGlvbiB3b3VsZCBibG9jaw0KPiB1bnRpbCBhbGwgY2Fs
bHMgdG8gdGhlIGxpc3RlbmVycyBoYWQgcmV0dXJuZWQuIFRoaXMgZG9lcyB1bmZvcnR1bmF0ZWx5
DQo+IG5vdCB3b3JrIHdpdGggdGhlIE1pcmFnZSBUQ1AvSVAgc3RhY2sgYXMgc29tZSBvZiB0aGUg
Y2FsbHMgdG8gbGlzdGVuDQo+IHdpbGwgYmxvY2sgd2hpbGUgd2FpdGluZyBmb3IgbW9yZSBkYXRh
LiBUbyBmaXggdGhpcyBJIG5vdyBydW4gdGhlDQo+IGxpc3RlbmVyIGZ1bmN0aW9ucyBvcHRpb25h
bGx5IGluIEx3dC5hc3luYyAoYXMgc3BlY2lmaWVkIHdpdGggdGhlDQo+IHVzZV9hc3luY19yZWFk
ZXJzLXBhcmFtZXRlciB0byBCYXNpY19iYWNrZW5kLmNyZWF0ZSkuIFRoaXMgY291bGQgc3RhcnZl
DQo+IHRoZSBsaXN0ZW5lciB0aHJlYWRzIGFzIHdyaXRlIG5ldmVyIGJsb2NrcywgYnV0IFRDUC9J
UCBzaG91bGQgYWRqdXN0IGl0cw0KPiByYXRlIGF1dG9tYXRpY2FsbHkuDQo+IA0KPiBUaGUgd29y
a2Fyb3VuZCBzZWVtcyB0byBydW4gZmluZSB1bmRlciBYZW4gYW5kIHRoZSBpcGVyZi1saWtlIHRo
cm91Z2hwdXQNCj4gYmV0d2VlbiB0d28gdGhyZWFkcyB3aXRoIFs0XSBpcyBhYm91dCA0MDAgMDAw
IEtCaXQvcyBpbiBYZW4vVmlydHVhbGJveC4NCj4gSW4gVW5peCBtb2RlIHRoZSB0aHJvdWdocHV0
IGlzIGFib3V0IDEgMjAwIDAwMCBLQml0L3MuIFVuZm9ydHVuYXRlbHksDQo+IHRoZSB0ZXN0IGFs
c28gc29tZXRpbWVzIGRlYWRsb2NrcyBpbiBVbml4IG1vZGUuDQoNCknigJlkIGxvdmUgdG8ga25v
dyB3aGVyZSBpdOKAmXMgZGVhZGxvY2tpbmcuIFBlcmhhcHMgdHJ5IHJlcHJvZHVjaW5nIGl0IHdp
dGggdHJhY2luZyBlbmFibGVkPw0KDQpodHRwOi8vb3Blbm1pcmFnZS5vcmcvd2lraS9wcm9maWxp
bmcNCg0KWyBJIGhvcGUgaXQgcmVwcm9kdWNlcyBhdCBhIGxvd2VyIHRocm91Z2hwdXQhIF0NCg0K
PiANCj4gSSB0aG91Z2h0IHRoZSBkZWFkbG9jayBjb3VsZCBiZSBjYXVzZWQgYnkgdGhlIGZhc3Rl
ciB3cml0ZSB0aHJlYWRzDQo+IHN0YXJ2aW5nIHRoZSBsaXN0ZW5lcnMsIHNvIEkgYWRkZWQgYW4g
THd0LnBhdXNlIGluIGlwZXJmX3NlbGYubWwgYWZ0ZXINCj4gZWFjaCBjYWxsIHRvIHdyaXRlIFs1
XS4gVGhlIHRlc3QgdGhlbiBydW5zIGZpbmUgdW5kZXIgVW5peCwgd2l0aCBhDQo+IHJlZHVjZWQg
dGhyb3VnaHB1dCBvZiBhYm91dCA1MDAgMDAwIEtCaXQvcy4gVW5mb3J0dW5hdGVseSwgdGhlIGNh
bGwgdG8NCj4gTHd0LnBhdXNlIGlzIG11Y2ggc2xvd2VyIHVuZGVyIFhlbiBhbmQgdGhlIHRocm91
Z2hwdXQgaXMgYXJvdW5kIDQ2DQo+IEtiaXQvcyAoISkuIA0KPiANCj4gSSBhbSBub3Qgc3VyZSB3
aGF0IHdvdWxkIGJlIHRoZSBiZXN0IHdheSB0byBmaXggdGhpcy4gSWYgdGhlcmUgaXMgYQ0KPiBy
YWNlLCBJIGd1ZXNzIGl0IGlzIGxpa2VseSB0aGF0IGl0IGlzIGluIGVpdGhlciBtaXJhZ2UtdGNw
aXAgb3IgaW4gbXkNCj4gY29kZS4gSSBoYXZlIG5vdCBiZWVuIGFibGUgdG8gZmluZCBvbmUgaW4g
dGhlIHZuZXRpZiBjb2RlLCBidXQgbWF5YmUNCj4gdGhlcmUgaXMgc29tZXRoaW5nIEkgaGF2ZSBv
dmVybG9va2VkIHRoYXQgaXMgdHJpZ2dlcmVkIHVuZGVyIGhpZ2ggbG9hZC4NCj4gVGhlIGNvZGUg
d29ya3MgZmluZSB3aGVuIEkgcnVuIGlwZXJmIHdpdGhvdXQgVENQL0lQIGFuZCB3aXRoIGFzeW5j
DQo+IGRpc2FibGVkIFs2XSAodGVzdGVkIHdpdGggdGhyb3VnaHB1dCBhcm91bmQgMTcgMDAwIDAw
MCBLQml0L3MpLg0KPiANCj4gQSBzb2x1dGlvbiBjb3VsZCBhbHNvIGJlIHRvIHRyeSB0byBzcGVl
ZCB1cCBMd3QucGF1c2UgaW4gWGVuLCBzbyB0aGF0IHdlDQo+IGF0IGxlYXN0IGNvdWxkIHJ1biB0
aGUgc2FtZSBpcGVyZiB0ZXN0IG9uIGJvdGggcGxhdGZvcm1zLiBJbiB0aGUgcnVuDQo+IGxvb3Ag
aW4gWzddIHRoZSBkb21haW4gaXMgYmxvY2tlZCB3aGVuIHRoZXJlIGFyZSBubyBuZXcgZXZlbnRz
IG9uIHRoZQ0KPiBldmVudCBjaGFubmVsLCBldmVuIHdoZW4gdGhlcmUgYXJlIHBhdXNlZCB0aHJl
YWRzLiBCeSBhZGRpbmcgYSBjaGVjayBmb3INCj4gTHd0LnBhdXNlZF9jb3VudCAoKSA9IDAgYmVm
b3JlIGJsb2NraW5nIHRoZSBkb21haW4gKGNvZGUgaGVyZSBbOF0pLCB0aGUNCj4gWGVuIHcvTHd0
LnBhdXNlIGlwZXJmIHRocm91Z2hwdXQgaXMgNjAgMDAwIEtCaXQvcyAoc3RpbGwgc2xvdywgYnV0
DQo+IHVzZWFibGUpLiANCg0KVGhlIEx3dC5wYXVzZSB0aGluZyBzb3VuZHMgbGlrZSBpdOKAmXMg
cHJvYmFibHkgbWFza2luZyBhIGJ1ZyBlbHNld2hlcmUgdGhhdCB3ZSBvdWdodCB0byB0cmFjayBk
b3duLg0KDQpJIGRvbuKAmXQgcmVhbGx5IHVuZGVyc3RhbmQgaG93IHBhdXNlIGlzIHN1cHBvc2Vk
IHRvIGJlIHVzZWQuIEluIGZhY3QgSeKAmWQgbmV2ZXIgbm90aWNlZCBpdCBleGlzdGVkIHVudGls
IHlvdSBwb2ludGVkIGl0IG91dCEgVGhlIGRvY3MganVzdCBzYXkNCg0KLSBwYXVzZSAoKSBpcyBh
IHNsZWVwaW5nIHRocmVhZCB3aGljaCBpcyB3YWtlIHVwIG9uIHRoZSBuZXh0IGNhbGwgdG8gTHd0
LuKAi3dha2V1cF9wYXVzZWQuDQotIHdha2V1cF9wYXVzZWQgKCkgd2FrZXMgdXAgYWxsIHRocmVh
ZHMgd2hpY2ggc3VzcGVuZGVkIHRoZW1zZWx2ZXMgd2l0aCBMd3Qu4oCLcGF1c2UuIFRoaXMgZnVu
Y3Rpb24gaXMgY2FsbGVkIGJ5IHRoZSBzY2hlZHVsZXIsIGJlZm9yZSBlbnRlcmluZyB0aGUgbWFp
biBsb29wDQoNCkl0IHNvdW5kcyBsaWtlIHRoZXJl4oCZcyBubyBndWFyYW50ZWUgdGhhdCB0aGUg
c2NoZWR1bGVyIGlzIGdvaW5nIHRvIGJlIHJ1biBhbnkgdGltZSBzb29uLiBXaXRoIHlvdXIgcHJv
cG9zZWQgbW9kaWZpY2F0aW9uLCBob3cgc2ltaWxhciB3b3VsZCBhIHBhdXNlZCB0aHJlYWQgYmUg
dG8gYSB0aHJlYWQgc2xlZXBpbmcgZm9yIDAgc2Vjb25kcz8NCg0KPiBBbnkgdGhvdWdodHMgb3Ig
aWRlYXMgb24gaG93IHRvIHByb2NlZWQgYXBwcmVjaWF0ZWQgOi0pDQoNClNvcnJ5IEkgY291bGRu
4oCZdCBiZSBtb3JlIGhlbHBmdWwhDQoNCkRhdmUNCg0KPiANCj4gMS4gaHR0cHM6Ly9naXRodWIu
Y29tL01hZ251c1MvbWlyYWdlLXZuZXRpZg0KPiAyLg0KPiBodHRwczovL2dpdGh1Yi5jb20vTWFn
bnVzUy9taXJhZ2Utdm5ldGlmL2Jsb2IvbWFzdGVyL2V4YW1wbGVzL2Nvbm5lY3QvdW5pa2VybmVs
Lm1sDQo+IDMuDQo+IGh0dHBzOi8vZ2l0aHViLmNvbS9NYWdudXNTL21pcmFnZS12bmV0aWYvYmxv
Yi9tYXN0ZXIvbGliL2Jhc2ljX2JhY2tlbmQubWwNCj4gNC4NCj4gaHR0cHM6Ly9naXRodWIuY29t
L01hZ251c1MvbWlyYWdlLXZuZXRpZi90cmVlL21hc3Rlci9leGFtcGxlcy9pcGVyZl9zZWxmDQo+
IDUuDQo+IGh0dHBzOi8vZ2l0aHViLmNvbS9NYWdudXNTL21pcmFnZS12bmV0aWYvYmxvYi9sd3Qt
cGF1c2UvZXhhbXBsZXMvaXBlcmZfc2VsZi9pcGVyZl9zZWxmLm1sI0w5NA0KPiA2Lg0KPiBodHRw
czovL2dpdGh1Yi5jb20vTWFnbnVzUy9taXJhZ2Utdm5ldGlmL2Jsb2IvbWFzdGVyL2V4YW1wbGVz
L2lwZXJmX3ZuZXRpZi9pcGVyZl92bmV0aWYubWwNCj4gNy4gaHR0cHM6Ly9naXRodWIuY29tL21p
cmFnZS9taXJhZ2UtcGxhdGZvcm0vYmxvYi9tYXN0ZXIveGVuL2xpYi9tYWluLm1sDQo+IDguDQo+
IGh0dHBzOi8vZ2l0aHViLmNvbS9NYWdudXNTL21pcmFnZS1wbGF0Zm9ybS9ibG9iL3hlbi1mYXN0
LXBhdXNlL3hlbi9saWIvbWFpbi5tbCNMNzcNCj4gDQo+IE1hZ251cw0KPiANCj4gX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18NCj4gTWlyYWdlT1MtZGV2ZWwg
bWFpbGluZyBsaXN0DQo+IE1pcmFnZU9TLWRldmVsQGxpc3RzLnhlbnByb2plY3Qub3JnDQo+IGh0
dHA6Ly9saXN0cy54ZW5wcm9qZWN0Lm9yZy9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbWlyYWdl
b3MtZGV2ZWwNCg0KX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X18KTWlyYWdlT1MtZGV2ZWwgbWFpbGluZyBsaXN0Ck1pcmFnZU9TLWRldmVsQGxpc3RzLnhlbnBy
b2plY3Qub3JnCmh0dHA6Ly9saXN0cy54ZW5wcm9qZWN0Lm9yZy9jZ2ktYmluL21haWxtYW4vbGlz
dGluZm8vbWlyYWdlb3MtZGV2ZWwK

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 01:01:27 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 01:01:27 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaDDd-0005nw-Fy; Tue, 24 Mar 2015 01:01:21 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <russell.pavlicek.xen@gmail.com>) id 1YaDDb-0005Xa-JT
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 01:01:19 +0000
Received: from [85.158.139.211] by server-8.bemta-5.messagelabs.com id
	72/04-25011-E57B0155; Tue, 24 Mar 2015 01:01:18 +0000
X-Env-Sender: russell.pavlicek.xen@gmail.com
X-Msg-Ref: server-10.tower-206.messagelabs.com!1427158878!5751839!1
X-Originating-IP: [209.85.212.176]
X-SpamReason: No, hits=2.5 required=7.0 tests=RCVD_BY_IP,
  SUSPICIOUS_RECIPS
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 14513 invoked from network); 24 Mar 2015 01:01:18 -0000
Received: from mail-wi0-f176.google.com (HELO mail-wi0-f176.google.com)
	(209.85.212.176)
	by server-10.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	24 Mar 2015 01:01:18 -0000
Received: by wibg7 with SMTP id g7so61897108wib.1
	for <mirageos-devel@lists.xenproject.org>;
	Mon, 23 Mar 2015 18:01:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:date:message-id:subject:from:cc:content-type;
	bh=d4/Z7NAghQosghLPk+W7uxnWES6369IAcrqjCAlm5xo=;
	b=mNHi7tbSvTf3jwcEYp9iwBrlr6whIXKVZ5TLVEK/Ass3M+kIFjBFZJXeBA8+QZrHoO
	Oszbnu5gkJUnWCV7DPHkB/vwwABnvaeTVXOR8/sG+P5mvNSWe+L+lBoegvW9wv6+Y5iG
	0duUBJeBzisGqpKvulcZEB09OcJa+GKsP/fCe8wbfdWNjRIRp+gCDQYUR4adg0jQPhuC
	iDkILNI3TFtVtmyeZtxsapMhx2hvT7DNTjbn3OCGv9kxWH/hMJBGlUAQ9SjdN14czgsV
	sXW1YCTMTMXn4qXgnTJI+aqaS0hqhoOzWlLjDi2dtM/vi+bnJeLpe5hUWAHt2wVJoQCK
	Yp9A==
MIME-Version: 1.0
X-Received: by 10.194.110.233 with SMTP id id9mt2032622wjb.136.1427158877910; 
	Mon, 23 Mar 2015 18:01:17 -0700 (PDT)
Received: by 10.194.250.102 with HTTP; Mon, 23 Mar 2015 18:01:17 -0700 (PDT)
Date: Mon, 23 Mar 2015 21:01:17 -0400
X-Google-Sender-Auth: fHU0zxTT2hx6-hhEr4TUtcd3_HU
Message-ID: <CAHehzX2K=A0u_X5tEq0mmzJTz_k1eHygJcyUKaGay9niBCdpHg@mail.gmail.com>
From: Russ Pavlicek <russell.pavlicek@xenproject.org>
Cc: "xen-users@lists.xen.org" <xen-users@lists.xen.org>, xen-api@lists.xen.org,
	xs-devel@lists.xenserver.org,
	mirageos-devel@lists.xenproject.org, xen-devel@lists.xen.org
Subject: [MirageOS-devel] How Are You Using Xen Project? Theme for this
 month's Xen Project Document Day on Wednesday
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

This month, we want to answer the question, "How are you using Xen
Project?"  Xen Project is a great hypervisor, but it is normally part
of a bigger solution.  Did you quickly find all the documentation you
needed to use the hypervisor within the context of your solution?  Do
we need a special page to document how Xen Project can be integrated
into a specific Open Source or commercial solution?  Do we need to
simply enhance an existing page to make the information you needed
more visible?  Now is the time to make those improvements!

All the information you need to participate in Document Day is here:

http://wiki.xenproject.org/wiki/Xen_Document_Days

Also take a look at the current TODO list to see other items which
need attention:

http://wiki.xenproject.org/wiki/Xen_Document_Days/TODO

Please think about how you can help out.  If you haven't requested
to be made a Wiki editor, save time and do it now so you are ready to
go on Document Day.  Just fill out the form below:

http://xenproject.org/component/content/article/100-misc/145-request-to-be-made-a-wiki-editor.html

We hope to see you Wednesday in #xendocs!

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 01:01:27 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 01:01:27 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaDDd-0005nw-Fy; Tue, 24 Mar 2015 01:01:21 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <russell.pavlicek.xen@gmail.com>) id 1YaDDb-0005Xa-JT
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 01:01:19 +0000
Received: from [85.158.139.211] by server-8.bemta-5.messagelabs.com id
	72/04-25011-E57B0155; Tue, 24 Mar 2015 01:01:18 +0000
X-Env-Sender: russell.pavlicek.xen@gmail.com
X-Msg-Ref: server-10.tower-206.messagelabs.com!1427158878!5751839!1
X-Originating-IP: [209.85.212.176]
X-SpamReason: No, hits=2.5 required=7.0 tests=RCVD_BY_IP,
  SUSPICIOUS_RECIPS
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 14513 invoked from network); 24 Mar 2015 01:01:18 -0000
Received: from mail-wi0-f176.google.com (HELO mail-wi0-f176.google.com)
	(209.85.212.176)
	by server-10.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	24 Mar 2015 01:01:18 -0000
Received: by wibg7 with SMTP id g7so61897108wib.1
	for <mirageos-devel@lists.xenproject.org>;
	Mon, 23 Mar 2015 18:01:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:date:message-id:subject:from:cc:content-type;
	bh=d4/Z7NAghQosghLPk+W7uxnWES6369IAcrqjCAlm5xo=;
	b=mNHi7tbSvTf3jwcEYp9iwBrlr6whIXKVZ5TLVEK/Ass3M+kIFjBFZJXeBA8+QZrHoO
	Oszbnu5gkJUnWCV7DPHkB/vwwABnvaeTVXOR8/sG+P5mvNSWe+L+lBoegvW9wv6+Y5iG
	0duUBJeBzisGqpKvulcZEB09OcJa+GKsP/fCe8wbfdWNjRIRp+gCDQYUR4adg0jQPhuC
	iDkILNI3TFtVtmyeZtxsapMhx2hvT7DNTjbn3OCGv9kxWH/hMJBGlUAQ9SjdN14czgsV
	sXW1YCTMTMXn4qXgnTJI+aqaS0hqhoOzWlLjDi2dtM/vi+bnJeLpe5hUWAHt2wVJoQCK
	Yp9A==
MIME-Version: 1.0
X-Received: by 10.194.110.233 with SMTP id id9mt2032622wjb.136.1427158877910; 
	Mon, 23 Mar 2015 18:01:17 -0700 (PDT)
Received: by 10.194.250.102 with HTTP; Mon, 23 Mar 2015 18:01:17 -0700 (PDT)
Date: Mon, 23 Mar 2015 21:01:17 -0400
X-Google-Sender-Auth: fHU0zxTT2hx6-hhEr4TUtcd3_HU
Message-ID: <CAHehzX2K=A0u_X5tEq0mmzJTz_k1eHygJcyUKaGay9niBCdpHg@mail.gmail.com>
From: Russ Pavlicek <russell.pavlicek@xenproject.org>
Cc: "xen-users@lists.xen.org" <xen-users@lists.xen.org>, xen-api@lists.xen.org,
	xs-devel@lists.xenserver.org,
	mirageos-devel@lists.xenproject.org, xen-devel@lists.xen.org
Subject: [MirageOS-devel] How Are You Using Xen Project? Theme for this
 month's Xen Project Document Day on Wednesday
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

This month, we want to answer the question, "How are you using Xen
Project?"  Xen Project is a great hypervisor, but it is normally part
of a bigger solution.  Did you quickly find all the documentation you
needed to use the hypervisor within the context of your solution?  Do
we need a special page to document how Xen Project can be integrated
into a specific Open Source or commercial solution?  Do we need to
simply enhance an existing page to make the information you needed
more visible?  Now is the time to make those improvements!

All the information you need to participate in Document Day is here:

http://wiki.xenproject.org/wiki/Xen_Document_Days

Also take a look at the current TODO list to see other items which
need attention:

http://wiki.xenproject.org/wiki/Xen_Document_Days/TODO

Please think about how you can help out.  If you haven't requested
to be made a Wiki editor, save time and do it now so you are ready to
go on Document Day.  Just fill out the form below:

http://xenproject.org/component/content/article/100-misc/145-request-to-be-made-a-wiki-editor.html

We hope to see you Wednesday in #xendocs!

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 05:24:39 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 05:24:39 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaHKL-0002Jt-UR; Tue, 24 Mar 2015 05:24:33 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <magnus@therning.org>) id 1YaHKK-0002Jo-Ln
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 05:24:32 +0000
Received: from [85.158.139.211] by server-16.bemta-5.messagelabs.com id
	F9/AD-13528-F05F0155; Tue, 24 Mar 2015 05:24:31 +0000
X-Env-Sender: magnus@therning.org
X-Msg-Ref: server-11.tower-206.messagelabs.com!1427174670!6943998!1
X-Originating-IP: [209.85.215.47]
X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 17493 invoked from network); 24 Mar 2015 05:24:31 -0000
Received: from mail-la0-f47.google.com (HELO mail-la0-f47.google.com)
	(209.85.215.47)
	by server-11.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	24 Mar 2015 05:24:31 -0000
Received: by lagg8 with SMTP id g8so150955566lag.1
	for <mirageos-devel@lists.xenproject.org>;
	Mon, 23 Mar 2015 22:24:30 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:date:from:to:subject:message-id:mime-version
	:content-type:content-disposition:user-agent;
	bh=4BcwOKQOP8Z59YEOI5YkPsR2xWsF8WiuKikdQ0WJ0uU=;
	b=e2ibQbRxoYWQQfmHB8CMZA61dIeu+OnMMUpIIxsvH92AYJcw2yuxWhH6GhqvVq/b3b
	+GHPdUv/F3nWeGWbJEESZ1dUj1MG/M1eqgzLTGHvYOKO4RjfK0NZXsx8j06NBmtnCkEE
	xBGFc4KWONruklEGdI6qXmUdBIW+kK5vl+rjdZqJHQZQGNwFlt7/QYAb15N7v9yaIptZ
	kMb3UlBeKDq5oX5b44wt1Ar/ct/X8y2vUoAq6KugF0z4JGFJlWeU73hXA9KQn1IYu2ok
	c1LToBHXviD2A1XT8BFUpEIF1pdAp1cDiVkjr88OVUEexCmPWXTsnP71Lz2REUJqJYkz
	ZLxg==
X-Gm-Message-State: ALoCoQndyK9Q75SY+OtGTTSUS6vtHYD6IKwPggHvCeMqZj0pBP5ZZujBMNphY6l9zLopTbGYtK1F
X-Received: by 10.112.126.199 with SMTP id na7mr2146294lbb.114.1427174670270; 
	Mon, 23 Mar 2015 22:24:30 -0700 (PDT)
Received: from tatooine (c83-248-178-110.bredband.comhem.se. [83.248.178.110])
	by mx.google.com with ESMTPSA id
	en12sm664160lbc.11.2015.03.23.22.24.28
	for <mirageos-devel@lists.xenproject.org>
	(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Mon, 23 Mar 2015 22:24:28 -0700 (PDT)
Date: Tue, 24 Mar 2015 06:24:26 +0100
From: Magnus Therning <magnus@therning.org>
To: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Message-ID: <20150324052426.GA1017@tatooine>
MIME-Version: 1.0
User-Agent: Mutt/1.5.23 (2014-03-12)
Subject: [MirageOS-devel] Compiling on/for ARM
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============4924154550089035952=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============4924154550089035952==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G"
Content-Disposition: inline


--k1lZvvs/B4yU6o8G
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I thought github/mirage-decks would be a good first project to build
on/for my Cubietruck.  So after installing the mirage tool via `opam`
I cloned the decks project and proceeded to build it in unix mode.
`make configure` worked just fine, but `make build` did not.
Apparently `camlp4` requires more memory than what's available:

~~~
mirage@cubietruck:~/mirage-decks$ make build
cd src && make build
make[1]: Entering directory `/home/mirage/mirage-decks/src'
ocamlbuild -use-ocamlfind -pkgs lwt.syntax,conduit.mirage,cow.syntax,cowabl=
oga,cstruct,io-page,io-page.unix,lwt,mirage-console.unix,mirage-fs-unix,mir=
age-http,mirage-types,mirage-types.lwt,tcpip.stack-socket -tags "syntax(cam=
lp4o),annot,bin_annot,strict_sequence,principal" -tag-line "<static*.*>: -s=
yntax(camlp4o)" -cflag -g -lflags -g,-linkpkg main.native
+ ocamlfind ocamldep -package tcpip.stack-socket -package mirage-types.lwt =
-package mirage-types -package mirage-http -package mirage-fs-unix -package=
 mirage-console.unix -package lwt -package io-page.unix -package io-page -p=
ackage cstruct -package cowabloga -package cow.syntax -package conduit.mira=
ge -package lwt.syntax -syntax camlp4o -modules main.ml > main.ml.depends
Out of memory
File "main.ml", line 1:
Error: Error while running external preprocessor
Command line: camlp4 '-I' '/home/mirage/.opam/4.02.1/lib/ocaml/camlp4' '-I'=
 '/home/mirage/.opam/4.02.1/lib/ocaml' '-I' '/home/mirage/.opam/4.02.1/lib/=
type_conv' '-I' '/home/mirage/.opam/4.02.1/lib/dyntype' '-I' '/home/mirage/=
=2Eopam/4.02.1/lib/xmlm' '-I' '/home/mirage/.opam/4.02.1/lib/uutf' '-I' '/h=
ome/mirage/.opam/4.02.1/lib/jsonm' '-I' '/home/mirage/.opam/4.02.1/lib/hex'=
 '-I' '/home/mirage/.opam/4.02.1/lib/ocaml' '-I' '/home/mirage/.opam/4.02.1=
/lib/ocaml' '-I' '/home/mirage/.opam/4.02.1/lib/sexplib' '-I' '/home/mirage=
/.opam/4.02.1/lib/ezjsonm' '-I' '/home/mirage/.opam/4.02.1/lib/cow' '-I' '/=
home/mirage/.opam/4.02.1/lib/lwt' '-I' '/home/mirage/.opam/4.02.1/lib/lwt' =
'-parser' 'o' '-parser' 'op' '-printer' 'p' 'str.cma' 'pa_type_conv.cma' 'p=
a_dyntype.cma' 'xmlm.cma' 'uutf.cma' 'jsonm.cma' 'hex.cma' 'unix.cma' 'biga=
rray.cma' 'sexplib.cma' 'ezjsonm.cma' 'xmlm.cma' 'str.cma' 'pa_cow.cma' 'ez=
jsonm.cma' 'lwt-syntax-options.cma' 'lwt-syntax.cma'  'main.ml' > /tmp/ocam=
lpp7e1777

Command exited with code 2.
Compilation unsuccessful after building 1 target (0 cached) in 00:00:01.
make[1]: *** [main.native] Error 10
make[1]: Leaving directory `/home/mirage/mirage-decks/src'
make: *** [build] Error 2
~~~

I'm building this in Dom0:

~~~
mirage@cubietruck:~$ sudo xl list
Name                                        ID   Mem VCPUs      State   Tim=
e(s)
Domain-0                                     0   512     2     r-----     1=
54.7
~~~

Is there some way to control the amount of memory that `camlp4` uses?  Or m=
aybe I'm just going about this in the wrong way?

/M

--=20
Magnus Therning                      OpenPGP: 0xAB4DFBA4=20
email: magnus@therning.org   jabber: magnus@therning.org
twitter: magthe               http://therning.org/magnus

Failure is not an option. It comes bundled with the software.

--k1lZvvs/B4yU6o8G
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iEYEABECAAYFAlUQ9QMACgkQiMWTaatN+6T28QCg3RSTD+It116h80nesPjDz7lO
x6MAoMOGoR45U5hy/W4X/4vlzpj2HFC0
=cKOM
-----END PGP SIGNATURE-----

--k1lZvvs/B4yU6o8G--


--===============4924154550089035952==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============4924154550089035952==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 05:24:39 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 05:24:39 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaHKL-0002Jt-UR; Tue, 24 Mar 2015 05:24:33 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <magnus@therning.org>) id 1YaHKK-0002Jo-Ln
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 05:24:32 +0000
Received: from [85.158.139.211] by server-16.bemta-5.messagelabs.com id
	F9/AD-13528-F05F0155; Tue, 24 Mar 2015 05:24:31 +0000
X-Env-Sender: magnus@therning.org
X-Msg-Ref: server-11.tower-206.messagelabs.com!1427174670!6943998!1
X-Originating-IP: [209.85.215.47]
X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 17493 invoked from network); 24 Mar 2015 05:24:31 -0000
Received: from mail-la0-f47.google.com (HELO mail-la0-f47.google.com)
	(209.85.215.47)
	by server-11.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	24 Mar 2015 05:24:31 -0000
Received: by lagg8 with SMTP id g8so150955566lag.1
	for <mirageos-devel@lists.xenproject.org>;
	Mon, 23 Mar 2015 22:24:30 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:date:from:to:subject:message-id:mime-version
	:content-type:content-disposition:user-agent;
	bh=4BcwOKQOP8Z59YEOI5YkPsR2xWsF8WiuKikdQ0WJ0uU=;
	b=e2ibQbRxoYWQQfmHB8CMZA61dIeu+OnMMUpIIxsvH92AYJcw2yuxWhH6GhqvVq/b3b
	+GHPdUv/F3nWeGWbJEESZ1dUj1MG/M1eqgzLTGHvYOKO4RjfK0NZXsx8j06NBmtnCkEE
	xBGFc4KWONruklEGdI6qXmUdBIW+kK5vl+rjdZqJHQZQGNwFlt7/QYAb15N7v9yaIptZ
	kMb3UlBeKDq5oX5b44wt1Ar/ct/X8y2vUoAq6KugF0z4JGFJlWeU73hXA9KQn1IYu2ok
	c1LToBHXviD2A1XT8BFUpEIF1pdAp1cDiVkjr88OVUEexCmPWXTsnP71Lz2REUJqJYkz
	ZLxg==
X-Gm-Message-State: ALoCoQndyK9Q75SY+OtGTTSUS6vtHYD6IKwPggHvCeMqZj0pBP5ZZujBMNphY6l9zLopTbGYtK1F
X-Received: by 10.112.126.199 with SMTP id na7mr2146294lbb.114.1427174670270; 
	Mon, 23 Mar 2015 22:24:30 -0700 (PDT)
Received: from tatooine (c83-248-178-110.bredband.comhem.se. [83.248.178.110])
	by mx.google.com with ESMTPSA id
	en12sm664160lbc.11.2015.03.23.22.24.28
	for <mirageos-devel@lists.xenproject.org>
	(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Mon, 23 Mar 2015 22:24:28 -0700 (PDT)
Date: Tue, 24 Mar 2015 06:24:26 +0100
From: Magnus Therning <magnus@therning.org>
To: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Message-ID: <20150324052426.GA1017@tatooine>
MIME-Version: 1.0
User-Agent: Mutt/1.5.23 (2014-03-12)
Subject: [MirageOS-devel] Compiling on/for ARM
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============4924154550089035952=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============4924154550089035952==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="k1lZvvs/B4yU6o8G"
Content-Disposition: inline


--k1lZvvs/B4yU6o8G
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I thought github/mirage-decks would be a good first project to build
on/for my Cubietruck.  So after installing the mirage tool via `opam`
I cloned the decks project and proceeded to build it in unix mode.
`make configure` worked just fine, but `make build` did not.
Apparently `camlp4` requires more memory than what's available:

~~~
mirage@cubietruck:~/mirage-decks$ make build
cd src && make build
make[1]: Entering directory `/home/mirage/mirage-decks/src'
ocamlbuild -use-ocamlfind -pkgs lwt.syntax,conduit.mirage,cow.syntax,cowabl=
oga,cstruct,io-page,io-page.unix,lwt,mirage-console.unix,mirage-fs-unix,mir=
age-http,mirage-types,mirage-types.lwt,tcpip.stack-socket -tags "syntax(cam=
lp4o),annot,bin_annot,strict_sequence,principal" -tag-line "<static*.*>: -s=
yntax(camlp4o)" -cflag -g -lflags -g,-linkpkg main.native
+ ocamlfind ocamldep -package tcpip.stack-socket -package mirage-types.lwt =
-package mirage-types -package mirage-http -package mirage-fs-unix -package=
 mirage-console.unix -package lwt -package io-page.unix -package io-page -p=
ackage cstruct -package cowabloga -package cow.syntax -package conduit.mira=
ge -package lwt.syntax -syntax camlp4o -modules main.ml > main.ml.depends
Out of memory
File "main.ml", line 1:
Error: Error while running external preprocessor
Command line: camlp4 '-I' '/home/mirage/.opam/4.02.1/lib/ocaml/camlp4' '-I'=
 '/home/mirage/.opam/4.02.1/lib/ocaml' '-I' '/home/mirage/.opam/4.02.1/lib/=
type_conv' '-I' '/home/mirage/.opam/4.02.1/lib/dyntype' '-I' '/home/mirage/=
=2Eopam/4.02.1/lib/xmlm' '-I' '/home/mirage/.opam/4.02.1/lib/uutf' '-I' '/h=
ome/mirage/.opam/4.02.1/lib/jsonm' '-I' '/home/mirage/.opam/4.02.1/lib/hex'=
 '-I' '/home/mirage/.opam/4.02.1/lib/ocaml' '-I' '/home/mirage/.opam/4.02.1=
/lib/ocaml' '-I' '/home/mirage/.opam/4.02.1/lib/sexplib' '-I' '/home/mirage=
/.opam/4.02.1/lib/ezjsonm' '-I' '/home/mirage/.opam/4.02.1/lib/cow' '-I' '/=
home/mirage/.opam/4.02.1/lib/lwt' '-I' '/home/mirage/.opam/4.02.1/lib/lwt' =
'-parser' 'o' '-parser' 'op' '-printer' 'p' 'str.cma' 'pa_type_conv.cma' 'p=
a_dyntype.cma' 'xmlm.cma' 'uutf.cma' 'jsonm.cma' 'hex.cma' 'unix.cma' 'biga=
rray.cma' 'sexplib.cma' 'ezjsonm.cma' 'xmlm.cma' 'str.cma' 'pa_cow.cma' 'ez=
jsonm.cma' 'lwt-syntax-options.cma' 'lwt-syntax.cma'  'main.ml' > /tmp/ocam=
lpp7e1777

Command exited with code 2.
Compilation unsuccessful after building 1 target (0 cached) in 00:00:01.
make[1]: *** [main.native] Error 10
make[1]: Leaving directory `/home/mirage/mirage-decks/src'
make: *** [build] Error 2
~~~

I'm building this in Dom0:

~~~
mirage@cubietruck:~$ sudo xl list
Name                                        ID   Mem VCPUs      State   Tim=
e(s)
Domain-0                                     0   512     2     r-----     1=
54.7
~~~

Is there some way to control the amount of memory that `camlp4` uses?  Or m=
aybe I'm just going about this in the wrong way?

/M

--=20
Magnus Therning                      OpenPGP: 0xAB4DFBA4=20
email: magnus@therning.org   jabber: magnus@therning.org
twitter: magthe               http://therning.org/magnus

Failure is not an option. It comes bundled with the software.

--k1lZvvs/B4yU6o8G
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iEYEABECAAYFAlUQ9QMACgkQiMWTaatN+6T28QCg3RSTD+It116h80nesPjDz7lO
x6MAoMOGoR45U5hy/W4X/4vlzpj2HFC0
=cKOM
-----END PGP SIGNATURE-----

--k1lZvvs/B4yU6o8G--


--===============4924154550089035952==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============4924154550089035952==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 07:52:37 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 07:52:37 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaJdX-0000l1-5L; Tue, 24 Mar 2015 07:52:31 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YaJdV-0000ks-Uu
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 07:52:30 +0000
Received: from [85.158.139.211] by server-6.bemta-5.messagelabs.com id
	4B/96-01116-DB711155; Tue, 24 Mar 2015 07:52:29 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-16.tower-206.messagelabs.com!1427183548!8212191!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 10780 invoked from network); 24 Mar 2015 07:52:28 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-16.tower-206.messagelabs.com with DHE-RSA-AES256-SHA
	encrypted SMTP; 24 Mar 2015 07:52:28 -0000
Received: from [192.168.1.39] (cpc7-cmbg14-2-0-cust238.5-4.cable.virginm.net
	[86.30.244.239]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id e76be7bf;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Tue, 24 Mar 2015 07:52:27 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <20150324052426.GA1017@tatooine>
Date: Tue, 24 Mar 2015 07:52:26 +0000
Message-Id: <AD0AC498-4EF2-4693-9B2C-5DC86C87A8D1@recoil.org>
References: <20150324052426.GA1017@tatooine>
To: Magnus Therning <magnus@therning.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Compiling on/for ARM
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 24 Mar 2015, at 05:24, Magnus Therning <magnus@therning.org> wrote:
> 
> I thought github/mirage-decks would be a good first project to build
> on/for my Cubietruck.  So after installing the mirage tool via `opam`
> I cloned the decks project and proceeded to build it in unix mode.
> `make configure` worked just fine, but `make build` did not.
> Apparently `camlp4` requires more memory than what's available:
> 

mirage-decks isn't a great first choice -- mirage-www would be better.
The reason is that it currently crunches the *entire* slide deck into
memory rather than use an external block device.  We do need to port
the decks build system to dynamically read the slides off disk as they
have grown quite significantly.  What Mort and I normally do is to
delete the irrelevant slides from a local checkout on the ARM box.

Note that you can still get it compile fine if you setup a swap device
as normal on dom0, but compiling it will take forever due to building a
50MB OCaml source file.  I'd recommend just playing with mirage-www
instead, or the static_website example in mirage-skeleton (where you
just populate htdocs/ with whatever content you want)

-anil


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 07:52:37 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 07:52:37 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaJdX-0000l1-5L; Tue, 24 Mar 2015 07:52:31 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YaJdV-0000ks-Uu
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 07:52:30 +0000
Received: from [85.158.139.211] by server-6.bemta-5.messagelabs.com id
	4B/96-01116-DB711155; Tue, 24 Mar 2015 07:52:29 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-16.tower-206.messagelabs.com!1427183548!8212191!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 10780 invoked from network); 24 Mar 2015 07:52:28 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-16.tower-206.messagelabs.com with DHE-RSA-AES256-SHA
	encrypted SMTP; 24 Mar 2015 07:52:28 -0000
Received: from [192.168.1.39] (cpc7-cmbg14-2-0-cust238.5-4.cable.virginm.net
	[86.30.244.239]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id e76be7bf;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Tue, 24 Mar 2015 07:52:27 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <20150324052426.GA1017@tatooine>
Date: Tue, 24 Mar 2015 07:52:26 +0000
Message-Id: <AD0AC498-4EF2-4693-9B2C-5DC86C87A8D1@recoil.org>
References: <20150324052426.GA1017@tatooine>
To: Magnus Therning <magnus@therning.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Compiling on/for ARM
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 24 Mar 2015, at 05:24, Magnus Therning <magnus@therning.org> wrote:
> 
> I thought github/mirage-decks would be a good first project to build
> on/for my Cubietruck.  So after installing the mirage tool via `opam`
> I cloned the decks project and proceeded to build it in unix mode.
> `make configure` worked just fine, but `make build` did not.
> Apparently `camlp4` requires more memory than what's available:
> 

mirage-decks isn't a great first choice -- mirage-www would be better.
The reason is that it currently crunches the *entire* slide deck into
memory rather than use an external block device.  We do need to port
the decks build system to dynamically read the slides off disk as they
have grown quite significantly.  What Mort and I normally do is to
delete the irrelevant slides from a local checkout on the ARM box.

Note that you can still get it compile fine if you setup a swap device
as normal on dom0, but compiling it will take forever due to building a
50MB OCaml source file.  I'd recommend just playing with mirage-www
instead, or the static_website example in mirage-skeleton (where you
just populate htdocs/ with whatever content you want)

-anil


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 10:33:29 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 10:33:29 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaM9E-0003JE-5J; Tue, 24 Mar 2015 10:33:24 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <amc79@cam.ac.uk>) id 1YaM9D-0003J8-EB
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 10:33:23 +0000
Received: from [193.109.254.147] by server-1.bemta-14.messagelabs.com id
	59/50-01386-27D31155; Tue, 24 Mar 2015 10:33:22 +0000
X-Env-Sender: amc79@cam.ac.uk
X-Msg-Ref: server-6.tower-27.messagelabs.com!1427193201!12625177!1
X-Originating-IP: [131.111.8.152]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogMTMxLjExMS44LjE1MiA9PiA4MDU1Mw==\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 22993 invoked from network); 24 Mar 2015 10:33:22 -0000
Received: from ppsw-52.csi.cam.ac.uk (HELO ppsw-52.csi.cam.ac.uk)
	(131.111.8.152)
	by server-6.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 24 Mar 2015 10:33:22 -0000
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from host31-51-141-46.range31-51.btcentralplus.com
	([31.51.141.46]:50528 helo=[10.0.0.152])
	by ppsw-52.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.159]:587)
	with esmtpsa (PLAIN:amc79) (TLSv1:AES128-SHA:128)
	id 1YaM9B-00060u-Ef (Exim 4.82_3-c0e5623) for
	mirageos-devel@lists.xenproject.org
	(return-path <amc79@cam.ac.uk>); Tue, 24 Mar 2015 10:33:21 +0000
From: Amir Chaudhry <amc79@cam.ac.uk>
Message-Id: <AFD1AE34-A8DD-44F5-A1C6-B22250AA03C7@cam.ac.uk>
Date: Tue, 24 Mar 2015 10:33:19 +0000
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
X-Mailer: Apple Mail (2.1510)
Subject: [MirageOS-devel] Mirage fortnightly call - Wednesday 25th at 4pm GMT
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: quoted-printable
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi folks,

The next Mirage call will take place this Wednesday afternoon at 4pm GMT an=
d is open to all.  =


Dave, our trusty GoToMeeting provider, is journeying in distant lands so we=
'll be using Google Hangout this time.  I'll circulate the link shortly bef=
ore the call -- both to this list and in the IRC channel (#mirage on freeno=
de)

Minutes from last time are at http://openmirage.org/wiki/weekly-2015-03-11

The agenda for this week is currently as follows:

=95 Quality and Test
=95 Mirage.io status
=95 3.0 Planning

If you have things to add/edit, please do so at https://github.com/mirage/m=
irage-www/wiki/Call-Agenda

Join us at 4pm GMT on Wednesday!

Best wishes,
Amir

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 10:33:29 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 10:33:29 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaM9E-0003JE-5J; Tue, 24 Mar 2015 10:33:24 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <amc79@cam.ac.uk>) id 1YaM9D-0003J8-EB
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 10:33:23 +0000
Received: from [193.109.254.147] by server-1.bemta-14.messagelabs.com id
	59/50-01386-27D31155; Tue, 24 Mar 2015 10:33:22 +0000
X-Env-Sender: amc79@cam.ac.uk
X-Msg-Ref: server-6.tower-27.messagelabs.com!1427193201!12625177!1
X-Originating-IP: [131.111.8.152]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogMTMxLjExMS44LjE1MiA9PiA4MDU1Mw==\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 22993 invoked from network); 24 Mar 2015 10:33:22 -0000
Received: from ppsw-52.csi.cam.ac.uk (HELO ppsw-52.csi.cam.ac.uk)
	(131.111.8.152)
	by server-6.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 24 Mar 2015 10:33:22 -0000
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from host31-51-141-46.range31-51.btcentralplus.com
	([31.51.141.46]:50528 helo=[10.0.0.152])
	by ppsw-52.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.159]:587)
	with esmtpsa (PLAIN:amc79) (TLSv1:AES128-SHA:128)
	id 1YaM9B-00060u-Ef (Exim 4.82_3-c0e5623) for
	mirageos-devel@lists.xenproject.org
	(return-path <amc79@cam.ac.uk>); Tue, 24 Mar 2015 10:33:21 +0000
From: Amir Chaudhry <amc79@cam.ac.uk>
Message-Id: <AFD1AE34-A8DD-44F5-A1C6-B22250AA03C7@cam.ac.uk>
Date: Tue, 24 Mar 2015 10:33:19 +0000
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
X-Mailer: Apple Mail (2.1510)
Subject: [MirageOS-devel] Mirage fortnightly call - Wednesday 25th at 4pm GMT
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: quoted-printable
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi folks,

The next Mirage call will take place this Wednesday afternoon at 4pm GMT an=
d is open to all.  =


Dave, our trusty GoToMeeting provider, is journeying in distant lands so we=
'll be using Google Hangout this time.  I'll circulate the link shortly bef=
ore the call -- both to this list and in the IRC channel (#mirage on freeno=
de)

Minutes from last time are at http://openmirage.org/wiki/weekly-2015-03-11

The agenda for this week is currently as follows:

=95 Quality and Test
=95 Mirage.io status
=95 3.0 Planning

If you have things to add/edit, please do so at https://github.com/mirage/m=
irage-www/wiki/Call-Agenda

Join us at 4pm GMT on Wednesday!

Best wishes,
Amir

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 11:00:02 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 11:00:02 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaMYz-00075D-KB; Tue, 24 Mar 2015 11:00:01 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <lars.kurth.xen@gmail.com>) id 1YaMYy-00073k-Fs
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 11:00:00 +0000
Received: from [85.158.139.211] by server-5.bemta-5.messagelabs.com id
	91/66-28741-FA341155; Tue, 24 Mar 2015 10:59:59 +0000
X-Env-Sender: lars.kurth.xen@gmail.com
X-Msg-Ref: server-11.tower-206.messagelabs.com!1427194798!7041606!1
X-Originating-IP: [74.125.82.174]
X-SpamReason: No, hits=0.0 required=7.0 tests=HTML_MESSAGE
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 32351 invoked from network); 24 Mar 2015 10:59:58 -0000
Received: from mail-we0-f174.google.com (HELO mail-we0-f174.google.com)
	(74.125.82.174)
	by server-11.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	24 Mar 2015 10:59:58 -0000
Received: by wetk59 with SMTP id k59so160264772wet.3
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 24 Mar 2015 03:59:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:content-type:subject:message-id:date:to:mime-version;
	bh=CMukTEZTj2zfkSUpe7kT/I3W1aGs660CbnJu+n3Cfvg=;
	b=fpD3KR9FaJeq19aKLUO5cN1rwkLfzqG/O1SXssdO4srxYMEwVDfFGFD16vJ1CL+6NQ
	+kebzCQ0x1e9WCpwhwtGYlixZ2Nwqin50Or9fQw0G5QkEpd4StVgCoHzvBEVxssAXz7R
	JPKAS2//j+fniZemTeq8hkmf3w5hgs1rWqGkbMrW03uDHmZV+VFYyUz5pAHOIIZWlJGZ
	2+CbQtmQbZKPuTrEUd6PkTPf86QhCVi5t3V1toq1gg6jZIOBRjgyfuufez4pKNuZnCJ2
	adVtU76fUBdX8oi5ZEKQmkFN7NbBEYdLivbwuTX1XLNAj8YJwE9N4qGW8JUipTL012Es
	QQrQ==
X-Received: by 10.194.234.40 with SMTP id ub8mr7070374wjc.100.1427194798490;
	Tue, 24 Mar 2015 03:59:58 -0700 (PDT)
Received: from [192.168.0.12] (97e5522d.skybroadband.com. [151.229.82.45])
	by mx.google.com with ESMTPSA id e2sm5523649wjy.46.2015.03.24.03.59.57
	for <mirageos-devel@lists.xenproject.org>
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 24 Mar 2015 03:59:57 -0700 (PDT)
From: Lars Kurth <lars.kurth.xen@gmail.com>
Message-Id: <C201C6A3-B527-4A23-AB43-66330E4ED3D6@gmail.com>
Date: Tue, 24 Mar 2015 10:59:57 +0000
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
X-Mailer: Apple Mail (2.2070.6)
Subject: [MirageOS-devel] March Advisory Board Meeting Minutes
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============4552400431441436151=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============4552400431441436151==
Content-Type: multipart/alternative; boundary="Apple-Mail=_2A157503-65BA-429D-8C7A-6665D16F5510"


--Apple-Mail=_2A157503-65BA-429D-8C7A-6665D16F5510
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

See http://wiki.xenproject.org/wiki/AB_Meeting/March_2015_Minutes =
<http://wiki.xenproject.org/wiki/AB_Meeting/March_2015_Minutes>=

--Apple-Mail=_2A157503-65BA-429D-8C7A-6665D16F5510
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">See&nbsp;<a href="http://wiki.xenproject.org/wiki/AB_Meeting/March_2015_Minutes" class="">http://wiki.xenproject.org/wiki/AB_Meeting/March_2015_Minutes</a></body></html>
--Apple-Mail=_2A157503-65BA-429D-8C7A-6665D16F5510--


--===============4552400431441436151==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============4552400431441436151==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 11:00:02 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 11:00:02 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaMYz-00075D-KB; Tue, 24 Mar 2015 11:00:01 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <lars.kurth.xen@gmail.com>) id 1YaMYy-00073k-Fs
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 11:00:00 +0000
Received: from [85.158.139.211] by server-5.bemta-5.messagelabs.com id
	91/66-28741-FA341155; Tue, 24 Mar 2015 10:59:59 +0000
X-Env-Sender: lars.kurth.xen@gmail.com
X-Msg-Ref: server-11.tower-206.messagelabs.com!1427194798!7041606!1
X-Originating-IP: [74.125.82.174]
X-SpamReason: No, hits=0.0 required=7.0 tests=HTML_MESSAGE
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 32351 invoked from network); 24 Mar 2015 10:59:58 -0000
Received: from mail-we0-f174.google.com (HELO mail-we0-f174.google.com)
	(74.125.82.174)
	by server-11.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	24 Mar 2015 10:59:58 -0000
Received: by wetk59 with SMTP id k59so160264772wet.3
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 24 Mar 2015 03:59:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:content-type:subject:message-id:date:to:mime-version;
	bh=CMukTEZTj2zfkSUpe7kT/I3W1aGs660CbnJu+n3Cfvg=;
	b=fpD3KR9FaJeq19aKLUO5cN1rwkLfzqG/O1SXssdO4srxYMEwVDfFGFD16vJ1CL+6NQ
	+kebzCQ0x1e9WCpwhwtGYlixZ2Nwqin50Or9fQw0G5QkEpd4StVgCoHzvBEVxssAXz7R
	JPKAS2//j+fniZemTeq8hkmf3w5hgs1rWqGkbMrW03uDHmZV+VFYyUz5pAHOIIZWlJGZ
	2+CbQtmQbZKPuTrEUd6PkTPf86QhCVi5t3V1toq1gg6jZIOBRjgyfuufez4pKNuZnCJ2
	adVtU76fUBdX8oi5ZEKQmkFN7NbBEYdLivbwuTX1XLNAj8YJwE9N4qGW8JUipTL012Es
	QQrQ==
X-Received: by 10.194.234.40 with SMTP id ub8mr7070374wjc.100.1427194798490;
	Tue, 24 Mar 2015 03:59:58 -0700 (PDT)
Received: from [192.168.0.12] (97e5522d.skybroadband.com. [151.229.82.45])
	by mx.google.com with ESMTPSA id e2sm5523649wjy.46.2015.03.24.03.59.57
	for <mirageos-devel@lists.xenproject.org>
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 24 Mar 2015 03:59:57 -0700 (PDT)
From: Lars Kurth <lars.kurth.xen@gmail.com>
Message-Id: <C201C6A3-B527-4A23-AB43-66330E4ED3D6@gmail.com>
Date: Tue, 24 Mar 2015 10:59:57 +0000
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
X-Mailer: Apple Mail (2.2070.6)
Subject: [MirageOS-devel] March Advisory Board Meeting Minutes
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============4552400431441436151=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============4552400431441436151==
Content-Type: multipart/alternative; boundary="Apple-Mail=_2A157503-65BA-429D-8C7A-6665D16F5510"


--Apple-Mail=_2A157503-65BA-429D-8C7A-6665D16F5510
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

See http://wiki.xenproject.org/wiki/AB_Meeting/March_2015_Minutes =
<http://wiki.xenproject.org/wiki/AB_Meeting/March_2015_Minutes>=

--Apple-Mail=_2A157503-65BA-429D-8C7A-6665D16F5510
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">See&nbsp;<a href="http://wiki.xenproject.org/wiki/AB_Meeting/March_2015_Minutes" class="">http://wiki.xenproject.org/wiki/AB_Meeting/March_2015_Minutes</a></body></html>
--Apple-Mail=_2A157503-65BA-429D-8C7A-6665D16F5510--


--===============4552400431441436151==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============4552400431441436151==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 11:42:45 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 11:42:45 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaNEI-0004Md-PN; Tue, 24 Mar 2015 11:42:42 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <heidihoward360@gmail.com>) id 1YaNEI-0004MV-8U
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 11:42:42 +0000
Received: from [85.158.139.211] by server-13.bemta-5.messagelabs.com id
	EB/E4-29186-1BD41155; Tue, 24 Mar 2015 11:42:41 +0000
X-Env-Sender: heidihoward360@gmail.com
X-Msg-Ref: server-12.tower-206.messagelabs.com!1427197356!11177033!1
X-Originating-IP: [209.85.223.176]
X-SpamReason: No, hits=0.4 required=7.0 tests=HTML_30_40,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 3435 invoked from network); 24 Mar 2015 11:42:37 -0000
Received: from mail-ie0-f176.google.com (HELO mail-ie0-f176.google.com)
	(209.85.223.176)
	by server-12.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	24 Mar 2015 11:42:37 -0000
Received: by iecvj10 with SMTP id vj10so57908126iec.0
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 24 Mar 2015 04:42:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:date:message-id:subject:from:to:content-type;
	bh=CQfZq0ISevrovqlxZaj1/A/Uii2Akk6+jYrkn6cOdX8=;
	b=e4tKxxAxkjx1bcTdzJh59LKzQtKdr2nELHSzVBr2cQCngHG0S226lRaoJDg8EKSUUl
	p5MKMviAmrksPSpDxsBRhkIG3y7WxZ1qeDGPZMIIgu9wlk3ergh2gbwKSUCNhqzl/i6R
	ew//A+duD4QNjM/1TU6+pARyPkXycAVvZWeaAja46YseQ0pLriYrgv3H7mWja24aR1lQ
	Zc0USYhq0IhSsUD1WbA35+CXAEgINXndVUMiKHH2pD+RLlZfdvvhBptEGh2lkl6D4CNu
	WVm3yRhBEeUzPnaogvKJgQff0W9XYQxo6DBEFeQEo0+wm7ECgDIJ6wo8DdqISyUm0hMD
	+XeA==
MIME-Version: 1.0
X-Received: by 10.42.218.138 with SMTP id hq10mr4485075icb.44.1427197356313;
	Tue, 24 Mar 2015 04:42:36 -0700 (PDT)
Received: by 10.36.103.149 with HTTP; Tue, 24 Mar 2015 04:42:36 -0700 (PDT)
Date: Tue, 24 Mar 2015 11:42:36 +0000
X-Google-Sender-Auth: 2rtB8X0UtHmkl7YxHrkNochTCT8
Message-ID: <CAJbByNreE8rd_9eqy52w0VigB8YA=mO3DsK_6kPQB4JfTmboMw@mail.gmail.com>
From: Heidi Howard <hh360@cam.ac.uk>
To: mirageos-devel@lists.xenproject.org
Subject: [MirageOS-devel]  tuntap on Yosemite
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2057044217872235454=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============2057044217872235454==
Content-Type: multipart/alternative; boundary=001a1135f5767291db05120747ec

--001a1135f5767291db05120747ec
Content-Type: text/plain; charset=UTF-8

Hi All

This isn't specific to mirageOS but i assume there a good number of tuntap
users here.

I have just install tuntap from the pkg on Yosemite (v 10.10.2) and the
installation seems to have worked fine:
e.g.

$ sudo ls /dev/tap
tap0   tap10  tap12  tap14  tap2   tap4   tap6   tap8
tap1   tap11  tap13  tap15  tap3   tap5   tap7   tap9

But i can't seem to use the tap0 interface, mirageos application cannot
connect to tap0 (though they work fine in my other machine) and neither can
I using ifconfig.

Any advise?


-- 
Regards
Heidi

--001a1135f5767291db05120747ec
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi All<div><br></div><div>This isn&#39;t specific to mirag=
eOS but i assume there a good number of tuntap users here.</div><div><br></=
div><div>I have just install tuntap from the pkg on Yosemite (v 10.10.2) an=
d the installation seems to have worked fine:</div><div>e.g.</div><div><br>=
</div><div><div>$ sudo ls /dev/tap</div><div>tap0 =C2=A0 tap10 =C2=A0tap12 =
=C2=A0tap14 =C2=A0tap2 =C2=A0 tap4 =C2=A0 tap6 =C2=A0 tap8</div><div>tap1 =
=C2=A0 tap11 =C2=A0tap13 =C2=A0tap15 =C2=A0tap3 =C2=A0 tap5 =C2=A0 tap7 =C2=
=A0 tap9</div></div><div><br></div><div>But i can&#39;t seem to use the tap=
0 interface, mirageos application cannot connect to tap0 (though they work =
fine in my other machine) and neither can I using ifconfig.</div><div><br><=
/div><div>Any advise?=C2=A0</div><div><br></div><div><div><br></div>-- <br>=
<div class=3D"gmail_signature">Regards<br>Heidi<br></div>
</div></div>

--001a1135f5767291db05120747ec--


--===============2057044217872235454==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============2057044217872235454==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 11:42:45 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 11:42:45 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaNEI-0004Md-PN; Tue, 24 Mar 2015 11:42:42 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <heidihoward360@gmail.com>) id 1YaNEI-0004MV-8U
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 11:42:42 +0000
Received: from [85.158.139.211] by server-13.bemta-5.messagelabs.com id
	EB/E4-29186-1BD41155; Tue, 24 Mar 2015 11:42:41 +0000
X-Env-Sender: heidihoward360@gmail.com
X-Msg-Ref: server-12.tower-206.messagelabs.com!1427197356!11177033!1
X-Originating-IP: [209.85.223.176]
X-SpamReason: No, hits=0.4 required=7.0 tests=HTML_30_40,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 3435 invoked from network); 24 Mar 2015 11:42:37 -0000
Received: from mail-ie0-f176.google.com (HELO mail-ie0-f176.google.com)
	(209.85.223.176)
	by server-12.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	24 Mar 2015 11:42:37 -0000
Received: by iecvj10 with SMTP id vj10so57908126iec.0
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 24 Mar 2015 04:42:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:date:message-id:subject:from:to:content-type;
	bh=CQfZq0ISevrovqlxZaj1/A/Uii2Akk6+jYrkn6cOdX8=;
	b=e4tKxxAxkjx1bcTdzJh59LKzQtKdr2nELHSzVBr2cQCngHG0S226lRaoJDg8EKSUUl
	p5MKMviAmrksPSpDxsBRhkIG3y7WxZ1qeDGPZMIIgu9wlk3ergh2gbwKSUCNhqzl/i6R
	ew//A+duD4QNjM/1TU6+pARyPkXycAVvZWeaAja46YseQ0pLriYrgv3H7mWja24aR1lQ
	Zc0USYhq0IhSsUD1WbA35+CXAEgINXndVUMiKHH2pD+RLlZfdvvhBptEGh2lkl6D4CNu
	WVm3yRhBEeUzPnaogvKJgQff0W9XYQxo6DBEFeQEo0+wm7ECgDIJ6wo8DdqISyUm0hMD
	+XeA==
MIME-Version: 1.0
X-Received: by 10.42.218.138 with SMTP id hq10mr4485075icb.44.1427197356313;
	Tue, 24 Mar 2015 04:42:36 -0700 (PDT)
Received: by 10.36.103.149 with HTTP; Tue, 24 Mar 2015 04:42:36 -0700 (PDT)
Date: Tue, 24 Mar 2015 11:42:36 +0000
X-Google-Sender-Auth: 2rtB8X0UtHmkl7YxHrkNochTCT8
Message-ID: <CAJbByNreE8rd_9eqy52w0VigB8YA=mO3DsK_6kPQB4JfTmboMw@mail.gmail.com>
From: Heidi Howard <hh360@cam.ac.uk>
To: mirageos-devel@lists.xenproject.org
Subject: [MirageOS-devel]  tuntap on Yosemite
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2057044217872235454=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============2057044217872235454==
Content-Type: multipart/alternative; boundary=001a1135f5767291db05120747ec

--001a1135f5767291db05120747ec
Content-Type: text/plain; charset=UTF-8

Hi All

This isn't specific to mirageOS but i assume there a good number of tuntap
users here.

I have just install tuntap from the pkg on Yosemite (v 10.10.2) and the
installation seems to have worked fine:
e.g.

$ sudo ls /dev/tap
tap0   tap10  tap12  tap14  tap2   tap4   tap6   tap8
tap1   tap11  tap13  tap15  tap3   tap5   tap7   tap9

But i can't seem to use the tap0 interface, mirageos application cannot
connect to tap0 (though they work fine in my other machine) and neither can
I using ifconfig.

Any advise?


-- 
Regards
Heidi

--001a1135f5767291db05120747ec
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi All<div><br></div><div>This isn&#39;t specific to mirag=
eOS but i assume there a good number of tuntap users here.</div><div><br></=
div><div>I have just install tuntap from the pkg on Yosemite (v 10.10.2) an=
d the installation seems to have worked fine:</div><div>e.g.</div><div><br>=
</div><div><div>$ sudo ls /dev/tap</div><div>tap0 =C2=A0 tap10 =C2=A0tap12 =
=C2=A0tap14 =C2=A0tap2 =C2=A0 tap4 =C2=A0 tap6 =C2=A0 tap8</div><div>tap1 =
=C2=A0 tap11 =C2=A0tap13 =C2=A0tap15 =C2=A0tap3 =C2=A0 tap5 =C2=A0 tap7 =C2=
=A0 tap9</div></div><div><br></div><div>But i can&#39;t seem to use the tap=
0 interface, mirageos application cannot connect to tap0 (though they work =
fine in my other machine) and neither can I using ifconfig.</div><div><br><=
/div><div>Any advise?=C2=A0</div><div><br></div><div><div><br></div>-- <br>=
<div class=3D"gmail_signature">Regards<br>Heidi<br></div>
</div></div>

--001a1135f5767291db05120747ec--


--===============2057044217872235454==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============2057044217872235454==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 11:46:27 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 11:46:27 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaNHu-00050l-My; Tue, 24 Mar 2015 11:46:26 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YaNHt-0004zy-EI
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 11:46:25 +0000
Received: from [193.109.254.147] by server-5.bemta-14.messagelabs.com id
	9E/40-04120-09E41155; Tue, 24 Mar 2015 11:46:24 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-16.tower-27.messagelabs.com!1427197583!7263326!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.5 required=7.0 tests=MAILTO_TO_SPAM_ADDR,
	RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 10476 invoked from network); 24 Mar 2015 11:46:23 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-16.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 24 Mar 2015 11:46:23 -0000
Received: from dhcp-172-17-154-152.eduroam.wireless.private.cam.ac.uk
	(global-1-26.nat.csx.cam.ac.uk [131.111.184.26]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id afed2893;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Tue, 24 Mar 2015 11:46:23 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAJbByNreE8rd_9eqy52w0VigB8YA=mO3DsK_6kPQB4JfTmboMw@mail.gmail.com>
Date: Tue, 24 Mar 2015 11:46:21 +0000
Message-Id: <891D4471-B988-481D-B133-7F5B0D8DFC50@recoil.org>
References: <CAJbByNreE8rd_9eqy52w0VigB8YA=mO3DsK_6kPQB4JfTmboMw@mail.gmail.com>
To: Heidi Howard <hh360@cam.ac.uk>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] tuntap on Yosemite
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


> On 24 Mar 2015, at 11:42, Heidi Howard <hh360@cam.ac.uk> wrote:
> 
> Hi All
> 
> This isn't specific to mirageOS but i assume there a good number of tuntap users here.
> 
> I have just install tuntap from the pkg on Yosemite (v 10.10.2) and the installation seems to have worked fine:
> e.g.
> 
> $ sudo ls /dev/tap
> tap0   tap10  tap12  tap14  tap2   tap4   tap6   tap8
> tap1   tap11  tap13  tap15  tap3   tap5   tap7   tap9
> 
> But i can't seem to use the tap0 interface, mirageos application cannot connect to tap0 (though they work fine in my other machine) and neither can I using ifconfig.

What is the exact failure mode?  Are you using `mirage-net-unix` or `mirage-net-macosx` when the application is compiled? The `unix` library uses tuntap (the old behaviour) and the `macosx` library uses the Yosemite-specific Vmnet kernel module (which doesnt require the installation of an external kmod, and supports bridging traffic).

You can force the use of tuntap on MacOS X via "mirage configure -t unix" (otherwise it is defaulted to "mirage configure -t macosx")

-anil
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 11:46:27 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 11:46:27 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaNHu-00050l-My; Tue, 24 Mar 2015 11:46:26 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YaNHt-0004zy-EI
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 11:46:25 +0000
Received: from [193.109.254.147] by server-5.bemta-14.messagelabs.com id
	9E/40-04120-09E41155; Tue, 24 Mar 2015 11:46:24 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-16.tower-27.messagelabs.com!1427197583!7263326!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.5 required=7.0 tests=MAILTO_TO_SPAM_ADDR,
	RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 10476 invoked from network); 24 Mar 2015 11:46:23 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-16.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 24 Mar 2015 11:46:23 -0000
Received: from dhcp-172-17-154-152.eduroam.wireless.private.cam.ac.uk
	(global-1-26.nat.csx.cam.ac.uk [131.111.184.26]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id afed2893;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Tue, 24 Mar 2015 11:46:23 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAJbByNreE8rd_9eqy52w0VigB8YA=mO3DsK_6kPQB4JfTmboMw@mail.gmail.com>
Date: Tue, 24 Mar 2015 11:46:21 +0000
Message-Id: <891D4471-B988-481D-B133-7F5B0D8DFC50@recoil.org>
References: <CAJbByNreE8rd_9eqy52w0VigB8YA=mO3DsK_6kPQB4JfTmboMw@mail.gmail.com>
To: Heidi Howard <hh360@cam.ac.uk>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] tuntap on Yosemite
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


> On 24 Mar 2015, at 11:42, Heidi Howard <hh360@cam.ac.uk> wrote:
> 
> Hi All
> 
> This isn't specific to mirageOS but i assume there a good number of tuntap users here.
> 
> I have just install tuntap from the pkg on Yosemite (v 10.10.2) and the installation seems to have worked fine:
> e.g.
> 
> $ sudo ls /dev/tap
> tap0   tap10  tap12  tap14  tap2   tap4   tap6   tap8
> tap1   tap11  tap13  tap15  tap3   tap5   tap7   tap9
> 
> But i can't seem to use the tap0 interface, mirageos application cannot connect to tap0 (though they work fine in my other machine) and neither can I using ifconfig.

What is the exact failure mode?  Are you using `mirage-net-unix` or `mirage-net-macosx` when the application is compiled? The `unix` library uses tuntap (the old behaviour) and the `macosx` library uses the Yosemite-specific Vmnet kernel module (which doesnt require the installation of an external kmod, and supports bridging traffic).

You can force the use of tuntap on MacOS X via "mirage configure -t unix" (otherwise it is defaulted to "mirage configure -t macosx")

-anil
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 11:49:24 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 11:49:24 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaNKm-0005sz-34; Tue, 24 Mar 2015 11:49:24 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <heidihoward360@gmail.com>) id 1YaNKk-0005sV-Jj
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 11:49:22 +0000
Received: from [85.158.139.211] by server-9.bemta-5.messagelabs.com id
	F3/A0-15508-14F41155; Tue, 24 Mar 2015 11:49:21 +0000
X-Env-Sender: heidihoward360@gmail.com
X-Msg-Ref: server-12.tower-206.messagelabs.com!1427197759!11179647!1
X-Originating-IP: [209.85.223.175]
X-SpamReason: No, hits=0.7 required=7.0 tests=HTML_30_40,HTML_MESSAGE,
	MAILTO_TO_SPAM_ADDR,RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 31547 invoked from network); 24 Mar 2015 11:49:20 -0000
Received: from mail-ie0-f175.google.com (HELO mail-ie0-f175.google.com)
	(209.85.223.175)
	by server-12.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	24 Mar 2015 11:49:20 -0000
Received: by iedm5 with SMTP id m5so58033237ied.3
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 24 Mar 2015 04:49:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:in-reply-to:references:date:message-id:subject
	:from:to:cc:content-type;
	bh=jgTy+kxMlEEZPsomQvtCUmYF79pzeROrOjzlEEXk+1s=;
	b=gIRrMLB9zsW98C7srcEMutzwYXanfewH0leBdVIpW52f5bm5VEigrK2xOk8GhGVnMh
	nGBUV10jHAhs0PQDz3EWMUrg4ahkwjGU07F4SKKHQ3RkqtwJdQ1NcDtya74B6nZI2IB9
	bkZ5+yNxHdy+KYDuvGwbvLpNPeBIH/KZZ/Q4vbhAvvCXR5TThnOQUQj+IN5iqjs4Qike
	YRNHLMxiQV4ZvsKQNqOoCpsjRdk68v85J2zPe1mVnBsmc3w/T3m1oG2RuC//2l+Y7/yP
	aFxqBVo5CVKcW7wXVHEPWDQzKlcHMh4qG9dL6itjoHYOfJ1fUZigMR13nH1Lx8mHzGgv
	zVlA==
MIME-Version: 1.0
X-Received: by 10.42.210.148 with SMTP id gk20mr25315127icb.81.1427197759643; 
	Tue, 24 Mar 2015 04:49:19 -0700 (PDT)
Received: by 10.36.103.149 with HTTP; Tue, 24 Mar 2015 04:49:19 -0700 (PDT)
In-Reply-To: <891D4471-B988-481D-B133-7F5B0D8DFC50@recoil.org>
References: <CAJbByNreE8rd_9eqy52w0VigB8YA=mO3DsK_6kPQB4JfTmboMw@mail.gmail.com>
	<891D4471-B988-481D-B133-7F5B0D8DFC50@recoil.org>
Date: Tue, 24 Mar 2015 11:49:19 +0000
X-Google-Sender-Auth: Wo9Hc7ucRBBMhZq9hzUq1yQNh5M
Message-ID: <CAJbByNq6N7T+4-z2VOPnUZay0rDjwcNjL4TeyJe0wJvK96XukQ@mail.gmail.com>
From: Heidi Howard <hh360@cam.ac.uk>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] tuntap on Yosemite
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0017635881044567226=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============0017635881044567226==
Content-Type: multipart/alternative; boundary=20cf303dd6687ce6a50512075fb3

--20cf303dd6687ce6a50512075fb3
Content-Type: text/plain; charset=UTF-8

thanks, mirage configure -t unix seems to have fixed it

On 24 March 2015 at 11:46, Anil Madhavapeddy <anil@recoil.org> wrote:

>
> > On 24 Mar 2015, at 11:42, Heidi Howard <hh360@cam.ac.uk> wrote:
> >
> > Hi All
> >
> > This isn't specific to mirageOS but i assume there a good number of
> tuntap users here.
> >
> > I have just install tuntap from the pkg on Yosemite (v 10.10.2) and the
> installation seems to have worked fine:
> > e.g.
> >
> > $ sudo ls /dev/tap
> > tap0   tap10  tap12  tap14  tap2   tap4   tap6   tap8
> > tap1   tap11  tap13  tap15  tap3   tap5   tap7   tap9
> >
> > But i can't seem to use the tap0 interface, mirageos application cannot
> connect to tap0 (though they work fine in my other machine) and neither can
> I using ifconfig.
>
> What is the exact failure mode?  Are you using `mirage-net-unix` or
> `mirage-net-macosx` when the application is compiled? The `unix` library
> uses tuntap (the old behaviour) and the `macosx` library uses the
> Yosemite-specific Vmnet kernel module (which doesnt require the
> installation of an external kmod, and supports bridging traffic).
>
> You can force the use of tuntap on MacOS X via "mirage configure -t unix"
> (otherwise it is defaulted to "mirage configure -t macosx")
>
> -anil




-- 
Regards
Heidi

--20cf303dd6687ce6a50512075fb3
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">thanks,=C2=A0<span style=3D"color:rgb(0,0,0);font-size:12.=
8000001907349px">mirage configure -t unix seems to have fixed it</span></di=
v><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On 24 March 201=
5 at 11:46, Anil Madhavapeddy <span dir=3D"ltr">&lt;<a href=3D"mailto:anil@=
recoil.org" target=3D"_blank">anil@recoil.org</a>&gt;</span> wrote:<br><blo=
ckquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #c=
cc solid;padding-left:1ex"><div class=3D"HOEnZb"><div class=3D"h5"><br>
&gt; On 24 Mar 2015, at 11:42, Heidi Howard &lt;<a href=3D"mailto:hh360@cam=
.ac.uk">hh360@cam.ac.uk</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi All<br>
&gt;<br>
&gt; This isn&#39;t specific to mirageOS but i assume there a good number o=
f tuntap users here.<br>
&gt;<br>
&gt; I have just install tuntap from the pkg on Yosemite (v 10.10.2) and th=
e installation seems to have worked fine:<br>
&gt; e.g.<br>
&gt;<br>
&gt; $ sudo ls /dev/tap<br>
&gt; tap0=C2=A0 =C2=A0tap10=C2=A0 tap12=C2=A0 tap14=C2=A0 tap2=C2=A0 =C2=A0=
tap4=C2=A0 =C2=A0tap6=C2=A0 =C2=A0tap8<br>
&gt; tap1=C2=A0 =C2=A0tap11=C2=A0 tap13=C2=A0 tap15=C2=A0 tap3=C2=A0 =C2=A0=
tap5=C2=A0 =C2=A0tap7=C2=A0 =C2=A0tap9<br>
&gt;<br>
&gt; But i can&#39;t seem to use the tap0 interface, mirageos application c=
annot connect to tap0 (though they work fine in my other machine) and neith=
er can I using ifconfig.<br>
<br>
</div></div>What is the exact failure mode?=C2=A0 Are you using `mirage-net=
-unix` or `mirage-net-macosx` when the application is compiled? The `unix` =
library uses tuntap (the old behaviour) and the `macosx` library uses the Y=
osemite-specific Vmnet kernel module (which doesnt require the installation=
 of an external kmod, and supports bridging traffic).<br>
<br>
You can force the use of tuntap on MacOS X via &quot;mirage configure -t un=
ix&quot; (otherwise it is defaulted to &quot;mirage configure -t macosx&quo=
t;)<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
-anil</font></span></blockquote></div><br><br clear=3D"all"><div><br></div>=
-- <br><div class=3D"gmail_signature">Regards<br>Heidi<br></div>
</div>

--20cf303dd6687ce6a50512075fb3--


--===============0017635881044567226==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============0017635881044567226==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 11:49:24 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 11:49:24 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaNKm-0005sz-34; Tue, 24 Mar 2015 11:49:24 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <heidihoward360@gmail.com>) id 1YaNKk-0005sV-Jj
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 11:49:22 +0000
Received: from [85.158.139.211] by server-9.bemta-5.messagelabs.com id
	F3/A0-15508-14F41155; Tue, 24 Mar 2015 11:49:21 +0000
X-Env-Sender: heidihoward360@gmail.com
X-Msg-Ref: server-12.tower-206.messagelabs.com!1427197759!11179647!1
X-Originating-IP: [209.85.223.175]
X-SpamReason: No, hits=0.7 required=7.0 tests=HTML_30_40,HTML_MESSAGE,
	MAILTO_TO_SPAM_ADDR,RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 31547 invoked from network); 24 Mar 2015 11:49:20 -0000
Received: from mail-ie0-f175.google.com (HELO mail-ie0-f175.google.com)
	(209.85.223.175)
	by server-12.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	24 Mar 2015 11:49:20 -0000
Received: by iedm5 with SMTP id m5so58033237ied.3
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 24 Mar 2015 04:49:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:in-reply-to:references:date:message-id:subject
	:from:to:cc:content-type;
	bh=jgTy+kxMlEEZPsomQvtCUmYF79pzeROrOjzlEEXk+1s=;
	b=gIRrMLB9zsW98C7srcEMutzwYXanfewH0leBdVIpW52f5bm5VEigrK2xOk8GhGVnMh
	nGBUV10jHAhs0PQDz3EWMUrg4ahkwjGU07F4SKKHQ3RkqtwJdQ1NcDtya74B6nZI2IB9
	bkZ5+yNxHdy+KYDuvGwbvLpNPeBIH/KZZ/Q4vbhAvvCXR5TThnOQUQj+IN5iqjs4Qike
	YRNHLMxiQV4ZvsKQNqOoCpsjRdk68v85J2zPe1mVnBsmc3w/T3m1oG2RuC//2l+Y7/yP
	aFxqBVo5CVKcW7wXVHEPWDQzKlcHMh4qG9dL6itjoHYOfJ1fUZigMR13nH1Lx8mHzGgv
	zVlA==
MIME-Version: 1.0
X-Received: by 10.42.210.148 with SMTP id gk20mr25315127icb.81.1427197759643; 
	Tue, 24 Mar 2015 04:49:19 -0700 (PDT)
Received: by 10.36.103.149 with HTTP; Tue, 24 Mar 2015 04:49:19 -0700 (PDT)
In-Reply-To: <891D4471-B988-481D-B133-7F5B0D8DFC50@recoil.org>
References: <CAJbByNreE8rd_9eqy52w0VigB8YA=mO3DsK_6kPQB4JfTmboMw@mail.gmail.com>
	<891D4471-B988-481D-B133-7F5B0D8DFC50@recoil.org>
Date: Tue, 24 Mar 2015 11:49:19 +0000
X-Google-Sender-Auth: Wo9Hc7ucRBBMhZq9hzUq1yQNh5M
Message-ID: <CAJbByNq6N7T+4-z2VOPnUZay0rDjwcNjL4TeyJe0wJvK96XukQ@mail.gmail.com>
From: Heidi Howard <hh360@cam.ac.uk>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] tuntap on Yosemite
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0017635881044567226=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============0017635881044567226==
Content-Type: multipart/alternative; boundary=20cf303dd6687ce6a50512075fb3

--20cf303dd6687ce6a50512075fb3
Content-Type: text/plain; charset=UTF-8

thanks, mirage configure -t unix seems to have fixed it

On 24 March 2015 at 11:46, Anil Madhavapeddy <anil@recoil.org> wrote:

>
> > On 24 Mar 2015, at 11:42, Heidi Howard <hh360@cam.ac.uk> wrote:
> >
> > Hi All
> >
> > This isn't specific to mirageOS but i assume there a good number of
> tuntap users here.
> >
> > I have just install tuntap from the pkg on Yosemite (v 10.10.2) and the
> installation seems to have worked fine:
> > e.g.
> >
> > $ sudo ls /dev/tap
> > tap0   tap10  tap12  tap14  tap2   tap4   tap6   tap8
> > tap1   tap11  tap13  tap15  tap3   tap5   tap7   tap9
> >
> > But i can't seem to use the tap0 interface, mirageos application cannot
> connect to tap0 (though they work fine in my other machine) and neither can
> I using ifconfig.
>
> What is the exact failure mode?  Are you using `mirage-net-unix` or
> `mirage-net-macosx` when the application is compiled? The `unix` library
> uses tuntap (the old behaviour) and the `macosx` library uses the
> Yosemite-specific Vmnet kernel module (which doesnt require the
> installation of an external kmod, and supports bridging traffic).
>
> You can force the use of tuntap on MacOS X via "mirage configure -t unix"
> (otherwise it is defaulted to "mirage configure -t macosx")
>
> -anil




-- 
Regards
Heidi

--20cf303dd6687ce6a50512075fb3
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">thanks,=C2=A0<span style=3D"color:rgb(0,0,0);font-size:12.=
8000001907349px">mirage configure -t unix seems to have fixed it</span></di=
v><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On 24 March 201=
5 at 11:46, Anil Madhavapeddy <span dir=3D"ltr">&lt;<a href=3D"mailto:anil@=
recoil.org" target=3D"_blank">anil@recoil.org</a>&gt;</span> wrote:<br><blo=
ckquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #c=
cc solid;padding-left:1ex"><div class=3D"HOEnZb"><div class=3D"h5"><br>
&gt; On 24 Mar 2015, at 11:42, Heidi Howard &lt;<a href=3D"mailto:hh360@cam=
.ac.uk">hh360@cam.ac.uk</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi All<br>
&gt;<br>
&gt; This isn&#39;t specific to mirageOS but i assume there a good number o=
f tuntap users here.<br>
&gt;<br>
&gt; I have just install tuntap from the pkg on Yosemite (v 10.10.2) and th=
e installation seems to have worked fine:<br>
&gt; e.g.<br>
&gt;<br>
&gt; $ sudo ls /dev/tap<br>
&gt; tap0=C2=A0 =C2=A0tap10=C2=A0 tap12=C2=A0 tap14=C2=A0 tap2=C2=A0 =C2=A0=
tap4=C2=A0 =C2=A0tap6=C2=A0 =C2=A0tap8<br>
&gt; tap1=C2=A0 =C2=A0tap11=C2=A0 tap13=C2=A0 tap15=C2=A0 tap3=C2=A0 =C2=A0=
tap5=C2=A0 =C2=A0tap7=C2=A0 =C2=A0tap9<br>
&gt;<br>
&gt; But i can&#39;t seem to use the tap0 interface, mirageos application c=
annot connect to tap0 (though they work fine in my other machine) and neith=
er can I using ifconfig.<br>
<br>
</div></div>What is the exact failure mode?=C2=A0 Are you using `mirage-net=
-unix` or `mirage-net-macosx` when the application is compiled? The `unix` =
library uses tuntap (the old behaviour) and the `macosx` library uses the Y=
osemite-specific Vmnet kernel module (which doesnt require the installation=
 of an external kmod, and supports bridging traffic).<br>
<br>
You can force the use of tuntap on MacOS X via &quot;mirage configure -t un=
ix&quot; (otherwise it is defaulted to &quot;mirage configure -t macosx&quo=
t;)<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
-anil</font></span></blockquote></div><br><br clear=3D"all"><div><br></div>=
-- <br><div class=3D"gmail_signature">Regards<br>Heidi<br></div>
</div>

--20cf303dd6687ce6a50512075fb3--


--===============0017635881044567226==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============0017635881044567226==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 11:52:01 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 11:52:01 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaNNJ-0006KX-Qk; Tue, 24 Mar 2015 11:52:01 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YaNNI-0006KN-Kz
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 11:52:00 +0000
Received: from [193.109.254.147] by server-3.bemta-14.messagelabs.com id
	73/EF-21221-FDF41155; Tue, 24 Mar 2015 11:51:59 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-9.tower-27.messagelabs.com!1427197918!12659532!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.6 required=7.0 tests=HTML_50_60,HTML_MESSAGE,
	MAILTO_TO_SPAM_ADDR,RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 9158 invoked from network); 24 Mar 2015 11:51:58 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-9.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 24 Mar 2015 11:51:58 -0000
Received: from dhcp-172-17-154-152.eduroam.wireless.private.cam.ac.uk
	(global-1-26.nat.csx.cam.ac.uk [131.111.184.26]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id f355e076;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Tue, 24 Mar 2015 11:51:56 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAJbByNq6N7T+4-z2VOPnUZay0rDjwcNjL4TeyJe0wJvK96XukQ@mail.gmail.com>
Date: Tue, 24 Mar 2015 11:51:55 +0000
Message-Id: <0015CB54-1633-4156-8470-6D368241A5A8@recoil.org>
References: <CAJbByNreE8rd_9eqy52w0VigB8YA=mO3DsK_6kPQB4JfTmboMw@mail.gmail.com>
	<891D4471-B988-481D-B133-7F5B0D8DFC50@recoil.org>
	<CAJbByNq6N7T+4-z2VOPnUZay0rDjwcNjL4TeyJe0wJvK96XukQ@mail.gmail.com>
To: Heidi Howard <hh360@cam.ac.uk>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] tuntap on Yosemite
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============9006972420389117734=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============9006972420389117734==
Content-Type: multipart/alternative; boundary="Apple-Mail=_09141A88-14B9-449D-9531-CFC4C5A34462"


--Apple-Mail=_09141A88-14B9-449D-9531-CFC4C5A34462
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Excellent.  Note that in normal use, the native MacOS X one is better =
since your unikernel can make outgoing network requests.  The downside =
is that it doesn't support static IP (only DHCP), or at least I haven't =
found a way to make it happen.=20

-anil

> On 24 Mar 2015, at 11:49, Heidi Howard <hh360@cam.ac.uk> wrote:
>=20
> thanks, mirage configure -t unix seems to have fixed it
>=20
> On 24 March 2015 at 11:46, Anil Madhavapeddy <anil@recoil.org =
<mailto:anil@recoil.org>> wrote:
>=20
> > On 24 Mar 2015, at 11:42, Heidi Howard <hh360@cam.ac.uk =
<mailto:hh360@cam.ac.uk>> wrote:
> >
> > Hi All
> >
> > This isn't specific to mirageOS but i assume there a good number of =
tuntap users here.
> >
> > I have just install tuntap from the pkg on Yosemite (v 10.10.2) and =
the installation seems to have worked fine:
> > e.g.
> >
> > $ sudo ls /dev/tap
> > tap0   tap10  tap12  tap14  tap2   tap4   tap6   tap8
> > tap1   tap11  tap13  tap15  tap3   tap5   tap7   tap9
> >
> > But i can't seem to use the tap0 interface, mirageos application =
cannot connect to tap0 (though they work fine in my other machine) and =
neither can I using ifconfig.
>=20
> What is the exact failure mode?  Are you using `mirage-net-unix` or =
`mirage-net-macosx` when the application is compiled? The `unix` library =
uses tuntap (the old behaviour) and the `macosx` library uses the =
Yosemite-specific Vmnet kernel module (which doesnt require the =
installation of an external kmod, and supports bridging traffic).
>=20
> You can force the use of tuntap on MacOS X via "mirage configure -t =
unix" (otherwise it is defaulted to "mirage configure -t macosx")
>=20
> -anil
>=20
>=20
>=20
> --=20
> Regards
> Heidi


--Apple-Mail=_09141A88-14B9-449D-9531-CFC4C5A34462
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">Excellent. &nbsp;Note that in normal use, the native MacOS X =
one is better since your unikernel can make outgoing network requests. =
&nbsp;The downside is that it doesn't support static IP (only DHCP), or =
at least I haven't found a way to make it happen.&nbsp;<div class=3D""><br=
 class=3D""></div><div class=3D"">-anil</div><div class=3D""><br =
class=3D""><div><blockquote type=3D"cite" class=3D""><div class=3D"">On =
24 Mar 2015, at 11:49, Heidi Howard &lt;<a href=3D"mailto:hh360@cam.ac.uk"=
 class=3D"">hh360@cam.ac.uk</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" =
class=3D"">thanks,&nbsp;<span style=3D"font-size: 12.8000001907349px;" =
class=3D"">mirage configure -t unix seems to have fixed =
it</span></div><div class=3D"gmail_extra"><br class=3D""><div =
class=3D"gmail_quote">On 24 March 2015 at 11:46, Anil Madhavapeddy <span =
dir=3D"ltr" class=3D"">&lt;<a href=3D"mailto:anil@recoil.org" =
target=3D"_blank" class=3D"">anil@recoil.org</a>&gt;</span> wrote:<br =
class=3D""><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div =
class=3D"HOEnZb"><div class=3D"h5"><br class=3D"">
&gt; On 24 Mar 2015, at 11:42, Heidi Howard &lt;<a =
href=3D"mailto:hh360@cam.ac.uk" class=3D"">hh360@cam.ac.uk</a>&gt; =
wrote:<br class=3D"">
&gt;<br class=3D"">
&gt; Hi All<br class=3D"">
&gt;<br class=3D"">
&gt; This isn't specific to mirageOS but i assume there a good number of =
tuntap users here.<br class=3D"">
&gt;<br class=3D"">
&gt; I have just install tuntap from the pkg on Yosemite (v 10.10.2) and =
the installation seems to have worked fine:<br class=3D"">
&gt; e.g.<br class=3D"">
&gt;<br class=3D"">
&gt; $ sudo ls /dev/tap<br class=3D"">
&gt; tap0&nbsp; &nbsp;tap10&nbsp; tap12&nbsp; tap14&nbsp; tap2&nbsp; =
&nbsp;tap4&nbsp; &nbsp;tap6&nbsp; &nbsp;tap8<br class=3D"">
&gt; tap1&nbsp; &nbsp;tap11&nbsp; tap13&nbsp; tap15&nbsp; tap3&nbsp; =
&nbsp;tap5&nbsp; &nbsp;tap7&nbsp; &nbsp;tap9<br class=3D"">
&gt;<br class=3D"">
&gt; But i can't seem to use the tap0 interface, mirageos application =
cannot connect to tap0 (though they work fine in my other machine) and =
neither can I using ifconfig.<br class=3D"">
<br class=3D"">
</div></div>What is the exact failure mode?&nbsp; Are you using =
`mirage-net-unix` or `mirage-net-macosx` when the application is =
compiled? The `unix` library uses tuntap (the old behaviour) and the =
`macosx` library uses the Yosemite-specific Vmnet kernel module (which =
doesnt require the installation of an external kmod, and supports =
bridging traffic).<br class=3D"">
<br class=3D"">
You can force the use of tuntap on MacOS X via "mirage configure -t =
unix" (otherwise it is defaulted to "mirage configure -t macosx")<br =
class=3D"">
<span class=3D"HOEnZb"><font color=3D"#888888" class=3D""><br class=3D"">
-anil</font></span></blockquote></div><br class=3D""><br clear=3D"all" =
class=3D""><div class=3D""><br class=3D""></div>-- <br class=3D""><div =
class=3D"gmail_signature">Regards<br class=3D"">Heidi<br class=3D""></div>=

</div>
</div></blockquote></div><br class=3D""></div></body></html>=

--Apple-Mail=_09141A88-14B9-449D-9531-CFC4C5A34462--


--===============9006972420389117734==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============9006972420389117734==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 11:52:01 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 11:52:01 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaNNJ-0006KX-Qk; Tue, 24 Mar 2015 11:52:01 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YaNNI-0006KN-Kz
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 11:52:00 +0000
Received: from [193.109.254.147] by server-3.bemta-14.messagelabs.com id
	73/EF-21221-FDF41155; Tue, 24 Mar 2015 11:51:59 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-9.tower-27.messagelabs.com!1427197918!12659532!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.6 required=7.0 tests=HTML_50_60,HTML_MESSAGE,
	MAILTO_TO_SPAM_ADDR,RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 9158 invoked from network); 24 Mar 2015 11:51:58 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-9.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 24 Mar 2015 11:51:58 -0000
Received: from dhcp-172-17-154-152.eduroam.wireless.private.cam.ac.uk
	(global-1-26.nat.csx.cam.ac.uk [131.111.184.26]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id f355e076;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Tue, 24 Mar 2015 11:51:56 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAJbByNq6N7T+4-z2VOPnUZay0rDjwcNjL4TeyJe0wJvK96XukQ@mail.gmail.com>
Date: Tue, 24 Mar 2015 11:51:55 +0000
Message-Id: <0015CB54-1633-4156-8470-6D368241A5A8@recoil.org>
References: <CAJbByNreE8rd_9eqy52w0VigB8YA=mO3DsK_6kPQB4JfTmboMw@mail.gmail.com>
	<891D4471-B988-481D-B133-7F5B0D8DFC50@recoil.org>
	<CAJbByNq6N7T+4-z2VOPnUZay0rDjwcNjL4TeyJe0wJvK96XukQ@mail.gmail.com>
To: Heidi Howard <hh360@cam.ac.uk>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] tuntap on Yosemite
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============9006972420389117734=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============9006972420389117734==
Content-Type: multipart/alternative; boundary="Apple-Mail=_09141A88-14B9-449D-9531-CFC4C5A34462"


--Apple-Mail=_09141A88-14B9-449D-9531-CFC4C5A34462
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Excellent.  Note that in normal use, the native MacOS X one is better =
since your unikernel can make outgoing network requests.  The downside =
is that it doesn't support static IP (only DHCP), or at least I haven't =
found a way to make it happen.=20

-anil

> On 24 Mar 2015, at 11:49, Heidi Howard <hh360@cam.ac.uk> wrote:
>=20
> thanks, mirage configure -t unix seems to have fixed it
>=20
> On 24 March 2015 at 11:46, Anil Madhavapeddy <anil@recoil.org =
<mailto:anil@recoil.org>> wrote:
>=20
> > On 24 Mar 2015, at 11:42, Heidi Howard <hh360@cam.ac.uk =
<mailto:hh360@cam.ac.uk>> wrote:
> >
> > Hi All
> >
> > This isn't specific to mirageOS but i assume there a good number of =
tuntap users here.
> >
> > I have just install tuntap from the pkg on Yosemite (v 10.10.2) and =
the installation seems to have worked fine:
> > e.g.
> >
> > $ sudo ls /dev/tap
> > tap0   tap10  tap12  tap14  tap2   tap4   tap6   tap8
> > tap1   tap11  tap13  tap15  tap3   tap5   tap7   tap9
> >
> > But i can't seem to use the tap0 interface, mirageos application =
cannot connect to tap0 (though they work fine in my other machine) and =
neither can I using ifconfig.
>=20
> What is the exact failure mode?  Are you using `mirage-net-unix` or =
`mirage-net-macosx` when the application is compiled? The `unix` library =
uses tuntap (the old behaviour) and the `macosx` library uses the =
Yosemite-specific Vmnet kernel module (which doesnt require the =
installation of an external kmod, and supports bridging traffic).
>=20
> You can force the use of tuntap on MacOS X via "mirage configure -t =
unix" (otherwise it is defaulted to "mirage configure -t macosx")
>=20
> -anil
>=20
>=20
>=20
> --=20
> Regards
> Heidi


--Apple-Mail=_09141A88-14B9-449D-9531-CFC4C5A34462
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">Excellent. &nbsp;Note that in normal use, the native MacOS X =
one is better since your unikernel can make outgoing network requests. =
&nbsp;The downside is that it doesn't support static IP (only DHCP), or =
at least I haven't found a way to make it happen.&nbsp;<div class=3D""><br=
 class=3D""></div><div class=3D"">-anil</div><div class=3D""><br =
class=3D""><div><blockquote type=3D"cite" class=3D""><div class=3D"">On =
24 Mar 2015, at 11:49, Heidi Howard &lt;<a href=3D"mailto:hh360@cam.ac.uk"=
 class=3D"">hh360@cam.ac.uk</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" =
class=3D"">thanks,&nbsp;<span style=3D"font-size: 12.8000001907349px;" =
class=3D"">mirage configure -t unix seems to have fixed =
it</span></div><div class=3D"gmail_extra"><br class=3D""><div =
class=3D"gmail_quote">On 24 March 2015 at 11:46, Anil Madhavapeddy <span =
dir=3D"ltr" class=3D"">&lt;<a href=3D"mailto:anil@recoil.org" =
target=3D"_blank" class=3D"">anil@recoil.org</a>&gt;</span> wrote:<br =
class=3D""><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div =
class=3D"HOEnZb"><div class=3D"h5"><br class=3D"">
&gt; On 24 Mar 2015, at 11:42, Heidi Howard &lt;<a =
href=3D"mailto:hh360@cam.ac.uk" class=3D"">hh360@cam.ac.uk</a>&gt; =
wrote:<br class=3D"">
&gt;<br class=3D"">
&gt; Hi All<br class=3D"">
&gt;<br class=3D"">
&gt; This isn't specific to mirageOS but i assume there a good number of =
tuntap users here.<br class=3D"">
&gt;<br class=3D"">
&gt; I have just install tuntap from the pkg on Yosemite (v 10.10.2) and =
the installation seems to have worked fine:<br class=3D"">
&gt; e.g.<br class=3D"">
&gt;<br class=3D"">
&gt; $ sudo ls /dev/tap<br class=3D"">
&gt; tap0&nbsp; &nbsp;tap10&nbsp; tap12&nbsp; tap14&nbsp; tap2&nbsp; =
&nbsp;tap4&nbsp; &nbsp;tap6&nbsp; &nbsp;tap8<br class=3D"">
&gt; tap1&nbsp; &nbsp;tap11&nbsp; tap13&nbsp; tap15&nbsp; tap3&nbsp; =
&nbsp;tap5&nbsp; &nbsp;tap7&nbsp; &nbsp;tap9<br class=3D"">
&gt;<br class=3D"">
&gt; But i can't seem to use the tap0 interface, mirageos application =
cannot connect to tap0 (though they work fine in my other machine) and =
neither can I using ifconfig.<br class=3D"">
<br class=3D"">
</div></div>What is the exact failure mode?&nbsp; Are you using =
`mirage-net-unix` or `mirage-net-macosx` when the application is =
compiled? The `unix` library uses tuntap (the old behaviour) and the =
`macosx` library uses the Yosemite-specific Vmnet kernel module (which =
doesnt require the installation of an external kmod, and supports =
bridging traffic).<br class=3D"">
<br class=3D"">
You can force the use of tuntap on MacOS X via "mirage configure -t =
unix" (otherwise it is defaulted to "mirage configure -t macosx")<br =
class=3D"">
<span class=3D"HOEnZb"><font color=3D"#888888" class=3D""><br class=3D"">
-anil</font></span></blockquote></div><br class=3D""><br clear=3D"all" =
class=3D""><div class=3D""><br class=3D""></div>-- <br class=3D""><div =
class=3D"gmail_signature">Regards<br class=3D"">Heidi<br class=3D""></div>=

</div>
</div></blockquote></div><br class=3D""></div></body></html>=

--Apple-Mail=_09141A88-14B9-449D-9531-CFC4C5A34462--


--===============9006972420389117734==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============9006972420389117734==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 12:18:06 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 12:18:06 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaNmW-00025d-U8; Tue, 24 Mar 2015 12:18:04 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <daniel.buenzli@erratique.ch>) id 1YaNmV-00024b-RT
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 12:18:03 +0000
Received: from [85.158.137.68] by server-10.bemta-3.messagelabs.com id
	DF/8A-32368-BF551155; Tue, 24 Mar 2015 12:18:03 +0000
X-Env-Sender: daniel.buenzli@erratique.ch
X-Msg-Ref: server-8.tower-31.messagelabs.com!1427199482!15044966!1
X-Originating-IP: [74.55.86.74]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNzQuNTUuODYuNzQgPT4gMzA4NTYz\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 20399 invoked from network); 24 Mar 2015 12:18:02 -0000
Received: from mail6.webfaction.com (HELO smtp.webfaction.com) (74.55.86.74)
	by server-8.tower-31.messagelabs.com with SMTP;
	24 Mar 2015 12:18:02 -0000
Received: from [172.20.10.2]
	(80.226.197.178.dynamic.wless.zhbmb00p-cgnat.res.cust.swisscom.ch
	[178.197.226.80])
	by smtp.webfaction.com (Postfix) with ESMTP id 7339720F27BA;
	Tue, 24 Mar 2015 12:18:00 +0000 (UTC)
Date: Tue, 24 Mar 2015 13:17:56 +0100
From: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
To: Anil Madhavapeddy <anil@recoil.org>
Message-ID: <907D820797724F6A87531E2F6E70A704@erratique.ch>
In-Reply-To: <0015CB54-1633-4156-8470-6D368241A5A8@recoil.org>
References: <CAJbByNreE8rd_9eqy52w0VigB8YA=mO3DsK_6kPQB4JfTmboMw@mail.gmail.com>
	<891D4471-B988-481D-B133-7F5B0D8DFC50@recoil.org>
	<CAJbByNq6N7T+4-z2VOPnUZay0rDjwcNjL4TeyJe0wJvK96XukQ@mail.gmail.com>
	<0015CB54-1633-4156-8470-6D368241A5A8@recoil.org>
X-Mailer: sparrow 1.6.4 (build 1178)
MIME-Version: 1.0
Content-Disposition: inline
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] tuntap on Yosemite
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

TGUgbWFyZGksIDI0IG1hcnMgMjAxNSDDoCAxMjo1MSwgQW5pbCBNYWRoYXZhcGVkZHkgYSDDqWNy
aXQgOgo+IEV4Y2VsbGVudC4gTm90ZSB0aGF0IGluIG5vcm1hbCB1c2UsIHRoZSBuYXRpdmUgTWFj
T1MgWCBvbmUgaXMgYmV0dGVyIHNpbmNlIHlvdXIgdW5pa2VybmVsIGNhbiBtYWtlIG91dGdvaW5n
IG5ldHdvcmsgcmVxdWVzdHMuIFRoZSBkb3duc2lkZSBpcyB0aGF0IGl0IGRvZXNuJ3Qgc3VwcG9y
dCBzdGF0aWMgSVAgKG9ubHkgREhDUCksIG9yIGF0IGxlYXN0IEkgaGF2ZW4ndCBmb3VuZCBhIHdh
eSB0byBtYWtlIGl0IGhhcHBlbi4KCkJ0dy4gdGhpcyBpcyBtb3N0bHkgT1QgYnV0IGRpZCBhbnli
b2R5IGZpbmQgYSB3YXkgdG8gbWFrZSBpbnRlcm5ldCBzaGFyaW5nIHdvcmsgb24gWW9zZW1pdGUg
KDEwLjEwLjIpID8gIAoKSSB1c2VkIHRvIGJlIGFibGUgdG8gc2hhcmUgdGhlIChwaG9uZSB1c2Ip
IGludGVybmV0IGNvbm5lY3Rpb24gb2YgbXkgbGFwdG9wIHdpdGggdGhlIGxpdHRsZSBib3hlcyAo
cnBpLCBjdWJpZSkgdGhyb3VnaCB0aHVuZGVyYm9sdCBldGhlcm5ldCwgYnV0IEkgY2FuJ3QgYW55
bW9yZSB3aGljaCBpcyBxdWl0ZSBhbm5veWluZy4gIAoKSXQgc2VlbXMgdGhhdCBhbnkgY29tYmlu
YXRpb24gb2YgaW50ZXJuZXQgc2hhcmluZyAodXNiIHRvIHdpZmksIHRodW5kZXJib2x0IGV0aGVy
bmV0IHRvIHdpZmksIHdpZmkgdG8gZXRoZXJuZXQgdGh1bmRlcmJvbHQpIGlzIGNvbXBsZXRlbHkg
YnJva2VuIG9uIG15IG1hY2hpbmUgYW5kIHRoZSBsb2dzIG9yIHRoZSBpbnRlcm5ldCBkbyBub3Qg
c2F5IGFueXRoaW5nIG1lYW5pbmdmdWwg4oCUIHRob3VnaCBzb21lIG90aGVyIHBlb3BsZSBzZWVt
IHRvIGhhdmUgdGhlIHNhbWUsIHVuc29sdmVkLCBwcm9ibGVtLiAgCgpCZXN0LAoKRGFuaWVsCgoK
Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCk1pcmFnZU9T
LWRldmVsIG1haWxpbmcgbGlzdApNaXJhZ2VPUy1kZXZlbEBsaXN0cy54ZW5wcm9qZWN0Lm9yZwpo
dHRwOi8vbGlzdHMueGVucHJvamVjdC5vcmcvY2dpLWJpbi9tYWlsbWFuL2xpc3RpbmZvL21pcmFn
ZW9zLWRldmVsCg==

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 12:18:06 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 12:18:06 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaNmW-00025d-U8; Tue, 24 Mar 2015 12:18:04 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <daniel.buenzli@erratique.ch>) id 1YaNmV-00024b-RT
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 12:18:03 +0000
Received: from [85.158.137.68] by server-10.bemta-3.messagelabs.com id
	DF/8A-32368-BF551155; Tue, 24 Mar 2015 12:18:03 +0000
X-Env-Sender: daniel.buenzli@erratique.ch
X-Msg-Ref: server-8.tower-31.messagelabs.com!1427199482!15044966!1
X-Originating-IP: [74.55.86.74]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNzQuNTUuODYuNzQgPT4gMzA4NTYz\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 20399 invoked from network); 24 Mar 2015 12:18:02 -0000
Received: from mail6.webfaction.com (HELO smtp.webfaction.com) (74.55.86.74)
	by server-8.tower-31.messagelabs.com with SMTP;
	24 Mar 2015 12:18:02 -0000
Received: from [172.20.10.2]
	(80.226.197.178.dynamic.wless.zhbmb00p-cgnat.res.cust.swisscom.ch
	[178.197.226.80])
	by smtp.webfaction.com (Postfix) with ESMTP id 7339720F27BA;
	Tue, 24 Mar 2015 12:18:00 +0000 (UTC)
Date: Tue, 24 Mar 2015 13:17:56 +0100
From: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
To: Anil Madhavapeddy <anil@recoil.org>
Message-ID: <907D820797724F6A87531E2F6E70A704@erratique.ch>
In-Reply-To: <0015CB54-1633-4156-8470-6D368241A5A8@recoil.org>
References: <CAJbByNreE8rd_9eqy52w0VigB8YA=mO3DsK_6kPQB4JfTmboMw@mail.gmail.com>
	<891D4471-B988-481D-B133-7F5B0D8DFC50@recoil.org>
	<CAJbByNq6N7T+4-z2VOPnUZay0rDjwcNjL4TeyJe0wJvK96XukQ@mail.gmail.com>
	<0015CB54-1633-4156-8470-6D368241A5A8@recoil.org>
X-Mailer: sparrow 1.6.4 (build 1178)
MIME-Version: 1.0
Content-Disposition: inline
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] tuntap on Yosemite
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

TGUgbWFyZGksIDI0IG1hcnMgMjAxNSDDoCAxMjo1MSwgQW5pbCBNYWRoYXZhcGVkZHkgYSDDqWNy
aXQgOgo+IEV4Y2VsbGVudC4gTm90ZSB0aGF0IGluIG5vcm1hbCB1c2UsIHRoZSBuYXRpdmUgTWFj
T1MgWCBvbmUgaXMgYmV0dGVyIHNpbmNlIHlvdXIgdW5pa2VybmVsIGNhbiBtYWtlIG91dGdvaW5n
IG5ldHdvcmsgcmVxdWVzdHMuIFRoZSBkb3duc2lkZSBpcyB0aGF0IGl0IGRvZXNuJ3Qgc3VwcG9y
dCBzdGF0aWMgSVAgKG9ubHkgREhDUCksIG9yIGF0IGxlYXN0IEkgaGF2ZW4ndCBmb3VuZCBhIHdh
eSB0byBtYWtlIGl0IGhhcHBlbi4KCkJ0dy4gdGhpcyBpcyBtb3N0bHkgT1QgYnV0IGRpZCBhbnli
b2R5IGZpbmQgYSB3YXkgdG8gbWFrZSBpbnRlcm5ldCBzaGFyaW5nIHdvcmsgb24gWW9zZW1pdGUg
KDEwLjEwLjIpID8gIAoKSSB1c2VkIHRvIGJlIGFibGUgdG8gc2hhcmUgdGhlIChwaG9uZSB1c2Ip
IGludGVybmV0IGNvbm5lY3Rpb24gb2YgbXkgbGFwdG9wIHdpdGggdGhlIGxpdHRsZSBib3hlcyAo
cnBpLCBjdWJpZSkgdGhyb3VnaCB0aHVuZGVyYm9sdCBldGhlcm5ldCwgYnV0IEkgY2FuJ3QgYW55
bW9yZSB3aGljaCBpcyBxdWl0ZSBhbm5veWluZy4gIAoKSXQgc2VlbXMgdGhhdCBhbnkgY29tYmlu
YXRpb24gb2YgaW50ZXJuZXQgc2hhcmluZyAodXNiIHRvIHdpZmksIHRodW5kZXJib2x0IGV0aGVy
bmV0IHRvIHdpZmksIHdpZmkgdG8gZXRoZXJuZXQgdGh1bmRlcmJvbHQpIGlzIGNvbXBsZXRlbHkg
YnJva2VuIG9uIG15IG1hY2hpbmUgYW5kIHRoZSBsb2dzIG9yIHRoZSBpbnRlcm5ldCBkbyBub3Qg
c2F5IGFueXRoaW5nIG1lYW5pbmdmdWwg4oCUIHRob3VnaCBzb21lIG90aGVyIHBlb3BsZSBzZWVt
IHRvIGhhdmUgdGhlIHNhbWUsIHVuc29sdmVkLCBwcm9ibGVtLiAgCgpCZXN0LAoKRGFuaWVsCgoK
Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCk1pcmFnZU9T
LWRldmVsIG1haWxpbmcgbGlzdApNaXJhZ2VPUy1kZXZlbEBsaXN0cy54ZW5wcm9qZWN0Lm9yZwpo
dHRwOi8vbGlzdHMueGVucHJvamVjdC5vcmcvY2dpLWJpbi9tYWlsbWFuL2xpc3RpbmZvL21pcmFn
ZW9zLWRldmVsCg==

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 12:19:12 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 12:19:12 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaNnc-0002Is-Ff; Tue, 24 Mar 2015 12:19:12 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YaNnc-0002IG-4Y
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 12:19:12 +0000
Received: from [85.158.137.68] by server-9.bemta-3.messagelabs.com id
	AD/E8-18529-F3651155; Tue, 24 Mar 2015 12:19:11 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-8.tower-31.messagelabs.com!1427199549!15045485!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 6640 invoked from network); 24 Mar 2015 12:19:09 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-8.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 24 Mar 2015 12:19:09 -0000
Received: from dhcp-172-17-154-152.eduroam.wireless.private.cam.ac.uk
	(global-1-26.nat.csx.cam.ac.uk [131.111.184.26]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 3ea6e074;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Tue, 24 Mar 2015 12:19:08 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <907D820797724F6A87531E2F6E70A704@erratique.ch>
Date: Tue, 24 Mar 2015 12:19:07 +0000
Message-Id: <FF2FCF03-817F-4632-BE9D-13B3D39E2A58@recoil.org>
References: <CAJbByNreE8rd_9eqy52w0VigB8YA=mO3DsK_6kPQB4JfTmboMw@mail.gmail.com>
	<891D4471-B988-481D-B133-7F5B0D8DFC50@recoil.org>
	<CAJbByNq6N7T+4-z2VOPnUZay0rDjwcNjL4TeyJe0wJvK96XukQ@mail.gmail.com>
	<0015CB54-1633-4156-8470-6D368241A5A8@recoil.org>
	<907D820797724F6A87531E2F6E70A704@erratique.ch>
To: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] tuntap on Yosemite
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

T24gMjQgTWFyIDIwMTUsIGF0IDEyOjE3LCBEYW5pZWwgQsO8bnpsaSA8ZGFuaWVsLmJ1ZW56bGlA
ZXJyYXRpcXVlLmNoPiB3cm90ZToKPiAKPiBMZSBtYXJkaSwgMjQgbWFycyAyMDE1IMOgIDEyOjUx
LCBBbmlsIE1hZGhhdmFwZWRkeSBhIMOpY3JpdCA6Cj4+IEV4Y2VsbGVudC4gTm90ZSB0aGF0IGlu
IG5vcm1hbCB1c2UsIHRoZSBuYXRpdmUgTWFjT1MgWCBvbmUgaXMgYmV0dGVyIHNpbmNlIHlvdXIg
dW5pa2VybmVsIGNhbiBtYWtlIG91dGdvaW5nIG5ldHdvcmsgcmVxdWVzdHMuIFRoZSBkb3duc2lk
ZSBpcyB0aGF0IGl0IGRvZXNuJ3Qgc3VwcG9ydCBzdGF0aWMgSVAgKG9ubHkgREhDUCksIG9yIGF0
IGxlYXN0IEkgaGF2ZW4ndCBmb3VuZCBhIHdheSB0byBtYWtlIGl0IGhhcHBlbi4KPiAKPiBCdHcu
IHRoaXMgaXMgbW9zdGx5IE9UIGJ1dCBkaWQgYW55Ym9keSBmaW5kIGEgd2F5IHRvIG1ha2UgaW50
ZXJuZXQgc2hhcmluZyB3b3JrIG9uIFlvc2VtaXRlICgxMC4xMC4yKSA/ICAKPiAKPiBJIHVzZWQg
dG8gYmUgYWJsZSB0byBzaGFyZSB0aGUgKHBob25lIHVzYikgaW50ZXJuZXQgY29ubmVjdGlvbiBv
ZiBteSBsYXB0b3Agd2l0aCB0aGUgbGl0dGxlIGJveGVzIChycGksIGN1YmllKSB0aHJvdWdoIHRo
dW5kZXJib2x0IGV0aGVybmV0LCBidXQgSSBjYW4ndCBhbnltb3JlIHdoaWNoIGlzIHF1aXRlIGFu
bm95aW5nLiAgCj4gCj4gSXQgc2VlbXMgdGhhdCBhbnkgY29tYmluYXRpb24gb2YgaW50ZXJuZXQg
c2hhcmluZyAodXNiIHRvIHdpZmksIHRodW5kZXJib2x0IGV0aGVybmV0IHRvIHdpZmksIHdpZmkg
dG8gZXRoZXJuZXQgdGh1bmRlcmJvbHQpIGlzIGNvbXBsZXRlbHkgYnJva2VuIG9uIG15IG1hY2hp
bmUgYW5kIHRoZSBsb2dzIG9yIHRoZSBpbnRlcm5ldCBkbyBub3Qgc2F5IGFueXRoaW5nIG1lYW5p
bmdmdWwg4oCUIHRob3VnaCBzb21lIG90aGVyIHBlb3BsZSBzZWVtIHRvIGhhdmUgdGhlIHNhbWUs
IHVuc29sdmVkLCBwcm9ibGVtLiAgCgpJdCBkb2VzIHdvcmsgZm9yIG1lLCBidXQgaXMgc3VmZmlj
aWVudGx5IHVuc3RhYmxlIHRoYXQgYSBoYXJkIHJlYm9vdCBpcyBvY2Nhc2lvbmFsbHkgcmVxdWly
ZWQuICBTb21lIHN5c3RlbSBkYWVtb24gZXJyb3JzIG91dCB0aGF0IGNhdXNlcyBhbGwgc3Vic2Vx
dWVudCBuZXR3b3JrIHNoYXJpbmcgdG8gbm8gbG9uZ2VyIHdvcmsgdW5kZXIgc29tZSBjb25kaXRp
b25zLiAgSXQgY2xlYXJzIHVwIHdpdGggYSByZWJvb3QuCgotYW5pbApfX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpNaXJhZ2VPUy1kZXZlbCBtYWlsaW5nIGxp
c3QKTWlyYWdlT1MtZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cDovL2xpc3RzLnhlbnBy
b2plY3Qub3JnL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9taXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 12:19:12 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 12:19:12 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaNnc-0002Is-Ff; Tue, 24 Mar 2015 12:19:12 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YaNnc-0002IG-4Y
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 12:19:12 +0000
Received: from [85.158.137.68] by server-9.bemta-3.messagelabs.com id
	AD/E8-18529-F3651155; Tue, 24 Mar 2015 12:19:11 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-8.tower-31.messagelabs.com!1427199549!15045485!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 6640 invoked from network); 24 Mar 2015 12:19:09 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-8.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 24 Mar 2015 12:19:09 -0000
Received: from dhcp-172-17-154-152.eduroam.wireless.private.cam.ac.uk
	(global-1-26.nat.csx.cam.ac.uk [131.111.184.26]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 3ea6e074;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Tue, 24 Mar 2015 12:19:08 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <907D820797724F6A87531E2F6E70A704@erratique.ch>
Date: Tue, 24 Mar 2015 12:19:07 +0000
Message-Id: <FF2FCF03-817F-4632-BE9D-13B3D39E2A58@recoil.org>
References: <CAJbByNreE8rd_9eqy52w0VigB8YA=mO3DsK_6kPQB4JfTmboMw@mail.gmail.com>
	<891D4471-B988-481D-B133-7F5B0D8DFC50@recoil.org>
	<CAJbByNq6N7T+4-z2VOPnUZay0rDjwcNjL4TeyJe0wJvK96XukQ@mail.gmail.com>
	<0015CB54-1633-4156-8470-6D368241A5A8@recoil.org>
	<907D820797724F6A87531E2F6E70A704@erratique.ch>
To: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] tuntap on Yosemite
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

T24gMjQgTWFyIDIwMTUsIGF0IDEyOjE3LCBEYW5pZWwgQsO8bnpsaSA8ZGFuaWVsLmJ1ZW56bGlA
ZXJyYXRpcXVlLmNoPiB3cm90ZToKPiAKPiBMZSBtYXJkaSwgMjQgbWFycyAyMDE1IMOgIDEyOjUx
LCBBbmlsIE1hZGhhdmFwZWRkeSBhIMOpY3JpdCA6Cj4+IEV4Y2VsbGVudC4gTm90ZSB0aGF0IGlu
IG5vcm1hbCB1c2UsIHRoZSBuYXRpdmUgTWFjT1MgWCBvbmUgaXMgYmV0dGVyIHNpbmNlIHlvdXIg
dW5pa2VybmVsIGNhbiBtYWtlIG91dGdvaW5nIG5ldHdvcmsgcmVxdWVzdHMuIFRoZSBkb3duc2lk
ZSBpcyB0aGF0IGl0IGRvZXNuJ3Qgc3VwcG9ydCBzdGF0aWMgSVAgKG9ubHkgREhDUCksIG9yIGF0
IGxlYXN0IEkgaGF2ZW4ndCBmb3VuZCBhIHdheSB0byBtYWtlIGl0IGhhcHBlbi4KPiAKPiBCdHcu
IHRoaXMgaXMgbW9zdGx5IE9UIGJ1dCBkaWQgYW55Ym9keSBmaW5kIGEgd2F5IHRvIG1ha2UgaW50
ZXJuZXQgc2hhcmluZyB3b3JrIG9uIFlvc2VtaXRlICgxMC4xMC4yKSA/ICAKPiAKPiBJIHVzZWQg
dG8gYmUgYWJsZSB0byBzaGFyZSB0aGUgKHBob25lIHVzYikgaW50ZXJuZXQgY29ubmVjdGlvbiBv
ZiBteSBsYXB0b3Agd2l0aCB0aGUgbGl0dGxlIGJveGVzIChycGksIGN1YmllKSB0aHJvdWdoIHRo
dW5kZXJib2x0IGV0aGVybmV0LCBidXQgSSBjYW4ndCBhbnltb3JlIHdoaWNoIGlzIHF1aXRlIGFu
bm95aW5nLiAgCj4gCj4gSXQgc2VlbXMgdGhhdCBhbnkgY29tYmluYXRpb24gb2YgaW50ZXJuZXQg
c2hhcmluZyAodXNiIHRvIHdpZmksIHRodW5kZXJib2x0IGV0aGVybmV0IHRvIHdpZmksIHdpZmkg
dG8gZXRoZXJuZXQgdGh1bmRlcmJvbHQpIGlzIGNvbXBsZXRlbHkgYnJva2VuIG9uIG15IG1hY2hp
bmUgYW5kIHRoZSBsb2dzIG9yIHRoZSBpbnRlcm5ldCBkbyBub3Qgc2F5IGFueXRoaW5nIG1lYW5p
bmdmdWwg4oCUIHRob3VnaCBzb21lIG90aGVyIHBlb3BsZSBzZWVtIHRvIGhhdmUgdGhlIHNhbWUs
IHVuc29sdmVkLCBwcm9ibGVtLiAgCgpJdCBkb2VzIHdvcmsgZm9yIG1lLCBidXQgaXMgc3VmZmlj
aWVudGx5IHVuc3RhYmxlIHRoYXQgYSBoYXJkIHJlYm9vdCBpcyBvY2Nhc2lvbmFsbHkgcmVxdWly
ZWQuICBTb21lIHN5c3RlbSBkYWVtb24gZXJyb3JzIG91dCB0aGF0IGNhdXNlcyBhbGwgc3Vic2Vx
dWVudCBuZXR3b3JrIHNoYXJpbmcgdG8gbm8gbG9uZ2VyIHdvcmsgdW5kZXIgc29tZSBjb25kaXRp
b25zLiAgSXQgY2xlYXJzIHVwIHdpdGggYSByZWJvb3QuCgotYW5pbApfX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpNaXJhZ2VPUy1kZXZlbCBtYWlsaW5nIGxp
c3QKTWlyYWdlT1MtZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cDovL2xpc3RzLnhlbnBy
b2plY3Qub3JnL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9taXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 14:53:00 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 14:53:00 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaQCO-0007eQ-HI; Tue, 24 Mar 2015 14:52:56 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <lars.kurth.xen@gmail.com>)
	id 1YaQCM-0007de-Qc; Tue, 24 Mar 2015 14:52:55 +0000
Received: from [85.158.139.211] by server-5.bemta-5.messagelabs.com id
	26/41-28741-54A71155; Tue, 24 Mar 2015 14:52:53 +0000
X-Env-Sender: lars.kurth.xen@gmail.com
X-Msg-Ref: server-5.tower-206.messagelabs.com!1427208772!11229833!1
X-Originating-IP: [74.125.82.52]
X-SpamReason: No, hits=0.0 required=7.0 tests=HTML_MESSAGE
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 7620 invoked from network); 24 Mar 2015 14:52:52 -0000
Received: from mail-wg0-f52.google.com (HELO mail-wg0-f52.google.com)
	(74.125.82.52)
	by server-5.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	24 Mar 2015 14:52:52 -0000
Received: by wgdm6 with SMTP id m6so173246566wgd.2;
	Tue, 24 Mar 2015 07:52:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:content-type:subject:date:references:to:message-id
	:mime-version; bh=Hx44ajRsbGLBdArNZ4zXqC7BQIhOoVvKF5oCzbmktHs=;
	b=m/aC5ICB1n6m16WHTuPSwZ5qcVATcWkN0xIm2KcTmSNLIxGT+9omZ3tGmKhvGA0W8A
	2BU2gtrUsLu/1YQDmV3L7WbV2ZYshMsRlsGvOxuX2wjYaTegjtDfzHN/QAhk1g7CCY7q
	OQYm3ZxJZAMQnZ7NL6ZBIYg2IjNjTejBvBaB78R+X/MR9jLpQkHkUbARb6gl0jQrNNsd
	nOr2lI2epIa2HUeNsNYXvG/TaONI+7rAL3WrIv8qR0pH+xJcRbfqciucv0FtV1RjhCnK
	E8KjvhKEA6sX8AOO9vXtNuqKPmS/LJmKDKjECgyoVSo5Z+nBkZxqugg1sQvI0zo6Ujrs
	YQMg==
X-Received: by 10.180.103.170 with SMTP id fx10mr24048448wib.57.1427208772483; 
	Tue, 24 Mar 2015 07:52:52 -0700 (PDT)
Received: from [192.168.0.12] (97e5522d.skybroadband.com. [151.229.82.45])
	by mx.google.com with ESMTPSA id
	nd15sm16167573wic.8.2015.03.24.07.52.51
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 24 Mar 2015 07:52:51 -0700 (PDT)
From: Lars Kurth <lars.kurth.xen@gmail.com>
Date: Tue, 24 Mar 2015 14:52:50 +0000
References: <5955AACA-F561-4EA8-9936-2D2CB957489A@gmail.com>
To: xen-api@lists.xenproject.org, xen-devel <xen-devel@lists.xen.org>,
	mirageos-devel <mirageos-devel@lists.xenproject.org>,
	Win-pv-devel@lists.xenproject.org
Message-Id: <DE304421-EFEF-4B70-B7ED-EDA9EB67F574@gmail.com>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
X-Mailer: Apple Mail (2.2070.6)
Subject: [MirageOS-devel] Outreachy (formerly OPW) application deadline
	extended to April 7
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2646307963755402904=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============2646307963755402904==
Content-Type: multipart/alternative; boundary="Apple-Mail=_D0546D00-B09A-4800-91BD-673CFD451496"


--Apple-Mail=_D0546D00-B09A-4800-91BD-673CFD451496
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii

FYI: Will update the web pages and blog post

> Begin forwarded message:
> 
> Subject: Re: [COORDINATION] Extend your applicant deadline?
> From: Lars Kurth <lars.kurth.xen@gmail.com>
> Date: 24 March 2015 14:08:29 GMT
> Cc: outreachy-admins@gnome.org, outreachy-list@gnome.org
> To: Sarah A Sharp <sarah@thesharps.us>
> 
> Sarah,
> the Xen Project would like to do so
> Regards
> Lars
> 
>> On 24 Mar 2015, at 13:52, Sarah A Sharp <sarah@thesharps.us> wrote:
>> 
>> Greetings,
>> 
>> Please let me know if your organization would like to extend your
>> application deadline to April 7.  Organizations that need to pick
>> participants for Google Summer of Code (Ceph, Debian, GNOME,
>> OpenStreetMap, QEMU, and Wikimedia) may not want to extend their
>> deadline so that they can pick their interns for GSoC and Outreachy at
>> the same time.
>> 
>> Thanks,
>> Sarah Sharp
>> _______________________________________________
>> Outreachy-list mailing list
>> Outreachy-list@gnome.org
>> https://mail.gnome.org/mailman/listinfo/outreachy-list
> 


--Apple-Mail=_D0546D00-B09A-4800-91BD-673CFD451496
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">FYI: Will update the web pages and blog post<br =
class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D"">Begin forwarded message:</div><br =
class=3D"Apple-interchange-newline"><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=3D""><span=
 style=3D"font-family: -webkit-system-font, Helvetica Neue, Helvetica, =
sans-serif; color:rgba(0, 0, 0, 1.0);" class=3D""><b class=3D"">Subject: =
</b></span><span style=3D"font-family: -webkit-system-font, Helvetica =
Neue, Helvetica, sans-serif;" class=3D""><b class=3D"">Re: =
[COORDINATION] Extend your applicant deadline?</b><br =
class=3D""></span></div><div style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px;" class=3D""><span =
style=3D"font-family: -webkit-system-font, Helvetica Neue, Helvetica, =
sans-serif; color:rgba(0, 0, 0, 1.0);" class=3D""><b class=3D"">From: =
</b></span><span style=3D"font-family: -webkit-system-font, Helvetica =
Neue, Helvetica, sans-serif;" class=3D"">Lars Kurth &lt;<a =
href=3D"mailto:lars.kurth.xen@gmail.com" =
class=3D"">lars.kurth.xen@gmail.com</a>&gt;<br =
class=3D""></span></div><div style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px;" class=3D""><span =
style=3D"font-family: -webkit-system-font, Helvetica Neue, Helvetica, =
sans-serif; color:rgba(0, 0, 0, 1.0);" class=3D""><b class=3D"">Date: =
</b></span><span style=3D"font-family: -webkit-system-font, Helvetica =
Neue, Helvetica, sans-serif;" class=3D"">24 March 2015 14:08:29 GMT<br =
class=3D""></span></div><div style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px;" class=3D""><span =
style=3D"font-family: -webkit-system-font, Helvetica Neue, Helvetica, =
sans-serif; color:rgba(0, 0, 0, 1.0);" class=3D""><b class=3D"">Cc: =
</b></span><span style=3D"font-family: -webkit-system-font, Helvetica =
Neue, Helvetica, sans-serif;" class=3D""><a =
href=3D"mailto:outreachy-admins@gnome.org" =
class=3D"">outreachy-admins@gnome.org</a>, <a =
href=3D"mailto:outreachy-list@gnome.org" =
class=3D"">outreachy-list@gnome.org</a><br class=3D""></span></div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px;" class=3D""><span style=3D"font-family: =
-webkit-system-font, Helvetica Neue, Helvetica, sans-serif; =
color:rgba(0, 0, 0, 1.0);" class=3D""><b class=3D"">To: </b></span><span =
style=3D"font-family: -webkit-system-font, Helvetica Neue, Helvetica, =
sans-serif;" class=3D"">Sarah A Sharp &lt;<a =
href=3D"mailto:sarah@thesharps.us" =
class=3D"">sarah@thesharps.us</a>&gt;<br class=3D""></span></div><br =
class=3D""><div class=3D"">Sarah,<br class=3D"">the Xen Project would =
like to do so<br class=3D"">Regards<br class=3D"">Lars<br class=3D""><br =
class=3D""><blockquote type=3D"cite" class=3D"">On 24 Mar 2015, at =
13:52, Sarah A Sharp &lt;<a href=3D"mailto:sarah@thesharps.us" =
class=3D"">sarah@thesharps.us</a>&gt; wrote:<br class=3D""><br =
class=3D"">Greetings,<br class=3D""><br class=3D"">Please let me know if =
your organization would like to extend your<br class=3D"">application =
deadline to April 7. &nbsp;Organizations that need to pick<br =
class=3D"">participants for Google Summer of Code (Ceph, Debian, =
GNOME,<br class=3D"">OpenStreetMap, QEMU, and Wikimedia) may not want to =
extend their<br class=3D"">deadline so that they can pick their interns =
for GSoC and Outreachy at<br class=3D"">the same time.<br class=3D""><br =
class=3D"">Thanks,<br class=3D"">Sarah Sharp<br =
class=3D"">_______________________________________________<br =
class=3D"">Outreachy-list mailing list<br class=3D""><a =
href=3D"mailto:Outreachy-list@gnome.org" =
class=3D"">Outreachy-list@gnome.org</a><br =
class=3D"">https://mail.gnome.org/mailman/listinfo/outreachy-list<br =
class=3D""></blockquote><br class=3D""></div></blockquote></div><br =
class=3D""></body></html>=

--Apple-Mail=_D0546D00-B09A-4800-91BD-673CFD451496--


--===============2646307963755402904==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============2646307963755402904==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 14:53:00 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 14:53:00 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaQCO-0007eQ-HI; Tue, 24 Mar 2015 14:52:56 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <lars.kurth.xen@gmail.com>)
	id 1YaQCM-0007de-Qc; Tue, 24 Mar 2015 14:52:55 +0000
Received: from [85.158.139.211] by server-5.bemta-5.messagelabs.com id
	26/41-28741-54A71155; Tue, 24 Mar 2015 14:52:53 +0000
X-Env-Sender: lars.kurth.xen@gmail.com
X-Msg-Ref: server-5.tower-206.messagelabs.com!1427208772!11229833!1
X-Originating-IP: [74.125.82.52]
X-SpamReason: No, hits=0.0 required=7.0 tests=HTML_MESSAGE
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 7620 invoked from network); 24 Mar 2015 14:52:52 -0000
Received: from mail-wg0-f52.google.com (HELO mail-wg0-f52.google.com)
	(74.125.82.52)
	by server-5.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	24 Mar 2015 14:52:52 -0000
Received: by wgdm6 with SMTP id m6so173246566wgd.2;
	Tue, 24 Mar 2015 07:52:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:content-type:subject:date:references:to:message-id
	:mime-version; bh=Hx44ajRsbGLBdArNZ4zXqC7BQIhOoVvKF5oCzbmktHs=;
	b=m/aC5ICB1n6m16WHTuPSwZ5qcVATcWkN0xIm2KcTmSNLIxGT+9omZ3tGmKhvGA0W8A
	2BU2gtrUsLu/1YQDmV3L7WbV2ZYshMsRlsGvOxuX2wjYaTegjtDfzHN/QAhk1g7CCY7q
	OQYm3ZxJZAMQnZ7NL6ZBIYg2IjNjTejBvBaB78R+X/MR9jLpQkHkUbARb6gl0jQrNNsd
	nOr2lI2epIa2HUeNsNYXvG/TaONI+7rAL3WrIv8qR0pH+xJcRbfqciucv0FtV1RjhCnK
	E8KjvhKEA6sX8AOO9vXtNuqKPmS/LJmKDKjECgyoVSo5Z+nBkZxqugg1sQvI0zo6Ujrs
	YQMg==
X-Received: by 10.180.103.170 with SMTP id fx10mr24048448wib.57.1427208772483; 
	Tue, 24 Mar 2015 07:52:52 -0700 (PDT)
Received: from [192.168.0.12] (97e5522d.skybroadband.com. [151.229.82.45])
	by mx.google.com with ESMTPSA id
	nd15sm16167573wic.8.2015.03.24.07.52.51
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 24 Mar 2015 07:52:51 -0700 (PDT)
From: Lars Kurth <lars.kurth.xen@gmail.com>
Date: Tue, 24 Mar 2015 14:52:50 +0000
References: <5955AACA-F561-4EA8-9936-2D2CB957489A@gmail.com>
To: xen-api@lists.xenproject.org, xen-devel <xen-devel@lists.xen.org>,
	mirageos-devel <mirageos-devel@lists.xenproject.org>,
	Win-pv-devel@lists.xenproject.org
Message-Id: <DE304421-EFEF-4B70-B7ED-EDA9EB67F574@gmail.com>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
X-Mailer: Apple Mail (2.2070.6)
Subject: [MirageOS-devel] Outreachy (formerly OPW) application deadline
	extended to April 7
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2646307963755402904=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============2646307963755402904==
Content-Type: multipart/alternative; boundary="Apple-Mail=_D0546D00-B09A-4800-91BD-673CFD451496"


--Apple-Mail=_D0546D00-B09A-4800-91BD-673CFD451496
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii

FYI: Will update the web pages and blog post

> Begin forwarded message:
> 
> Subject: Re: [COORDINATION] Extend your applicant deadline?
> From: Lars Kurth <lars.kurth.xen@gmail.com>
> Date: 24 March 2015 14:08:29 GMT
> Cc: outreachy-admins@gnome.org, outreachy-list@gnome.org
> To: Sarah A Sharp <sarah@thesharps.us>
> 
> Sarah,
> the Xen Project would like to do so
> Regards
> Lars
> 
>> On 24 Mar 2015, at 13:52, Sarah A Sharp <sarah@thesharps.us> wrote:
>> 
>> Greetings,
>> 
>> Please let me know if your organization would like to extend your
>> application deadline to April 7.  Organizations that need to pick
>> participants for Google Summer of Code (Ceph, Debian, GNOME,
>> OpenStreetMap, QEMU, and Wikimedia) may not want to extend their
>> deadline so that they can pick their interns for GSoC and Outreachy at
>> the same time.
>> 
>> Thanks,
>> Sarah Sharp
>> _______________________________________________
>> Outreachy-list mailing list
>> Outreachy-list@gnome.org
>> https://mail.gnome.org/mailman/listinfo/outreachy-list
> 


--Apple-Mail=_D0546D00-B09A-4800-91BD-673CFD451496
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">FYI: Will update the web pages and blog post<br =
class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div =
class=3D"">Begin forwarded message:</div><br =
class=3D"Apple-interchange-newline"><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=3D""><span=
 style=3D"font-family: -webkit-system-font, Helvetica Neue, Helvetica, =
sans-serif; color:rgba(0, 0, 0, 1.0);" class=3D""><b class=3D"">Subject: =
</b></span><span style=3D"font-family: -webkit-system-font, Helvetica =
Neue, Helvetica, sans-serif;" class=3D""><b class=3D"">Re: =
[COORDINATION] Extend your applicant deadline?</b><br =
class=3D""></span></div><div style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px;" class=3D""><span =
style=3D"font-family: -webkit-system-font, Helvetica Neue, Helvetica, =
sans-serif; color:rgba(0, 0, 0, 1.0);" class=3D""><b class=3D"">From: =
</b></span><span style=3D"font-family: -webkit-system-font, Helvetica =
Neue, Helvetica, sans-serif;" class=3D"">Lars Kurth &lt;<a =
href=3D"mailto:lars.kurth.xen@gmail.com" =
class=3D"">lars.kurth.xen@gmail.com</a>&gt;<br =
class=3D""></span></div><div style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px;" class=3D""><span =
style=3D"font-family: -webkit-system-font, Helvetica Neue, Helvetica, =
sans-serif; color:rgba(0, 0, 0, 1.0);" class=3D""><b class=3D"">Date: =
</b></span><span style=3D"font-family: -webkit-system-font, Helvetica =
Neue, Helvetica, sans-serif;" class=3D"">24 March 2015 14:08:29 GMT<br =
class=3D""></span></div><div style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px;" class=3D""><span =
style=3D"font-family: -webkit-system-font, Helvetica Neue, Helvetica, =
sans-serif; color:rgba(0, 0, 0, 1.0);" class=3D""><b class=3D"">Cc: =
</b></span><span style=3D"font-family: -webkit-system-font, Helvetica =
Neue, Helvetica, sans-serif;" class=3D""><a =
href=3D"mailto:outreachy-admins@gnome.org" =
class=3D"">outreachy-admins@gnome.org</a>, <a =
href=3D"mailto:outreachy-list@gnome.org" =
class=3D"">outreachy-list@gnome.org</a><br class=3D""></span></div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px;" class=3D""><span style=3D"font-family: =
-webkit-system-font, Helvetica Neue, Helvetica, sans-serif; =
color:rgba(0, 0, 0, 1.0);" class=3D""><b class=3D"">To: </b></span><span =
style=3D"font-family: -webkit-system-font, Helvetica Neue, Helvetica, =
sans-serif;" class=3D"">Sarah A Sharp &lt;<a =
href=3D"mailto:sarah@thesharps.us" =
class=3D"">sarah@thesharps.us</a>&gt;<br class=3D""></span></div><br =
class=3D""><div class=3D"">Sarah,<br class=3D"">the Xen Project would =
like to do so<br class=3D"">Regards<br class=3D"">Lars<br class=3D""><br =
class=3D""><blockquote type=3D"cite" class=3D"">On 24 Mar 2015, at =
13:52, Sarah A Sharp &lt;<a href=3D"mailto:sarah@thesharps.us" =
class=3D"">sarah@thesharps.us</a>&gt; wrote:<br class=3D""><br =
class=3D"">Greetings,<br class=3D""><br class=3D"">Please let me know if =
your organization would like to extend your<br class=3D"">application =
deadline to April 7. &nbsp;Organizations that need to pick<br =
class=3D"">participants for Google Summer of Code (Ceph, Debian, =
GNOME,<br class=3D"">OpenStreetMap, QEMU, and Wikimedia) may not want to =
extend their<br class=3D"">deadline so that they can pick their interns =
for GSoC and Outreachy at<br class=3D"">the same time.<br class=3D""><br =
class=3D"">Thanks,<br class=3D"">Sarah Sharp<br =
class=3D"">_______________________________________________<br =
class=3D"">Outreachy-list mailing list<br class=3D""><a =
href=3D"mailto:Outreachy-list@gnome.org" =
class=3D"">Outreachy-list@gnome.org</a><br =
class=3D"">https://mail.gnome.org/mailman/listinfo/outreachy-list<br =
class=3D""></blockquote><br class=3D""></div></blockquote></div><br =
class=3D""></body></html>=

--Apple-Mail=_D0546D00-B09A-4800-91BD-673CFD451496--


--===============2646307963755402904==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============2646307963755402904==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 15:42:29 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 15:42:29 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaQyI-0007UE-QW; Tue, 24 Mar 2015 15:42:26 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <heidihoward360@gmail.com>) id 1YaQyH-0007U3-Ov
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 15:42:25 +0000
Received: from [85.158.139.211] by server-9.bemta-5.messagelabs.com id
	D4/F7-15508-1E581155; Tue, 24 Mar 2015 15:42:25 +0000
X-Env-Sender: heidihoward360@gmail.com
X-Msg-Ref: server-9.tower-206.messagelabs.com!1427211743!11259281!1
X-Originating-IP: [209.85.213.179]
X-SpamReason: No, hits=1.2 required=7.0 tests=HTML_20_30,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 15873 invoked from network); 24 Mar 2015 15:42:24 -0000
Received: from mail-ig0-f179.google.com (HELO mail-ig0-f179.google.com)
	(209.85.213.179)
	by server-9.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	24 Mar 2015 15:42:24 -0000
Received: by igbqf9 with SMTP id qf9so645172igb.1
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 24 Mar 2015 08:42:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:in-reply-to:references:date:message-id:subject
	:from:to:cc:content-type;
	bh=Kkdt0g4dmlrmSGnePvqUPzvrNBbWmsXsyPiODEFOpOc=;
	b=txKFMNvnQKrpE7R5TXVbDEl7DooVcDCAM+MdQ4khKepk8z9XG+Rcbdp3+XhOLcblDb
	DE2Ilb7cAH7EtvLI7YZ8+iiApmwceFpMfFnnWeO0ho+wzAey9PWCXf6QDXicfZzsZcIa
	2FEOX2J7Hh9Qe0z+gt8+/nJWD1wcR8xlIgBcNcAV/b2XUg0mvnxPy3dL0zR7MypC6aLm
	2BqcBOAWJjI7kNG0QuhDqeSrs1Zr53Sn2keMLw8N/6uIpMtFITs9JRpG6l2SxIMBJU/+
	pNWx5EJX1nY+lDmvLi9lA5sFCrEc+g+cvfuJHadqK+n96e9fcSvweMPkbVlNMG2RdGkf
	t80w==
MIME-Version: 1.0
X-Received: by 10.43.39.208 with SMTP id tn16mr26299828icb.97.1427211743027;
	Tue, 24 Mar 2015 08:42:23 -0700 (PDT)
Received: by 10.36.103.149 with HTTP; Tue, 24 Mar 2015 08:42:22 -0700 (PDT)
In-Reply-To: <FF2FCF03-817F-4632-BE9D-13B3D39E2A58@recoil.org>
References: <CAJbByNreE8rd_9eqy52w0VigB8YA=mO3DsK_6kPQB4JfTmboMw@mail.gmail.com>
	<891D4471-B988-481D-B133-7F5B0D8DFC50@recoil.org>
	<CAJbByNq6N7T+4-z2VOPnUZay0rDjwcNjL4TeyJe0wJvK96XukQ@mail.gmail.com>
	<0015CB54-1633-4156-8470-6D368241A5A8@recoil.org>
	<907D820797724F6A87531E2F6E70A704@erratique.ch>
	<FF2FCF03-817F-4632-BE9D-13B3D39E2A58@recoil.org>
Date: Tue, 24 Mar 2015 15:42:22 +0000
X-Google-Sender-Auth: bzuF2WgbSFAlGVUFLNdQBwu4I78
Message-ID: <CAJbByNp32md2-=2+qGMTYkdD0RvAhs77SfCnJYQk3N0-jOT-tg@mail.gmail.com>
From: Heidi Howard <hh360@cam.ac.uk>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] tuntap on Yosemite
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============8471394086925727807=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============8471394086925727807==
Content-Type: multipart/alternative; boundary=bcaec51a842af66a0f05120aa05b

--bcaec51a842af66a0f05120aa05b
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

bwt I get different behaviour if I do mirage --unix verse mirage -t unix,
though the docs imply that --unix is simply a short hand for mirage -t
unix, can someone clarify the docs?

On 24 March 2015 at 12:19, Anil Madhavapeddy <anil@recoil.org> wrote:

> On 24 Mar 2015, at 12:17, Daniel B=C3=BCnzli <daniel.buenzli@erratique.ch=
>
> wrote:
> >
> > Le mardi, 24 mars 2015 =C3=A0 12:51, Anil Madhavapeddy a =C3=A9crit :
> >> Excellent. Note that in normal use, the native MacOS X one is better
> since your unikernel can make outgoing network requests. The downside is
> that it doesn't support static IP (only DHCP), or at least I haven't foun=
d
> a way to make it happen.
> >
> > Btw. this is mostly OT but did anybody find a way to make internet
> sharing work on Yosemite (10.10.2) ?
> >
> > I used to be able to share the (phone usb) internet connection of my
> laptop with the little boxes (rpi, cubie) through thunderbolt ethernet, b=
ut
> I can't anymore which is quite annoying.
> >
> > It seems that any combination of internet sharing (usb to wifi,
> thunderbolt ethernet to wifi, wifi to ethernet thunderbolt) is completely
> broken on my machine and the logs or the internet do not say anything
> meaningful =E2=80=94 though some other people seem to have the same, unso=
lved,
> problem.
>
> It does work for me, but is sufficiently unstable that a hard reboot is
> occasionally required.  Some system daemon errors out that causes all
> subsequent network sharing to no longer work under some conditions.  It
> clears up with a reboot.
>
> -anil




--=20
Regards
Heidi

--bcaec51a842af66a0f05120aa05b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">bwt I get different behaviour if I do mirage --unix verse =
mirage -t unix, though the docs imply that --unix is simply a short hand fo=
r=C2=A0mirage -t unix, can someone clarify the docs?</div><div class=3D"gma=
il_extra"><br><div class=3D"gmail_quote">On 24 March 2015 at 12:19, Anil Ma=
dhavapeddy <span dir=3D"ltr">&lt;<a href=3D"mailto:anil@recoil.org" target=
=3D"_blank">anil@recoil.org</a>&gt;</span> wrote:<br><blockquote class=3D"g=
mail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-l=
eft:1ex"><div class=3D"HOEnZb"><div class=3D"h5">On 24 Mar 2015, at 12:17, =
Daniel B=C3=BCnzli &lt;<a href=3D"mailto:daniel.buenzli@erratique.ch">danie=
l.buenzli@erratique.ch</a>&gt; wrote:<br>
&gt;<br>
&gt; Le mardi, 24 mars 2015 =C3=A0 12:51, Anil Madhavapeddy a =C3=A9crit :<=
br>
&gt;&gt; Excellent. Note that in normal use, the native MacOS X one is bett=
er since your unikernel can make outgoing network requests. The downside is=
 that it doesn&#39;t support static IP (only DHCP), or at least I haven&#39=
;t found a way to make it happen.<br>
&gt;<br>
&gt; Btw. this is mostly OT but did anybody find a way to make internet sha=
ring work on Yosemite (10.10.2) ?<br>
&gt;<br>
&gt; I used to be able to share the (phone usb) internet connection of my l=
aptop with the little boxes (rpi, cubie) through thunderbolt ethernet, but =
I can&#39;t anymore which is quite annoying.<br>
&gt;<br>
&gt; It seems that any combination of internet sharing (usb to wifi, thunde=
rbolt ethernet to wifi, wifi to ethernet thunderbolt) is completely broken =
on my machine and the logs or the internet do not say anything meaningful =
=E2=80=94 though some other people seem to have the same, unsolved, problem=
.<br>
<br>
</div></div>It does work for me, but is sufficiently unstable that a hard r=
eboot is occasionally required.=C2=A0 Some system daemon errors out that ca=
uses all subsequent network sharing to no longer work under some conditions=
.=C2=A0 It clears up with a reboot.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
-anil</font></span></blockquote></div><br><br clear=3D"all"><div><br></div>=
-- <br><div class=3D"gmail_signature">Regards<br>Heidi<br></div>
</div>

--bcaec51a842af66a0f05120aa05b--


--===============8471394086925727807==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============8471394086925727807==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 15:42:29 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 15:42:29 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaQyI-0007UE-QW; Tue, 24 Mar 2015 15:42:26 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <heidihoward360@gmail.com>) id 1YaQyH-0007U3-Ov
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 15:42:25 +0000
Received: from [85.158.139.211] by server-9.bemta-5.messagelabs.com id
	D4/F7-15508-1E581155; Tue, 24 Mar 2015 15:42:25 +0000
X-Env-Sender: heidihoward360@gmail.com
X-Msg-Ref: server-9.tower-206.messagelabs.com!1427211743!11259281!1
X-Originating-IP: [209.85.213.179]
X-SpamReason: No, hits=1.2 required=7.0 tests=HTML_20_30,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 15873 invoked from network); 24 Mar 2015 15:42:24 -0000
Received: from mail-ig0-f179.google.com (HELO mail-ig0-f179.google.com)
	(209.85.213.179)
	by server-9.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	24 Mar 2015 15:42:24 -0000
Received: by igbqf9 with SMTP id qf9so645172igb.1
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 24 Mar 2015 08:42:23 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:in-reply-to:references:date:message-id:subject
	:from:to:cc:content-type;
	bh=Kkdt0g4dmlrmSGnePvqUPzvrNBbWmsXsyPiODEFOpOc=;
	b=txKFMNvnQKrpE7R5TXVbDEl7DooVcDCAM+MdQ4khKepk8z9XG+Rcbdp3+XhOLcblDb
	DE2Ilb7cAH7EtvLI7YZ8+iiApmwceFpMfFnnWeO0ho+wzAey9PWCXf6QDXicfZzsZcIa
	2FEOX2J7Hh9Qe0z+gt8+/nJWD1wcR8xlIgBcNcAV/b2XUg0mvnxPy3dL0zR7MypC6aLm
	2BqcBOAWJjI7kNG0QuhDqeSrs1Zr53Sn2keMLw8N/6uIpMtFITs9JRpG6l2SxIMBJU/+
	pNWx5EJX1nY+lDmvLi9lA5sFCrEc+g+cvfuJHadqK+n96e9fcSvweMPkbVlNMG2RdGkf
	t80w==
MIME-Version: 1.0
X-Received: by 10.43.39.208 with SMTP id tn16mr26299828icb.97.1427211743027;
	Tue, 24 Mar 2015 08:42:23 -0700 (PDT)
Received: by 10.36.103.149 with HTTP; Tue, 24 Mar 2015 08:42:22 -0700 (PDT)
In-Reply-To: <FF2FCF03-817F-4632-BE9D-13B3D39E2A58@recoil.org>
References: <CAJbByNreE8rd_9eqy52w0VigB8YA=mO3DsK_6kPQB4JfTmboMw@mail.gmail.com>
	<891D4471-B988-481D-B133-7F5B0D8DFC50@recoil.org>
	<CAJbByNq6N7T+4-z2VOPnUZay0rDjwcNjL4TeyJe0wJvK96XukQ@mail.gmail.com>
	<0015CB54-1633-4156-8470-6D368241A5A8@recoil.org>
	<907D820797724F6A87531E2F6E70A704@erratique.ch>
	<FF2FCF03-817F-4632-BE9D-13B3D39E2A58@recoil.org>
Date: Tue, 24 Mar 2015 15:42:22 +0000
X-Google-Sender-Auth: bzuF2WgbSFAlGVUFLNdQBwu4I78
Message-ID: <CAJbByNp32md2-=2+qGMTYkdD0RvAhs77SfCnJYQk3N0-jOT-tg@mail.gmail.com>
From: Heidi Howard <hh360@cam.ac.uk>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] tuntap on Yosemite
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============8471394086925727807=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============8471394086925727807==
Content-Type: multipart/alternative; boundary=bcaec51a842af66a0f05120aa05b

--bcaec51a842af66a0f05120aa05b
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

bwt I get different behaviour if I do mirage --unix verse mirage -t unix,
though the docs imply that --unix is simply a short hand for mirage -t
unix, can someone clarify the docs?

On 24 March 2015 at 12:19, Anil Madhavapeddy <anil@recoil.org> wrote:

> On 24 Mar 2015, at 12:17, Daniel B=C3=BCnzli <daniel.buenzli@erratique.ch=
>
> wrote:
> >
> > Le mardi, 24 mars 2015 =C3=A0 12:51, Anil Madhavapeddy a =C3=A9crit :
> >> Excellent. Note that in normal use, the native MacOS X one is better
> since your unikernel can make outgoing network requests. The downside is
> that it doesn't support static IP (only DHCP), or at least I haven't foun=
d
> a way to make it happen.
> >
> > Btw. this is mostly OT but did anybody find a way to make internet
> sharing work on Yosemite (10.10.2) ?
> >
> > I used to be able to share the (phone usb) internet connection of my
> laptop with the little boxes (rpi, cubie) through thunderbolt ethernet, b=
ut
> I can't anymore which is quite annoying.
> >
> > It seems that any combination of internet sharing (usb to wifi,
> thunderbolt ethernet to wifi, wifi to ethernet thunderbolt) is completely
> broken on my machine and the logs or the internet do not say anything
> meaningful =E2=80=94 though some other people seem to have the same, unso=
lved,
> problem.
>
> It does work for me, but is sufficiently unstable that a hard reboot is
> occasionally required.  Some system daemon errors out that causes all
> subsequent network sharing to no longer work under some conditions.  It
> clears up with a reboot.
>
> -anil




--=20
Regards
Heidi

--bcaec51a842af66a0f05120aa05b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">bwt I get different behaviour if I do mirage --unix verse =
mirage -t unix, though the docs imply that --unix is simply a short hand fo=
r=C2=A0mirage -t unix, can someone clarify the docs?</div><div class=3D"gma=
il_extra"><br><div class=3D"gmail_quote">On 24 March 2015 at 12:19, Anil Ma=
dhavapeddy <span dir=3D"ltr">&lt;<a href=3D"mailto:anil@recoil.org" target=
=3D"_blank">anil@recoil.org</a>&gt;</span> wrote:<br><blockquote class=3D"g=
mail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-l=
eft:1ex"><div class=3D"HOEnZb"><div class=3D"h5">On 24 Mar 2015, at 12:17, =
Daniel B=C3=BCnzli &lt;<a href=3D"mailto:daniel.buenzli@erratique.ch">danie=
l.buenzli@erratique.ch</a>&gt; wrote:<br>
&gt;<br>
&gt; Le mardi, 24 mars 2015 =C3=A0 12:51, Anil Madhavapeddy a =C3=A9crit :<=
br>
&gt;&gt; Excellent. Note that in normal use, the native MacOS X one is bett=
er since your unikernel can make outgoing network requests. The downside is=
 that it doesn&#39;t support static IP (only DHCP), or at least I haven&#39=
;t found a way to make it happen.<br>
&gt;<br>
&gt; Btw. this is mostly OT but did anybody find a way to make internet sha=
ring work on Yosemite (10.10.2) ?<br>
&gt;<br>
&gt; I used to be able to share the (phone usb) internet connection of my l=
aptop with the little boxes (rpi, cubie) through thunderbolt ethernet, but =
I can&#39;t anymore which is quite annoying.<br>
&gt;<br>
&gt; It seems that any combination of internet sharing (usb to wifi, thunde=
rbolt ethernet to wifi, wifi to ethernet thunderbolt) is completely broken =
on my machine and the logs or the internet do not say anything meaningful =
=E2=80=94 though some other people seem to have the same, unsolved, problem=
.<br>
<br>
</div></div>It does work for me, but is sufficiently unstable that a hard r=
eboot is occasionally required.=C2=A0 Some system daemon errors out that ca=
uses all subsequent network sharing to no longer work under some conditions=
.=C2=A0 It clears up with a reboot.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
-anil</font></span></blockquote></div><br><br clear=3D"all"><div><br></div>=
-- <br><div class=3D"gmail_signature">Regards<br>Heidi<br></div>
</div>

--bcaec51a842af66a0f05120aa05b--


--===============8471394086925727807==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============8471394086925727807==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 15:46:07 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 15:46:07 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaR1r-0007vw-9P; Tue, 24 Mar 2015 15:46:07 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YaR1q-0007vg-5P
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 15:46:06 +0000
Received: from [85.158.139.211] by server-7.bemta-5.messagelabs.com id
	A5/D2-30396-DB681155; Tue, 24 Mar 2015 15:46:05 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-13.tower-206.messagelabs.com!1427211963!11287303!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.5 required=7.0 tests=MAILTO_TO_SPAM_ADDR,
	RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 12874 invoked from network); 24 Mar 2015 15:46:04 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-13.tower-206.messagelabs.com with DHE-RSA-AES256-SHA
	encrypted SMTP; 24 Mar 2015 15:46:04 -0000
Received: from [10.0.0.96] (host81-149-102-120.in-addr.btopenworld.com
	[81.149.102.120]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 7549267d;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Tue, 24 Mar 2015 15:46:01 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAJbByNp32md2-=2+qGMTYkdD0RvAhs77SfCnJYQk3N0-jOT-tg@mail.gmail.com>
Date: Tue, 24 Mar 2015 15:45:59 +0000
Message-Id: <A27DEFC1-9873-4EBD-B76D-BAF125D29B56@recoil.org>
References: <CAJbByNreE8rd_9eqy52w0VigB8YA=mO3DsK_6kPQB4JfTmboMw@mail.gmail.com>
	<891D4471-B988-481D-B133-7F5B0D8DFC50@recoil.org>
	<CAJbByNq6N7T+4-z2VOPnUZay0rDjwcNjL4TeyJe0wJvK96XukQ@mail.gmail.com>
	<0015CB54-1633-4156-8470-6D368241A5A8@recoil.org>
	<907D820797724F6A87531E2F6E70A704@erratique.ch>
	<FF2FCF03-817F-4632-BE9D-13B3D39E2A58@recoil.org>
	<CAJbByNp32md2-=2+qGMTYkdD0RvAhs77SfCnJYQk3N0-jOT-tg@mail.gmail.com>
To: Heidi Howard <hh360@cam.ac.uk>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] tuntap on Yosemite
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Cj4gT24gMjQgTWFyIDIwMTUsIGF0IDE1OjQyLCBIZWlkaSBIb3dhcmQgPGhoMzYwQGNhbS5hYy51
az4gd3JvdGU6Cj4gCj4gYnd0IEkgZ2V0IGRpZmZlcmVudCBiZWhhdmlvdXIgaWYgSSBkbyBtaXJh
Z2UgLS11bml4IHZlcnNlIG1pcmFnZSAtdCB1bml4LCB0aG91Z2ggdGhlIGRvY3MgaW1wbHkgdGhh
dCAtLXVuaXggaXMgc2ltcGx5IGEgc2hvcnQgaGFuZCBmb3IgbWlyYWdlIC10IHVuaXgKClRoYXQg
d2FzIGZvciBiYWNrd2FyZHMgY29tcGF0aWJpbGl0eSwgc28gdGhhdCBgbWlyYWdlIC0tdW5peGAg
anVzdCBkb2VzIHRoZSByaWdodCB0aGluZyBvbiBlaXRoZXIgTGludXggb3IgTWFjT1MgWC4KCj4g
LCBjYW4gc29tZW9uZSBjbGFyaWZ5IHRoZSBkb2NzPwoKVGhlIGBtaXJhZ2UgY29uZmlndXJlIC0t
aGVscGAgc2F5cyB0aGlzOgoKICAgICAgIC0tdW5peAogICAgICAgICAgIFVzZSBVbml4IGJhY2tl
bmQuIERvIG5vdCB1c2UgaW4gY29uanVuY3Rpb24gd2l0aCAtLXhlbi4gT24gTWFjT1MgWCwKICAg
ICAgICAgICB0aGlzIHdpbGwgdXNlIHBsYXRmb3JtLXNwZWNpZmljIGNvZGUgdG8gYmUgZ2VuZXJh
dGVkLiBUbyBmb3JjZSBwdXJlCiAgICAgICAgICAgVW5peCBtb2RlIG9uIE1hY09TIFgsIHNldCB0
aGUgLXQgZmxhZyB0byB1bml4IGluc3RlYWQuCgpEaWQgeW91IGhhdmUgc29tZXdoZXJlIGVsc2Ug
aW4gbWluZCB0byB1cGRhdGU/CgotYW5pbAoKPiAKPiBPbiAyNCBNYXJjaCAyMDE1IGF0IDEyOjE5
LCBBbmlsIE1hZGhhdmFwZWRkeSA8YW5pbEByZWNvaWwub3JnPiB3cm90ZToKPiBPbiAyNCBNYXIg
MjAxNSwgYXQgMTI6MTcsIERhbmllbCBCw7xuemxpIDxkYW5pZWwuYnVlbnpsaUBlcnJhdGlxdWUu
Y2g+IHdyb3RlOgo+ID4KPiA+IExlIG1hcmRpLCAyNCBtYXJzIDIwMTUgw6AgMTI6NTEsIEFuaWwg
TWFkaGF2YXBlZGR5IGEgw6ljcml0IDoKPiA+PiBFeGNlbGxlbnQuIE5vdGUgdGhhdCBpbiBub3Jt
YWwgdXNlLCB0aGUgbmF0aXZlIE1hY09TIFggb25lIGlzIGJldHRlciBzaW5jZSB5b3VyIHVuaWtl
cm5lbCBjYW4gbWFrZSBvdXRnb2luZyBuZXR3b3JrIHJlcXVlc3RzLiBUaGUgZG93bnNpZGUgaXMg
dGhhdCBpdCBkb2Vzbid0IHN1cHBvcnQgc3RhdGljIElQIChvbmx5IERIQ1ApLCBvciBhdCBsZWFz
dCBJIGhhdmVuJ3QgZm91bmQgYSB3YXkgdG8gbWFrZSBpdCBoYXBwZW4uCj4gPgo+ID4gQnR3LiB0
aGlzIGlzIG1vc3RseSBPVCBidXQgZGlkIGFueWJvZHkgZmluZCBhIHdheSB0byBtYWtlIGludGVy
bmV0IHNoYXJpbmcgd29yayBvbiBZb3NlbWl0ZSAoMTAuMTAuMikgPwo+ID4KPiA+IEkgdXNlZCB0
byBiZSBhYmxlIHRvIHNoYXJlIHRoZSAocGhvbmUgdXNiKSBpbnRlcm5ldCBjb25uZWN0aW9uIG9m
IG15IGxhcHRvcCB3aXRoIHRoZSBsaXR0bGUgYm94ZXMgKHJwaSwgY3ViaWUpIHRocm91Z2ggdGh1
bmRlcmJvbHQgZXRoZXJuZXQsIGJ1dCBJIGNhbid0IGFueW1vcmUgd2hpY2ggaXMgcXVpdGUgYW5u
b3lpbmcuCj4gPgo+ID4gSXQgc2VlbXMgdGhhdCBhbnkgY29tYmluYXRpb24gb2YgaW50ZXJuZXQg
c2hhcmluZyAodXNiIHRvIHdpZmksIHRodW5kZXJib2x0IGV0aGVybmV0IHRvIHdpZmksIHdpZmkg
dG8gZXRoZXJuZXQgdGh1bmRlcmJvbHQpIGlzIGNvbXBsZXRlbHkgYnJva2VuIG9uIG15IG1hY2hp
bmUgYW5kIHRoZSBsb2dzIG9yIHRoZSBpbnRlcm5ldCBkbyBub3Qgc2F5IGFueXRoaW5nIG1lYW5p
bmdmdWwg4oCUIHRob3VnaCBzb21lIG90aGVyIHBlb3BsZSBzZWVtIHRvIGhhdmUgdGhlIHNhbWUs
IHVuc29sdmVkLCBwcm9ibGVtLgo+IAo+IEl0IGRvZXMgd29yayBmb3IgbWUsIGJ1dCBpcyBzdWZm
aWNpZW50bHkgdW5zdGFibGUgdGhhdCBhIGhhcmQgcmVib290IGlzIG9jY2FzaW9uYWxseSByZXF1
aXJlZC4gIFNvbWUgc3lzdGVtIGRhZW1vbiBlcnJvcnMgb3V0IHRoYXQgY2F1c2VzIGFsbCBzdWJz
ZXF1ZW50IG5ldHdvcmsgc2hhcmluZyB0byBubyBsb25nZXIgd29yayB1bmRlciBzb21lIGNvbmRp
dGlvbnMuICBJdCBjbGVhcnMgdXAgd2l0aCBhIHJlYm9vdC4KPiAKPiAtYW5pbAo+IAo+IAo+IAo+
IC0tIAo+IFJlZ2FyZHMKPiBIZWlkaQoKCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fCk1pcmFnZU9TLWRldmVsIG1haWxpbmcgbGlzdApNaXJhZ2VPUy1kZXZl
bEBsaXN0cy54ZW5wcm9qZWN0Lm9yZwpodHRwOi8vbGlzdHMueGVucHJvamVjdC5vcmcvY2dpLWJp
bi9tYWlsbWFuL2xpc3RpbmZvL21pcmFnZW9zLWRldmVsCg==

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 15:46:07 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 15:46:07 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaR1r-0007vw-9P; Tue, 24 Mar 2015 15:46:07 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YaR1q-0007vg-5P
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 15:46:06 +0000
Received: from [85.158.139.211] by server-7.bemta-5.messagelabs.com id
	A5/D2-30396-DB681155; Tue, 24 Mar 2015 15:46:05 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-13.tower-206.messagelabs.com!1427211963!11287303!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.5 required=7.0 tests=MAILTO_TO_SPAM_ADDR,
	RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 12874 invoked from network); 24 Mar 2015 15:46:04 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-13.tower-206.messagelabs.com with DHE-RSA-AES256-SHA
	encrypted SMTP; 24 Mar 2015 15:46:04 -0000
Received: from [10.0.0.96] (host81-149-102-120.in-addr.btopenworld.com
	[81.149.102.120]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 7549267d;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Tue, 24 Mar 2015 15:46:01 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAJbByNp32md2-=2+qGMTYkdD0RvAhs77SfCnJYQk3N0-jOT-tg@mail.gmail.com>
Date: Tue, 24 Mar 2015 15:45:59 +0000
Message-Id: <A27DEFC1-9873-4EBD-B76D-BAF125D29B56@recoil.org>
References: <CAJbByNreE8rd_9eqy52w0VigB8YA=mO3DsK_6kPQB4JfTmboMw@mail.gmail.com>
	<891D4471-B988-481D-B133-7F5B0D8DFC50@recoil.org>
	<CAJbByNq6N7T+4-z2VOPnUZay0rDjwcNjL4TeyJe0wJvK96XukQ@mail.gmail.com>
	<0015CB54-1633-4156-8470-6D368241A5A8@recoil.org>
	<907D820797724F6A87531E2F6E70A704@erratique.ch>
	<FF2FCF03-817F-4632-BE9D-13B3D39E2A58@recoil.org>
	<CAJbByNp32md2-=2+qGMTYkdD0RvAhs77SfCnJYQk3N0-jOT-tg@mail.gmail.com>
To: Heidi Howard <hh360@cam.ac.uk>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] tuntap on Yosemite
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Cj4gT24gMjQgTWFyIDIwMTUsIGF0IDE1OjQyLCBIZWlkaSBIb3dhcmQgPGhoMzYwQGNhbS5hYy51
az4gd3JvdGU6Cj4gCj4gYnd0IEkgZ2V0IGRpZmZlcmVudCBiZWhhdmlvdXIgaWYgSSBkbyBtaXJh
Z2UgLS11bml4IHZlcnNlIG1pcmFnZSAtdCB1bml4LCB0aG91Z2ggdGhlIGRvY3MgaW1wbHkgdGhh
dCAtLXVuaXggaXMgc2ltcGx5IGEgc2hvcnQgaGFuZCBmb3IgbWlyYWdlIC10IHVuaXgKClRoYXQg
d2FzIGZvciBiYWNrd2FyZHMgY29tcGF0aWJpbGl0eSwgc28gdGhhdCBgbWlyYWdlIC0tdW5peGAg
anVzdCBkb2VzIHRoZSByaWdodCB0aGluZyBvbiBlaXRoZXIgTGludXggb3IgTWFjT1MgWC4KCj4g
LCBjYW4gc29tZW9uZSBjbGFyaWZ5IHRoZSBkb2NzPwoKVGhlIGBtaXJhZ2UgY29uZmlndXJlIC0t
aGVscGAgc2F5cyB0aGlzOgoKICAgICAgIC0tdW5peAogICAgICAgICAgIFVzZSBVbml4IGJhY2tl
bmQuIERvIG5vdCB1c2UgaW4gY29uanVuY3Rpb24gd2l0aCAtLXhlbi4gT24gTWFjT1MgWCwKICAg
ICAgICAgICB0aGlzIHdpbGwgdXNlIHBsYXRmb3JtLXNwZWNpZmljIGNvZGUgdG8gYmUgZ2VuZXJh
dGVkLiBUbyBmb3JjZSBwdXJlCiAgICAgICAgICAgVW5peCBtb2RlIG9uIE1hY09TIFgsIHNldCB0
aGUgLXQgZmxhZyB0byB1bml4IGluc3RlYWQuCgpEaWQgeW91IGhhdmUgc29tZXdoZXJlIGVsc2Ug
aW4gbWluZCB0byB1cGRhdGU/CgotYW5pbAoKPiAKPiBPbiAyNCBNYXJjaCAyMDE1IGF0IDEyOjE5
LCBBbmlsIE1hZGhhdmFwZWRkeSA8YW5pbEByZWNvaWwub3JnPiB3cm90ZToKPiBPbiAyNCBNYXIg
MjAxNSwgYXQgMTI6MTcsIERhbmllbCBCw7xuemxpIDxkYW5pZWwuYnVlbnpsaUBlcnJhdGlxdWUu
Y2g+IHdyb3RlOgo+ID4KPiA+IExlIG1hcmRpLCAyNCBtYXJzIDIwMTUgw6AgMTI6NTEsIEFuaWwg
TWFkaGF2YXBlZGR5IGEgw6ljcml0IDoKPiA+PiBFeGNlbGxlbnQuIE5vdGUgdGhhdCBpbiBub3Jt
YWwgdXNlLCB0aGUgbmF0aXZlIE1hY09TIFggb25lIGlzIGJldHRlciBzaW5jZSB5b3VyIHVuaWtl
cm5lbCBjYW4gbWFrZSBvdXRnb2luZyBuZXR3b3JrIHJlcXVlc3RzLiBUaGUgZG93bnNpZGUgaXMg
dGhhdCBpdCBkb2Vzbid0IHN1cHBvcnQgc3RhdGljIElQIChvbmx5IERIQ1ApLCBvciBhdCBsZWFz
dCBJIGhhdmVuJ3QgZm91bmQgYSB3YXkgdG8gbWFrZSBpdCBoYXBwZW4uCj4gPgo+ID4gQnR3LiB0
aGlzIGlzIG1vc3RseSBPVCBidXQgZGlkIGFueWJvZHkgZmluZCBhIHdheSB0byBtYWtlIGludGVy
bmV0IHNoYXJpbmcgd29yayBvbiBZb3NlbWl0ZSAoMTAuMTAuMikgPwo+ID4KPiA+IEkgdXNlZCB0
byBiZSBhYmxlIHRvIHNoYXJlIHRoZSAocGhvbmUgdXNiKSBpbnRlcm5ldCBjb25uZWN0aW9uIG9m
IG15IGxhcHRvcCB3aXRoIHRoZSBsaXR0bGUgYm94ZXMgKHJwaSwgY3ViaWUpIHRocm91Z2ggdGh1
bmRlcmJvbHQgZXRoZXJuZXQsIGJ1dCBJIGNhbid0IGFueW1vcmUgd2hpY2ggaXMgcXVpdGUgYW5u
b3lpbmcuCj4gPgo+ID4gSXQgc2VlbXMgdGhhdCBhbnkgY29tYmluYXRpb24gb2YgaW50ZXJuZXQg
c2hhcmluZyAodXNiIHRvIHdpZmksIHRodW5kZXJib2x0IGV0aGVybmV0IHRvIHdpZmksIHdpZmkg
dG8gZXRoZXJuZXQgdGh1bmRlcmJvbHQpIGlzIGNvbXBsZXRlbHkgYnJva2VuIG9uIG15IG1hY2hp
bmUgYW5kIHRoZSBsb2dzIG9yIHRoZSBpbnRlcm5ldCBkbyBub3Qgc2F5IGFueXRoaW5nIG1lYW5p
bmdmdWwg4oCUIHRob3VnaCBzb21lIG90aGVyIHBlb3BsZSBzZWVtIHRvIGhhdmUgdGhlIHNhbWUs
IHVuc29sdmVkLCBwcm9ibGVtLgo+IAo+IEl0IGRvZXMgd29yayBmb3IgbWUsIGJ1dCBpcyBzdWZm
aWNpZW50bHkgdW5zdGFibGUgdGhhdCBhIGhhcmQgcmVib290IGlzIG9jY2FzaW9uYWxseSByZXF1
aXJlZC4gIFNvbWUgc3lzdGVtIGRhZW1vbiBlcnJvcnMgb3V0IHRoYXQgY2F1c2VzIGFsbCBzdWJz
ZXF1ZW50IG5ldHdvcmsgc2hhcmluZyB0byBubyBsb25nZXIgd29yayB1bmRlciBzb21lIGNvbmRp
dGlvbnMuICBJdCBjbGVhcnMgdXAgd2l0aCBhIHJlYm9vdC4KPiAKPiAtYW5pbAo+IAo+IAo+IAo+
IC0tIAo+IFJlZ2FyZHMKPiBIZWlkaQoKCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fCk1pcmFnZU9TLWRldmVsIG1haWxpbmcgbGlzdApNaXJhZ2VPUy1kZXZl
bEBsaXN0cy54ZW5wcm9qZWN0Lm9yZwpodHRwOi8vbGlzdHMueGVucHJvamVjdC5vcmcvY2dpLWJp
bi9tYWlsbWFuL2xpc3RpbmZvL21pcmFnZW9zLWRldmVsCg==

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 15:50:02 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 15:50:02 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaR5d-0000Cz-Tg; Tue, 24 Mar 2015 15:50:02 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <heidihoward360@gmail.com>) id 1YaR5c-0000Ba-B8
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 15:50:00 +0000
Received: from [193.109.254.147] by server-12.bemta-14.messagelabs.com id
	9F/72-32563-4A781155; Tue, 24 Mar 2015 15:49:56 +0000
X-Env-Sender: heidihoward360@gmail.com
X-Msg-Ref: server-5.tower-27.messagelabs.com!1427212194!8126545!1
X-Originating-IP: [209.85.213.174]
X-SpamReason: No, hits=1.5 required=7.0 tests=HTML_20_30,HTML_MESSAGE,
	MAILTO_TO_SPAM_ADDR,RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 4755 invoked from network); 24 Mar 2015 15:49:55 -0000
Received: from mail-ig0-f174.google.com (HELO mail-ig0-f174.google.com)
	(209.85.213.174)
	by server-5.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	24 Mar 2015 15:49:55 -0000
Received: by igcau2 with SMTP id au2so75669943igc.0
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 24 Mar 2015 08:49:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:in-reply-to:references:date:message-id:subject
	:from:to:cc:content-type;
	bh=i0JOzIalMrkrqmTzmLQi6PMB2dGM/SaQdWCLxWkGXHI=;
	b=g4hQ/+Um1HJxi7ehggRU1yhFBWDg8eKPHQ9VE/s6lRbDz38Hm9j842xwE+iqCkEC8z
	oW5H9rFjML+PbKjp8O+jNy63t6Fx2nV7GrEhmsLGCuMDnME8KBS009UaJ5mt0+k3V0RW
	dbFjOsVdXrHAoJy4UgTEzTj/Uh9wxVvyDXfghF7N8Bp23fT/AIUZILjNDf+oYxSWJHqA
	rleS8UVS4F8j+JMyyF4Etqr6koaakrhCVZC1wJeUjEMOGUCPhqjv3tZRDsKjHpStKZT4
	wOYVIIHwEgLlluILxLlinv3MqXZJNa6KOvkC6PnYZyzuDGf4KeRxaz36K6x5pjeG9B2i
	pw+w==
MIME-Version: 1.0
X-Received: by 10.107.135.75 with SMTP id j72mr7666175iod.0.1427212194232;
	Tue, 24 Mar 2015 08:49:54 -0700 (PDT)
Received: by 10.36.103.149 with HTTP; Tue, 24 Mar 2015 08:49:54 -0700 (PDT)
In-Reply-To: <A27DEFC1-9873-4EBD-B76D-BAF125D29B56@recoil.org>
References: <CAJbByNreE8rd_9eqy52w0VigB8YA=mO3DsK_6kPQB4JfTmboMw@mail.gmail.com>
	<891D4471-B988-481D-B133-7F5B0D8DFC50@recoil.org>
	<CAJbByNq6N7T+4-z2VOPnUZay0rDjwcNjL4TeyJe0wJvK96XukQ@mail.gmail.com>
	<0015CB54-1633-4156-8470-6D368241A5A8@recoil.org>
	<907D820797724F6A87531E2F6E70A704@erratique.ch>
	<FF2FCF03-817F-4632-BE9D-13B3D39E2A58@recoil.org>
	<CAJbByNp32md2-=2+qGMTYkdD0RvAhs77SfCnJYQk3N0-jOT-tg@mail.gmail.com>
	<A27DEFC1-9873-4EBD-B76D-BAF125D29B56@recoil.org>
Date: Tue, 24 Mar 2015 15:49:54 +0000
X-Google-Sender-Auth: qGjGohg0bWWu-bkN7yZJodV0w6Y
Message-ID: <CAJbByNpYwQ4O_LKgkTD90Ms4aGAxZdfsNBo+drSC+-dmB9iiGQ@mail.gmail.com>
From: Heidi Howard <hh360@cam.ac.uk>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] tuntap on Yosemite
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0705691905146901070=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============0705691905146901070==
Content-Type: multipart/alternative; boundary=001a113fb98edb411d05120abb2e

--001a113fb98edb411d05120abb2e
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

My fault, thats great, I just didn't scroll beyond
-t TARGET, --target=3DTARGET
           Target platform to compile the unikernel for. Valid values are:
           xen, unix, macosx. There are short forms available via --xen and
           --unix as well.

On 24 March 2015 at 15:45, Anil Madhavapeddy <anil@recoil.org> wrote:

>
> > On 24 Mar 2015, at 15:42, Heidi Howard <hh360@cam.ac.uk> wrote:
> >
> > bwt I get different behaviour if I do mirage --unix verse mirage -t
> unix, though the docs imply that --unix is simply a short hand for mirage
> -t unix
>
> That was for backwards compatibility, so that `mirage --unix` just does
> the right thing on either Linux or MacOS X.
>
> > , can someone clarify the docs?
>
> The `mirage configure --help` says this:
>
>        --unix
>            Use Unix backend. Do not use in conjunction with --xen. On
> MacOS X,
>            this will use platform-specific code to be generated. To force
> pure
>            Unix mode on MacOS X, set the -t flag to unix instead.
>
> Did you have somewhere else in mind to update?
>
> -anil
>
> >
> > On 24 March 2015 at 12:19, Anil Madhavapeddy <anil@recoil.org> wrote:
> > On 24 Mar 2015, at 12:17, Daniel B=C3=BCnzli <daniel.buenzli@erratique.=
ch>
> wrote:
> > >
> > > Le mardi, 24 mars 2015 =C3=A0 12:51, Anil Madhavapeddy a =C3=A9crit :
> > >> Excellent. Note that in normal use, the native MacOS X one is better
> since your unikernel can make outgoing network requests. The downside is
> that it doesn't support static IP (only DHCP), or at least I haven't foun=
d
> a way to make it happen.
> > >
> > > Btw. this is mostly OT but did anybody find a way to make internet
> sharing work on Yosemite (10.10.2) ?
> > >
> > > I used to be able to share the (phone usb) internet connection of my
> laptop with the little boxes (rpi, cubie) through thunderbolt ethernet, b=
ut
> I can't anymore which is quite annoying.
> > >
> > > It seems that any combination of internet sharing (usb to wifi,
> thunderbolt ethernet to wifi, wifi to ethernet thunderbolt) is completely
> broken on my machine and the logs or the internet do not say anything
> meaningful =E2=80=94 though some other people seem to have the same, unso=
lved,
> problem.
> >
> > It does work for me, but is sufficiently unstable that a hard reboot is
> occasionally required.  Some system daemon errors out that causes all
> subsequent network sharing to no longer work under some conditions.  It
> clears up with a reboot.
> >
> > -anil
> >
> >
> >
> > --
> > Regards
> > Heidi
>
>


--=20
Regards
Heidi

--001a113fb98edb411d05120abb2e
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">My fault, thats great, I just didn&#39;t scroll beyond=C2=
=A0<div>-t TARGET, --target=3DTARGET</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0Target platform to compile the unikernel for. Valid values are=
:</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0xen, unix, macosx. The=
re are short forms available via --xen and</div><div>=C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0--unix as well.</div></div><div class=3D"gmail_extra"><=
br><div class=3D"gmail_quote">On 24 March 2015 at 15:45, Anil Madhavapeddy =
<span dir=3D"ltr">&lt;<a href=3D"mailto:anil@recoil.org" target=3D"_blank">=
anil@recoil.org</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" =
style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><sp=
an class=3D""><br>
&gt; On 24 Mar 2015, at 15:42, Heidi Howard &lt;<a href=3D"mailto:hh360@cam=
.ac.uk">hh360@cam.ac.uk</a>&gt; wrote:<br>
&gt;<br>
&gt; bwt I get different behaviour if I do mirage --unix verse mirage -t un=
ix, though the docs imply that --unix is simply a short hand for mirage -t =
unix<br>
<br>
</span>That was for backwards compatibility, so that `mirage --unix` just d=
oes the right thing on either Linux or MacOS X.<br>
<span class=3D""><br>
&gt; , can someone clarify the docs?<br>
<br>
</span>The `mirage configure --help` says this:<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0--unix<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Use Unix backend. Do not use in co=
njunction with --xen. On MacOS X,<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0this will use platform-specific co=
de to be generated. To force pure<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Unix mode on MacOS X, set the -t f=
lag to unix instead.<br>
<br>
Did you have somewhere else in mind to update?<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
-anil<br>
</font></span><div class=3D"HOEnZb"><div class=3D"h5"><br>
&gt;<br>
&gt; On 24 March 2015 at 12:19, Anil Madhavapeddy &lt;<a href=3D"mailto:ani=
l@recoil.org">anil@recoil.org</a>&gt; wrote:<br>
&gt; On 24 Mar 2015, at 12:17, Daniel B=C3=BCnzli &lt;<a href=3D"mailto:dan=
iel.buenzli@erratique.ch">daniel.buenzli@erratique.ch</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; Le mardi, 24 mars 2015 =C3=A0 12:51, Anil Madhavapeddy a =C3=A9cr=
it :<br>
&gt; &gt;&gt; Excellent. Note that in normal use, the native MacOS X one is=
 better since your unikernel can make outgoing network requests. The downsi=
de is that it doesn&#39;t support static IP (only DHCP), or at least I have=
n&#39;t found a way to make it happen.<br>
&gt; &gt;<br>
&gt; &gt; Btw. this is mostly OT but did anybody find a way to make interne=
t sharing work on Yosemite (10.10.2) ?<br>
&gt; &gt;<br>
&gt; &gt; I used to be able to share the (phone usb) internet connection of=
 my laptop with the little boxes (rpi, cubie) through thunderbolt ethernet,=
 but I can&#39;t anymore which is quite annoying.<br>
&gt; &gt;<br>
&gt; &gt; It seems that any combination of internet sharing (usb to wifi, t=
hunderbolt ethernet to wifi, wifi to ethernet thunderbolt) is completely br=
oken on my machine and the logs or the internet do not say anything meaning=
ful =E2=80=94 though some other people seem to have the same, unsolved, pro=
blem.<br>
&gt;<br>
&gt; It does work for me, but is sufficiently unstable that a hard reboot i=
s occasionally required.=C2=A0 Some system daemon errors out that causes al=
l subsequent network sharing to no longer work under some conditions.=C2=A0=
 It clears up with a reboot.<br>
&gt;<br>
&gt; -anil<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Regards<br>
&gt; Heidi<br>
<br>
</div></div></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>=
<div class=3D"gmail_signature">Regards<br>Heidi<br></div>
</div>

--001a113fb98edb411d05120abb2e--


--===============0705691905146901070==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============0705691905146901070==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 15:50:02 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 15:50:02 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaR5d-0000Cz-Tg; Tue, 24 Mar 2015 15:50:02 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <heidihoward360@gmail.com>) id 1YaR5c-0000Ba-B8
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 15:50:00 +0000
Received: from [193.109.254.147] by server-12.bemta-14.messagelabs.com id
	9F/72-32563-4A781155; Tue, 24 Mar 2015 15:49:56 +0000
X-Env-Sender: heidihoward360@gmail.com
X-Msg-Ref: server-5.tower-27.messagelabs.com!1427212194!8126545!1
X-Originating-IP: [209.85.213.174]
X-SpamReason: No, hits=1.5 required=7.0 tests=HTML_20_30,HTML_MESSAGE,
	MAILTO_TO_SPAM_ADDR,RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 4755 invoked from network); 24 Mar 2015 15:49:55 -0000
Received: from mail-ig0-f174.google.com (HELO mail-ig0-f174.google.com)
	(209.85.213.174)
	by server-5.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	24 Mar 2015 15:49:55 -0000
Received: by igcau2 with SMTP id au2so75669943igc.0
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 24 Mar 2015 08:49:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:in-reply-to:references:date:message-id:subject
	:from:to:cc:content-type;
	bh=i0JOzIalMrkrqmTzmLQi6PMB2dGM/SaQdWCLxWkGXHI=;
	b=g4hQ/+Um1HJxi7ehggRU1yhFBWDg8eKPHQ9VE/s6lRbDz38Hm9j842xwE+iqCkEC8z
	oW5H9rFjML+PbKjp8O+jNy63t6Fx2nV7GrEhmsLGCuMDnME8KBS009UaJ5mt0+k3V0RW
	dbFjOsVdXrHAoJy4UgTEzTj/Uh9wxVvyDXfghF7N8Bp23fT/AIUZILjNDf+oYxSWJHqA
	rleS8UVS4F8j+JMyyF4Etqr6koaakrhCVZC1wJeUjEMOGUCPhqjv3tZRDsKjHpStKZT4
	wOYVIIHwEgLlluILxLlinv3MqXZJNa6KOvkC6PnYZyzuDGf4KeRxaz36K6x5pjeG9B2i
	pw+w==
MIME-Version: 1.0
X-Received: by 10.107.135.75 with SMTP id j72mr7666175iod.0.1427212194232;
	Tue, 24 Mar 2015 08:49:54 -0700 (PDT)
Received: by 10.36.103.149 with HTTP; Tue, 24 Mar 2015 08:49:54 -0700 (PDT)
In-Reply-To: <A27DEFC1-9873-4EBD-B76D-BAF125D29B56@recoil.org>
References: <CAJbByNreE8rd_9eqy52w0VigB8YA=mO3DsK_6kPQB4JfTmboMw@mail.gmail.com>
	<891D4471-B988-481D-B133-7F5B0D8DFC50@recoil.org>
	<CAJbByNq6N7T+4-z2VOPnUZay0rDjwcNjL4TeyJe0wJvK96XukQ@mail.gmail.com>
	<0015CB54-1633-4156-8470-6D368241A5A8@recoil.org>
	<907D820797724F6A87531E2F6E70A704@erratique.ch>
	<FF2FCF03-817F-4632-BE9D-13B3D39E2A58@recoil.org>
	<CAJbByNp32md2-=2+qGMTYkdD0RvAhs77SfCnJYQk3N0-jOT-tg@mail.gmail.com>
	<A27DEFC1-9873-4EBD-B76D-BAF125D29B56@recoil.org>
Date: Tue, 24 Mar 2015 15:49:54 +0000
X-Google-Sender-Auth: qGjGohg0bWWu-bkN7yZJodV0w6Y
Message-ID: <CAJbByNpYwQ4O_LKgkTD90Ms4aGAxZdfsNBo+drSC+-dmB9iiGQ@mail.gmail.com>
From: Heidi Howard <hh360@cam.ac.uk>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] tuntap on Yosemite
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0705691905146901070=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============0705691905146901070==
Content-Type: multipart/alternative; boundary=001a113fb98edb411d05120abb2e

--001a113fb98edb411d05120abb2e
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

My fault, thats great, I just didn't scroll beyond
-t TARGET, --target=3DTARGET
           Target platform to compile the unikernel for. Valid values are:
           xen, unix, macosx. There are short forms available via --xen and
           --unix as well.

On 24 March 2015 at 15:45, Anil Madhavapeddy <anil@recoil.org> wrote:

>
> > On 24 Mar 2015, at 15:42, Heidi Howard <hh360@cam.ac.uk> wrote:
> >
> > bwt I get different behaviour if I do mirage --unix verse mirage -t
> unix, though the docs imply that --unix is simply a short hand for mirage
> -t unix
>
> That was for backwards compatibility, so that `mirage --unix` just does
> the right thing on either Linux or MacOS X.
>
> > , can someone clarify the docs?
>
> The `mirage configure --help` says this:
>
>        --unix
>            Use Unix backend. Do not use in conjunction with --xen. On
> MacOS X,
>            this will use platform-specific code to be generated. To force
> pure
>            Unix mode on MacOS X, set the -t flag to unix instead.
>
> Did you have somewhere else in mind to update?
>
> -anil
>
> >
> > On 24 March 2015 at 12:19, Anil Madhavapeddy <anil@recoil.org> wrote:
> > On 24 Mar 2015, at 12:17, Daniel B=C3=BCnzli <daniel.buenzli@erratique.=
ch>
> wrote:
> > >
> > > Le mardi, 24 mars 2015 =C3=A0 12:51, Anil Madhavapeddy a =C3=A9crit :
> > >> Excellent. Note that in normal use, the native MacOS X one is better
> since your unikernel can make outgoing network requests. The downside is
> that it doesn't support static IP (only DHCP), or at least I haven't foun=
d
> a way to make it happen.
> > >
> > > Btw. this is mostly OT but did anybody find a way to make internet
> sharing work on Yosemite (10.10.2) ?
> > >
> > > I used to be able to share the (phone usb) internet connection of my
> laptop with the little boxes (rpi, cubie) through thunderbolt ethernet, b=
ut
> I can't anymore which is quite annoying.
> > >
> > > It seems that any combination of internet sharing (usb to wifi,
> thunderbolt ethernet to wifi, wifi to ethernet thunderbolt) is completely
> broken on my machine and the logs or the internet do not say anything
> meaningful =E2=80=94 though some other people seem to have the same, unso=
lved,
> problem.
> >
> > It does work for me, but is sufficiently unstable that a hard reboot is
> occasionally required.  Some system daemon errors out that causes all
> subsequent network sharing to no longer work under some conditions.  It
> clears up with a reboot.
> >
> > -anil
> >
> >
> >
> > --
> > Regards
> > Heidi
>
>


--=20
Regards
Heidi

--001a113fb98edb411d05120abb2e
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">My fault, thats great, I just didn&#39;t scroll beyond=C2=
=A0<div>-t TARGET, --target=3DTARGET</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0Target platform to compile the unikernel for. Valid values are=
:</div><div>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0xen, unix, macosx. The=
re are short forms available via --xen and</div><div>=C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0--unix as well.</div></div><div class=3D"gmail_extra"><=
br><div class=3D"gmail_quote">On 24 March 2015 at 15:45, Anil Madhavapeddy =
<span dir=3D"ltr">&lt;<a href=3D"mailto:anil@recoil.org" target=3D"_blank">=
anil@recoil.org</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" =
style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><sp=
an class=3D""><br>
&gt; On 24 Mar 2015, at 15:42, Heidi Howard &lt;<a href=3D"mailto:hh360@cam=
.ac.uk">hh360@cam.ac.uk</a>&gt; wrote:<br>
&gt;<br>
&gt; bwt I get different behaviour if I do mirage --unix verse mirage -t un=
ix, though the docs imply that --unix is simply a short hand for mirage -t =
unix<br>
<br>
</span>That was for backwards compatibility, so that `mirage --unix` just d=
oes the right thing on either Linux or MacOS X.<br>
<span class=3D""><br>
&gt; , can someone clarify the docs?<br>
<br>
</span>The `mirage configure --help` says this:<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0--unix<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Use Unix backend. Do not use in co=
njunction with --xen. On MacOS X,<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0this will use platform-specific co=
de to be generated. To force pure<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Unix mode on MacOS X, set the -t f=
lag to unix instead.<br>
<br>
Did you have somewhere else in mind to update?<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
-anil<br>
</font></span><div class=3D"HOEnZb"><div class=3D"h5"><br>
&gt;<br>
&gt; On 24 March 2015 at 12:19, Anil Madhavapeddy &lt;<a href=3D"mailto:ani=
l@recoil.org">anil@recoil.org</a>&gt; wrote:<br>
&gt; On 24 Mar 2015, at 12:17, Daniel B=C3=BCnzli &lt;<a href=3D"mailto:dan=
iel.buenzli@erratique.ch">daniel.buenzli@erratique.ch</a>&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; Le mardi, 24 mars 2015 =C3=A0 12:51, Anil Madhavapeddy a =C3=A9cr=
it :<br>
&gt; &gt;&gt; Excellent. Note that in normal use, the native MacOS X one is=
 better since your unikernel can make outgoing network requests. The downsi=
de is that it doesn&#39;t support static IP (only DHCP), or at least I have=
n&#39;t found a way to make it happen.<br>
&gt; &gt;<br>
&gt; &gt; Btw. this is mostly OT but did anybody find a way to make interne=
t sharing work on Yosemite (10.10.2) ?<br>
&gt; &gt;<br>
&gt; &gt; I used to be able to share the (phone usb) internet connection of=
 my laptop with the little boxes (rpi, cubie) through thunderbolt ethernet,=
 but I can&#39;t anymore which is quite annoying.<br>
&gt; &gt;<br>
&gt; &gt; It seems that any combination of internet sharing (usb to wifi, t=
hunderbolt ethernet to wifi, wifi to ethernet thunderbolt) is completely br=
oken on my machine and the logs or the internet do not say anything meaning=
ful =E2=80=94 though some other people seem to have the same, unsolved, pro=
blem.<br>
&gt;<br>
&gt; It does work for me, but is sufficiently unstable that a hard reboot i=
s occasionally required.=C2=A0 Some system daemon errors out that causes al=
l subsequent network sharing to no longer work under some conditions.=C2=A0=
 It clears up with a reboot.<br>
&gt;<br>
&gt; -anil<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Regards<br>
&gt; Heidi<br>
<br>
</div></div></blockquote></div><br><br clear=3D"all"><div><br></div>-- <br>=
<div class=3D"gmail_signature">Regards<br>Heidi<br></div>
</div>

--001a113fb98edb411d05120abb2e--


--===============0705691905146901070==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============0705691905146901070==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 15:58:05 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 15:58:05 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaRDO-0001IY-IZ; Tue, 24 Mar 2015 15:58:02 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <magnus@therning.org>) id 1YaRDM-0001IL-Tx
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 15:58:02 +0000
Received: from [85.158.139.211] by server-12.bemta-5.messagelabs.com id
	BB/28-11605-88981155; Tue, 24 Mar 2015 15:58:00 +0000
X-Env-Sender: magnus@therning.org
X-Msg-Ref: server-10.tower-206.messagelabs.com!1427212679!5980477!1
X-Originating-IP: [209.85.217.173]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 24710 invoked from network); 24 Mar 2015 15:57:59 -0000
Received: from mail-lb0-f173.google.com (HELO mail-lb0-f173.google.com)
	(209.85.217.173)
	by server-10.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	24 Mar 2015 15:57:59 -0000
Received: by lbbsy1 with SMTP id sy1so144306451lbb.1
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 24 Mar 2015 08:57:58 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:date:from:to:cc:subject:message-id:references
	:mime-version:content-type:content-disposition:in-reply-to
	:user-agent;
	bh=Rq9JXh2vnpIvB8qoraR8qoG2b4f1IWahPlGurWfK6Zk=;
	b=f/k/7LsReFVB/+t/r76OUu/CPFkznLQPbgfvRT6FY1+jXV41QjwYLjtK/eGRDNZrmZ
	NUlWjNHhxzdzTluDaPM1ijk9qccM0Oxy9BZDfkQ95UEWesxA9/s9RBItP1o/XhCbAgn/
	p4FIHykH5zsUBMHC0086Erf7XRawBg+5A2xKSQBT5F8QgFkWIFnhSX4iBivHUCMvNaBG
	DKudRIo9O6pBTwVu4zLTWUFW3VvH7GLjT4oPjjhdjjLHQ0VvGIhGP6+iqmb03A7fxTHN
	AGxRArj7jLJWScO9ikFlM9LBnvHd9cTaSVDSjWDOsCn3HxO9cNFHw4tp0MRIHE+SZ6Yd
	P/UQ==
X-Gm-Message-State: ALoCoQknKi+jMES2wzFMvpiJyb03hFbkEmSlr4w/hf6h0CL60BByh1hASwGpH3J9OFBjeoVvl4ht
X-Received: by 10.112.133.2 with SMTP id oy2mr4421129lbb.124.1427212678788;
	Tue, 24 Mar 2015 08:57:58 -0700 (PDT)
Received: from mtcomp.evidente.local (static-213.88.173.98.addr.tdcsong.se.
	[213.88.173.98])
	by mx.google.com with ESMTPSA id pq1sm1022709lbb.41.2015.03.24.08.57.57
	(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Tue, 24 Mar 2015 08:57:57 -0700 (PDT)
Date: Tue, 24 Mar 2015 16:57:55 +0100
From: Magnus Therning <magnus@therning.org>
To: Anil Madhavapeddy <anil@recoil.org>
Message-ID: <20150324155755.GB4412@mtcomp.evidente.local>
References: <20150324052426.GA1017@tatooine>
	<AD0AC498-4EF2-4693-9B2C-5DC86C87A8D1@recoil.org>
MIME-Version: 1.0
In-Reply-To: <AD0AC498-4EF2-4693-9B2C-5DC86C87A8D1@recoil.org>
User-Agent: Mutt/1.5.23 (2014-03-12)
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Compiling on/for ARM
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2764000516477718427=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============2764000516477718427==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="UHN/qo2QbUvPLonB"
Content-Disposition: inline


--UHN/qo2QbUvPLonB
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Mar 24, 2015 at 07:52:26AM +0000, Anil Madhavapeddy wrote:
> On 24 Mar 2015, at 05:24, Magnus Therning <magnus@therning.org> wrote:
> >=20
> > I thought github/mirage-decks would be a good first project to build
> > on/for my Cubietruck.  So after installing the mirage tool via `opam`
> > I cloned the decks project and proceeded to build it in unix mode.
> > `make configure` worked just fine, but `make build` did not.
> > Apparently `camlp4` requires more memory than what's available:
>=20
> mirage-decks isn't a great first choice -- mirage-www would be better.
> The reason is that it currently crunches the *entire* slide deck into
> memory rather than use an external block device.  We do need to port
> the decks build system to dynamically read the slides off disk as they
> have grown quite significantly.  What Mort and I normally do is to
> delete the irrelevant slides from a local checkout on the ARM box.
>=20
> Note that you can still get it compile fine if you setup a swap device
> as normal on dom0, but compiling it will take forever due to building a
> 50MB OCaml source file.  I'd recommend just playing with mirage-www
> instead, or the static_website example in mirage-skeleton (where you
> just populate htdocs/ with whatever content you want)

Thanks.  I'll switch to mirage-www then :)  Hopefully I'll have more
luck with that.

/M

--=20
Magnus Therning                      OpenPGP: 0xAB4DFBA4=20
email: magnus@therning.org   jabber: magnus@therning.org
twitter: magthe               http://therning.org/magnus

The ultimate goal of all computer science is the program.  The
performance of programs was once the noblest function of computer
science, and computer science was indispensable to great programs.
Today, programming and computer science exist in complacent isolation,
and can be [rescued only] by conscious co=F6peration and collaboration
of all programmers.

--UHN/qo2QbUvPLonB
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iEYEABECAAYFAlURiYMACgkQiMWTaatN+6QjMwCfZsCByHa/wvXrflYsWSB6UyZz
px4AoMELJqJIJbc6FwusLsseY0KjXuQk
=0Fcx
-----END PGP SIGNATURE-----

--UHN/qo2QbUvPLonB--


--===============2764000516477718427==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============2764000516477718427==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 15:58:05 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 15:58:05 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaRDO-0001IY-IZ; Tue, 24 Mar 2015 15:58:02 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <magnus@therning.org>) id 1YaRDM-0001IL-Tx
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 15:58:02 +0000
Received: from [85.158.139.211] by server-12.bemta-5.messagelabs.com id
	BB/28-11605-88981155; Tue, 24 Mar 2015 15:58:00 +0000
X-Env-Sender: magnus@therning.org
X-Msg-Ref: server-10.tower-206.messagelabs.com!1427212679!5980477!1
X-Originating-IP: [209.85.217.173]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 24710 invoked from network); 24 Mar 2015 15:57:59 -0000
Received: from mail-lb0-f173.google.com (HELO mail-lb0-f173.google.com)
	(209.85.217.173)
	by server-10.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	24 Mar 2015 15:57:59 -0000
Received: by lbbsy1 with SMTP id sy1so144306451lbb.1
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 24 Mar 2015 08:57:58 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:date:from:to:cc:subject:message-id:references
	:mime-version:content-type:content-disposition:in-reply-to
	:user-agent;
	bh=Rq9JXh2vnpIvB8qoraR8qoG2b4f1IWahPlGurWfK6Zk=;
	b=f/k/7LsReFVB/+t/r76OUu/CPFkznLQPbgfvRT6FY1+jXV41QjwYLjtK/eGRDNZrmZ
	NUlWjNHhxzdzTluDaPM1ijk9qccM0Oxy9BZDfkQ95UEWesxA9/s9RBItP1o/XhCbAgn/
	p4FIHykH5zsUBMHC0086Erf7XRawBg+5A2xKSQBT5F8QgFkWIFnhSX4iBivHUCMvNaBG
	DKudRIo9O6pBTwVu4zLTWUFW3VvH7GLjT4oPjjhdjjLHQ0VvGIhGP6+iqmb03A7fxTHN
	AGxRArj7jLJWScO9ikFlM9LBnvHd9cTaSVDSjWDOsCn3HxO9cNFHw4tp0MRIHE+SZ6Yd
	P/UQ==
X-Gm-Message-State: ALoCoQknKi+jMES2wzFMvpiJyb03hFbkEmSlr4w/hf6h0CL60BByh1hASwGpH3J9OFBjeoVvl4ht
X-Received: by 10.112.133.2 with SMTP id oy2mr4421129lbb.124.1427212678788;
	Tue, 24 Mar 2015 08:57:58 -0700 (PDT)
Received: from mtcomp.evidente.local (static-213.88.173.98.addr.tdcsong.se.
	[213.88.173.98])
	by mx.google.com with ESMTPSA id pq1sm1022709lbb.41.2015.03.24.08.57.57
	(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Tue, 24 Mar 2015 08:57:57 -0700 (PDT)
Date: Tue, 24 Mar 2015 16:57:55 +0100
From: Magnus Therning <magnus@therning.org>
To: Anil Madhavapeddy <anil@recoil.org>
Message-ID: <20150324155755.GB4412@mtcomp.evidente.local>
References: <20150324052426.GA1017@tatooine>
	<AD0AC498-4EF2-4693-9B2C-5DC86C87A8D1@recoil.org>
MIME-Version: 1.0
In-Reply-To: <AD0AC498-4EF2-4693-9B2C-5DC86C87A8D1@recoil.org>
User-Agent: Mutt/1.5.23 (2014-03-12)
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Compiling on/for ARM
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2764000516477718427=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============2764000516477718427==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="UHN/qo2QbUvPLonB"
Content-Disposition: inline


--UHN/qo2QbUvPLonB
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Mar 24, 2015 at 07:52:26AM +0000, Anil Madhavapeddy wrote:
> On 24 Mar 2015, at 05:24, Magnus Therning <magnus@therning.org> wrote:
> >=20
> > I thought github/mirage-decks would be a good first project to build
> > on/for my Cubietruck.  So after installing the mirage tool via `opam`
> > I cloned the decks project and proceeded to build it in unix mode.
> > `make configure` worked just fine, but `make build` did not.
> > Apparently `camlp4` requires more memory than what's available:
>=20
> mirage-decks isn't a great first choice -- mirage-www would be better.
> The reason is that it currently crunches the *entire* slide deck into
> memory rather than use an external block device.  We do need to port
> the decks build system to dynamically read the slides off disk as they
> have grown quite significantly.  What Mort and I normally do is to
> delete the irrelevant slides from a local checkout on the ARM box.
>=20
> Note that you can still get it compile fine if you setup a swap device
> as normal on dom0, but compiling it will take forever due to building a
> 50MB OCaml source file.  I'd recommend just playing with mirage-www
> instead, or the static_website example in mirage-skeleton (where you
> just populate htdocs/ with whatever content you want)

Thanks.  I'll switch to mirage-www then :)  Hopefully I'll have more
luck with that.

/M

--=20
Magnus Therning                      OpenPGP: 0xAB4DFBA4=20
email: magnus@therning.org   jabber: magnus@therning.org
twitter: magthe               http://therning.org/magnus

The ultimate goal of all computer science is the program.  The
performance of programs was once the noblest function of computer
science, and computer science was indispensable to great programs.
Today, programming and computer science exist in complacent isolation,
and can be [rescued only] by conscious co=F6peration and collaboration
of all programmers.

--UHN/qo2QbUvPLonB
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iEYEABECAAYFAlURiYMACgkQiMWTaatN+6QjMwCfZsCByHa/wvXrflYsWSB6UyZz
px4AoMELJqJIJbc6FwusLsseY0KjXuQk
=0Fcx
-----END PGP SIGNATURE-----

--UHN/qo2QbUvPLonB--


--===============2764000516477718427==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============2764000516477718427==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 16:23:55 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 16:23:55 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaRcP-0005vt-Tl; Tue, 24 Mar 2015 16:23:53 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YaRcO-0005vo-K0
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 16:23:52 +0000
Received: from [85.158.137.68] by server-8.bemta-3.messagelabs.com id
	F7/26-28652-79F81155; Tue, 24 Mar 2015 16:23:51 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-8.tower-31.messagelabs.com!1427214230!15146355!1
X-Originating-IP: [209.85.215.41]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 1340 invoked from network); 24 Mar 2015 16:23:51 -0000
Received: from mail-la0-f41.google.com (HELO mail-la0-f41.google.com)
	(209.85.215.41)
	by server-8.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	24 Mar 2015 16:23:51 -0000
Received: by labto5 with SMTP id to5so56107718lab.0
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 24 Mar 2015 09:23:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=qqd8HdLUNjYd3hBtFipdkEAUcGdyeY8gl3m+XDdP5JA=;
	b=0e78DI7wK8QQHM1n0YBPhudeFm8bMH5CNdA51ZDTSljunr/5XAm74dkVXa4shbOT2f
	1cdDMU8xyvJgrhE3SKEwUMn1wCW1AVr3JVVSSaUs8OruJy8TpTtv7h1wDTAr27u3HIG+
	GoIECbRlznul1jn+8FhF4Tk9plDSMpT41jxr+a9pR5Erclwg8SMUe8qgXrCtUATHGXe1
	XmSkTZ0EHgD+cEL8+zH2eBhcF4w+B93FoD+AXCfV5CTY6xtShRezlDIxjxbQfUl8TWbe
	mj7PlKSJQ5Sts6Ri4wFuxWbWLe6uDvr3f4WOH3wbY2gbzF3WVR7eNWFHWijmvja90u4m
	LbGQ==
MIME-Version: 1.0
X-Received: by 10.112.89.71 with SMTP id bm7mr4574298lbb.20.1427214230449;
	Tue, 24 Mar 2015 09:23:50 -0700 (PDT)
Received: by 10.25.207.17 with HTTP; Tue, 24 Mar 2015 09:23:50 -0700 (PDT)
Date: Tue, 24 Mar 2015 16:23:50 +0000
Message-ID: <CAG4opy98s0_vD0=FaBvLWNF_2gntLb4xrYam4SzeqgJoiXQzzg@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: [MirageOS-devel] IndexedDB Irmin backend
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

I've replaced my HTML Storage Irmin backend with an IndexedDB one:

  https://github.com/talex5/cuekeeper/blob/master/js/irmin_IDB.ml

Unlike HTML Storage, IndexedDB isn't limited to 5 MB. It also supports
transactions, so updates should no longer be racey.

However, IndexedDB doesn't support notifications. My backend therefore
also writes the current branch head hash to a single HTML Storage key
so notifications work (browser tabs remain synchronised).


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 16:23:55 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 16:23:55 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaRcP-0005vt-Tl; Tue, 24 Mar 2015 16:23:53 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YaRcO-0005vo-K0
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 16:23:52 +0000
Received: from [85.158.137.68] by server-8.bemta-3.messagelabs.com id
	F7/26-28652-79F81155; Tue, 24 Mar 2015 16:23:51 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-8.tower-31.messagelabs.com!1427214230!15146355!1
X-Originating-IP: [209.85.215.41]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 1340 invoked from network); 24 Mar 2015 16:23:51 -0000
Received: from mail-la0-f41.google.com (HELO mail-la0-f41.google.com)
	(209.85.215.41)
	by server-8.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	24 Mar 2015 16:23:51 -0000
Received: by labto5 with SMTP id to5so56107718lab.0
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 24 Mar 2015 09:23:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=qqd8HdLUNjYd3hBtFipdkEAUcGdyeY8gl3m+XDdP5JA=;
	b=0e78DI7wK8QQHM1n0YBPhudeFm8bMH5CNdA51ZDTSljunr/5XAm74dkVXa4shbOT2f
	1cdDMU8xyvJgrhE3SKEwUMn1wCW1AVr3JVVSSaUs8OruJy8TpTtv7h1wDTAr27u3HIG+
	GoIECbRlznul1jn+8FhF4Tk9plDSMpT41jxr+a9pR5Erclwg8SMUe8qgXrCtUATHGXe1
	XmSkTZ0EHgD+cEL8+zH2eBhcF4w+B93FoD+AXCfV5CTY6xtShRezlDIxjxbQfUl8TWbe
	mj7PlKSJQ5Sts6Ri4wFuxWbWLe6uDvr3f4WOH3wbY2gbzF3WVR7eNWFHWijmvja90u4m
	LbGQ==
MIME-Version: 1.0
X-Received: by 10.112.89.71 with SMTP id bm7mr4574298lbb.20.1427214230449;
	Tue, 24 Mar 2015 09:23:50 -0700 (PDT)
Received: by 10.25.207.17 with HTTP; Tue, 24 Mar 2015 09:23:50 -0700 (PDT)
Date: Tue, 24 Mar 2015 16:23:50 +0000
Message-ID: <CAG4opy98s0_vD0=FaBvLWNF_2gntLb4xrYam4SzeqgJoiXQzzg@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: [MirageOS-devel] IndexedDB Irmin backend
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

I've replaced my HTML Storage Irmin backend with an IndexedDB one:

  https://github.com/talex5/cuekeeper/blob/master/js/irmin_IDB.ml

Unlike HTML Storage, IndexedDB isn't limited to 5 MB. It also supports
transactions, so updates should no longer be racey.

However, IndexedDB doesn't support notifications. My backend therefore
also writes the current branch head hash to a single HTML Storage key
so notifications work (browser tabs remain synchronised).


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 21:34:57 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 21:34:57 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaWTA-0000Xj-FP; Tue, 24 Mar 2015 21:34:40 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <magnus@v0.no>) id 1YaWT8-0000Xe-Jm
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 21:34:39 +0000
Received: from [85.158.139.211] by server-5.bemta-5.messagelabs.com id
	AB/37-28741-D68D1155; Tue, 24 Mar 2015 21:34:37 +0000
X-Env-Sender: magnus@v0.no
X-Msg-Ref: server-3.tower-206.messagelabs.com!1427232876!3750700!1
X-Originating-IP: [66.111.4.26]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNjYuMTExLjQuMjYgPT4gMTIyNTM=\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 2512 invoked from network); 24 Mar 2015 21:34:37 -0000
Received: from out2-smtp.messagingengine.com (HELO
	out2-smtp.messagingengine.com) (66.111.4.26)
	by server-3.tower-206.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 24 Mar 2015 21:34:37 -0000
Received: from compute2.internal (compute2.nyi.internal [10.202.2.42])
	by mailout.nyi.internal (Postfix) with ESMTP id 6E72620C05
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 24 Mar 2015 17:34:33 -0400 (EDT)
Received: from web3 ([10.202.2.213])
	by compute2.internal (MEProxy); Tue, 24 Mar 2015 17:34:36 -0400
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=v0.no; h=
	message-id:x-sasl-enc:from:to:cc:mime-version
	:content-transfer-encoding:content-type:subject:date:in-reply-to
	:references; s=mesmtp; bh=N64oVc1IgAfcCOGZv+WpbT3hKgM=; b=GYUn82
	226WJ60ukSbkVi9UXrNm1/Tc5VUj2ws2RPLJCvZhF6lU3WzwzHOjYcCiWZoQiNB3
	gZqINhmz3495iY4YD3AaZvu3NHuCNuyaWGfCLfpwhLEOc6f8O8NwE6SAodK7AzIs
	yMvyZF/7Ykfk2ENPCnHIo05wZ40rVBJJgFpow=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=
	messagingengine.com; h=message-id:x-sasl-enc:from:to:cc
	:mime-version:content-transfer-encoding:content-type:subject
	:date:in-reply-to:references; s=smtpout; bh=N64oVc1IgAfcCOGZv+Wp
	bT3hKgM=; b=MhpV8XqOhUPyFUPLyVHCRwAC93ok+wmEXWh31npdOaoMaqtTw0IK
	/et9bdAC7LNdxs6H6zPZ95jJ/F2a/kMRRFJI40QXiRNHteka2QWvMOS/TDfvhajd
	WiT021UY+q446zvu93H0YDK6olfUTapAF0sOTwlJj7wV9Eabew5gFMM=
Received: by web3.nyi.internal (Postfix, from userid 99)
	id AE61E11F545; Tue, 24 Mar 2015 17:34:35 -0400 (EDT)
Message-Id: <1427232875.886579.244765086.753AF598@webmail.messagingengine.com>
X-Sasl-Enc: ZJFVKvGOONoCx0RdeHg8pmyO9uT1C/+TTtixE4jO9cfR 1427232875
From: Magnus Skjegstad <magnus@v0.no>
To: Dave Scott <Dave.Scott@citrix.com>
MIME-Version: 1.0
X-Mailer: MessagingEngine.com Webmail Interface - ajax-15db86eb
Date: Tue, 24 Mar 2015 21:34:35 +0000
In-Reply-To: <198EF0F7-C6F6-4C22-B545-A17396F53899@citrix.com>
References: <1427126123.430506.244046706.2C497031@webmail.messagingengine.com>
	<198EF0F7-C6F6-4C22-B545-A17396F53899@citrix.com>
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] Problem with Lwt and TCP/IP
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

T24gTW9uLCAyMyBNYXIgMjAxNSwgYXQgMTY6MjQsIERhdmUgU2NvdHQgd3JvdGU6Cj4gCj4gPiBP
biAyMyBNYXIgMjAxNSwgYXQgMTU6NTUsIE1hZ251cyBTa2plZ3N0YWQgPG1hZ251c0B2MC5ubz4g
d3JvdGU6Cj4gPiBUaGUgd29ya2Fyb3VuZCBzZWVtcyB0byBydW4gZmluZSB1bmRlciBYZW4gYW5k
IHRoZSBpcGVyZi1saWtlIHRocm91Z2hwdXQKPiA+IGJldHdlZW4gdHdvIHRocmVhZHMgd2l0aCBb
NF0gaXMgYWJvdXQgNDAwIDAwMCBLQml0L3MgaW4gWGVuL1ZpcnR1YWxib3guCj4gPiBJbiBVbml4
IG1vZGUgdGhlIHRocm91Z2hwdXQgaXMgYWJvdXQgMSAyMDAgMDAwIEtCaXQvcy4gVW5mb3J0dW5h
dGVseSwKPiA+IHRoZSB0ZXN0IGFsc28gc29tZXRpbWVzIGRlYWRsb2NrcyBpbiBVbml4IG1vZGUu
Cj4gCj4gSeKAmWQgbG92ZSB0byBrbm93IHdoZXJlIGl04oCZcyBkZWFkbG9ja2luZy4gUGVyaGFw
cyB0cnkgcmVwcm9kdWNpbmcgaXQgd2l0aAo+IHRyYWNpbmcgZW5hYmxlZD8KPiAKPiBodHRwOi8v
b3Blbm1pcmFnZS5vcmcvd2lraS9wcm9maWxpbmcKPiAKPiBbIEkgaG9wZSBpdCByZXByb2R1Y2Vz
IGF0IGEgbG93ZXIgdGhyb3VnaHB1dCEgXQoKVGhlIGRlYWRsb2NrIHNlZW1zIHRvIG9jY3VyIHdp
dGggdHJhY2luZyBlbmFibGVkIGFzIHdlbGwuIEknbGwgdHJ5IHRvCmZpZ3VyZSBvdXQgd2hlcmUg
aXQgaXMuCgo+ID4gSSB0aG91Z2h0IHRoZSBkZWFkbG9jayBjb3VsZCBiZSBjYXVzZWQgYnkgdGhl
IGZhc3RlciB3cml0ZSB0aHJlYWRzCj4gPiBzdGFydmluZyB0aGUgbGlzdGVuZXJzLCBzbyBJIGFk
ZGVkIGFuIEx3dC5wYXVzZSBpbiBpcGVyZl9zZWxmLm1sIGFmdGVyCj4gPiBlYWNoIGNhbGwgdG8g
d3JpdGUgWzVdLiBUaGUgdGVzdCB0aGVuIHJ1bnMgZmluZSB1bmRlciBVbml4LCB3aXRoIGEKPiA+
IHJlZHVjZWQgdGhyb3VnaHB1dCBvZiBhYm91dCA1MDAgMDAwIEtCaXQvcy4gVW5mb3J0dW5hdGVs
eSwgdGhlIGNhbGwgdG8KPiA+IEx3dC5wYXVzZSBpcyBtdWNoIHNsb3dlciB1bmRlciBYZW4gYW5k
IHRoZSB0aHJvdWdocHV0IGlzIGFyb3VuZCA0Ngo+ID4gS2JpdC9zICghKS4gCj4gPiAKPiA+IEkg
YW0gbm90IHN1cmUgd2hhdCB3b3VsZCBiZSB0aGUgYmVzdCB3YXkgdG8gZml4IHRoaXMuIElmIHRo
ZXJlIGlzIGEKPiA+IHJhY2UsIEkgZ3Vlc3MgaXQgaXMgbGlrZWx5IHRoYXQgaXQgaXMgaW4gZWl0
aGVyIG1pcmFnZS10Y3BpcCBvciBpbiBteQo+ID4gY29kZS4gSSBoYXZlIG5vdCBiZWVuIGFibGUg
dG8gZmluZCBvbmUgaW4gdGhlIHZuZXRpZiBjb2RlLCBidXQgbWF5YmUKPiA+IHRoZXJlIGlzIHNv
bWV0aGluZyBJIGhhdmUgb3Zlcmxvb2tlZCB0aGF0IGlzIHRyaWdnZXJlZCB1bmRlciBoaWdoIGxv
YWQuCj4gPiBUaGUgY29kZSB3b3JrcyBmaW5lIHdoZW4gSSBydW4gaXBlcmYgd2l0aG91dCBUQ1Av
SVAgYW5kIHdpdGggYXN5bmMKPiA+IGRpc2FibGVkIFs2XSAodGVzdGVkIHdpdGggdGhyb3VnaHB1
dCBhcm91bmQgMTcgMDAwIDAwMCBLQml0L3MpLgo+ID4gCj4gPiBBIHNvbHV0aW9uIGNvdWxkIGFs
c28gYmUgdG8gdHJ5IHRvIHNwZWVkIHVwIEx3dC5wYXVzZSBpbiBYZW4sIHNvIHRoYXQgd2UKPiA+
IGF0IGxlYXN0IGNvdWxkIHJ1biB0aGUgc2FtZSBpcGVyZiB0ZXN0IG9uIGJvdGggcGxhdGZvcm1z
LiBJbiB0aGUgcnVuCj4gPiBsb29wIGluIFs3XSB0aGUgZG9tYWluIGlzIGJsb2NrZWQgd2hlbiB0
aGVyZSBhcmUgbm8gbmV3IGV2ZW50cyBvbiB0aGUKPiA+IGV2ZW50IGNoYW5uZWwsIGV2ZW4gd2hl
biB0aGVyZSBhcmUgcGF1c2VkIHRocmVhZHMuIEJ5IGFkZGluZyBhIGNoZWNrIGZvcgo+ID4gTHd0
LnBhdXNlZF9jb3VudCAoKSA9IDAgYmVmb3JlIGJsb2NraW5nIHRoZSBkb21haW4gKGNvZGUgaGVy
ZSBbOF0pLCB0aGUKPiA+IFhlbiB3L0x3dC5wYXVzZSBpcGVyZiB0aHJvdWdocHV0IGlzIDYwIDAw
MCBLQml0L3MgKHN0aWxsIHNsb3csIGJ1dAo+ID4gdXNlYWJsZSkuIAo+IAo+IFRoZSBMd3QucGF1
c2UgdGhpbmcgc291bmRzIGxpa2UgaXTigJlzIHByb2JhYmx5IG1hc2tpbmcgYSBidWcgZWxzZXdo
ZXJlCj4gdGhhdCB3ZSBvdWdodCB0byB0cmFjayBkb3duLgo+IAo+IEkgZG9u4oCZdCByZWFsbHkg
dW5kZXJzdGFuZCBob3cgcGF1c2UgaXMgc3VwcG9zZWQgdG8gYmUgdXNlZC4gSW4gZmFjdCBJ4oCZ
ZAo+IG5ldmVyIG5vdGljZWQgaXQgZXhpc3RlZCB1bnRpbCB5b3UgcG9pbnRlZCBpdCBvdXQhIFRo
ZSBkb2NzIGp1c3Qgc2F5Cj4KPiAtIHBhdXNlICgpIGlzIGEgc2xlZXBpbmcgdGhyZWFkIHdoaWNo
IGlzIHdha2UgdXAgb24gdGhlIG5leHQgY2FsbCB0bwo+IEx3dC7igIt3YWtldXBfcGF1c2VkLgo+
IC0gd2FrZXVwX3BhdXNlZCAoKSB3YWtlcyB1cCBhbGwgdGhyZWFkcyB3aGljaCBzdXNwZW5kZWQg
dGhlbXNlbHZlcyB3aXRoCj4gTHd0LuKAi3BhdXNlLiBUaGlzIGZ1bmN0aW9uIGlzIGNhbGxlZCBi
eSB0aGUgc2NoZWR1bGVyLCBiZWZvcmUgZW50ZXJpbmcgdGhlCj4gbWFpbiBsb29wCgpJdCBpcyBu
b3QgY2xlYXIgdG8gbWUgZWl0aGVyLiBJIGhvcGVkIEkgY291bGQgdXNlIHBhdXNlIGFzIGFuCmFs
dGVybmF0aXZlIHRvIHlpZWxkIGluIE1pcmFnZSwgYnV0IHRoYXQgbWF5IGJlIHRoZSB3cm9uZyB3
YXkgdG8gdXNlIGl0LgpGcm9tIHRoZSBjb2RlIGluIFsxXSBhbmQgWzJdIGl0IGNvdWxkIGxvb2sg
bGlrZSB0aGUgbWFpbiBkaWZmZXJlbmNlCmJldHdlZW4geWllbGQgYW5kIHBhdXNlIGlzIHRoYXQg
cGF1c2VkIHRocmVhZHMgYXJlIHJlc3VtZWQgYmVmb3JlIGFuZAphZnRlciB0aGUgbWFpbiBsb29w
LCB3aGlsZSB5aWVsZGVkIHRocmVhZHMgYXJlIG9ubHkgcmVzdW1lZCBhZnRlci4KCj4gCj4gSXQg
c291bmRzIGxpa2UgdGhlcmXigJlzIG5vIGd1YXJhbnRlZSB0aGF0IHRoZSBzY2hlZHVsZXIgaXMg
Z29pbmcgdG8gYmUgcnVuCj4gYW55IHRpbWUgc29vbi4gV2l0aCB5b3VyIHByb3Bvc2VkIG1vZGlm
aWNhdGlvbiwgaG93IHNpbWlsYXIgd291bGQgYQo+IHBhdXNlZCB0aHJlYWQgYmUgdG8gYSB0aHJl
YWQgc2xlZXBpbmcgZm9yIDAgc2Vjb25kcz8KPiAKCkkgd3JvdGUgYSB0ZXN0IHVuaWtlcm5lbCB0
byBjb21wYXJlIHRoZSBwZXJmb3JtYW5jZSBvZiBwYXVzZSBhbmQgc2xlZXAKaGVyZSBbM10uIFRo
ZSByZXN1bHRzIGFyZSBmcm9tIGEgY3ViaWVib2FyZC4gSW4gdGhlIHRlc3QgTHd0LnBhdXNlIGlz
CmZhc3RlciB0aGFuIE9TLlRpbWUuc2xlZXAgMC4wIG9uIFVuaXggKDIxMWsgY2FsbHMgcGVyIHNl
Y29uZCB2cyA3MWspLApidXQgbm90IGluIFhlbiB3aXRob3V0IHRoZSBwYXRjaCAoMyBjYWxscyBw
ZXIgc2Vjb25kIHZzIDExMGspLiBXaXRoIHRoZQpwYXRjaCBpdCBpcyBhcm91bmQgMTkwayB2cyAx
MjlrIGluIFhlbi4KClRoZSBpcGVyZiB0aHJvdWdocHV0IHdpdGggTHd0LnBhdXNlK3BhdGNoIHNl
ZW1zIHRvIGJlIGFib3V0IHRoZSBzYW1lIGFzCnRoZSB0aHJvdWdocHV0IHdpdGggT1MuVGltZS5z
bGVlcCB0aG91Z2guIE9uIG15IEN1YmllYm9hcmQgaW4gWGVuIGl0CnZhcmllcyBhcm91bmQgNi04
MDAwIGtiaXQvcywgY29tcGFyZWQgdG8gYXJvdW5kIDI2MDAwIGtiaXQvcyB3aXRob3V0CnBhdXNl
L3NsZWVwLgoKMS4gaHR0cHM6Ly9naXRodWIuY29tL29jc2lnZW4vbHd0L2Jsb2IvbWFzdGVyL3Ny
Yy91bml4L2x3dF9tYWluLm1sCjIuIGh0dHBzOi8vZ2l0aHViLmNvbS9vY3NpZ2VuL2x3dC9ibG9i
L21hc3Rlci9zcmMvY29yZS9sd3QubWwjTDExOTAKMy4gaHR0cHM6Ly9naXN0LmdpdGh1Yi5jb20v
TWFnbnVzUy8wODljMDY5MTM1OTRlYmRmMjFiMSNmaWxlLXJlc3VsdHMtbWQKCk1hZ251cwoKX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTWlyYWdlT1MtZGV2
ZWwgbWFpbGluZyBsaXN0Ck1pcmFnZU9TLWRldmVsQGxpc3RzLnhlbnByb2plY3Qub3JnCmh0dHA6
Ly9saXN0cy54ZW5wcm9qZWN0Lm9yZy9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbWlyYWdlb3Mt
ZGV2ZWwK

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 21:34:57 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 21:34:57 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaWTA-0000Xj-FP; Tue, 24 Mar 2015 21:34:40 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <magnus@v0.no>) id 1YaWT8-0000Xe-Jm
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 21:34:39 +0000
Received: from [85.158.139.211] by server-5.bemta-5.messagelabs.com id
	AB/37-28741-D68D1155; Tue, 24 Mar 2015 21:34:37 +0000
X-Env-Sender: magnus@v0.no
X-Msg-Ref: server-3.tower-206.messagelabs.com!1427232876!3750700!1
X-Originating-IP: [66.111.4.26]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNjYuMTExLjQuMjYgPT4gMTIyNTM=\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 2512 invoked from network); 24 Mar 2015 21:34:37 -0000
Received: from out2-smtp.messagingengine.com (HELO
	out2-smtp.messagingengine.com) (66.111.4.26)
	by server-3.tower-206.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 24 Mar 2015 21:34:37 -0000
Received: from compute2.internal (compute2.nyi.internal [10.202.2.42])
	by mailout.nyi.internal (Postfix) with ESMTP id 6E72620C05
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 24 Mar 2015 17:34:33 -0400 (EDT)
Received: from web3 ([10.202.2.213])
	by compute2.internal (MEProxy); Tue, 24 Mar 2015 17:34:36 -0400
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=v0.no; h=
	message-id:x-sasl-enc:from:to:cc:mime-version
	:content-transfer-encoding:content-type:subject:date:in-reply-to
	:references; s=mesmtp; bh=N64oVc1IgAfcCOGZv+WpbT3hKgM=; b=GYUn82
	226WJ60ukSbkVi9UXrNm1/Tc5VUj2ws2RPLJCvZhF6lU3WzwzHOjYcCiWZoQiNB3
	gZqINhmz3495iY4YD3AaZvu3NHuCNuyaWGfCLfpwhLEOc6f8O8NwE6SAodK7AzIs
	yMvyZF/7Ykfk2ENPCnHIo05wZ40rVBJJgFpow=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=
	messagingengine.com; h=message-id:x-sasl-enc:from:to:cc
	:mime-version:content-transfer-encoding:content-type:subject
	:date:in-reply-to:references; s=smtpout; bh=N64oVc1IgAfcCOGZv+Wp
	bT3hKgM=; b=MhpV8XqOhUPyFUPLyVHCRwAC93ok+wmEXWh31npdOaoMaqtTw0IK
	/et9bdAC7LNdxs6H6zPZ95jJ/F2a/kMRRFJI40QXiRNHteka2QWvMOS/TDfvhajd
	WiT021UY+q446zvu93H0YDK6olfUTapAF0sOTwlJj7wV9Eabew5gFMM=
Received: by web3.nyi.internal (Postfix, from userid 99)
	id AE61E11F545; Tue, 24 Mar 2015 17:34:35 -0400 (EDT)
Message-Id: <1427232875.886579.244765086.753AF598@webmail.messagingengine.com>
X-Sasl-Enc: ZJFVKvGOONoCx0RdeHg8pmyO9uT1C/+TTtixE4jO9cfR 1427232875
From: Magnus Skjegstad <magnus@v0.no>
To: Dave Scott <Dave.Scott@citrix.com>
MIME-Version: 1.0
X-Mailer: MessagingEngine.com Webmail Interface - ajax-15db86eb
Date: Tue, 24 Mar 2015 21:34:35 +0000
In-Reply-To: <198EF0F7-C6F6-4C22-B545-A17396F53899@citrix.com>
References: <1427126123.430506.244046706.2C497031@webmail.messagingengine.com>
	<198EF0F7-C6F6-4C22-B545-A17396F53899@citrix.com>
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] Problem with Lwt and TCP/IP
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

T24gTW9uLCAyMyBNYXIgMjAxNSwgYXQgMTY6MjQsIERhdmUgU2NvdHQgd3JvdGU6Cj4gCj4gPiBP
biAyMyBNYXIgMjAxNSwgYXQgMTU6NTUsIE1hZ251cyBTa2plZ3N0YWQgPG1hZ251c0B2MC5ubz4g
d3JvdGU6Cj4gPiBUaGUgd29ya2Fyb3VuZCBzZWVtcyB0byBydW4gZmluZSB1bmRlciBYZW4gYW5k
IHRoZSBpcGVyZi1saWtlIHRocm91Z2hwdXQKPiA+IGJldHdlZW4gdHdvIHRocmVhZHMgd2l0aCBb
NF0gaXMgYWJvdXQgNDAwIDAwMCBLQml0L3MgaW4gWGVuL1ZpcnR1YWxib3guCj4gPiBJbiBVbml4
IG1vZGUgdGhlIHRocm91Z2hwdXQgaXMgYWJvdXQgMSAyMDAgMDAwIEtCaXQvcy4gVW5mb3J0dW5h
dGVseSwKPiA+IHRoZSB0ZXN0IGFsc28gc29tZXRpbWVzIGRlYWRsb2NrcyBpbiBVbml4IG1vZGUu
Cj4gCj4gSeKAmWQgbG92ZSB0byBrbm93IHdoZXJlIGl04oCZcyBkZWFkbG9ja2luZy4gUGVyaGFw
cyB0cnkgcmVwcm9kdWNpbmcgaXQgd2l0aAo+IHRyYWNpbmcgZW5hYmxlZD8KPiAKPiBodHRwOi8v
b3Blbm1pcmFnZS5vcmcvd2lraS9wcm9maWxpbmcKPiAKPiBbIEkgaG9wZSBpdCByZXByb2R1Y2Vz
IGF0IGEgbG93ZXIgdGhyb3VnaHB1dCEgXQoKVGhlIGRlYWRsb2NrIHNlZW1zIHRvIG9jY3VyIHdp
dGggdHJhY2luZyBlbmFibGVkIGFzIHdlbGwuIEknbGwgdHJ5IHRvCmZpZ3VyZSBvdXQgd2hlcmUg
aXQgaXMuCgo+ID4gSSB0aG91Z2h0IHRoZSBkZWFkbG9jayBjb3VsZCBiZSBjYXVzZWQgYnkgdGhl
IGZhc3RlciB3cml0ZSB0aHJlYWRzCj4gPiBzdGFydmluZyB0aGUgbGlzdGVuZXJzLCBzbyBJIGFk
ZGVkIGFuIEx3dC5wYXVzZSBpbiBpcGVyZl9zZWxmLm1sIGFmdGVyCj4gPiBlYWNoIGNhbGwgdG8g
d3JpdGUgWzVdLiBUaGUgdGVzdCB0aGVuIHJ1bnMgZmluZSB1bmRlciBVbml4LCB3aXRoIGEKPiA+
IHJlZHVjZWQgdGhyb3VnaHB1dCBvZiBhYm91dCA1MDAgMDAwIEtCaXQvcy4gVW5mb3J0dW5hdGVs
eSwgdGhlIGNhbGwgdG8KPiA+IEx3dC5wYXVzZSBpcyBtdWNoIHNsb3dlciB1bmRlciBYZW4gYW5k
IHRoZSB0aHJvdWdocHV0IGlzIGFyb3VuZCA0Ngo+ID4gS2JpdC9zICghKS4gCj4gPiAKPiA+IEkg
YW0gbm90IHN1cmUgd2hhdCB3b3VsZCBiZSB0aGUgYmVzdCB3YXkgdG8gZml4IHRoaXMuIElmIHRo
ZXJlIGlzIGEKPiA+IHJhY2UsIEkgZ3Vlc3MgaXQgaXMgbGlrZWx5IHRoYXQgaXQgaXMgaW4gZWl0
aGVyIG1pcmFnZS10Y3BpcCBvciBpbiBteQo+ID4gY29kZS4gSSBoYXZlIG5vdCBiZWVuIGFibGUg
dG8gZmluZCBvbmUgaW4gdGhlIHZuZXRpZiBjb2RlLCBidXQgbWF5YmUKPiA+IHRoZXJlIGlzIHNv
bWV0aGluZyBJIGhhdmUgb3Zlcmxvb2tlZCB0aGF0IGlzIHRyaWdnZXJlZCB1bmRlciBoaWdoIGxv
YWQuCj4gPiBUaGUgY29kZSB3b3JrcyBmaW5lIHdoZW4gSSBydW4gaXBlcmYgd2l0aG91dCBUQ1Av
SVAgYW5kIHdpdGggYXN5bmMKPiA+IGRpc2FibGVkIFs2XSAodGVzdGVkIHdpdGggdGhyb3VnaHB1
dCBhcm91bmQgMTcgMDAwIDAwMCBLQml0L3MpLgo+ID4gCj4gPiBBIHNvbHV0aW9uIGNvdWxkIGFs
c28gYmUgdG8gdHJ5IHRvIHNwZWVkIHVwIEx3dC5wYXVzZSBpbiBYZW4sIHNvIHRoYXQgd2UKPiA+
IGF0IGxlYXN0IGNvdWxkIHJ1biB0aGUgc2FtZSBpcGVyZiB0ZXN0IG9uIGJvdGggcGxhdGZvcm1z
LiBJbiB0aGUgcnVuCj4gPiBsb29wIGluIFs3XSB0aGUgZG9tYWluIGlzIGJsb2NrZWQgd2hlbiB0
aGVyZSBhcmUgbm8gbmV3IGV2ZW50cyBvbiB0aGUKPiA+IGV2ZW50IGNoYW5uZWwsIGV2ZW4gd2hl
biB0aGVyZSBhcmUgcGF1c2VkIHRocmVhZHMuIEJ5IGFkZGluZyBhIGNoZWNrIGZvcgo+ID4gTHd0
LnBhdXNlZF9jb3VudCAoKSA9IDAgYmVmb3JlIGJsb2NraW5nIHRoZSBkb21haW4gKGNvZGUgaGVy
ZSBbOF0pLCB0aGUKPiA+IFhlbiB3L0x3dC5wYXVzZSBpcGVyZiB0aHJvdWdocHV0IGlzIDYwIDAw
MCBLQml0L3MgKHN0aWxsIHNsb3csIGJ1dAo+ID4gdXNlYWJsZSkuIAo+IAo+IFRoZSBMd3QucGF1
c2UgdGhpbmcgc291bmRzIGxpa2UgaXTigJlzIHByb2JhYmx5IG1hc2tpbmcgYSBidWcgZWxzZXdo
ZXJlCj4gdGhhdCB3ZSBvdWdodCB0byB0cmFjayBkb3duLgo+IAo+IEkgZG9u4oCZdCByZWFsbHkg
dW5kZXJzdGFuZCBob3cgcGF1c2UgaXMgc3VwcG9zZWQgdG8gYmUgdXNlZC4gSW4gZmFjdCBJ4oCZ
ZAo+IG5ldmVyIG5vdGljZWQgaXQgZXhpc3RlZCB1bnRpbCB5b3UgcG9pbnRlZCBpdCBvdXQhIFRo
ZSBkb2NzIGp1c3Qgc2F5Cj4KPiAtIHBhdXNlICgpIGlzIGEgc2xlZXBpbmcgdGhyZWFkIHdoaWNo
IGlzIHdha2UgdXAgb24gdGhlIG5leHQgY2FsbCB0bwo+IEx3dC7igIt3YWtldXBfcGF1c2VkLgo+
IC0gd2FrZXVwX3BhdXNlZCAoKSB3YWtlcyB1cCBhbGwgdGhyZWFkcyB3aGljaCBzdXNwZW5kZWQg
dGhlbXNlbHZlcyB3aXRoCj4gTHd0LuKAi3BhdXNlLiBUaGlzIGZ1bmN0aW9uIGlzIGNhbGxlZCBi
eSB0aGUgc2NoZWR1bGVyLCBiZWZvcmUgZW50ZXJpbmcgdGhlCj4gbWFpbiBsb29wCgpJdCBpcyBu
b3QgY2xlYXIgdG8gbWUgZWl0aGVyLiBJIGhvcGVkIEkgY291bGQgdXNlIHBhdXNlIGFzIGFuCmFs
dGVybmF0aXZlIHRvIHlpZWxkIGluIE1pcmFnZSwgYnV0IHRoYXQgbWF5IGJlIHRoZSB3cm9uZyB3
YXkgdG8gdXNlIGl0LgpGcm9tIHRoZSBjb2RlIGluIFsxXSBhbmQgWzJdIGl0IGNvdWxkIGxvb2sg
bGlrZSB0aGUgbWFpbiBkaWZmZXJlbmNlCmJldHdlZW4geWllbGQgYW5kIHBhdXNlIGlzIHRoYXQg
cGF1c2VkIHRocmVhZHMgYXJlIHJlc3VtZWQgYmVmb3JlIGFuZAphZnRlciB0aGUgbWFpbiBsb29w
LCB3aGlsZSB5aWVsZGVkIHRocmVhZHMgYXJlIG9ubHkgcmVzdW1lZCBhZnRlci4KCj4gCj4gSXQg
c291bmRzIGxpa2UgdGhlcmXigJlzIG5vIGd1YXJhbnRlZSB0aGF0IHRoZSBzY2hlZHVsZXIgaXMg
Z29pbmcgdG8gYmUgcnVuCj4gYW55IHRpbWUgc29vbi4gV2l0aCB5b3VyIHByb3Bvc2VkIG1vZGlm
aWNhdGlvbiwgaG93IHNpbWlsYXIgd291bGQgYQo+IHBhdXNlZCB0aHJlYWQgYmUgdG8gYSB0aHJl
YWQgc2xlZXBpbmcgZm9yIDAgc2Vjb25kcz8KPiAKCkkgd3JvdGUgYSB0ZXN0IHVuaWtlcm5lbCB0
byBjb21wYXJlIHRoZSBwZXJmb3JtYW5jZSBvZiBwYXVzZSBhbmQgc2xlZXAKaGVyZSBbM10uIFRo
ZSByZXN1bHRzIGFyZSBmcm9tIGEgY3ViaWVib2FyZC4gSW4gdGhlIHRlc3QgTHd0LnBhdXNlIGlz
CmZhc3RlciB0aGFuIE9TLlRpbWUuc2xlZXAgMC4wIG9uIFVuaXggKDIxMWsgY2FsbHMgcGVyIHNl
Y29uZCB2cyA3MWspLApidXQgbm90IGluIFhlbiB3aXRob3V0IHRoZSBwYXRjaCAoMyBjYWxscyBw
ZXIgc2Vjb25kIHZzIDExMGspLiBXaXRoIHRoZQpwYXRjaCBpdCBpcyBhcm91bmQgMTkwayB2cyAx
MjlrIGluIFhlbi4KClRoZSBpcGVyZiB0aHJvdWdocHV0IHdpdGggTHd0LnBhdXNlK3BhdGNoIHNl
ZW1zIHRvIGJlIGFib3V0IHRoZSBzYW1lIGFzCnRoZSB0aHJvdWdocHV0IHdpdGggT1MuVGltZS5z
bGVlcCB0aG91Z2guIE9uIG15IEN1YmllYm9hcmQgaW4gWGVuIGl0CnZhcmllcyBhcm91bmQgNi04
MDAwIGtiaXQvcywgY29tcGFyZWQgdG8gYXJvdW5kIDI2MDAwIGtiaXQvcyB3aXRob3V0CnBhdXNl
L3NsZWVwLgoKMS4gaHR0cHM6Ly9naXRodWIuY29tL29jc2lnZW4vbHd0L2Jsb2IvbWFzdGVyL3Ny
Yy91bml4L2x3dF9tYWluLm1sCjIuIGh0dHBzOi8vZ2l0aHViLmNvbS9vY3NpZ2VuL2x3dC9ibG9i
L21hc3Rlci9zcmMvY29yZS9sd3QubWwjTDExOTAKMy4gaHR0cHM6Ly9naXN0LmdpdGh1Yi5jb20v
TWFnbnVzUy8wODljMDY5MTM1OTRlYmRmMjFiMSNmaWxlLXJlc3VsdHMtbWQKCk1hZ251cwoKX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTWlyYWdlT1MtZGV2
ZWwgbWFpbGluZyBsaXN0Ck1pcmFnZU9TLWRldmVsQGxpc3RzLnhlbnByb2plY3Qub3JnCmh0dHA6
Ly9saXN0cy54ZW5wcm9qZWN0Lm9yZy9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbWlyYWdlb3Mt
ZGV2ZWwK

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 21:55:20 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 21:55:20 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaWmx-0001ge-1d; Tue, 24 Mar 2015 21:55:07 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YaWmv-0001gA-Gp
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 21:55:05 +0000
Received: from [193.109.254.147] by server-14.bemta-14.messagelabs.com id
	CD/A2-01069-83DD1155; Tue, 24 Mar 2015 21:55:04 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-10.tower-27.messagelabs.com!1427234103!12840608!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 27865 invoked from network); 24 Mar 2015 21:55:03 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-10.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 24 Mar 2015 21:55:03 -0000
Received: from [192.168.1.75] (cpc7-cmbg14-2-0-cust238.5-4.cable.virginm.net
	[86.30.244.239]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id dc5dfe67;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Tue, 24 Mar 2015 21:55:02 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAG4opy98s0_vD0=FaBvLWNF_2gntLb4xrYam4SzeqgJoiXQzzg@mail.gmail.com>
Date: Tue, 24 Mar 2015 21:55:01 +0000
Message-Id: <AF788E82-23CC-4D51-A218-39521B54EB0A@recoil.org>
References: <CAG4opy98s0_vD0=FaBvLWNF_2gntLb4xrYam4SzeqgJoiXQzzg@mail.gmail.com>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] IndexedDB Irmin backend
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 24 Mar 2015, at 16:23, Thomas Leonard <talex5@gmail.com> wrote:
> 
> I've replaced my HTML Storage Irmin backend with an IndexedDB one:
> 
>  https://github.com/talex5/cuekeeper/blob/master/js/irmin_IDB.ml
> 
> Unlike HTML Storage, IndexedDB isn't limited to 5 MB. It also supports
> transactions, so updates should no longer be racey.
> 
> However, IndexedDB doesn't support notifications. My backend therefore
> also writes the current branch head hash to a single HTML Storage key
> so notifications work (browser tabs remain synchronised).

That's a good idea -- I guess it's safe to assume that any browser
modern enough to support IndexedDB will also have LocalStorage.

Is there a prebuilt version anywhere (or a simpler testcase) to point
various browsers at to check if the requisite support is present? I'm
thinking in particular of Android and iPhone browsers which may be
buggy, at least according to http://caniuse.com/#feat=indexeddb

-anil

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 21:55:20 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 21:55:20 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaWmx-0001ge-1d; Tue, 24 Mar 2015 21:55:07 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YaWmv-0001gA-Gp
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 21:55:05 +0000
Received: from [193.109.254.147] by server-14.bemta-14.messagelabs.com id
	CD/A2-01069-83DD1155; Tue, 24 Mar 2015 21:55:04 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-10.tower-27.messagelabs.com!1427234103!12840608!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 27865 invoked from network); 24 Mar 2015 21:55:03 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-10.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 24 Mar 2015 21:55:03 -0000
Received: from [192.168.1.75] (cpc7-cmbg14-2-0-cust238.5-4.cable.virginm.net
	[86.30.244.239]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id dc5dfe67;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Tue, 24 Mar 2015 21:55:02 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAG4opy98s0_vD0=FaBvLWNF_2gntLb4xrYam4SzeqgJoiXQzzg@mail.gmail.com>
Date: Tue, 24 Mar 2015 21:55:01 +0000
Message-Id: <AF788E82-23CC-4D51-A218-39521B54EB0A@recoil.org>
References: <CAG4opy98s0_vD0=FaBvLWNF_2gntLb4xrYam4SzeqgJoiXQzzg@mail.gmail.com>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] IndexedDB Irmin backend
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 24 Mar 2015, at 16:23, Thomas Leonard <talex5@gmail.com> wrote:
> 
> I've replaced my HTML Storage Irmin backend with an IndexedDB one:
> 
>  https://github.com/talex5/cuekeeper/blob/master/js/irmin_IDB.ml
> 
> Unlike HTML Storage, IndexedDB isn't limited to 5 MB. It also supports
> transactions, so updates should no longer be racey.
> 
> However, IndexedDB doesn't support notifications. My backend therefore
> also writes the current branch head hash to a single HTML Storage key
> so notifications work (browser tabs remain synchronised).

That's a good idea -- I guess it's safe to assume that any browser
modern enough to support IndexedDB will also have LocalStorage.

Is there a prebuilt version anywhere (or a simpler testcase) to point
various browsers at to check if the requisite support is present? I'm
thinking in particular of Android and iPhone browsers which may be
buggy, at least according to http://caniuse.com/#feat=indexeddb

-anil

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 23:45:11 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 23:45:11 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaYVL-0005CA-Rw; Tue, 24 Mar 2015 23:45:03 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YaYVL-0005C5-Bs
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 23:45:03 +0000
Received: from [85.158.137.68] by server-4.bemta-3.messagelabs.com id
	26/1C-11368-9F6F1155; Tue, 24 Mar 2015 23:44:57 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-6.tower-31.messagelabs.com!1427240696!10778721!1
X-Originating-IP: [74.125.82.48]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 25893 invoked from network); 24 Mar 2015 23:44:56 -0000
Received: from mail-wg0-f48.google.com (HELO mail-wg0-f48.google.com)
	(74.125.82.48)
	by server-6.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	24 Mar 2015 23:44:56 -0000
Received: by wgs2 with SMTP id 2so8010179wgs.1
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 24 Mar 2015 16:44:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=LMF6frIuM69EYm3uPFfd6NC+I7mqn6ECS+TFETmaiO0=;
	b=pA79l8K+O3VYVXy1fCFOvuVyWdOMfIPf/UzqLaCDMIlbAP4ZPLgihyqF+pbXE8l+iV
	xQuqw/Wg9GkFpePvZYrhHb7yDP+YUlm5PKCDpC2jkTP9lPKvAXp80q6NBE7EVQ0JjB/4
	oZysPpD5rkyJlfH9UhiRFj3p2BqVtuZ+fDoTb44vdO8BZo1urmJNxCTcVEnevrnIOjg2
	E8qWjQKK06+/0ojFTaJKdxhJsK6/vfd+DLR191wkAzFztCY6K6wGk+CYrDmgUNb4Y/9k
	eTQ9WYn0cUWQAPhzD9UKerhAjSShbOfO6aQe0i/r0sSZKmcJccntkMTMVfglt//RUeSd
	KP5g==
X-Received: by 10.194.91.129 with SMTP id ce1mr12599854wjb.53.1427240696557;
	Tue, 24 Mar 2015 16:44:56 -0700 (PDT)
Received: from [192.168.0.2] (cpc25-cmbg14-2-0-cust121.5-4.cable.virginm.net.
	[213.106.112.122])
	by mx.google.com with ESMTPSA id l6sm1030630wjx.33.2015.03.24.16.44.55
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 24 Mar 2015 16:44:55 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <1427232875.886579.244765086.753AF598@webmail.messagingengine.com>
Date: Tue, 24 Mar 2015 23:44:56 +0000
Message-Id: <5B55DC3D-42D3-4C21-9FD0-808A1EA7B553@gazagnaire.org>
References: <1427126123.430506.244046706.2C497031@webmail.messagingengine.com>
	<198EF0F7-C6F6-4C22-B545-A17396F53899@citrix.com>
	<1427232875.886579.244765086.753AF598@webmail.messagingengine.com>
To: Magnus Skjegstad <magnus@v0.no>
X-Mailer: Apple Mail (2.2070.6)
Cc: Dave Scott <Dave.Scott@citrix.com>, mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] Problem with Lwt and TCP/IP
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Pj4gSXQgc291bmRzIGxpa2UgdGhlcmXigJlzIG5vIGd1YXJhbnRlZSB0aGF0IHRoZSBzY2hlZHVs
ZXIgaXMgZ29pbmcgdG8gYmUgcnVuCj4+IGFueSB0aW1lIHNvb24uIFdpdGggeW91ciBwcm9wb3Nl
ZCBtb2RpZmljYXRpb24sIGhvdyBzaW1pbGFyIHdvdWxkIGEKPj4gcGF1c2VkIHRocmVhZCBiZSB0
byBhIHRocmVhZCBzbGVlcGluZyBmb3IgMCBzZWNvbmRzPwo+PiAKPiAKPiBJIHdyb3RlIGEgdGVz
dCB1bmlrZXJuZWwgdG8gY29tcGFyZSB0aGUgcGVyZm9ybWFuY2Ugb2YgcGF1c2UgYW5kIHNsZWVw
Cj4gaGVyZSBbM10uIFRoZSByZXN1bHRzIGFyZSBmcm9tIGEgY3ViaWVib2FyZC4gSW4gdGhlIHRl
c3QgTHd0LnBhdXNlIGlzCj4gZmFzdGVyIHRoYW4gT1MuVGltZS5zbGVlcCAwLjAgb24gVW5peCAo
MjExayBjYWxscyBwZXIgc2Vjb25kIHZzIDcxayksCj4gYnV0IG5vdCBpbiBYZW4gd2l0aG91dCB0
aGUgcGF0Y2ggKDMgY2FsbHMgcGVyIHNlY29uZCB2cyAxMTBrKS4gV2l0aCB0aGUKPiBwYXRjaCBp
dCBpcyBhcm91bmQgMTkwayB2cyAxMjlrIGluIFhlbi4KCk5vdCBzdXJlIHRvIHVuZGVyc3RhbmQg
d2h5IHRoZXJlIGlzIGRpZmZlcmVuY2VzIGJldHdlZW4gWGVuIGFuZCBMaW51eCBoZXJlLiBNYXli
ZSBhIHJvb20gZm9yIHBlcmZvcm1hbmNlIGltcHJvdmVtZW50IGZvciBvdXIgc3RhY2suCgpJbnRl
cmVzdGluZyBudW1iZXJzIHRob3VnaC4KClRob21hcwoKCj4gCj4gVGhlIGlwZXJmIHRocm91Z2hw
dXQgd2l0aCBMd3QucGF1c2UrcGF0Y2ggc2VlbXMgdG8gYmUgYWJvdXQgdGhlIHNhbWUgYXMKPiB0
aGUgdGhyb3VnaHB1dCB3aXRoIE9TLlRpbWUuc2xlZXAgdGhvdWdoLiBPbiBteSBDdWJpZWJvYXJk
IGluIFhlbiBpdAo+IHZhcmllcyBhcm91bmQgNi04MDAwIGtiaXQvcywgY29tcGFyZWQgdG8gYXJv
dW5kIDI2MDAwIGtiaXQvcyB3aXRob3V0Cj4gcGF1c2Uvc2xlZXAuCj4gCj4gMS4gaHR0cHM6Ly9n
aXRodWIuY29tL29jc2lnZW4vbHd0L2Jsb2IvbWFzdGVyL3NyYy91bml4L2x3dF9tYWluLm1sCj4g
Mi4gaHR0cHM6Ly9naXRodWIuY29tL29jc2lnZW4vbHd0L2Jsb2IvbWFzdGVyL3NyYy9jb3JlL2x3
dC5tbCNMMTE5MAo+IDMuIGh0dHBzOi8vZ2lzdC5naXRodWIuY29tL01hZ251c1MvMDg5YzA2OTEz
NTk0ZWJkZjIxYjEjZmlsZS1yZXN1bHRzLW1kCj4gCj4gTWFnbnVzCj4gCj4gX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KPiBNaXJhZ2VPUy1kZXZlbCBtYWls
aW5nIGxpc3QKPiBNaXJhZ2VPUy1kZXZlbEBsaXN0cy54ZW5wcm9qZWN0Lm9yZwo+IGh0dHA6Ly9s
aXN0cy54ZW5wcm9qZWN0Lm9yZy9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbWlyYWdlb3MtZGV2
ZWwKCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpNaXJh
Z2VPUy1kZXZlbCBtYWlsaW5nIGxpc3QKTWlyYWdlT1MtZGV2ZWxAbGlzdHMueGVucHJvamVjdC5v
cmcKaHR0cDovL2xpc3RzLnhlbnByb2plY3Qub3JnL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9t
aXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 23:45:11 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 23:45:11 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaYVL-0005CA-Rw; Tue, 24 Mar 2015 23:45:03 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YaYVL-0005C5-Bs
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 23:45:03 +0000
Received: from [85.158.137.68] by server-4.bemta-3.messagelabs.com id
	26/1C-11368-9F6F1155; Tue, 24 Mar 2015 23:44:57 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-6.tower-31.messagelabs.com!1427240696!10778721!1
X-Originating-IP: [74.125.82.48]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 25893 invoked from network); 24 Mar 2015 23:44:56 -0000
Received: from mail-wg0-f48.google.com (HELO mail-wg0-f48.google.com)
	(74.125.82.48)
	by server-6.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	24 Mar 2015 23:44:56 -0000
Received: by wgs2 with SMTP id 2so8010179wgs.1
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 24 Mar 2015 16:44:56 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=LMF6frIuM69EYm3uPFfd6NC+I7mqn6ECS+TFETmaiO0=;
	b=pA79l8K+O3VYVXy1fCFOvuVyWdOMfIPf/UzqLaCDMIlbAP4ZPLgihyqF+pbXE8l+iV
	xQuqw/Wg9GkFpePvZYrhHb7yDP+YUlm5PKCDpC2jkTP9lPKvAXp80q6NBE7EVQ0JjB/4
	oZysPpD5rkyJlfH9UhiRFj3p2BqVtuZ+fDoTb44vdO8BZo1urmJNxCTcVEnevrnIOjg2
	E8qWjQKK06+/0ojFTaJKdxhJsK6/vfd+DLR191wkAzFztCY6K6wGk+CYrDmgUNb4Y/9k
	eTQ9WYn0cUWQAPhzD9UKerhAjSShbOfO6aQe0i/r0sSZKmcJccntkMTMVfglt//RUeSd
	KP5g==
X-Received: by 10.194.91.129 with SMTP id ce1mr12599854wjb.53.1427240696557;
	Tue, 24 Mar 2015 16:44:56 -0700 (PDT)
Received: from [192.168.0.2] (cpc25-cmbg14-2-0-cust121.5-4.cable.virginm.net.
	[213.106.112.122])
	by mx.google.com with ESMTPSA id l6sm1030630wjx.33.2015.03.24.16.44.55
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 24 Mar 2015 16:44:55 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <1427232875.886579.244765086.753AF598@webmail.messagingengine.com>
Date: Tue, 24 Mar 2015 23:44:56 +0000
Message-Id: <5B55DC3D-42D3-4C21-9FD0-808A1EA7B553@gazagnaire.org>
References: <1427126123.430506.244046706.2C497031@webmail.messagingengine.com>
	<198EF0F7-C6F6-4C22-B545-A17396F53899@citrix.com>
	<1427232875.886579.244765086.753AF598@webmail.messagingengine.com>
To: Magnus Skjegstad <magnus@v0.no>
X-Mailer: Apple Mail (2.2070.6)
Cc: Dave Scott <Dave.Scott@citrix.com>, mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] Problem with Lwt and TCP/IP
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Pj4gSXQgc291bmRzIGxpa2UgdGhlcmXigJlzIG5vIGd1YXJhbnRlZSB0aGF0IHRoZSBzY2hlZHVs
ZXIgaXMgZ29pbmcgdG8gYmUgcnVuCj4+IGFueSB0aW1lIHNvb24uIFdpdGggeW91ciBwcm9wb3Nl
ZCBtb2RpZmljYXRpb24sIGhvdyBzaW1pbGFyIHdvdWxkIGEKPj4gcGF1c2VkIHRocmVhZCBiZSB0
byBhIHRocmVhZCBzbGVlcGluZyBmb3IgMCBzZWNvbmRzPwo+PiAKPiAKPiBJIHdyb3RlIGEgdGVz
dCB1bmlrZXJuZWwgdG8gY29tcGFyZSB0aGUgcGVyZm9ybWFuY2Ugb2YgcGF1c2UgYW5kIHNsZWVw
Cj4gaGVyZSBbM10uIFRoZSByZXN1bHRzIGFyZSBmcm9tIGEgY3ViaWVib2FyZC4gSW4gdGhlIHRl
c3QgTHd0LnBhdXNlIGlzCj4gZmFzdGVyIHRoYW4gT1MuVGltZS5zbGVlcCAwLjAgb24gVW5peCAo
MjExayBjYWxscyBwZXIgc2Vjb25kIHZzIDcxayksCj4gYnV0IG5vdCBpbiBYZW4gd2l0aG91dCB0
aGUgcGF0Y2ggKDMgY2FsbHMgcGVyIHNlY29uZCB2cyAxMTBrKS4gV2l0aCB0aGUKPiBwYXRjaCBp
dCBpcyBhcm91bmQgMTkwayB2cyAxMjlrIGluIFhlbi4KCk5vdCBzdXJlIHRvIHVuZGVyc3RhbmQg
d2h5IHRoZXJlIGlzIGRpZmZlcmVuY2VzIGJldHdlZW4gWGVuIGFuZCBMaW51eCBoZXJlLiBNYXli
ZSBhIHJvb20gZm9yIHBlcmZvcm1hbmNlIGltcHJvdmVtZW50IGZvciBvdXIgc3RhY2suCgpJbnRl
cmVzdGluZyBudW1iZXJzIHRob3VnaC4KClRob21hcwoKCj4gCj4gVGhlIGlwZXJmIHRocm91Z2hw
dXQgd2l0aCBMd3QucGF1c2UrcGF0Y2ggc2VlbXMgdG8gYmUgYWJvdXQgdGhlIHNhbWUgYXMKPiB0
aGUgdGhyb3VnaHB1dCB3aXRoIE9TLlRpbWUuc2xlZXAgdGhvdWdoLiBPbiBteSBDdWJpZWJvYXJk
IGluIFhlbiBpdAo+IHZhcmllcyBhcm91bmQgNi04MDAwIGtiaXQvcywgY29tcGFyZWQgdG8gYXJv
dW5kIDI2MDAwIGtiaXQvcyB3aXRob3V0Cj4gcGF1c2Uvc2xlZXAuCj4gCj4gMS4gaHR0cHM6Ly9n
aXRodWIuY29tL29jc2lnZW4vbHd0L2Jsb2IvbWFzdGVyL3NyYy91bml4L2x3dF9tYWluLm1sCj4g
Mi4gaHR0cHM6Ly9naXRodWIuY29tL29jc2lnZW4vbHd0L2Jsb2IvbWFzdGVyL3NyYy9jb3JlL2x3
dC5tbCNMMTE5MAo+IDMuIGh0dHBzOi8vZ2lzdC5naXRodWIuY29tL01hZ251c1MvMDg5YzA2OTEz
NTk0ZWJkZjIxYjEjZmlsZS1yZXN1bHRzLW1kCj4gCj4gTWFnbnVzCj4gCj4gX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KPiBNaXJhZ2VPUy1kZXZlbCBtYWls
aW5nIGxpc3QKPiBNaXJhZ2VPUy1kZXZlbEBsaXN0cy54ZW5wcm9qZWN0Lm9yZwo+IGh0dHA6Ly9s
aXN0cy54ZW5wcm9qZWN0Lm9yZy9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbWlyYWdlb3MtZGV2
ZWwKCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpNaXJh
Z2VPUy1kZXZlbCBtYWlsaW5nIGxpc3QKTWlyYWdlT1MtZGV2ZWxAbGlzdHMueGVucHJvamVjdC5v
cmcKaHR0cDovL2xpc3RzLnhlbnByb2plY3Qub3JnL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9t
aXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 23:51:27 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 23:51:27 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaYbW-0005uM-D2; Tue, 24 Mar 2015 23:51:26 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YaYbV-0005uA-Jv
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 23:51:25 +0000
Received: from [85.158.139.211] by server-17.bemta-5.messagelabs.com id
	AB/6B-31982-C78F1155; Tue, 24 Mar 2015 23:51:24 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-8.tower-206.messagelabs.com!1427241083!11328240!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 1822 invoked from network); 24 Mar 2015 23:51:24 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-8.tower-206.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 24 Mar 2015 23:51:24 -0000
Received: from [192.168.1.75] (cpc7-cmbg14-2-0-cust238.5-4.cable.virginm.net
	[86.30.244.239]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id b057e21d;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Tue, 24 Mar 2015 23:51:23 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <5B55DC3D-42D3-4C21-9FD0-808A1EA7B553@gazagnaire.org>
Date: Tue, 24 Mar 2015 23:51:22 +0000
Message-Id: <A7C0D47D-425A-4EFE-92DE-0FFC9867AF40@recoil.org>
References: <1427126123.430506.244046706.2C497031@webmail.messagingengine.com>
	<198EF0F7-C6F6-4C22-B545-A17396F53899@citrix.com>
	<1427232875.886579.244765086.753AF598@webmail.messagingengine.com>
	<5B55DC3D-42D3-4C21-9FD0-808A1EA7B553@gazagnaire.org>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: David Scott <Dave.Scott@citrix.com>, mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] Problem with Lwt and TCP/IP
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

T24gMjQgTWFyIDIwMTUsIGF0IDIzOjQ0LCBUaG9tYXMgR2F6YWduYWlyZSA8dGhvbWFzQGdhemFn
bmFpcmUub3JnPiB3cm90ZToKPiAKPj4+IEl0IHNvdW5kcyBsaWtlIHRoZXJl4oCZcyBubyBndWFy
YW50ZWUgdGhhdCB0aGUgc2NoZWR1bGVyIGlzIGdvaW5nIHRvIGJlIHJ1bgo+Pj4gYW55IHRpbWUg
c29vbi4gV2l0aCB5b3VyIHByb3Bvc2VkIG1vZGlmaWNhdGlvbiwgaG93IHNpbWlsYXIgd291bGQg
YQo+Pj4gcGF1c2VkIHRocmVhZCBiZSB0byBhIHRocmVhZCBzbGVlcGluZyBmb3IgMCBzZWNvbmRz
Pwo+Pj4gCj4+IAo+PiBJIHdyb3RlIGEgdGVzdCB1bmlrZXJuZWwgdG8gY29tcGFyZSB0aGUgcGVy
Zm9ybWFuY2Ugb2YgcGF1c2UgYW5kIHNsZWVwCj4+IGhlcmUgWzNdLiBUaGUgcmVzdWx0cyBhcmUg
ZnJvbSBhIGN1YmllYm9hcmQuIEluIHRoZSB0ZXN0IEx3dC5wYXVzZSBpcwo+PiBmYXN0ZXIgdGhh
biBPUy5UaW1lLnNsZWVwIDAuMCBvbiBVbml4ICgyMTFrIGNhbGxzIHBlciBzZWNvbmQgdnMgNzFr
KSwKPj4gYnV0IG5vdCBpbiBYZW4gd2l0aG91dCB0aGUgcGF0Y2ggKDMgY2FsbHMgcGVyIHNlY29u
ZCB2cyAxMTBrKS4gV2l0aCB0aGUKPj4gcGF0Y2ggaXQgaXMgYXJvdW5kIDE5MGsgdnMgMTI5ayBp
biBYZW4uCj4gCj4gTm90IHN1cmUgdG8gdW5kZXJzdGFuZCB3aHkgdGhlcmUgaXMgZGlmZmVyZW5j
ZXMgYmV0d2VlbiBYZW4gYW5kIExpbnV4IGhlcmUuIE1heWJlIGEgcm9vbSBmb3IgcGVyZm9ybWFu
Y2UgaW1wcm92ZW1lbnQgZm9yIG91ciBzdGFjay4KPiAKCkJlaW5nIGRlc2NoZWR1bGVkIGluIFhl
biBpcyBhIGxvdCBtb3JlIGV4cGVuc2l2ZSB0aGFuIGEgc3lzY2FsbCBpbiBVbml4LgpJZiB5b3Ug
cmVtb3ZlIHRoZSAnYmxvY2tfZG9tYWluJyBpbiBYZW4ncyBtYWluLm1sIHRoZW4gaXQgd2lsbCBw
cm9iYWJseQpzcGVlZCB1cCBhIGZhaXIgYml0LCBvciBwaW4gdGhlIGRvbWFpbi4KCkFsc28sIGl0
J3Mgd29ydGggY2hlY2tpbmcgb24geDg2IHRpbWVzIGFzIHdlbGwgYXMgQVJNLCBzaW5jZSB0aGVz
ZSAKbWljcm9iZW5jaG1hcmtzIGFyZSBwcm9iYWJseSBxdWl0ZSBjYWNoZS1zZW5zaXRpdmUuCgot
YW5pbApfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpNaXJh
Z2VPUy1kZXZlbCBtYWlsaW5nIGxpc3QKTWlyYWdlT1MtZGV2ZWxAbGlzdHMueGVucHJvamVjdC5v
cmcKaHR0cDovL2xpc3RzLnhlbnByb2plY3Qub3JnL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9t
aXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 24 23:51:27 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 24 Mar 2015 23:51:27 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaYbW-0005uM-D2; Tue, 24 Mar 2015 23:51:26 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YaYbV-0005uA-Jv
	for mirageos-devel@lists.xenproject.org; Tue, 24 Mar 2015 23:51:25 +0000
Received: from [85.158.139.211] by server-17.bemta-5.messagelabs.com id
	AB/6B-31982-C78F1155; Tue, 24 Mar 2015 23:51:24 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-8.tower-206.messagelabs.com!1427241083!11328240!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 1822 invoked from network); 24 Mar 2015 23:51:24 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-8.tower-206.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 24 Mar 2015 23:51:24 -0000
Received: from [192.168.1.75] (cpc7-cmbg14-2-0-cust238.5-4.cable.virginm.net
	[86.30.244.239]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id b057e21d;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Tue, 24 Mar 2015 23:51:23 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <5B55DC3D-42D3-4C21-9FD0-808A1EA7B553@gazagnaire.org>
Date: Tue, 24 Mar 2015 23:51:22 +0000
Message-Id: <A7C0D47D-425A-4EFE-92DE-0FFC9867AF40@recoil.org>
References: <1427126123.430506.244046706.2C497031@webmail.messagingengine.com>
	<198EF0F7-C6F6-4C22-B545-A17396F53899@citrix.com>
	<1427232875.886579.244765086.753AF598@webmail.messagingengine.com>
	<5B55DC3D-42D3-4C21-9FD0-808A1EA7B553@gazagnaire.org>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: David Scott <Dave.Scott@citrix.com>, mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] Problem with Lwt and TCP/IP
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

T24gMjQgTWFyIDIwMTUsIGF0IDIzOjQ0LCBUaG9tYXMgR2F6YWduYWlyZSA8dGhvbWFzQGdhemFn
bmFpcmUub3JnPiB3cm90ZToKPiAKPj4+IEl0IHNvdW5kcyBsaWtlIHRoZXJl4oCZcyBubyBndWFy
YW50ZWUgdGhhdCB0aGUgc2NoZWR1bGVyIGlzIGdvaW5nIHRvIGJlIHJ1bgo+Pj4gYW55IHRpbWUg
c29vbi4gV2l0aCB5b3VyIHByb3Bvc2VkIG1vZGlmaWNhdGlvbiwgaG93IHNpbWlsYXIgd291bGQg
YQo+Pj4gcGF1c2VkIHRocmVhZCBiZSB0byBhIHRocmVhZCBzbGVlcGluZyBmb3IgMCBzZWNvbmRz
Pwo+Pj4gCj4+IAo+PiBJIHdyb3RlIGEgdGVzdCB1bmlrZXJuZWwgdG8gY29tcGFyZSB0aGUgcGVy
Zm9ybWFuY2Ugb2YgcGF1c2UgYW5kIHNsZWVwCj4+IGhlcmUgWzNdLiBUaGUgcmVzdWx0cyBhcmUg
ZnJvbSBhIGN1YmllYm9hcmQuIEluIHRoZSB0ZXN0IEx3dC5wYXVzZSBpcwo+PiBmYXN0ZXIgdGhh
biBPUy5UaW1lLnNsZWVwIDAuMCBvbiBVbml4ICgyMTFrIGNhbGxzIHBlciBzZWNvbmQgdnMgNzFr
KSwKPj4gYnV0IG5vdCBpbiBYZW4gd2l0aG91dCB0aGUgcGF0Y2ggKDMgY2FsbHMgcGVyIHNlY29u
ZCB2cyAxMTBrKS4gV2l0aCB0aGUKPj4gcGF0Y2ggaXQgaXMgYXJvdW5kIDE5MGsgdnMgMTI5ayBp
biBYZW4uCj4gCj4gTm90IHN1cmUgdG8gdW5kZXJzdGFuZCB3aHkgdGhlcmUgaXMgZGlmZmVyZW5j
ZXMgYmV0d2VlbiBYZW4gYW5kIExpbnV4IGhlcmUuIE1heWJlIGEgcm9vbSBmb3IgcGVyZm9ybWFu
Y2UgaW1wcm92ZW1lbnQgZm9yIG91ciBzdGFjay4KPiAKCkJlaW5nIGRlc2NoZWR1bGVkIGluIFhl
biBpcyBhIGxvdCBtb3JlIGV4cGVuc2l2ZSB0aGFuIGEgc3lzY2FsbCBpbiBVbml4LgpJZiB5b3Ug
cmVtb3ZlIHRoZSAnYmxvY2tfZG9tYWluJyBpbiBYZW4ncyBtYWluLm1sIHRoZW4gaXQgd2lsbCBw
cm9iYWJseQpzcGVlZCB1cCBhIGZhaXIgYml0LCBvciBwaW4gdGhlIGRvbWFpbi4KCkFsc28sIGl0
J3Mgd29ydGggY2hlY2tpbmcgb24geDg2IHRpbWVzIGFzIHdlbGwgYXMgQVJNLCBzaW5jZSB0aGVz
ZSAKbWljcm9iZW5jaG1hcmtzIGFyZSBwcm9iYWJseSBxdWl0ZSBjYWNoZS1zZW5zaXRpdmUuCgot
YW5pbApfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpNaXJh
Z2VPUy1kZXZlbCBtYWlsaW5nIGxpc3QKTWlyYWdlT1MtZGV2ZWxAbGlzdHMueGVucHJvamVjdC5v
cmcKaHR0cDovL2xpc3RzLnhlbnByb2plY3Qub3JnL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9t
aXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 25 00:01:36 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 25 Mar 2015 00:01:36 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaYlL-0007U2-6V; Wed, 25 Mar 2015 00:01:35 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YaYlK-0007Ta-Gc
	for mirageos-devel@lists.xenproject.org; Wed, 25 Mar 2015 00:01:34 +0000
Received: from [85.158.137.68] by server-3.bemta-3.messagelabs.com id
	2C/75-01024-E29F1155; Tue, 24 Mar 2015 23:54:22 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-9.tower-31.messagelabs.com!1427241261!11476589!1
X-Originating-IP: [209.85.212.182]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 15971 invoked from network); 24 Mar 2015 23:54:22 -0000
Received: from mail-wi0-f182.google.com (HELO mail-wi0-f182.google.com)
	(209.85.212.182)
	by server-9.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	24 Mar 2015 23:54:22 -0000
Received: by wixw10 with SMTP id w10so62354339wix.0
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 24 Mar 2015 16:54:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=Lz6HfDEaut6UMRjvgh/LGvW0fTEDD7TgqgVILFD44+c=;
	b=Ze+dw/M9JRmp7qhgzTezDjFn2pbt2/RSdiF/DJn1ng7FK+qNCAtLGsnhNC6mr2TFFp
	9jUTLg4D8rQOJLkaRHkxZWDRM+IU4/aCeqegfkfj+qNWVSNOsl4of4JaAyPZqmCiIMQF
	MY2GrCVpHYKZAXEgk5iAaRVBjpc5Dwsb9gHjsRXs29qaGn5NPSpesJ0hQhSBHRpOEmv5
	3r+a+LAaTJ4E3yT/VRdIWfmfKwls22rtUcPdP0d7wXuhhqsIbQhWrV3S7Jjfw/5LFEGh
	tZy3dwruk8e0naXZLCTOIKTsQ3cgZUTNfxAoQGVloU2IBiOPW5EELOxDJc9jrty2Z4uC
	bsQA==
X-Received: by 10.180.94.199 with SMTP id de7mr33257283wib.53.1427241261660;
	Tue, 24 Mar 2015 16:54:21 -0700 (PDT)
Received: from [192.168.0.2] (cpc25-cmbg14-2-0-cust121.5-4.cable.virginm.net.
	[213.106.112.122])
	by mx.google.com with ESMTPSA id l10sm1080529wje.15.2015.03.24.16.54.20
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 24 Mar 2015 16:54:21 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <CAG4opy98s0_vD0=FaBvLWNF_2gntLb4xrYam4SzeqgJoiXQzzg@mail.gmail.com>
Date: Tue, 24 Mar 2015 23:54:21 +0000
Message-Id: <DE958618-2C4A-4D87-BE4E-42D63499C48E@gazagnaire.org>
References: <CAG4opy98s0_vD0=FaBvLWNF_2gntLb4xrYam4SzeqgJoiXQzzg@mail.gmail.com>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] IndexedDB Irmin backend
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

> I've replaced my HTML Storage Irmin backend with an IndexedDB one:
> 
>  https://github.com/talex5/cuekeeper/blob/master/js/irmin_IDB.ml
> 
> Unlike HTML Storage, IndexedDB isn't limited to 5 MB. It also supports
> transactions, so updates should no longer be racey.
> 
> However, IndexedDB doesn't support notifications. My backend therefore
> also writes the current branch head hash to a single HTML Storage key
> so notifications work (browser tabs remain synchronised).

Interesting thanks! When things get more stable I think it would be interesting to move all the Irmin JS backend in a separate project.

Thomas

(and I'm still working on fixing the missing unwatch function)
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 25 00:01:36 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 25 Mar 2015 00:01:36 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaYlL-0007U2-6V; Wed, 25 Mar 2015 00:01:35 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YaYlK-0007Ta-Gc
	for mirageos-devel@lists.xenproject.org; Wed, 25 Mar 2015 00:01:34 +0000
Received: from [85.158.137.68] by server-3.bemta-3.messagelabs.com id
	2C/75-01024-E29F1155; Tue, 24 Mar 2015 23:54:22 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-9.tower-31.messagelabs.com!1427241261!11476589!1
X-Originating-IP: [209.85.212.182]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.4; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 15971 invoked from network); 24 Mar 2015 23:54:22 -0000
Received: from mail-wi0-f182.google.com (HELO mail-wi0-f182.google.com)
	(209.85.212.182)
	by server-9.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	24 Mar 2015 23:54:22 -0000
Received: by wixw10 with SMTP id w10so62354339wix.0
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 24 Mar 2015 16:54:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=Lz6HfDEaut6UMRjvgh/LGvW0fTEDD7TgqgVILFD44+c=;
	b=Ze+dw/M9JRmp7qhgzTezDjFn2pbt2/RSdiF/DJn1ng7FK+qNCAtLGsnhNC6mr2TFFp
	9jUTLg4D8rQOJLkaRHkxZWDRM+IU4/aCeqegfkfj+qNWVSNOsl4of4JaAyPZqmCiIMQF
	MY2GrCVpHYKZAXEgk5iAaRVBjpc5Dwsb9gHjsRXs29qaGn5NPSpesJ0hQhSBHRpOEmv5
	3r+a+LAaTJ4E3yT/VRdIWfmfKwls22rtUcPdP0d7wXuhhqsIbQhWrV3S7Jjfw/5LFEGh
	tZy3dwruk8e0naXZLCTOIKTsQ3cgZUTNfxAoQGVloU2IBiOPW5EELOxDJc9jrty2Z4uC
	bsQA==
X-Received: by 10.180.94.199 with SMTP id de7mr33257283wib.53.1427241261660;
	Tue, 24 Mar 2015 16:54:21 -0700 (PDT)
Received: from [192.168.0.2] (cpc25-cmbg14-2-0-cust121.5-4.cable.virginm.net.
	[213.106.112.122])
	by mx.google.com with ESMTPSA id l10sm1080529wje.15.2015.03.24.16.54.20
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 24 Mar 2015 16:54:21 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <CAG4opy98s0_vD0=FaBvLWNF_2gntLb4xrYam4SzeqgJoiXQzzg@mail.gmail.com>
Date: Tue, 24 Mar 2015 23:54:21 +0000
Message-Id: <DE958618-2C4A-4D87-BE4E-42D63499C48E@gazagnaire.org>
References: <CAG4opy98s0_vD0=FaBvLWNF_2gntLb4xrYam4SzeqgJoiXQzzg@mail.gmail.com>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] IndexedDB Irmin backend
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

> I've replaced my HTML Storage Irmin backend with an IndexedDB one:
> 
>  https://github.com/talex5/cuekeeper/blob/master/js/irmin_IDB.ml
> 
> Unlike HTML Storage, IndexedDB isn't limited to 5 MB. It also supports
> transactions, so updates should no longer be racey.
> 
> However, IndexedDB doesn't support notifications. My backend therefore
> also writes the current branch head hash to a single HTML Storage key
> so notifications work (browser tabs remain synchronised).

Interesting thanks! When things get more stable I think it would be interesting to move all the Irmin JS backend in a separate project.

Thomas

(and I'm still working on fixing the missing unwatch function)
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 25 03:16:48 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 25 Mar 2015 03:16:48 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaboA-0007PR-DO; Wed, 25 Mar 2015 03:16:42 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <russell.pavlicek.xen@gmail.com>) id 1Yabo9-0007P9-DQ
	for mirageos-devel@lists.xenproject.org; Wed, 25 Mar 2015 03:16:41 +0000
Received: from [193.109.254.147] by server-4.bemta-14.messagelabs.com id
	CC/85-02712-89822155; Wed, 25 Mar 2015 03:16:40 +0000
X-Env-Sender: russell.pavlicek.xen@gmail.com
X-Msg-Ref: server-4.tower-27.messagelabs.com!1427253399!12882773!1
X-Originating-IP: [209.85.212.170]
X-SpamReason: No, hits=2.5 required=7.0 tests=RCVD_BY_IP,
  SUSPICIOUS_RECIPS
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 16352 invoked from network); 25 Mar 2015 03:16:39 -0000
Received: from mail-wi0-f170.google.com (HELO mail-wi0-f170.google.com)
	(209.85.212.170)
	by server-4.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	25 Mar 2015 03:16:39 -0000
Received: by wibbg6 with SMTP id bg6so7129086wib.0
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 24 Mar 2015 20:16:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:in-reply-to:references:date:message-id:subject
	:from:to:cc:content-type;
	bh=U7DhXVje1rbkz5bkmNZLmsWrYgx39xVvvs+Av38mzEI=;
	b=esu5mRPQ794wlkJCSfEr+gTPFJT67NYWpjydttjgy6CMNYdpJ8JVUtHX8zEWjiNBg4
	UXl8goz4JvbuJVqmw6RF33X8UgW34pcc5QyMNXbKq819mkMTMILFEKVO7KldIKhYHrsl
	Y7eMGZVtb0/8PPLI7q3Yfi0RRgit0E4Egga8FE7BGiOrm0dXat3L+laNZsbuehsEUfP5
	Tts6FG/IAuQTZRcMeSr49UyPC/fe1CqWivvPFi7NTzMubP8v/R6P8/kq2HwkN+XE8icw
	oXw6oenGCToqI2jgGG5P0PtFP6uRw7WSe1Nxg3npCf/5q1RfU9ap2pHrP2KOuUFK54LR
	dQ9w==
MIME-Version: 1.0
X-Received: by 10.194.200.8 with SMTP id jo8mr13500499wjc.64.1427253399538;
	Tue, 24 Mar 2015 20:16:39 -0700 (PDT)
Received: by 10.194.250.102 with HTTP; Tue, 24 Mar 2015 20:16:39 -0700 (PDT)
In-Reply-To: <CAHehzX2K=A0u_X5tEq0mmzJTz_k1eHygJcyUKaGay9niBCdpHg@mail.gmail.com>
References: <CAHehzX2K=A0u_X5tEq0mmzJTz_k1eHygJcyUKaGay9niBCdpHg@mail.gmail.com>
Date: Tue, 24 Mar 2015 23:16:39 -0400
X-Google-Sender-Auth: p4i5ADN7PeyuAoZ6vkrYfvrIPkc
Message-ID: <CAHehzX0zwmNVQ+wN+MgjDLAFSvcX0xNHEYR7LX+VRvZobHssaw@mail.gmail.com>
From: Russ Pavlicek <russell.pavlicek@xenproject.org>
To: Russ Pavlicek <russell.pavlicek@xenproject.org>
Cc: "xen-users@lists.xen.org" <xen-users@lists.xen.org>, xen-api@lists.xen.org,
	xs-devel@lists.xenserver.org,
	mirageos-devel@lists.xenproject.org, xen-devel@lists.xen.org
Subject: Re: [MirageOS-devel] How Are You Using Xen Project? Theme for this
 month's Xen Project Document Day on Wednesday
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Document Day is here!

If you had to use the Xen Project Hypervisor to execute your solution
today, would you easily find everything you need?  If not, today's the
day to add that documentation (or at least add the gaps to the TODO
list if you can't do it yourself).


On Mon, Mar 23, 2015 at 9:01 PM, Russ Pavlicek
<russell.pavlicek@xenproject.org> wrote:
> This month, we want to answer the question, "How are you using Xen
> Project?"  Xen Project is a great hypervisor, but it is normally part
> of a bigger solution.  Did you quickly find all the documentation you
> needed to use the hypervisor within the context of your solution?  Do
> we need a special page to document how Xen Project can be integrated
> into a specific Open Source or commercial solution?  Do we need to
> simply enhance an existing page to make the information you needed
> more visible?  Now is the time to make those improvements!
>
> All the information you need to participate in Document Day is here:
>
> http://wiki.xenproject.org/wiki/Xen_Document_Days
>
> Also take a look at the current TODO list to see other items which
> need attention:
>
> http://wiki.xenproject.org/wiki/Xen_Document_Days/TODO
>
> Please think about how you can help out.  If you haven't requested
> to be made a Wiki editor, save time and do it now so you are ready to
> go on Document Day.  Just fill out the form below:
>
> http://xenproject.org/component/content/article/100-misc/145-request-to-be-made-a-wiki-editor.html
>
> We hope to see you Wednesday in #xendocs!

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 25 03:16:48 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 25 Mar 2015 03:16:48 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YaboA-0007PR-DO; Wed, 25 Mar 2015 03:16:42 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <russell.pavlicek.xen@gmail.com>) id 1Yabo9-0007P9-DQ
	for mirageos-devel@lists.xenproject.org; Wed, 25 Mar 2015 03:16:41 +0000
Received: from [193.109.254.147] by server-4.bemta-14.messagelabs.com id
	CC/85-02712-89822155; Wed, 25 Mar 2015 03:16:40 +0000
X-Env-Sender: russell.pavlicek.xen@gmail.com
X-Msg-Ref: server-4.tower-27.messagelabs.com!1427253399!12882773!1
X-Originating-IP: [209.85.212.170]
X-SpamReason: No, hits=2.5 required=7.0 tests=RCVD_BY_IP,
  SUSPICIOUS_RECIPS
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 16352 invoked from network); 25 Mar 2015 03:16:39 -0000
Received: from mail-wi0-f170.google.com (HELO mail-wi0-f170.google.com)
	(209.85.212.170)
	by server-4.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	25 Mar 2015 03:16:39 -0000
Received: by wibbg6 with SMTP id bg6so7129086wib.0
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 24 Mar 2015 20:16:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:in-reply-to:references:date:message-id:subject
	:from:to:cc:content-type;
	bh=U7DhXVje1rbkz5bkmNZLmsWrYgx39xVvvs+Av38mzEI=;
	b=esu5mRPQ794wlkJCSfEr+gTPFJT67NYWpjydttjgy6CMNYdpJ8JVUtHX8zEWjiNBg4
	UXl8goz4JvbuJVqmw6RF33X8UgW34pcc5QyMNXbKq819mkMTMILFEKVO7KldIKhYHrsl
	Y7eMGZVtb0/8PPLI7q3Yfi0RRgit0E4Egga8FE7BGiOrm0dXat3L+laNZsbuehsEUfP5
	Tts6FG/IAuQTZRcMeSr49UyPC/fe1CqWivvPFi7NTzMubP8v/R6P8/kq2HwkN+XE8icw
	oXw6oenGCToqI2jgGG5P0PtFP6uRw7WSe1Nxg3npCf/5q1RfU9ap2pHrP2KOuUFK54LR
	dQ9w==
MIME-Version: 1.0
X-Received: by 10.194.200.8 with SMTP id jo8mr13500499wjc.64.1427253399538;
	Tue, 24 Mar 2015 20:16:39 -0700 (PDT)
Received: by 10.194.250.102 with HTTP; Tue, 24 Mar 2015 20:16:39 -0700 (PDT)
In-Reply-To: <CAHehzX2K=A0u_X5tEq0mmzJTz_k1eHygJcyUKaGay9niBCdpHg@mail.gmail.com>
References: <CAHehzX2K=A0u_X5tEq0mmzJTz_k1eHygJcyUKaGay9niBCdpHg@mail.gmail.com>
Date: Tue, 24 Mar 2015 23:16:39 -0400
X-Google-Sender-Auth: p4i5ADN7PeyuAoZ6vkrYfvrIPkc
Message-ID: <CAHehzX0zwmNVQ+wN+MgjDLAFSvcX0xNHEYR7LX+VRvZobHssaw@mail.gmail.com>
From: Russ Pavlicek <russell.pavlicek@xenproject.org>
To: Russ Pavlicek <russell.pavlicek@xenproject.org>
Cc: "xen-users@lists.xen.org" <xen-users@lists.xen.org>, xen-api@lists.xen.org,
	xs-devel@lists.xenserver.org,
	mirageos-devel@lists.xenproject.org, xen-devel@lists.xen.org
Subject: Re: [MirageOS-devel] How Are You Using Xen Project? Theme for this
 month's Xen Project Document Day on Wednesday
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Document Day is here!

If you had to use the Xen Project Hypervisor to execute your solution
today, would you easily find everything you need?  If not, today's the
day to add that documentation (or at least add the gaps to the TODO
list if you can't do it yourself).


On Mon, Mar 23, 2015 at 9:01 PM, Russ Pavlicek
<russell.pavlicek@xenproject.org> wrote:
> This month, we want to answer the question, "How are you using Xen
> Project?"  Xen Project is a great hypervisor, but it is normally part
> of a bigger solution.  Did you quickly find all the documentation you
> needed to use the hypervisor within the context of your solution?  Do
> we need a special page to document how Xen Project can be integrated
> into a specific Open Source or commercial solution?  Do we need to
> simply enhance an existing page to make the information you needed
> more visible?  Now is the time to make those improvements!
>
> All the information you need to participate in Document Day is here:
>
> http://wiki.xenproject.org/wiki/Xen_Document_Days
>
> Also take a look at the current TODO list to see other items which
> need attention:
>
> http://wiki.xenproject.org/wiki/Xen_Document_Days/TODO
>
> Please think about how you can help out.  If you haven't requested
> to be made a Wiki editor, save time and do it now so you are ready to
> go on Document Day.  Just fill out the form below:
>
> http://xenproject.org/component/content/article/100-misc/145-request-to-be-made-a-wiki-editor.html
>
> We hope to see you Wednesday in #xendocs!

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 25 15:04:54 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 25 Mar 2015 15:04:54 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YamrS-0000BE-BX; Wed, 25 Mar 2015 15:04:50 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <amc79@cam.ac.uk>) id 1YamrQ-0000B5-Oc
	for mirageos-devel@lists.xenproject.org; Wed, 25 Mar 2015 15:04:48 +0000
Received: from [85.158.137.68] by server-4.bemta-3.messagelabs.com id
	84/47-11368-F8EC2155; Wed, 25 Mar 2015 15:04:47 +0000
X-Env-Sender: amc79@cam.ac.uk
X-Msg-Ref: server-14.tower-31.messagelabs.com!1427295886!8536932!1
X-Originating-IP: [131.111.8.151]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogMTMxLjExMS44LjE1MSA9PiAxNDE4OTU=\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 30980 invoked from network); 25 Mar 2015 15:04:46 -0000
Received: from ppsw-51.csi.cam.ac.uk (HELO ppsw-51.csi.cam.ac.uk)
	(131.111.8.151)
	by server-14.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 25 Mar 2015 15:04:46 -0000
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from dhcp-172-17-157-224.eduroam.wireless.private.cam.ac.uk
	([172.17.157.224]:57961)
	by ppsw-51.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.157]:587)
	with esmtpsa (PLAIN:amc79) (TLSv1:AES128-SHA:128)
	id 1YamrN-0002pN-Xe (Exim 4.82_3-c0e5623) for
	mirageos-devel@lists.xenproject.org
	(return-path <amc79@cam.ac.uk>); Wed, 25 Mar 2015 15:04:45 +0000
From: Amir Chaudhry <amc79@cam.ac.uk>
Message-Id: <09E9C361-E86D-489A-8A81-DD43B0A81D5E@cam.ac.uk>
Date: Wed, 25 Mar 2015 15:04:44 +0000
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
X-Mailer: Apple Mail (2.1510)
Subject: [MirageOS-devel] Serving each URL from a separate unikernel: an
	experiment
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi folks,

Magnus just pushed a new blog post live, where he describes a recent experiment.  In it, he tries serving each webpage on his static site from a different unikernel. It's a fun idea and all his scripts are public if you'd like to try this out for yourselves!

Post: http://www.skjegstad.com/blog/2015/03/25/mirageos-vm-per-url-experiment/

Tweets:
https://twitter.com/MagnusSkjegstad/status/580737412193738752
https://twitter.com/amirmc/status/580741532791283712

Best,
Amir
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 25 15:04:54 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 25 Mar 2015 15:04:54 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YamrS-0000BE-BX; Wed, 25 Mar 2015 15:04:50 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <amc79@cam.ac.uk>) id 1YamrQ-0000B5-Oc
	for mirageos-devel@lists.xenproject.org; Wed, 25 Mar 2015 15:04:48 +0000
Received: from [85.158.137.68] by server-4.bemta-3.messagelabs.com id
	84/47-11368-F8EC2155; Wed, 25 Mar 2015 15:04:47 +0000
X-Env-Sender: amc79@cam.ac.uk
X-Msg-Ref: server-14.tower-31.messagelabs.com!1427295886!8536932!1
X-Originating-IP: [131.111.8.151]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogMTMxLjExMS44LjE1MSA9PiAxNDE4OTU=\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 30980 invoked from network); 25 Mar 2015 15:04:46 -0000
Received: from ppsw-51.csi.cam.ac.uk (HELO ppsw-51.csi.cam.ac.uk)
	(131.111.8.151)
	by server-14.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 25 Mar 2015 15:04:46 -0000
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from dhcp-172-17-157-224.eduroam.wireless.private.cam.ac.uk
	([172.17.157.224]:57961)
	by ppsw-51.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.157]:587)
	with esmtpsa (PLAIN:amc79) (TLSv1:AES128-SHA:128)
	id 1YamrN-0002pN-Xe (Exim 4.82_3-c0e5623) for
	mirageos-devel@lists.xenproject.org
	(return-path <amc79@cam.ac.uk>); Wed, 25 Mar 2015 15:04:45 +0000
From: Amir Chaudhry <amc79@cam.ac.uk>
Message-Id: <09E9C361-E86D-489A-8A81-DD43B0A81D5E@cam.ac.uk>
Date: Wed, 25 Mar 2015 15:04:44 +0000
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
X-Mailer: Apple Mail (2.1510)
Subject: [MirageOS-devel] Serving each URL from a separate unikernel: an
	experiment
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi folks,

Magnus just pushed a new blog post live, where he describes a recent experiment.  In it, he tries serving each webpage on his static site from a different unikernel. It's a fun idea and all his scripts are public if you'd like to try this out for yourselves!

Post: http://www.skjegstad.com/blog/2015/03/25/mirageos-vm-per-url-experiment/

Tweets:
https://twitter.com/MagnusSkjegstad/status/580737412193738752
https://twitter.com/amirmc/status/580741532791283712

Best,
Amir
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 25 15:31:11 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 25 Mar 2015 15:31:11 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YanGv-0004AF-Ng; Wed, 25 Mar 2015 15:31:09 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YanGt-0004A7-Nn
	for mirageos-devel@lists.xenproject.org; Wed, 25 Mar 2015 15:31:07 +0000
Received: from [85.158.137.68] by server-5.bemta-3.messagelabs.com id
	84/F8-31314-BB4D2155; Wed, 25 Mar 2015 15:31:07 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-8.tower-31.messagelabs.com!1427297465!11005871!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.5 required=7.0 tests=MAILTO_TO_SPAM_ADDR,
	RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 13608 invoked from network); 25 Mar 2015 15:31:06 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-8.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 25 Mar 2015 15:31:06 -0000
Received: from [192.168.1.69] (cpc7-cmbg14-2-0-cust238.5-4.cable.virginm.net
	[86.30.244.239]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 6e4d01b5;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Wed, 25 Mar 2015 15:31:04 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <09E9C361-E86D-489A-8A81-DD43B0A81D5E@cam.ac.uk>
Date: Wed, 25 Mar 2015 15:31:05 +0000
Message-Id: <F6ABEFC0-88AD-44F2-B496-A96FA298C6CA@recoil.org>
References: <09E9C361-E86D-489A-8A81-DD43B0A81D5E@cam.ac.uk>
To: Amir M Chaudhry <amc79@cam.ac.uk>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Serving each URL from a separate unikernel: an
	experiment
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 25 Mar 2015, at 15:04, Amir Chaudhry <amc79@cam.ac.uk> wrote:
> 
> Hi folks,
> 
> Magnus just pushed a new blog post live, where he describes a recent experiment.  In it, he tries serving each webpage on his static site from a different unikernel. It's a fun idea and all his scripts are public if you'd like to try this out for yourselves!
> 
> Post: http://www.skjegstad.com/blog/2015/03/25/mirageos-vm-per-url-experiment/
> 
> Tweets:
> https://twitter.com/MagnusSkjegstad/status/580737412193738752
> https://twitter.com/amirmc/status/580741532791283712
> 

As a bit of background reading on Jitsu, I've put the camera ready version of the paper online now that will be presented as NSDI in May: http://anil.recoil.org/papers/2015-nsdi-jitsu.pdf

The intention is to cook up an "extreme" demo to demonstrate the stack to the audience, and this is one such excellent demonstrator of the underlying toolchain to spawn-on-demand.

-anil


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 25 15:31:11 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 25 Mar 2015 15:31:11 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YanGv-0004AF-Ng; Wed, 25 Mar 2015 15:31:09 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YanGt-0004A7-Nn
	for mirageos-devel@lists.xenproject.org; Wed, 25 Mar 2015 15:31:07 +0000
Received: from [85.158.137.68] by server-5.bemta-3.messagelabs.com id
	84/F8-31314-BB4D2155; Wed, 25 Mar 2015 15:31:07 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-8.tower-31.messagelabs.com!1427297465!11005871!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.5 required=7.0 tests=MAILTO_TO_SPAM_ADDR,
	RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 13608 invoked from network); 25 Mar 2015 15:31:06 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-8.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 25 Mar 2015 15:31:06 -0000
Received: from [192.168.1.69] (cpc7-cmbg14-2-0-cust238.5-4.cable.virginm.net
	[86.30.244.239]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 6e4d01b5;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Wed, 25 Mar 2015 15:31:04 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <09E9C361-E86D-489A-8A81-DD43B0A81D5E@cam.ac.uk>
Date: Wed, 25 Mar 2015 15:31:05 +0000
Message-Id: <F6ABEFC0-88AD-44F2-B496-A96FA298C6CA@recoil.org>
References: <09E9C361-E86D-489A-8A81-DD43B0A81D5E@cam.ac.uk>
To: Amir M Chaudhry <amc79@cam.ac.uk>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Serving each URL from a separate unikernel: an
	experiment
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 25 Mar 2015, at 15:04, Amir Chaudhry <amc79@cam.ac.uk> wrote:
> 
> Hi folks,
> 
> Magnus just pushed a new blog post live, where he describes a recent experiment.  In it, he tries serving each webpage on his static site from a different unikernel. It's a fun idea and all his scripts are public if you'd like to try this out for yourselves!
> 
> Post: http://www.skjegstad.com/blog/2015/03/25/mirageos-vm-per-url-experiment/
> 
> Tweets:
> https://twitter.com/MagnusSkjegstad/status/580737412193738752
> https://twitter.com/amirmc/status/580741532791283712
> 

As a bit of background reading on Jitsu, I've put the camera ready version of the paper online now that will be presented as NSDI in May: http://anil.recoil.org/papers/2015-nsdi-jitsu.pdf

The intention is to cook up an "extreme" demo to demonstrate the stack to the audience, and this is one such excellent demonstrator of the underlying toolchain to spawn-on-demand.

-anil


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 25 15:42:17 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 25 Mar 2015 15:42:17 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YanRg-00068v-1E; Wed, 25 Mar 2015 15:42:16 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <kosmo.zb@gmail.com>) id 1YanRe-00068T-AB
	for mirageos-devel@lists.xenproject.org; Wed, 25 Mar 2015 15:42:14 +0000
Received: from [85.158.139.211] by server-15.bemta-5.messagelabs.com id
	85/FA-32332-557D2155; Wed, 25 Mar 2015 15:42:13 +0000
X-Env-Sender: kosmo.zb@gmail.com
X-Msg-Ref: server-6.tower-206.messagelabs.com!1427298132!11576124!1
X-Originating-IP: [209.85.215.51]
X-SpamReason: No, hits=0.6 required=7.0 tests=MAILTO_TO_SPAM_ADDR, RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 31745 invoked from network); 25 Mar 2015 15:42:12 -0000
Received: from mail-la0-f51.google.com (HELO mail-la0-f51.google.com)
	(209.85.215.51)
	by server-6.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	25 Mar 2015 15:42:12 -0000
Received: by labe2 with SMTP id e2so23126185lab.3
	for <mirageos-devel@lists.xenproject.org>;
	Wed, 25 Mar 2015 08:42:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding;
	bh=urrk5KkB0hWUWsC962j3HblXSFd655kSBTU5qrQ0ANo=;
	b=r6h139+YKL4YgJZDqdojeyTAVlJqSV2gOGKnXgxYmA7Y3GPpmMikOeVDMVMLLCmHO4
	gY5LUQpV5N59Spr3zZhYwSw0fiD4S16M1DuK21UG2JDr267QEtwDafYupsfgRN2w1tx6
	hSvUNweGY3ohMmRqKlsrBujFf2vYj+xBlW54XjfNtbJk7pB79cixd22o0SucruPNV0dH
	Y9+eDD7v1oIXLTTATp77JzeB9+xGixdTkzr6zD9cxFya30B79YnzWpMvshTuB+YYFL62
	pr2PJVrbmUNQkLuW9jO8R1LcmEY1NDk6F+ex7hRqmPoiDZrR6CD5D6HvqE3EOqZws5us
	Sp0w==
MIME-Version: 1.0
X-Received: by 10.152.27.202 with SMTP id v10mr9087646lag.90.1427298132245;
	Wed, 25 Mar 2015 08:42:12 -0700 (PDT)
Received: by 10.112.198.38 with HTTP; Wed, 25 Mar 2015 08:42:12 -0700 (PDT)
In-Reply-To: <F6ABEFC0-88AD-44F2-B496-A96FA298C6CA@recoil.org>
References: <09E9C361-E86D-489A-8A81-DD43B0A81D5E@cam.ac.uk>
	<F6ABEFC0-88AD-44F2-B496-A96FA298C6CA@recoil.org>
Date: Wed, 25 Mar 2015 15:42:12 +0000
Message-ID: <CAAWM5TwQTYOO84gBq96iix8kVVw8HjiPqA0oLx_vpS2SAyOPTQ@mail.gmail.com>
From: David Sheets <kosmo.zb@gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Serving each URL from a separate unikernel: an
	experiment
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On Wed, Mar 25, 2015 at 3:31 PM, Anil Madhavapeddy <anil@recoil.org> wrote:
> On 25 Mar 2015, at 15:04, Amir Chaudhry <amc79@cam.ac.uk> wrote:
>>
>> Hi folks,
>>
>> Magnus just pushed a new blog post live, where he describes a recent experiment.  In it, he tries serving each webpage on his static site from a different unikernel. It's a fun idea and all his scripts are public if you'd like to try this out for yourselves!
>>
>> Post: http://www.skjegstad.com/blog/2015/03/25/mirageos-vm-per-url-experiment/

One optimization that occurs to me is the use of the Host header to
distinguish requests for different domain names but use a single IP
address. This should reduce the size of the address tables and
generally scale better in other ways (no need to manage IP-space
allocation, ability to host on the Internet without a huge IP-space,
etc).

Does anyone know of a way to convince HTTP clients doing DNS lookups
to send *all* subdomains to a single host and terminate name
resolution for a domain? If we could figure that out, you wouldn't
even need to modify the DNS...

>> Tweets:
>> https://twitter.com/MagnusSkjegstad/status/580737412193738752
>> https://twitter.com/amirmc/status/580741532791283712
>>
>
> As a bit of background reading on Jitsu, I've put the camera ready version of the paper online now that will be presented as NSDI in May: http://anil.recoil.org/papers/2015-nsdi-jitsu.pdf
>
> The intention is to cook up an "extreme" demo to demonstrate the stack to the audience, and this is one such excellent demonstrator of the underlying toolchain to spawn-on-demand.
>
> -anil
>
>
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 25 15:42:17 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 25 Mar 2015 15:42:17 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YanRg-00068v-1E; Wed, 25 Mar 2015 15:42:16 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <kosmo.zb@gmail.com>) id 1YanRe-00068T-AB
	for mirageos-devel@lists.xenproject.org; Wed, 25 Mar 2015 15:42:14 +0000
Received: from [85.158.139.211] by server-15.bemta-5.messagelabs.com id
	85/FA-32332-557D2155; Wed, 25 Mar 2015 15:42:13 +0000
X-Env-Sender: kosmo.zb@gmail.com
X-Msg-Ref: server-6.tower-206.messagelabs.com!1427298132!11576124!1
X-Originating-IP: [209.85.215.51]
X-SpamReason: No, hits=0.6 required=7.0 tests=MAILTO_TO_SPAM_ADDR, RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 31745 invoked from network); 25 Mar 2015 15:42:12 -0000
Received: from mail-la0-f51.google.com (HELO mail-la0-f51.google.com)
	(209.85.215.51)
	by server-6.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	25 Mar 2015 15:42:12 -0000
Received: by labe2 with SMTP id e2so23126185lab.3
	for <mirageos-devel@lists.xenproject.org>;
	Wed, 25 Mar 2015 08:42:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding;
	bh=urrk5KkB0hWUWsC962j3HblXSFd655kSBTU5qrQ0ANo=;
	b=r6h139+YKL4YgJZDqdojeyTAVlJqSV2gOGKnXgxYmA7Y3GPpmMikOeVDMVMLLCmHO4
	gY5LUQpV5N59Spr3zZhYwSw0fiD4S16M1DuK21UG2JDr267QEtwDafYupsfgRN2w1tx6
	hSvUNweGY3ohMmRqKlsrBujFf2vYj+xBlW54XjfNtbJk7pB79cixd22o0SucruPNV0dH
	Y9+eDD7v1oIXLTTATp77JzeB9+xGixdTkzr6zD9cxFya30B79YnzWpMvshTuB+YYFL62
	pr2PJVrbmUNQkLuW9jO8R1LcmEY1NDk6F+ex7hRqmPoiDZrR6CD5D6HvqE3EOqZws5us
	Sp0w==
MIME-Version: 1.0
X-Received: by 10.152.27.202 with SMTP id v10mr9087646lag.90.1427298132245;
	Wed, 25 Mar 2015 08:42:12 -0700 (PDT)
Received: by 10.112.198.38 with HTTP; Wed, 25 Mar 2015 08:42:12 -0700 (PDT)
In-Reply-To: <F6ABEFC0-88AD-44F2-B496-A96FA298C6CA@recoil.org>
References: <09E9C361-E86D-489A-8A81-DD43B0A81D5E@cam.ac.uk>
	<F6ABEFC0-88AD-44F2-B496-A96FA298C6CA@recoil.org>
Date: Wed, 25 Mar 2015 15:42:12 +0000
Message-ID: <CAAWM5TwQTYOO84gBq96iix8kVVw8HjiPqA0oLx_vpS2SAyOPTQ@mail.gmail.com>
From: David Sheets <kosmo.zb@gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Serving each URL from a separate unikernel: an
	experiment
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On Wed, Mar 25, 2015 at 3:31 PM, Anil Madhavapeddy <anil@recoil.org> wrote:
> On 25 Mar 2015, at 15:04, Amir Chaudhry <amc79@cam.ac.uk> wrote:
>>
>> Hi folks,
>>
>> Magnus just pushed a new blog post live, where he describes a recent experiment.  In it, he tries serving each webpage on his static site from a different unikernel. It's a fun idea and all his scripts are public if you'd like to try this out for yourselves!
>>
>> Post: http://www.skjegstad.com/blog/2015/03/25/mirageos-vm-per-url-experiment/

One optimization that occurs to me is the use of the Host header to
distinguish requests for different domain names but use a single IP
address. This should reduce the size of the address tables and
generally scale better in other ways (no need to manage IP-space
allocation, ability to host on the Internet without a huge IP-space,
etc).

Does anyone know of a way to convince HTTP clients doing DNS lookups
to send *all* subdomains to a single host and terminate name
resolution for a domain? If we could figure that out, you wouldn't
even need to modify the DNS...

>> Tweets:
>> https://twitter.com/MagnusSkjegstad/status/580737412193738752
>> https://twitter.com/amirmc/status/580741532791283712
>>
>
> As a bit of background reading on Jitsu, I've put the camera ready version of the paper online now that will be presented as NSDI in May: http://anil.recoil.org/papers/2015-nsdi-jitsu.pdf
>
> The intention is to cook up an "extreme" demo to demonstrate the stack to the audience, and this is one such excellent demonstrator of the underlying toolchain to spawn-on-demand.
>
> -anil
>
>
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 25 15:43:52 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 25 Mar 2015 15:43:52 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YanTE-0006Hh-7V; Wed, 25 Mar 2015 15:43:52 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mindy@somerandomidiot.com>) id 1YanTC-0006HL-NN
	for mirageos-devel@lists.xenproject.org; Wed, 25 Mar 2015 15:43:50 +0000
Received: from [85.158.137.68] by server-6.bemta-3.messagelabs.com id
	16/4E-19614-6B7D2155; Wed, 25 Mar 2015 15:43:50 +0000
X-Env-Sender: mindy@somerandomidiot.com
X-Msg-Ref: server-4.tower-31.messagelabs.com!1427298229!10948658!1
X-Originating-IP: [217.70.183.196]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogMjE3LjcwLjE4My4xOTYgPT4gMzk1MTY=\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 30988 invoked from network); 25 Mar 2015 15:43:49 -0000
Received: from relay4-d.mail.gandi.net (HELO relay4-d.mail.gandi.net)
	(217.70.183.196)
	by server-4.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 25 Mar 2015 15:43:49 -0000
Received: from mfilter14-d.gandi.net (mfilter14-d.gandi.net [217.70.178.142])
	by relay4-d.mail.gandi.net (Postfix) with ESMTP id 1DC751720DD
	for <mirageos-devel@lists.xenproject.org>;
	Wed, 25 Mar 2015 16:43:49 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at mfilter14-d.gandi.net
Received: from relay4-d.mail.gandi.net ([217.70.183.196])
	by mfilter14-d.gandi.net (mfilter14-d.gandi.net [10.0.15.180])
	(amavisd-new, port 10024)
	with ESMTP id mwKrJbXVxI79 for <mirageos-devel@lists.xenproject.org>;
	Wed, 25 Mar 2015 16:43:47 +0100 (CET)
X-Originating-IP: 131.111.184.18
Received: from [172.17.26.127] (global-1-18.nat.csx.cam.ac.uk [131.111.184.18])
	(Authenticated sender: guybrush@somerandomidiot.com)
	by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 521BD1720D2
	for <mirageos-devel@lists.xenproject.org>;
	Wed, 25 Mar 2015 16:43:46 +0100 (CET)
Message-ID: <5512D7A0.1000304@somerandomidiot.com>
Date: Wed, 25 Mar 2015 15:43:28 +0000
From: Mindy <mindy@somerandomidiot.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: mirageos-devel@lists.xenproject.org
References: <09E9C361-E86D-489A-8A81-DD43B0A81D5E@cam.ac.uk>
In-Reply-To: <09E9C361-E86D-489A-8A81-DD43B0A81D5E@cam.ac.uk>
Subject: Re: [MirageOS-devel] Serving each URL from a separate unikernel: an
 experiment
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

I was looking at this and got to thinking about 404s.  If they're (say) 
links which used to be valid but no longer are, you'll presumably either 
get a lookup failure (if the A record has been removed) or a timeout (if 
the A record is present, but there's no unikernel responding on that IP 
anymore).  Presumably you'd want a wildcard DNS entry so that, for 
example, 
definitely_going_to_elicit_a_dmca_takedown.jpg.www.somerandomidiot.com 
(and any other image I later realize I have to remove) CNAMEs to 
404.www.somerandomidiot.com (which is configured to always respond with 
code 404 instead of 200), so you can at least handle the first case 
nicely.  I see you have a facility for forwarding unknown requests to 
another DNS server -- maybe you already had this (or something like it) 
in mind?

Also, none of the unikernels expect to serve anything but their front 
pages, so one could probably remove the path-matching logic from 
dispatch.ml, and just always serve the (only) contents of the KV_RO fs. :)

I think this is really neat!

-Mindy

On 03/25/2015 03:04 PM, Amir Chaudhry wrote:
> Hi folks,
>
> Magnus just pushed a new blog post live, where he describes a recent experiment.  In it, he tries serving each webpage on his static site from a different unikernel. It's a fun idea and all his scripts are public if you'd like to try this out for yourselves!
>
> Post: http://www.skjegstad.com/blog/2015/03/25/mirageos-vm-per-url-experiment/
>
> Tweets:
> https://twitter.com/MagnusSkjegstad/status/580737412193738752
> https://twitter.com/amirmc/status/580741532791283712
>
> Best,
> Amir
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 25 15:43:52 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 25 Mar 2015 15:43:52 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YanTE-0006Hh-7V; Wed, 25 Mar 2015 15:43:52 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mindy@somerandomidiot.com>) id 1YanTC-0006HL-NN
	for mirageos-devel@lists.xenproject.org; Wed, 25 Mar 2015 15:43:50 +0000
Received: from [85.158.137.68] by server-6.bemta-3.messagelabs.com id
	16/4E-19614-6B7D2155; Wed, 25 Mar 2015 15:43:50 +0000
X-Env-Sender: mindy@somerandomidiot.com
X-Msg-Ref: server-4.tower-31.messagelabs.com!1427298229!10948658!1
X-Originating-IP: [217.70.183.196]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogMjE3LjcwLjE4My4xOTYgPT4gMzk1MTY=\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 30988 invoked from network); 25 Mar 2015 15:43:49 -0000
Received: from relay4-d.mail.gandi.net (HELO relay4-d.mail.gandi.net)
	(217.70.183.196)
	by server-4.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 25 Mar 2015 15:43:49 -0000
Received: from mfilter14-d.gandi.net (mfilter14-d.gandi.net [217.70.178.142])
	by relay4-d.mail.gandi.net (Postfix) with ESMTP id 1DC751720DD
	for <mirageos-devel@lists.xenproject.org>;
	Wed, 25 Mar 2015 16:43:49 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at mfilter14-d.gandi.net
Received: from relay4-d.mail.gandi.net ([217.70.183.196])
	by mfilter14-d.gandi.net (mfilter14-d.gandi.net [10.0.15.180])
	(amavisd-new, port 10024)
	with ESMTP id mwKrJbXVxI79 for <mirageos-devel@lists.xenproject.org>;
	Wed, 25 Mar 2015 16:43:47 +0100 (CET)
X-Originating-IP: 131.111.184.18
Received: from [172.17.26.127] (global-1-18.nat.csx.cam.ac.uk [131.111.184.18])
	(Authenticated sender: guybrush@somerandomidiot.com)
	by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 521BD1720D2
	for <mirageos-devel@lists.xenproject.org>;
	Wed, 25 Mar 2015 16:43:46 +0100 (CET)
Message-ID: <5512D7A0.1000304@somerandomidiot.com>
Date: Wed, 25 Mar 2015 15:43:28 +0000
From: Mindy <mindy@somerandomidiot.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: mirageos-devel@lists.xenproject.org
References: <09E9C361-E86D-489A-8A81-DD43B0A81D5E@cam.ac.uk>
In-Reply-To: <09E9C361-E86D-489A-8A81-DD43B0A81D5E@cam.ac.uk>
Subject: Re: [MirageOS-devel] Serving each URL from a separate unikernel: an
 experiment
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

I was looking at this and got to thinking about 404s.  If they're (say) 
links which used to be valid but no longer are, you'll presumably either 
get a lookup failure (if the A record has been removed) or a timeout (if 
the A record is present, but there's no unikernel responding on that IP 
anymore).  Presumably you'd want a wildcard DNS entry so that, for 
example, 
definitely_going_to_elicit_a_dmca_takedown.jpg.www.somerandomidiot.com 
(and any other image I later realize I have to remove) CNAMEs to 
404.www.somerandomidiot.com (which is configured to always respond with 
code 404 instead of 200), so you can at least handle the first case 
nicely.  I see you have a facility for forwarding unknown requests to 
another DNS server -- maybe you already had this (or something like it) 
in mind?

Also, none of the unikernels expect to serve anything but their front 
pages, so one could probably remove the path-matching logic from 
dispatch.ml, and just always serve the (only) contents of the KV_RO fs. :)

I think this is really neat!

-Mindy

On 03/25/2015 03:04 PM, Amir Chaudhry wrote:
> Hi folks,
>
> Magnus just pushed a new blog post live, where he describes a recent experiment.  In it, he tries serving each webpage on his static site from a different unikernel. It's a fun idea and all his scripts are public if you'd like to try this out for yourselves!
>
> Post: http://www.skjegstad.com/blog/2015/03/25/mirageos-vm-per-url-experiment/
>
> Tweets:
> https://twitter.com/MagnusSkjegstad/status/580737412193738752
> https://twitter.com/amirmc/status/580741532791283712
>
> Best,
> Amir
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 25 15:56:09 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 25 Mar 2015 15:56:09 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Yanf5-00086j-B4; Wed, 25 Mar 2015 15:56:07 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <amc79@cam.ac.uk>) id 1Yanf4-00086Z-7p
	for mirageos-devel@lists.xenproject.org; Wed, 25 Mar 2015 15:56:06 +0000
Received: from [193.109.254.147] by server-1.bemta-14.messagelabs.com id
	66/2C-01386-59AD2155; Wed, 25 Mar 2015 15:56:05 +0000
X-Env-Sender: amc79@cam.ac.uk
X-Msg-Ref: server-15.tower-27.messagelabs.com!1427298964!13112150!1
X-Originating-IP: [131.111.8.151]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogMTMxLjExMS44LjE1MSA9PiAxNDE4OTU=\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 11984 invoked from network); 25 Mar 2015 15:56:04 -0000
Received: from ppsw-51.csi.cam.ac.uk (HELO ppsw-51.csi.cam.ac.uk)
	(131.111.8.151)
	by server-15.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 25 Mar 2015 15:56:04 -0000
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from dhcp-172-17-157-224.eduroam.wireless.private.cam.ac.uk
	([172.17.157.224]:58547)
	by ppsw-51.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.157]:587)
	with esmtpsa (PLAIN:amc79) (TLSv1:AES128-SHA:128)
	id 1Yanf2-00063k-YF (Exim 4.82_3-c0e5623) for
	mirageos-devel@lists.xenproject.org
	(return-path <amc79@cam.ac.uk>); Wed, 25 Mar 2015 15:56:04 +0000
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
From: Amir Chaudhry <amc79@cam.ac.uk>
In-Reply-To: <AFD1AE34-A8DD-44F5-A1C6-B22250AA03C7@cam.ac.uk>
Date: Wed, 25 Mar 2015 15:56:03 +0000
Message-Id: <8553D3DE-6D2B-41FA-9708-AD12A1493DC9@cam.ac.uk>
References: <AFD1AE34-A8DD-44F5-A1C6-B22250AA03C7@cam.ac.uk>
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
X-Mailer: Apple Mail (2.1510)
Subject: Re: [MirageOS-devel] Mirage fortnightly call - Wednesday 25th at
	4pm GMT
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: quoted-printable
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

The Google Hangout link is:  https://plus.google.com/hangouts/_/gq7e36svyh3=
okzlban3s65nwnya

On 24 Mar 2015, at 10:33, Amir Chaudhry <amc79@cam.ac.uk> wrote:

> Hi folks,
> =

> The next Mirage call will take place this Wednesday afternoon at 4pm GMT =
and is open to all.  =

> =

> Dave, our trusty GoToMeeting provider, is journeying in distant lands so =
we'll be using Google Hangout this time.  I'll circulate the link shortly b=
efore the call -- both to this list and in the IRC channel (#mirage on free=
node)
> =

> Minutes from last time are at http://openmirage.org/wiki/weekly-2015-03-11
> =

> The agenda for this week is currently as follows:
> =

> =95 Quality and Test
> =95 Mirage.io status
> =95 3.0 Planning
> =

> If you have things to add/edit, please do so at https://github.com/mirage=
/mirage-www/wiki/Call-Agenda
> =

> Join us at 4pm GMT on Wednesday!
> =

> Best wishes,
> Amir


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 25 15:56:09 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 25 Mar 2015 15:56:09 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Yanf5-00086j-B4; Wed, 25 Mar 2015 15:56:07 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <amc79@cam.ac.uk>) id 1Yanf4-00086Z-7p
	for mirageos-devel@lists.xenproject.org; Wed, 25 Mar 2015 15:56:06 +0000
Received: from [193.109.254.147] by server-1.bemta-14.messagelabs.com id
	66/2C-01386-59AD2155; Wed, 25 Mar 2015 15:56:05 +0000
X-Env-Sender: amc79@cam.ac.uk
X-Msg-Ref: server-15.tower-27.messagelabs.com!1427298964!13112150!1
X-Originating-IP: [131.111.8.151]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogMTMxLjExMS44LjE1MSA9PiAxNDE4OTU=\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 11984 invoked from network); 25 Mar 2015 15:56:04 -0000
Received: from ppsw-51.csi.cam.ac.uk (HELO ppsw-51.csi.cam.ac.uk)
	(131.111.8.151)
	by server-15.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 25 Mar 2015 15:56:04 -0000
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from dhcp-172-17-157-224.eduroam.wireless.private.cam.ac.uk
	([172.17.157.224]:58547)
	by ppsw-51.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.157]:587)
	with esmtpsa (PLAIN:amc79) (TLSv1:AES128-SHA:128)
	id 1Yanf2-00063k-YF (Exim 4.82_3-c0e5623) for
	mirageos-devel@lists.xenproject.org
	(return-path <amc79@cam.ac.uk>); Wed, 25 Mar 2015 15:56:04 +0000
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
From: Amir Chaudhry <amc79@cam.ac.uk>
In-Reply-To: <AFD1AE34-A8DD-44F5-A1C6-B22250AA03C7@cam.ac.uk>
Date: Wed, 25 Mar 2015 15:56:03 +0000
Message-Id: <8553D3DE-6D2B-41FA-9708-AD12A1493DC9@cam.ac.uk>
References: <AFD1AE34-A8DD-44F5-A1C6-B22250AA03C7@cam.ac.uk>
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
X-Mailer: Apple Mail (2.1510)
Subject: Re: [MirageOS-devel] Mirage fortnightly call - Wednesday 25th at
	4pm GMT
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: quoted-printable
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

The Google Hangout link is:  https://plus.google.com/hangouts/_/gq7e36svyh3=
okzlban3s65nwnya

On 24 Mar 2015, at 10:33, Amir Chaudhry <amc79@cam.ac.uk> wrote:

> Hi folks,
> =

> The next Mirage call will take place this Wednesday afternoon at 4pm GMT =
and is open to all.  =

> =

> Dave, our trusty GoToMeeting provider, is journeying in distant lands so =
we'll be using Google Hangout this time.  I'll circulate the link shortly b=
efore the call -- both to this list and in the IRC channel (#mirage on free=
node)
> =

> Minutes from last time are at http://openmirage.org/wiki/weekly-2015-03-11
> =

> The agenda for this week is currently as follows:
> =

> =95 Quality and Test
> =95 Mirage.io status
> =95 3.0 Planning
> =

> If you have things to add/edit, please do so at https://github.com/mirage=
/mirage-www/wiki/Call-Agenda
> =

> Join us at 4pm GMT on Wednesday!
> =

> Best wishes,
> Amir


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 25 15:57:25 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 25 Mar 2015 15:57:25 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YangL-00089T-GV; Wed, 25 Mar 2015 15:57:25 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <hannes@mehnert.org>) id 1YangJ-00088X-Mg
	for mirageos-devel@lists.xenproject.org; Wed, 25 Mar 2015 15:57:23 +0000
Received: from [193.109.254.147] by server-7.bemta-14.messagelabs.com id
	1A/77-23320-3EAD2155; Wed, 25 Mar 2015 15:57:23 +0000
X-Env-Sender: hannes@mehnert.org
X-Msg-Ref: server-16.tower-27.messagelabs.com!1427299041!7699057!1
X-Originating-IP: [213.73.89.200]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 436 invoked from network); 25 Mar 2015 15:57:22 -0000
Received: from mail.mehnert.org (HELO mail.mehnert.org) (213.73.89.200)
	by server-16.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 25 Mar 2015 15:57:22 -0000
Received: from [128.232.110.184] (c184.al.cl.cam.ac.uk [128.232.110.184])
	(using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
	(Client CN "hannes@mehnert.org", Issuer "mehnert root CA" (verified OK))
	by mail.mehnert.org (Postfix) with ESMTPS id E831A13EC
	for <mirageos-devel@lists.xenproject.org>;
	Wed, 25 Mar 2015 16:57:20 +0100 (CET)
Message-ID: <5512DACC.5090604@mehnert.org>
Date: Wed, 25 Mar 2015 15:57:00 +0000
From: Hannes Mehnert <hannes@mehnert.org>
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: mirageos-devel@lists.xenproject.org
References: <09E9C361-E86D-489A-8A81-DD43B0A81D5E@cam.ac.uk>
	<5512D7A0.1000304@somerandomidiot.com>
In-Reply-To: <5512D7A0.1000304@somerandomidiot.com>
OpenPGP: id=DF7C28EE
Content-Length: 2128
Subject: Re: [MirageOS-devel] Serving each URL from a separate unikernel: an
 experiment
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

LS0tLS1CRUdJTiBQR1AgU0lHTkVEIE1FU1NBR0UtLS0tLQpIYXNoOiBTSEEzODQKCk9uIDAzLzI1
LzIwMTUgMTU6NDMsIE1pbmR5IHdyb3RlOgo+IEFsc28sIG5vbmUgb2YgdGhlIHVuaWtlcm5lbHMg
ZXhwZWN0IHRvIHNlcnZlIGFueXRoaW5nIGJ1dCB0aGVpcgo+IGZyb250IHBhZ2VzLCBzbyBvbmUg
Y291bGQgcHJvYmFibHkgcmVtb3ZlIHRoZSBwYXRoLW1hdGNoaW5nIGxvZ2ljCj4gZnJvbSBkaXNw
YXRjaC5tbCwgYW5kIGp1c3QgYWx3YXlzIHNlcnZlIHRoZSAob25seSkgY29udGVudHMgb2YgdGhl
Cj4gS1ZfUk8gZnMuIDopCgp5ZXAuLi4gdGhhdCdzIHdoYXQgdGhlIGJ0YyBwacOxYXRhIGRvZXMg
KGhlcmU6Cmh0dHBzOi8vZ2l0aHViLmNvbS9taXJsZWZ0L2J0Yy1waW5hdGEvYmxvYi9tYXN0ZXIv
dW5pa2VybmVsLm1sI0wxMDksCndoZXJlIHBhZ2UgaXMgY293Cmh0dHBzOi8vZ2l0aHViLmNvbS9t
aXJsZWZ0L2J0Yy1waW5hdGEvYmxvYi9tYXN0ZXIvcGFnZS5tbCkuIG5vCmRpc3BhdGNoIGludm9s
dmVkLCBpdCBkb2Vzbid0IGV2ZW4gd2FpdCBmb3IgdGhlIEdFVCByZXF1ZXN0Li4gOikKCgpoYW5u
ZXMKCi0tLS0tQkVHSU4gUEdQIFNJR05BVFVSRS0tLS0tClZlcnNpb246IEdudVBHIHYyCgppUUlj
QkFFQkNRQUdCUUpWRXRyTUFBb0pFTHlKWllqZmZDanVDaGdQLzM1ckJyUWdDR3F4SmpaRE5WSXVH
dGpYClU4UmQrQTI1b1c3Qm9zUHNWSk5KN1Vrd21DeWllakpwWFdaVlFpMW9rVGd6L0dNTUZjT1lB
dWxKWEVtMCtXa3MKd09WeVlhRVRMTXh3MzJrRCtXUDlmc2VlWEZKOEdtN2toUkkxSkdQUzZsNFhj
aDZHZ0VuSlUvQWlBOEZRWVNkdQplYWpCK3oydDNrQitZMWZDVi9HMEhpZitiMEIyOEw5akFzdC9p
c1MyUGlIVWZoRGpXT2wwR0ZWNHVEL2E2U08yCm1LMDBDSmlzTnNhR2pGOGxBMzB0c2JHU2lycVVB
REx1NzJCenVGaThxZms0K3R5Zi9NY0dHNHZEdkdwbHhsZEkKMGpLRkRMVzRjMCtSYlNucGtibnFE
ZTgzMWRyNGxJOFlneHlCY01SWGUxVHBmeUxMK1NPMjZkRE5MTmp5Sm0ySApUdkRVMTZsUGx5NVVS
ZlF6Y1VvQm5FeVFTU2c2NUxwdkhFdGtHZTMvNnFNZm5XNXNVZy9wSWVJcmRPeDY2T2t3Ck1OQU0y
bG5teTl0TWFYT1dWZDFwWmEwTFYrNER3aGpaaC9xRGMrM3JwUFAreE4rV0ROSWl6MmFCNkZLM2Yz
bDkKV3ZRYy82N0EvcDJDVjAzUDBnN2NhbWJTVjhhSEs4ZmhSQjRsZW9uV1d6QkdVL0YwV3BnVTRE
WnV5K3lqeHRMcwoxN2h5QVdaNUFtbG1YVTI1ZEx1WnlUclB5cmdCZ1NYMjF2YXRPdEZIeEsycEZw
aGMvNWlsei91eWovR2VoZExLCkh5ZGhCZVdITCtCL00vRjBkZ0FjcGE0Z0QrN29WOXlabjFqWDJ1
eVRLVEc1ZE9NWHpzdk4xL0VTSkVrbi9RRXgKbkF0WmZGcVhoby9Nd2ZnaThSZFQKPXhDaG4KLS0t
LS1FTkQgUEdQIFNJR05BVFVSRS0tLS0tCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fXwpNaXJhZ2VPUy1kZXZlbCBtYWlsaW5nIGxpc3QKTWlyYWdlT1MtZGV2
ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cDovL2xpc3RzLnhlbnByb2plY3Qub3JnL2NnaS1i
aW4vbWFpbG1hbi9saXN0aW5mby9taXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 25 15:57:25 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 25 Mar 2015 15:57:25 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YangL-00089T-GV; Wed, 25 Mar 2015 15:57:25 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <hannes@mehnert.org>) id 1YangJ-00088X-Mg
	for mirageos-devel@lists.xenproject.org; Wed, 25 Mar 2015 15:57:23 +0000
Received: from [193.109.254.147] by server-7.bemta-14.messagelabs.com id
	1A/77-23320-3EAD2155; Wed, 25 Mar 2015 15:57:23 +0000
X-Env-Sender: hannes@mehnert.org
X-Msg-Ref: server-16.tower-27.messagelabs.com!1427299041!7699057!1
X-Originating-IP: [213.73.89.200]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 436 invoked from network); 25 Mar 2015 15:57:22 -0000
Received: from mail.mehnert.org (HELO mail.mehnert.org) (213.73.89.200)
	by server-16.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 25 Mar 2015 15:57:22 -0000
Received: from [128.232.110.184] (c184.al.cl.cam.ac.uk [128.232.110.184])
	(using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
	(Client CN "hannes@mehnert.org", Issuer "mehnert root CA" (verified OK))
	by mail.mehnert.org (Postfix) with ESMTPS id E831A13EC
	for <mirageos-devel@lists.xenproject.org>;
	Wed, 25 Mar 2015 16:57:20 +0100 (CET)
Message-ID: <5512DACC.5090604@mehnert.org>
Date: Wed, 25 Mar 2015 15:57:00 +0000
From: Hannes Mehnert <hannes@mehnert.org>
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: mirageos-devel@lists.xenproject.org
References: <09E9C361-E86D-489A-8A81-DD43B0A81D5E@cam.ac.uk>
	<5512D7A0.1000304@somerandomidiot.com>
In-Reply-To: <5512D7A0.1000304@somerandomidiot.com>
OpenPGP: id=DF7C28EE
Content-Length: 2128
Subject: Re: [MirageOS-devel] Serving each URL from a separate unikernel: an
 experiment
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

LS0tLS1CRUdJTiBQR1AgU0lHTkVEIE1FU1NBR0UtLS0tLQpIYXNoOiBTSEEzODQKCk9uIDAzLzI1
LzIwMTUgMTU6NDMsIE1pbmR5IHdyb3RlOgo+IEFsc28sIG5vbmUgb2YgdGhlIHVuaWtlcm5lbHMg
ZXhwZWN0IHRvIHNlcnZlIGFueXRoaW5nIGJ1dCB0aGVpcgo+IGZyb250IHBhZ2VzLCBzbyBvbmUg
Y291bGQgcHJvYmFibHkgcmVtb3ZlIHRoZSBwYXRoLW1hdGNoaW5nIGxvZ2ljCj4gZnJvbSBkaXNw
YXRjaC5tbCwgYW5kIGp1c3QgYWx3YXlzIHNlcnZlIHRoZSAob25seSkgY29udGVudHMgb2YgdGhl
Cj4gS1ZfUk8gZnMuIDopCgp5ZXAuLi4gdGhhdCdzIHdoYXQgdGhlIGJ0YyBwacOxYXRhIGRvZXMg
KGhlcmU6Cmh0dHBzOi8vZ2l0aHViLmNvbS9taXJsZWZ0L2J0Yy1waW5hdGEvYmxvYi9tYXN0ZXIv
dW5pa2VybmVsLm1sI0wxMDksCndoZXJlIHBhZ2UgaXMgY293Cmh0dHBzOi8vZ2l0aHViLmNvbS9t
aXJsZWZ0L2J0Yy1waW5hdGEvYmxvYi9tYXN0ZXIvcGFnZS5tbCkuIG5vCmRpc3BhdGNoIGludm9s
dmVkLCBpdCBkb2Vzbid0IGV2ZW4gd2FpdCBmb3IgdGhlIEdFVCByZXF1ZXN0Li4gOikKCgpoYW5u
ZXMKCi0tLS0tQkVHSU4gUEdQIFNJR05BVFVSRS0tLS0tClZlcnNpb246IEdudVBHIHYyCgppUUlj
QkFFQkNRQUdCUUpWRXRyTUFBb0pFTHlKWllqZmZDanVDaGdQLzM1ckJyUWdDR3F4SmpaRE5WSXVH
dGpYClU4UmQrQTI1b1c3Qm9zUHNWSk5KN1Vrd21DeWllakpwWFdaVlFpMW9rVGd6L0dNTUZjT1lB
dWxKWEVtMCtXa3MKd09WeVlhRVRMTXh3MzJrRCtXUDlmc2VlWEZKOEdtN2toUkkxSkdQUzZsNFhj
aDZHZ0VuSlUvQWlBOEZRWVNkdQplYWpCK3oydDNrQitZMWZDVi9HMEhpZitiMEIyOEw5akFzdC9p
c1MyUGlIVWZoRGpXT2wwR0ZWNHVEL2E2U08yCm1LMDBDSmlzTnNhR2pGOGxBMzB0c2JHU2lycVVB
REx1NzJCenVGaThxZms0K3R5Zi9NY0dHNHZEdkdwbHhsZEkKMGpLRkRMVzRjMCtSYlNucGtibnFE
ZTgzMWRyNGxJOFlneHlCY01SWGUxVHBmeUxMK1NPMjZkRE5MTmp5Sm0ySApUdkRVMTZsUGx5NVVS
ZlF6Y1VvQm5FeVFTU2c2NUxwdkhFdGtHZTMvNnFNZm5XNXNVZy9wSWVJcmRPeDY2T2t3Ck1OQU0y
bG5teTl0TWFYT1dWZDFwWmEwTFYrNER3aGpaaC9xRGMrM3JwUFAreE4rV0ROSWl6MmFCNkZLM2Yz
bDkKV3ZRYy82N0EvcDJDVjAzUDBnN2NhbWJTVjhhSEs4ZmhSQjRsZW9uV1d6QkdVL0YwV3BnVTRE
WnV5K3lqeHRMcwoxN2h5QVdaNUFtbG1YVTI1ZEx1WnlUclB5cmdCZ1NYMjF2YXRPdEZIeEsycEZw
aGMvNWlsei91eWovR2VoZExLCkh5ZGhCZVdITCtCL00vRjBkZ0FjcGE0Z0QrN29WOXlabjFqWDJ1
eVRLVEc1ZE9NWHpzdk4xL0VTSkVrbi9RRXgKbkF0WmZGcVhoby9Nd2ZnaThSZFQKPXhDaG4KLS0t
LS1FTkQgUEdQIFNJR05BVFVSRS0tLS0tCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fXwpNaXJhZ2VPUy1kZXZlbCBtYWlsaW5nIGxpc3QKTWlyYWdlT1MtZGV2
ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cDovL2xpc3RzLnhlbnByb2plY3Qub3JnL2NnaS1i
aW4vbWFpbG1hbi9saXN0aW5mby9taXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Wed Mar 25 23:53:13 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 25 Mar 2015 23:53:13 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Yav6f-0004Ts-Rd; Wed, 25 Mar 2015 23:53:05 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <chenchenzhao606@gmail.com>) id 1Yav6e-0004TR-0v
	for mirageos-devel@lists.xenproject.org; Wed, 25 Mar 2015 23:53:04 +0000
Received: from [85.158.139.211] by server-5.bemta-5.messagelabs.com id
	51/14-02119-F5A43155; Wed, 25 Mar 2015 23:53:03 +0000
X-Env-Sender: chenchenzhao606@gmail.com
X-Msg-Ref: server-12.tower-206.messagelabs.com!1427327581!11652743!1
X-Originating-IP: [209.85.213.180]
X-SpamReason: No, hits=0.1 required=7.0 tests=HTML_50_60,HTML_MESSAGE
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 13750 invoked from network); 25 Mar 2015 23:53:02 -0000
Received: from mail-ig0-f180.google.com (HELO mail-ig0-f180.google.com)
	(209.85.213.180)
	by server-12.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	25 Mar 2015 23:53:02 -0000
Received: by igcxg11 with SMTP id xg11so40313103igc.0
	for <mirageos-devel@lists.xenproject.org>;
	Wed, 25 Mar 2015 16:53:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:content-type:subject:message-id:date:to:mime-version;
	bh=eFkZB+t8VDH5P5vBvxqCYp7gPyU6DI3+UNE2sIymy+I=;
	b=XgiCu6V3DHkBJueoqQY5R8ehL+MzA+oioTfBFmGCPGCy19myeAW10W2I/E3ZEDgvn9
	mZB9WT4r7Zm8YPanaZB+WnpJRxBXcThNpeZMPuR3fUtTlkpIKQbeqmMYWwzEWDmbXwl4
	F/WHlZyf5/PvtHrQEwaIB/ADb+NeHTXcaKFqmAIfaG9/aCdG+qopXmiG7UV1/bvuYOVX
	R8FlJdhS6DS7yBZq8ZDa7TggioXdz2kxPvxUqos69SbrSj5CNJph+9m4JQgGhAR3eYk/
	StzVossTOJ0wF0drF2EKGJ5JjskbGCbFUjvh2xyaTOWA/sPKoQlqWFDc/nkKPJHszWg1
	tHxA==
X-Received: by 10.107.32.73 with SMTP id g70mr17206140iog.55.1427327581300;
	Wed, 25 Mar 2015 16:53:01 -0700 (PDT)
Received: from ?IPv6:2620:101:f000:700:8000:1:8919:e1e8?
	([2620:101:f000:700:8000:1:8919:e1e8])
	by mx.google.com with ESMTPSA id d10sm2564572igo.0.2015.03.25.16.53.00
	for <mirageos-devel@lists.xenproject.org>
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Wed, 25 Mar 2015 16:53:01 -0700 (PDT)
From: ChenchenZhao <chenchenzhao606@gmail.com>
Message-Id: <84A7FEAD-26D0-4258-BDD1-AD6AAD10E8C7@gmail.com>
Date: Wed, 25 Mar 2015 19:52:30 -0400
To: mirageos-devel@lists.xenproject.org
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
X-Mailer: Apple Mail (2.2070.6)
Subject: [MirageOS-devel] ask for outreachy program
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2523018233723077403=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============2523018233723077403==
Content-Type: multipart/alternative; boundary="Apple-Mail=_BF2419F6-C445-499C-AE59-6A5487070311"


--Apple-Mail=_BF2419F6-C445-499C-AE59-6A5487070311
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hi:
  My name is Chenchen Zhao. I=E2=80=99m currently a first year student =
in University of Waterloo, Math Faculty. I really really want to =
participate in Xen Outreachy Program and make some contributions to open =
source and I think the project =E2=80=9CCommand line utilities" =
fascinates me a lot. I have learned Python and Scheme in school,but just =
some basic functions.I was wondering if I can participate in it and make =
some contributions from now on. Would it possible to give me to some =
suggestions to start and tell me what should I learn and do now?
 Thank you,and I look forward to hearing from you.

  Sincerely

  Chenchen Zhao




--Apple-Mail=_BF2419F6-C445-499C-AE59-6A5487070311
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">Hi:<div class=3D""><span style=3D"font-size: 14px;" =
class=3D"">&nbsp; My name is Chenchen Zhao. I=E2=80=99m currently a =
first year student in University of Waterloo, Math Faculty.</span><span =
class=3D"" style=3D"font-size: 14px;">&nbsp;I really really want to =
participate in Xen&nbsp;</span><span style=3D"font-size: 14px;" =
class=3D"">Outreachy Program and make some&nbsp;contributions to open =
source&nbsp;and I think the project =E2=80=9CCommand line =
utilities"&nbsp;fascinates me a&nbsp;lot.</span><span style=3D"font-size: =
14px;" class=3D"">&nbsp;I have learned Python and Scheme in school,but =
just some basic functions.</span><span style=3D"font-size: 14px;" =
class=3D"">I was wondering if I can participate in it and make some =
contributions from now on.&nbsp;</span><span style=3D"font-size: 14px;" =
class=3D"">Would it possible to&nbsp;give me to some suggestions to =
start and tell me what should I learn and do now?</span></div><div =
class=3D""><p class=3D""><span class=3D"" style=3D"font-size: =
14px;">&nbsp;Thank you,and I look forward to hearing from =
you.</span></p><p class=3D""><span class=3D"" style=3D"font-size: =
14px;">&nbsp; Sincerely</span></p><font class=3D"" style=3D"font-size: =
14px;">&nbsp; Chenchen Zhao</font></div><div class=3D""><span =
style=3D"font-size: 14px;" class=3D""><br class=3D""></span></div><div =
class=3D""><br class=3D""><div class=3D""><br =
class=3D""></div></div></body></html>=

--Apple-Mail=_BF2419F6-C445-499C-AE59-6A5487070311--


--===============2523018233723077403==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============2523018233723077403==--


From mirageos-devel-bounces@lists.xenproject.org Wed Mar 25 23:53:13 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Wed, 25 Mar 2015 23:53:13 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Yav6f-0004Ts-Rd; Wed, 25 Mar 2015 23:53:05 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <chenchenzhao606@gmail.com>) id 1Yav6e-0004TR-0v
	for mirageos-devel@lists.xenproject.org; Wed, 25 Mar 2015 23:53:04 +0000
Received: from [85.158.139.211] by server-5.bemta-5.messagelabs.com id
	51/14-02119-F5A43155; Wed, 25 Mar 2015 23:53:03 +0000
X-Env-Sender: chenchenzhao606@gmail.com
X-Msg-Ref: server-12.tower-206.messagelabs.com!1427327581!11652743!1
X-Originating-IP: [209.85.213.180]
X-SpamReason: No, hits=0.1 required=7.0 tests=HTML_50_60,HTML_MESSAGE
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 13750 invoked from network); 25 Mar 2015 23:53:02 -0000
Received: from mail-ig0-f180.google.com (HELO mail-ig0-f180.google.com)
	(209.85.213.180)
	by server-12.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	25 Mar 2015 23:53:02 -0000
Received: by igcxg11 with SMTP id xg11so40313103igc.0
	for <mirageos-devel@lists.xenproject.org>;
	Wed, 25 Mar 2015 16:53:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:content-type:subject:message-id:date:to:mime-version;
	bh=eFkZB+t8VDH5P5vBvxqCYp7gPyU6DI3+UNE2sIymy+I=;
	b=XgiCu6V3DHkBJueoqQY5R8ehL+MzA+oioTfBFmGCPGCy19myeAW10W2I/E3ZEDgvn9
	mZB9WT4r7Zm8YPanaZB+WnpJRxBXcThNpeZMPuR3fUtTlkpIKQbeqmMYWwzEWDmbXwl4
	F/WHlZyf5/PvtHrQEwaIB/ADb+NeHTXcaKFqmAIfaG9/aCdG+qopXmiG7UV1/bvuYOVX
	R8FlJdhS6DS7yBZq8ZDa7TggioXdz2kxPvxUqos69SbrSj5CNJph+9m4JQgGhAR3eYk/
	StzVossTOJ0wF0drF2EKGJ5JjskbGCbFUjvh2xyaTOWA/sPKoQlqWFDc/nkKPJHszWg1
	tHxA==
X-Received: by 10.107.32.73 with SMTP id g70mr17206140iog.55.1427327581300;
	Wed, 25 Mar 2015 16:53:01 -0700 (PDT)
Received: from ?IPv6:2620:101:f000:700:8000:1:8919:e1e8?
	([2620:101:f000:700:8000:1:8919:e1e8])
	by mx.google.com with ESMTPSA id d10sm2564572igo.0.2015.03.25.16.53.00
	for <mirageos-devel@lists.xenproject.org>
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Wed, 25 Mar 2015 16:53:01 -0700 (PDT)
From: ChenchenZhao <chenchenzhao606@gmail.com>
Message-Id: <84A7FEAD-26D0-4258-BDD1-AD6AAD10E8C7@gmail.com>
Date: Wed, 25 Mar 2015 19:52:30 -0400
To: mirageos-devel@lists.xenproject.org
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
X-Mailer: Apple Mail (2.2070.6)
Subject: [MirageOS-devel] ask for outreachy program
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2523018233723077403=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============2523018233723077403==
Content-Type: multipart/alternative; boundary="Apple-Mail=_BF2419F6-C445-499C-AE59-6A5487070311"


--Apple-Mail=_BF2419F6-C445-499C-AE59-6A5487070311
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hi:
  My name is Chenchen Zhao. I=E2=80=99m currently a first year student =
in University of Waterloo, Math Faculty. I really really want to =
participate in Xen Outreachy Program and make some contributions to open =
source and I think the project =E2=80=9CCommand line utilities" =
fascinates me a lot. I have learned Python and Scheme in school,but just =
some basic functions.I was wondering if I can participate in it and make =
some contributions from now on. Would it possible to give me to some =
suggestions to start and tell me what should I learn and do now?
 Thank you,and I look forward to hearing from you.

  Sincerely

  Chenchen Zhao




--Apple-Mail=_BF2419F6-C445-499C-AE59-6A5487070311
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">Hi:<div class=3D""><span style=3D"font-size: 14px;" =
class=3D"">&nbsp; My name is Chenchen Zhao. I=E2=80=99m currently a =
first year student in University of Waterloo, Math Faculty.</span><span =
class=3D"" style=3D"font-size: 14px;">&nbsp;I really really want to =
participate in Xen&nbsp;</span><span style=3D"font-size: 14px;" =
class=3D"">Outreachy Program and make some&nbsp;contributions to open =
source&nbsp;and I think the project =E2=80=9CCommand line =
utilities"&nbsp;fascinates me a&nbsp;lot.</span><span style=3D"font-size: =
14px;" class=3D"">&nbsp;I have learned Python and Scheme in school,but =
just some basic functions.</span><span style=3D"font-size: 14px;" =
class=3D"">I was wondering if I can participate in it and make some =
contributions from now on.&nbsp;</span><span style=3D"font-size: 14px;" =
class=3D"">Would it possible to&nbsp;give me to some suggestions to =
start and tell me what should I learn and do now?</span></div><div =
class=3D""><p class=3D""><span class=3D"" style=3D"font-size: =
14px;">&nbsp;Thank you,and I look forward to hearing from =
you.</span></p><p class=3D""><span class=3D"" style=3D"font-size: =
14px;">&nbsp; Sincerely</span></p><font class=3D"" style=3D"font-size: =
14px;">&nbsp; Chenchen Zhao</font></div><div class=3D""><span =
style=3D"font-size: 14px;" class=3D""><br class=3D""></span></div><div =
class=3D""><br class=3D""><div class=3D""><br =
class=3D""></div></div></body></html>=

--Apple-Mail=_BF2419F6-C445-499C-AE59-6A5487070311--


--===============2523018233723077403==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============2523018233723077403==--


From mirageos-devel-bounces@lists.xenproject.org Thu Mar 26 16:19:17 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 26 Mar 2015 16:19:17 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbAUw-0004hM-KQ; Thu, 26 Mar 2015 16:19:10 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <unitedbiscuits@gmail.com>) id 1YbAUu-0004ej-V7
	for mirageos-devel@lists.xenproject.org; Thu, 26 Mar 2015 16:19:09 +0000
Received: from [85.158.137.68] by server-17.bemta-3.messagelabs.com id
	DE/AF-14975-C7134155; Thu, 26 Mar 2015 16:19:08 +0000
X-Env-Sender: unitedbiscuits@gmail.com
X-Msg-Ref: server-15.tower-31.messagelabs.com!1427386738!11263829!1
X-Originating-IP: [209.85.212.175]
X-SpamReason: No, hits=0.8 required=7.0 tests=BODY_RANDOM_LONG,
  RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 13197 invoked from network); 26 Mar 2015 16:18:58 -0000
Received: from mail-wi0-f175.google.com (HELO mail-wi0-f175.google.com)
	(209.85.212.175)
	by server-15.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	26 Mar 2015 16:18:58 -0000
Received: by wibg7 with SMTP id g7so20215610wib.1
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 26 Mar 2015 09:18:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:from:date:message-id:subject:to:content-type;
	bh=Vti1vzem35y/OYd2yzYrje1vBXLOcCAcQTs2GjhInxU=;
	b=FB+nYxiK27DZcTcKa8OiPWLQjPYifB07C4vD+pWXy+15v6hWLPC7axakckMwAUgkUy
	bpTnbQgnXz3xv0oCCbVNTUlkzx/+V7D7y4wBLsVj36+ZhIA2Jmjvco96lILAExt0PC4s
	ldryyz7FxiRx3z4ycHw4WkIn0ZbGKrPhUWIEyixPPCZhBeIoY4Bc3UpHJBoF1tx580wF
	lhZadS82CLpMQID/LVhcQt0ivcQCR5jWvubg736T3H+7x8GLni65n7RbYVEYHrZ0GA4F
	ECMc5Syi9IoZ5pwVWXVL9Zj1ltR8APjqSdIXmdR+Ba1aF3eIZ7x+n8U4AQv4YMW/K9GZ
	i3fQ==
X-Received: by 10.181.12.79 with SMTP id eo15mr19420590wid.23.1427386737682;
	Thu, 26 Mar 2015 09:18:57 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.27.103.13 with HTTP; Thu, 26 Mar 2015 09:18:37 -0700 (PDT)
From: david <unitedbiscuits@gmail.com>
Date: Thu, 26 Mar 2015 16:18:37 +0000
Message-ID: <CAAhS_v_0FJYStm60S=D4RO4B1t2of6wSCvg_4WXVRegqUv5WwA@mail.gmail.com>
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: [MirageOS-devel] Update on entropy
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Folks,

After yesterday's Mirage Call, Thomas G, Hannes and myself stared at a
whiteboard trying to figure out how to proceed on the entropy front,
prompted by [1] and the ensuing discussion.

As a little background, Nocrypto contains a piece of code capable of
accepting small bits of unpredictable information at irregular
intervals, and producing an unbounded stream of at least equally
unpredictable bytes on demand. This is Fortuna [2], Schneier's blessed
CSPRNG, and initially, it seemed like a good idea to decouple this
inherently deterministic algorithm from whatever serves to provide
bits of unpredictability and expect the latter part to be provided by
"the platform".

Attempts to endow the platform with this facility resulted in the
ENTROPY signature [3]. To avoid a general crypto library from
depending on a specific MirageOS sig, Nocrypto did nothing to hook
itself to this facility, which led to the problem of who gets to start
the entropy harvesting loop and connect it to the RNG, a bit of code
that started spilling around the ecosystem.

Now, taking a step back, it seems that the entire ENTROPY sig is
actually a bad idea. It could serve two purposes:

* any RNG can be fed through a standard mechanism of providing noise; and
* it is possible to independently create new sources of noise.

But it seems unlikely that anyone else will make another crypto-strong
RNG for MirageOS, given that the design space as described in the
current literature is not terribly large. On the other hand, we
already have implementations of various entropy sources in use by
equivalent systems (Xentropyd, RD{SEED,RAND}, inter-event cycle
counting, /dev/urandom), and it seems that allowing these sources to
be implemented and plugged-in independently provides little value.

Compounding the confusion, I think it is actually a very bad idea to
adopt the general MirageOS design in this instance, and allow the
application writer to statically describe their entropy sources
through module composition. This is because we have a nascent
fail-over logic which probes for available facilities and uses an
appropriate mix, because in general it is preferable to have *all of
them* anyway, and because leaving such a tricky decision to everyone
who wants to use, say, Conduit, reeks of poor API design.

So what we figured out would be the best way forward is:

* remove ENTROPY sig from Mirage types;
* add a RANDOM interface to Nocrypto so that, say, TCP can use Fortuna;
* extend this interface with a more general "start me now" entry-point
a little like `self_init`;
* fix the `mirage` tool to discover usage of a RANDOM implementation
and emit code to trigger this in the init preamble; and
* make the logic of probing for sources at boot-time, activating them
and connecting them to Fortuna [4] nocrypto-specific.

This effectively removes entropy from the MirageOS types ecosystem,
internalizes it into what realistically looks like its only client in
the forseeable future, and adds a minimal and general support for
RANDOM-like things to `mirage`-the-tool. The end result drops a bit of
flexibility and a lot of unclear design.

And the question I am raising is: Are there objections to this? Did
anyone want to code something that requires direct access to entropy
sources (i.e. another RNG)? Did anyone want to make a separate entropy
provider?


Cheers,
David


[1] - https://github.com/mirage/mirage/pull/390
[2] - https://www.schneier.com/fortuna.html
[3] - https://github.com/mirage/mirage/blob/master/types/V1.mli#L80
[4] - https://github.com/pqwy/mirage-entropy/blob/f0935a329502e76f92133805c7d40da92ec42fe8/xen/entropy_xen.ml#L153

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 26 16:19:17 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 26 Mar 2015 16:19:17 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbAUw-0004hM-KQ; Thu, 26 Mar 2015 16:19:10 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <unitedbiscuits@gmail.com>) id 1YbAUu-0004ej-V7
	for mirageos-devel@lists.xenproject.org; Thu, 26 Mar 2015 16:19:09 +0000
Received: from [85.158.137.68] by server-17.bemta-3.messagelabs.com id
	DE/AF-14975-C7134155; Thu, 26 Mar 2015 16:19:08 +0000
X-Env-Sender: unitedbiscuits@gmail.com
X-Msg-Ref: server-15.tower-31.messagelabs.com!1427386738!11263829!1
X-Originating-IP: [209.85.212.175]
X-SpamReason: No, hits=0.8 required=7.0 tests=BODY_RANDOM_LONG,
  RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 13197 invoked from network); 26 Mar 2015 16:18:58 -0000
Received: from mail-wi0-f175.google.com (HELO mail-wi0-f175.google.com)
	(209.85.212.175)
	by server-15.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	26 Mar 2015 16:18:58 -0000
Received: by wibg7 with SMTP id g7so20215610wib.1
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 26 Mar 2015 09:18:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:from:date:message-id:subject:to:content-type;
	bh=Vti1vzem35y/OYd2yzYrje1vBXLOcCAcQTs2GjhInxU=;
	b=FB+nYxiK27DZcTcKa8OiPWLQjPYifB07C4vD+pWXy+15v6hWLPC7axakckMwAUgkUy
	bpTnbQgnXz3xv0oCCbVNTUlkzx/+V7D7y4wBLsVj36+ZhIA2Jmjvco96lILAExt0PC4s
	ldryyz7FxiRx3z4ycHw4WkIn0ZbGKrPhUWIEyixPPCZhBeIoY4Bc3UpHJBoF1tx580wF
	lhZadS82CLpMQID/LVhcQt0ivcQCR5jWvubg736T3H+7x8GLni65n7RbYVEYHrZ0GA4F
	ECMc5Syi9IoZ5pwVWXVL9Zj1ltR8APjqSdIXmdR+Ba1aF3eIZ7x+n8U4AQv4YMW/K9GZ
	i3fQ==
X-Received: by 10.181.12.79 with SMTP id eo15mr19420590wid.23.1427386737682;
	Thu, 26 Mar 2015 09:18:57 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.27.103.13 with HTTP; Thu, 26 Mar 2015 09:18:37 -0700 (PDT)
From: david <unitedbiscuits@gmail.com>
Date: Thu, 26 Mar 2015 16:18:37 +0000
Message-ID: <CAAhS_v_0FJYStm60S=D4RO4B1t2of6wSCvg_4WXVRegqUv5WwA@mail.gmail.com>
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: [MirageOS-devel] Update on entropy
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Folks,

After yesterday's Mirage Call, Thomas G, Hannes and myself stared at a
whiteboard trying to figure out how to proceed on the entropy front,
prompted by [1] and the ensuing discussion.

As a little background, Nocrypto contains a piece of code capable of
accepting small bits of unpredictable information at irregular
intervals, and producing an unbounded stream of at least equally
unpredictable bytes on demand. This is Fortuna [2], Schneier's blessed
CSPRNG, and initially, it seemed like a good idea to decouple this
inherently deterministic algorithm from whatever serves to provide
bits of unpredictability and expect the latter part to be provided by
"the platform".

Attempts to endow the platform with this facility resulted in the
ENTROPY signature [3]. To avoid a general crypto library from
depending on a specific MirageOS sig, Nocrypto did nothing to hook
itself to this facility, which led to the problem of who gets to start
the entropy harvesting loop and connect it to the RNG, a bit of code
that started spilling around the ecosystem.

Now, taking a step back, it seems that the entire ENTROPY sig is
actually a bad idea. It could serve two purposes:

* any RNG can be fed through a standard mechanism of providing noise; and
* it is possible to independently create new sources of noise.

But it seems unlikely that anyone else will make another crypto-strong
RNG for MirageOS, given that the design space as described in the
current literature is not terribly large. On the other hand, we
already have implementations of various entropy sources in use by
equivalent systems (Xentropyd, RD{SEED,RAND}, inter-event cycle
counting, /dev/urandom), and it seems that allowing these sources to
be implemented and plugged-in independently provides little value.

Compounding the confusion, I think it is actually a very bad idea to
adopt the general MirageOS design in this instance, and allow the
application writer to statically describe their entropy sources
through module composition. This is because we have a nascent
fail-over logic which probes for available facilities and uses an
appropriate mix, because in general it is preferable to have *all of
them* anyway, and because leaving such a tricky decision to everyone
who wants to use, say, Conduit, reeks of poor API design.

So what we figured out would be the best way forward is:

* remove ENTROPY sig from Mirage types;
* add a RANDOM interface to Nocrypto so that, say, TCP can use Fortuna;
* extend this interface with a more general "start me now" entry-point
a little like `self_init`;
* fix the `mirage` tool to discover usage of a RANDOM implementation
and emit code to trigger this in the init preamble; and
* make the logic of probing for sources at boot-time, activating them
and connecting them to Fortuna [4] nocrypto-specific.

This effectively removes entropy from the MirageOS types ecosystem,
internalizes it into what realistically looks like its only client in
the forseeable future, and adds a minimal and general support for
RANDOM-like things to `mirage`-the-tool. The end result drops a bit of
flexibility and a lot of unclear design.

And the question I am raising is: Are there objections to this? Did
anyone want to code something that requires direct access to entropy
sources (i.e. another RNG)? Did anyone want to make a separate entropy
provider?


Cheers,
David


[1] - https://github.com/mirage/mirage/pull/390
[2] - https://www.schneier.com/fortuna.html
[3] - https://github.com/mirage/mirage/blob/master/types/V1.mli#L80
[4] - https://github.com/pqwy/mirage-entropy/blob/f0935a329502e76f92133805c7d40da92ec42fe8/xen/entropy_xen.ml#L153

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Thu Mar 26 19:13:10 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 26 Mar 2015 19:13:10 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbDDF-0005yq-PV; Thu, 26 Mar 2015 19:13:05 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <magnus@therning.org>) id 1YbDDD-0005yl-Im
	for mirageos-devel@lists.xenproject.org; Thu, 26 Mar 2015 19:13:03 +0000
Received: from [85.158.137.68] by server-15.bemta-3.messagelabs.com id
	5E/7B-32487-E3A54155; Thu, 26 Mar 2015 19:13:02 +0000
X-Env-Sender: magnus@therning.org
X-Msg-Ref: server-6.tower-31.messagelabs.com!1427397179!6993919!1
X-Originating-IP: [209.85.215.48]
X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 21643 invoked from network); 26 Mar 2015 19:13:00 -0000
Received: from mail-la0-f48.google.com (HELO mail-la0-f48.google.com)
	(209.85.215.48)
	by server-6.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	26 Mar 2015 19:13:00 -0000
Received: by labto5 with SMTP id to5so53778375lab.0
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 26 Mar 2015 12:12:59 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:date:from:to:cc:subject:message-id:references
	:mime-version:content-type:content-disposition:in-reply-to
	:user-agent;
	bh=fgewZ6T+rmrLSL5Ed7CNBSm+LUNcwvtzBLsaha4ukqo=;
	b=K/5J4+g5TQlss990+OP8XEx318n1wEl8wUjI3HLr4fcLTYs4xfZTlwoSCl4fefu2qZ
	2kCS/X5ArdgQ9DWfG3fzZzZg9Judo2SRya+sh99Z/51zWz9gYESrMUhw4U0JSTcGpaH4
	P7FBRVFTi/Ex1w2L5D9yc12sqCSTqOLNRXF6vbZb9aySOcghctxLmOG9e2ESaVnT99fX
	F+Oj7NmLNXBaSlioj22DIgWL99xsU5PT1JD6a3rv48pldo57PwC3B9cZeiTFgzfzx/Ly
	GfpFdKujhkJpRHTa2g4UL+aKsGwjop9gerLkCLzaTPLzdeEeYDZMF0apuWYrwOTMWKbd
	Lshw==
X-Gm-Message-State: ALoCoQltldi8NjeeiqCOjVklxY0hAD416jZEVe5Zo80mby37wsHGgAigVXmGmyAu6UfOzY6WrcDC
X-Received: by 10.112.54.165 with SMTP id k5mr14800229lbp.57.1427397179200;
	Thu, 26 Mar 2015 12:12:59 -0700 (PDT)
Received: from tatooine (c83-248-178-110.bredband.comhem.se. [83.248.178.110])
	by mx.google.com with ESMTPSA id
	dk7sm1435198lbc.28.2015.03.26.12.12.57
	(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Thu, 26 Mar 2015 12:12:57 -0700 (PDT)
Date: Thu, 26 Mar 2015 20:12:55 +0100
From: Magnus Therning <magnus@therning.org>
To: Anil Madhavapeddy <anil@recoil.org>
Message-ID: <20150326191255.GA3035@tatooine>
References: <20150324052426.GA1017@tatooine>
	<AD0AC498-4EF2-4693-9B2C-5DC86C87A8D1@recoil.org>
	<20150324155755.GB4412@mtcomp.evidente.local>
MIME-Version: 1.0
In-Reply-To: <20150324155755.GB4412@mtcomp.evidente.local>
User-Agent: Mutt/1.5.23 (2014-03-12)
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Compiling on/for ARM
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============8232383805367357242=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============8232383805367357242==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="45Z9DzgjV8m4Oswq"
Content-Disposition: inline


--45Z9DzgjV8m4Oswq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Mar 24, 2015 at 04:57:55PM +0100, Magnus Therning wrote:
> On Tue, Mar 24, 2015 at 07:52:26AM +0000, Anil Madhavapeddy wrote:
> > On 24 Mar 2015, at 05:24, Magnus Therning <magnus@therning.org> wrote:
> > >=20
> > > I thought github/mirage-decks would be a good first project to build
> > > on/for my Cubietruck.  So after installing the mirage tool via `opam`
> > > I cloned the decks project and proceeded to build it in unix mode.
> > > `make configure` worked just fine, but `make build` did not.
> > > Apparently `camlp4` requires more memory than what's available:
> >=20
> > mirage-decks isn't a great first choice -- mirage-www would be better.
> > The reason is that it currently crunches the *entire* slide deck into
> > memory rather than use an external block device.  We do need to port
> > the decks build system to dynamically read the slides off disk as they
> > have grown quite significantly.  What Mort and I normally do is to
> > delete the irrelevant slides from a local checkout on the ARM box.
> >=20
> > Note that you can still get it compile fine if you setup a swap device
> > as normal on dom0, but compiling it will take forever due to building a
> > 50MB OCaml source file.  I'd recommend just playing with mirage-www
> > instead, or the static_website example in mirage-skeleton (where you
> > just populate htdocs/ with whatever content you want)
>=20
> Thanks.  I'll switch to mirage-www then :)  Hopefully I'll have more
> luck with that.

Unfortunately mirage-www also results in an out-of-memory error:

~~~
mirage@cubietruck:~/mirage-www$ make build
cd src && make build
make[1]: Entering directory `/home/mirage/mirage-www/src'
ocamlbuild -use-ocamlfind -pkgs lwt.syntax,conduit.mirage,cow.syntax,cowabl=
oga,cstruct,io-page,io-page.unix,lwt,mirage-console.unix,mirage-fs-unix,mir=
age-http,mirage-types,mirage-types.lwt,tcpip.stack-socket -tags "syntax(cam=
lp4o),annot,bin_annot,strict_sequence,principal" -tag-line "<static*.*>: -s=
yntax(camlp4o)" -cflag -g -lflags -g,-linkpkg main.native
+ ocamlfind ocamldep -package tcpip.stack-socket -package mirage-types.lwt =
-package mirage-types -package mirage-http -package mirage-fs-unix -package=
 mirage-console.unix -package lwt -package io-page.unix -package io-page -p=
ackage cstruct -package cowabloga -package cow.syntax -package conduit.mira=
ge -package lwt.syntax -syntax camlp4o -modules main.ml > main.ml.depends
Out of memory
File "main.ml", line 1:
Error: Error while running external preprocessor
Command line: camlp4 '-I' '/home/mirage/.opam/4.02.1/lib/ocaml/camlp4' '-I'=
 '/home/mirage/.opam/4.02.1/lib/ocaml' '-I' '/home/mirage/.opam/4.02.1/lib/=
type_conv' '-I' '/home/mirage/.opam/4.02.1/lib/dyntype' '-I' '/home/mirage/=
=2Eopam/4.02.1/lib/xmlm' '-I' '/home/mirage/.opam/4.02.1/lib/uutf' '-I' '/h=
ome/mirage/.opam/4.02.1/lib/jsonm' '-I' '/home/mirage/.opam/4.02.1/lib/hex'=
 '-I' '/home/mirage/.opam/4.02.1/lib/ocaml' '-I' '/home/mirage/.opam/4.02.1=
/lib/ocaml' '-I' '/home/mirage/.opam/4.02.1/lib/sexplib' '-I' '/home/mirage=
/.opam/4.02.1/lib/ezjsonm' '-I' '/home/mirage/.opam/4.02.1/lib/cow' '-I' '/=
home/mirage/.opam/4.02.1/lib/lwt' '-I' '/home/mirage/.opam/4.02.1/lib/lwt' =
'-parser' 'o' '-parser' 'op' '-printer' 'p' 'str.cma' 'pa_type_conv.cma' 'p=
a_dyntype.cma' 'xmlm.cma' 'uutf.cma' 'jsonm.cma' 'hex.cma' 'unix.cma' 'biga=
rray.cma' 'sexplib.cma' 'ezjsonm.cma' 'xmlm.cma' 'str.cma' 'pa_cow.cma' 'ez=
jsonm.cma' 'lwt-syntax-options.cma' 'lwt-syntax.cma'  'main.ml' > /tmp/ocam=
lppb0265b

Command exited with code 2.
Compilation unsuccessful after building 1 target (0 cached) in 00:00:00.
make[1]: *** [main.native] Error 10
make[1]: Leaving directory `/home/mirage/mirage-www/src'
make: *** [build] Error 2
~~~

This is after configuring using

~~~
mirage@cubietruck:~/mirage-www$ make configure NET=3Dsocket PORT=3D8080
mirage configure src/config.ml  --unix
Mirage      Using specified config file: src/config.ml
Mirage      Compiling for target: Unix
Mirage      Processing: /home/mirage/mirage-www/src/config.ml
Mirage      =3D> rm -rf /home/mirage/mirage-www/src/_build/config.*
Mirage      =3D> cd /home/mirage/mirage-www/src && ocamlbuild -use-ocamlfin=
d -tags annot,bin_annot -pkg mirage config.cmxs
www         Using configuration: /home/mirage/mirage-www/src/config.ml
www         1 job [Dispatch.Main]
www         Installing OPAM packages.
www         =3D> opam --version
www         =3D> opam install --yes conduit cow cowabloga crunch cstruct io=
-page lwt mirage-conduit mirage-console mirage-fs-unix mirage-http mirage-t=
ypes mirage-unix tcpip vchan
[NOTE] Package conduit is already installed (current version is 0.7.2).
[NOTE] Package cow is already installed (current version is 1.2.1).
[NOTE] Package cowabloga is already installed (current version is 0.0.9).
[NOTE] Package crunch is already installed (current version is 1.4.0).
[NOTE] Package cstruct is already installed (current version is 1.5.0).
[NOTE] Package io-page is already installed (current version is 1.5.1).
[NOTE] Package lwt is already installed (current version is 2.4.8).
[NOTE] Package mirage-conduit is already installed (current version is 2.0.=
0).
[NOTE] Package mirage-console is already installed (current version is 2.1.=
3).
[NOTE] Package mirage-fs-unix is already installed (current version is 1.1.=
4).
[NOTE] Package mirage-http is already installed (current version is 2.1.0).
[NOTE] Package mirage-types is already installed (current version is 2.3.0).
[NOTE] Package mirage-unix is already installed (current version is 2.2.3).
[NOTE] Package tcpip is already installed (current version is 2.3.0).
[NOTE] Package vchan is already installed (current version is 2.0.2).
www         Generating: main.ml
~~~

The dom0 has 512M memory, maybe it would help to give it a bit more...
If I could only figure out how!  `sudo xl mem-set` fails with a rather
surprising error:

    libxl: error: libxl.c:4075:libxl_set_memory_target: cannot get memory i=
nfo from /local/domain/0/memory/static-max : No such file or directory

/M

--=20
Magnus Therning                      OpenPGP: 0xAB4DFBA4=20
email: magnus@therning.org   jabber: magnus@therning.org
twitter: magthe               http://therning.org/magnus

Never be afraid to try something new. Remember, amateurs built the
ark; professionals built the Titanic.
     -- Anonymous

--45Z9DzgjV8m4Oswq
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iEYEABECAAYFAlUUWjAACgkQiMWTaatN+6RU2wCgofr57hkRGpBFMB1JAUixYxvB
1pAAn3ZTeCw+KwZQAFqRMTYf/KHUkEfR
=ppHj
-----END PGP SIGNATURE-----

--45Z9DzgjV8m4Oswq--


--===============8232383805367357242==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============8232383805367357242==--


From mirageos-devel-bounces@lists.xenproject.org Thu Mar 26 19:13:10 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Thu, 26 Mar 2015 19:13:10 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbDDF-0005yq-PV; Thu, 26 Mar 2015 19:13:05 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <magnus@therning.org>) id 1YbDDD-0005yl-Im
	for mirageos-devel@lists.xenproject.org; Thu, 26 Mar 2015 19:13:03 +0000
Received: from [85.158.137.68] by server-15.bemta-3.messagelabs.com id
	5E/7B-32487-E3A54155; Thu, 26 Mar 2015 19:13:02 +0000
X-Env-Sender: magnus@therning.org
X-Msg-Ref: server-6.tower-31.messagelabs.com!1427397179!6993919!1
X-Originating-IP: [209.85.215.48]
X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 21643 invoked from network); 26 Mar 2015 19:13:00 -0000
Received: from mail-la0-f48.google.com (HELO mail-la0-f48.google.com)
	(209.85.215.48)
	by server-6.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	26 Mar 2015 19:13:00 -0000
Received: by labto5 with SMTP id to5so53778375lab.0
	for <mirageos-devel@lists.xenproject.org>;
	Thu, 26 Mar 2015 12:12:59 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:date:from:to:cc:subject:message-id:references
	:mime-version:content-type:content-disposition:in-reply-to
	:user-agent;
	bh=fgewZ6T+rmrLSL5Ed7CNBSm+LUNcwvtzBLsaha4ukqo=;
	b=K/5J4+g5TQlss990+OP8XEx318n1wEl8wUjI3HLr4fcLTYs4xfZTlwoSCl4fefu2qZ
	2kCS/X5ArdgQ9DWfG3fzZzZg9Judo2SRya+sh99Z/51zWz9gYESrMUhw4U0JSTcGpaH4
	P7FBRVFTi/Ex1w2L5D9yc12sqCSTqOLNRXF6vbZb9aySOcghctxLmOG9e2ESaVnT99fX
	F+Oj7NmLNXBaSlioj22DIgWL99xsU5PT1JD6a3rv48pldo57PwC3B9cZeiTFgzfzx/Ly
	GfpFdKujhkJpRHTa2g4UL+aKsGwjop9gerLkCLzaTPLzdeEeYDZMF0apuWYrwOTMWKbd
	Lshw==
X-Gm-Message-State: ALoCoQltldi8NjeeiqCOjVklxY0hAD416jZEVe5Zo80mby37wsHGgAigVXmGmyAu6UfOzY6WrcDC
X-Received: by 10.112.54.165 with SMTP id k5mr14800229lbp.57.1427397179200;
	Thu, 26 Mar 2015 12:12:59 -0700 (PDT)
Received: from tatooine (c83-248-178-110.bredband.comhem.se. [83.248.178.110])
	by mx.google.com with ESMTPSA id
	dk7sm1435198lbc.28.2015.03.26.12.12.57
	(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Thu, 26 Mar 2015 12:12:57 -0700 (PDT)
Date: Thu, 26 Mar 2015 20:12:55 +0100
From: Magnus Therning <magnus@therning.org>
To: Anil Madhavapeddy <anil@recoil.org>
Message-ID: <20150326191255.GA3035@tatooine>
References: <20150324052426.GA1017@tatooine>
	<AD0AC498-4EF2-4693-9B2C-5DC86C87A8D1@recoil.org>
	<20150324155755.GB4412@mtcomp.evidente.local>
MIME-Version: 1.0
In-Reply-To: <20150324155755.GB4412@mtcomp.evidente.local>
User-Agent: Mutt/1.5.23 (2014-03-12)
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Compiling on/for ARM
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============8232383805367357242=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============8232383805367357242==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="45Z9DzgjV8m4Oswq"
Content-Disposition: inline


--45Z9DzgjV8m4Oswq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Mar 24, 2015 at 04:57:55PM +0100, Magnus Therning wrote:
> On Tue, Mar 24, 2015 at 07:52:26AM +0000, Anil Madhavapeddy wrote:
> > On 24 Mar 2015, at 05:24, Magnus Therning <magnus@therning.org> wrote:
> > >=20
> > > I thought github/mirage-decks would be a good first project to build
> > > on/for my Cubietruck.  So after installing the mirage tool via `opam`
> > > I cloned the decks project and proceeded to build it in unix mode.
> > > `make configure` worked just fine, but `make build` did not.
> > > Apparently `camlp4` requires more memory than what's available:
> >=20
> > mirage-decks isn't a great first choice -- mirage-www would be better.
> > The reason is that it currently crunches the *entire* slide deck into
> > memory rather than use an external block device.  We do need to port
> > the decks build system to dynamically read the slides off disk as they
> > have grown quite significantly.  What Mort and I normally do is to
> > delete the irrelevant slides from a local checkout on the ARM box.
> >=20
> > Note that you can still get it compile fine if you setup a swap device
> > as normal on dom0, but compiling it will take forever due to building a
> > 50MB OCaml source file.  I'd recommend just playing with mirage-www
> > instead, or the static_website example in mirage-skeleton (where you
> > just populate htdocs/ with whatever content you want)
>=20
> Thanks.  I'll switch to mirage-www then :)  Hopefully I'll have more
> luck with that.

Unfortunately mirage-www also results in an out-of-memory error:

~~~
mirage@cubietruck:~/mirage-www$ make build
cd src && make build
make[1]: Entering directory `/home/mirage/mirage-www/src'
ocamlbuild -use-ocamlfind -pkgs lwt.syntax,conduit.mirage,cow.syntax,cowabl=
oga,cstruct,io-page,io-page.unix,lwt,mirage-console.unix,mirage-fs-unix,mir=
age-http,mirage-types,mirage-types.lwt,tcpip.stack-socket -tags "syntax(cam=
lp4o),annot,bin_annot,strict_sequence,principal" -tag-line "<static*.*>: -s=
yntax(camlp4o)" -cflag -g -lflags -g,-linkpkg main.native
+ ocamlfind ocamldep -package tcpip.stack-socket -package mirage-types.lwt =
-package mirage-types -package mirage-http -package mirage-fs-unix -package=
 mirage-console.unix -package lwt -package io-page.unix -package io-page -p=
ackage cstruct -package cowabloga -package cow.syntax -package conduit.mira=
ge -package lwt.syntax -syntax camlp4o -modules main.ml > main.ml.depends
Out of memory
File "main.ml", line 1:
Error: Error while running external preprocessor
Command line: camlp4 '-I' '/home/mirage/.opam/4.02.1/lib/ocaml/camlp4' '-I'=
 '/home/mirage/.opam/4.02.1/lib/ocaml' '-I' '/home/mirage/.opam/4.02.1/lib/=
type_conv' '-I' '/home/mirage/.opam/4.02.1/lib/dyntype' '-I' '/home/mirage/=
=2Eopam/4.02.1/lib/xmlm' '-I' '/home/mirage/.opam/4.02.1/lib/uutf' '-I' '/h=
ome/mirage/.opam/4.02.1/lib/jsonm' '-I' '/home/mirage/.opam/4.02.1/lib/hex'=
 '-I' '/home/mirage/.opam/4.02.1/lib/ocaml' '-I' '/home/mirage/.opam/4.02.1=
/lib/ocaml' '-I' '/home/mirage/.opam/4.02.1/lib/sexplib' '-I' '/home/mirage=
/.opam/4.02.1/lib/ezjsonm' '-I' '/home/mirage/.opam/4.02.1/lib/cow' '-I' '/=
home/mirage/.opam/4.02.1/lib/lwt' '-I' '/home/mirage/.opam/4.02.1/lib/lwt' =
'-parser' 'o' '-parser' 'op' '-printer' 'p' 'str.cma' 'pa_type_conv.cma' 'p=
a_dyntype.cma' 'xmlm.cma' 'uutf.cma' 'jsonm.cma' 'hex.cma' 'unix.cma' 'biga=
rray.cma' 'sexplib.cma' 'ezjsonm.cma' 'xmlm.cma' 'str.cma' 'pa_cow.cma' 'ez=
jsonm.cma' 'lwt-syntax-options.cma' 'lwt-syntax.cma'  'main.ml' > /tmp/ocam=
lppb0265b

Command exited with code 2.
Compilation unsuccessful after building 1 target (0 cached) in 00:00:00.
make[1]: *** [main.native] Error 10
make[1]: Leaving directory `/home/mirage/mirage-www/src'
make: *** [build] Error 2
~~~

This is after configuring using

~~~
mirage@cubietruck:~/mirage-www$ make configure NET=3Dsocket PORT=3D8080
mirage configure src/config.ml  --unix
Mirage      Using specified config file: src/config.ml
Mirage      Compiling for target: Unix
Mirage      Processing: /home/mirage/mirage-www/src/config.ml
Mirage      =3D> rm -rf /home/mirage/mirage-www/src/_build/config.*
Mirage      =3D> cd /home/mirage/mirage-www/src && ocamlbuild -use-ocamlfin=
d -tags annot,bin_annot -pkg mirage config.cmxs
www         Using configuration: /home/mirage/mirage-www/src/config.ml
www         1 job [Dispatch.Main]
www         Installing OPAM packages.
www         =3D> opam --version
www         =3D> opam install --yes conduit cow cowabloga crunch cstruct io=
-page lwt mirage-conduit mirage-console mirage-fs-unix mirage-http mirage-t=
ypes mirage-unix tcpip vchan
[NOTE] Package conduit is already installed (current version is 0.7.2).
[NOTE] Package cow is already installed (current version is 1.2.1).
[NOTE] Package cowabloga is already installed (current version is 0.0.9).
[NOTE] Package crunch is already installed (current version is 1.4.0).
[NOTE] Package cstruct is already installed (current version is 1.5.0).
[NOTE] Package io-page is already installed (current version is 1.5.1).
[NOTE] Package lwt is already installed (current version is 2.4.8).
[NOTE] Package mirage-conduit is already installed (current version is 2.0.=
0).
[NOTE] Package mirage-console is already installed (current version is 2.1.=
3).
[NOTE] Package mirage-fs-unix is already installed (current version is 1.1.=
4).
[NOTE] Package mirage-http is already installed (current version is 2.1.0).
[NOTE] Package mirage-types is already installed (current version is 2.3.0).
[NOTE] Package mirage-unix is already installed (current version is 2.2.3).
[NOTE] Package tcpip is already installed (current version is 2.3.0).
[NOTE] Package vchan is already installed (current version is 2.0.2).
www         Generating: main.ml
~~~

The dom0 has 512M memory, maybe it would help to give it a bit more...
If I could only figure out how!  `sudo xl mem-set` fails with a rather
surprising error:

    libxl: error: libxl.c:4075:libxl_set_memory_target: cannot get memory i=
nfo from /local/domain/0/memory/static-max : No such file or directory

/M

--=20
Magnus Therning                      OpenPGP: 0xAB4DFBA4=20
email: magnus@therning.org   jabber: magnus@therning.org
twitter: magthe               http://therning.org/magnus

Never be afraid to try something new. Remember, amateurs built the
ark; professionals built the Titanic.
     -- Anonymous

--45Z9DzgjV8m4Oswq
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iEYEABECAAYFAlUUWjAACgkQiMWTaatN+6RU2wCgofr57hkRGpBFMB1JAUixYxvB
1pAAn3ZTeCw+KwZQAFqRMTYf/KHUkEfR
=ppHj
-----END PGP SIGNATURE-----

--45Z9DzgjV8m4Oswq--


--===============8232383805367357242==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============8232383805367357242==--


From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 09:36:06 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 09:36:06 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbQgJ-00025d-I6; Fri, 27 Mar 2015 09:35:59 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YbQgI-00025Y-UF
	for mirageos-devel@lists.xenproject.org; Fri, 27 Mar 2015 09:35:59 +0000
Received: from [193.109.254.147] by server-3.bemta-14.messagelabs.com id
	58/2A-21221-E7425155; Fri, 27 Mar 2015 09:35:58 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-3.tower-27.messagelabs.com!1427448957!13523537!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 18599 invoked from network); 27 Mar 2015 09:35:57 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-3.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 27 Mar 2015 09:35:57 -0000
Received: from [10.0.1.7] (cpc11-belf9-2-0-cust355.2-1.cable.virginm.net
	[86.24.61.100]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 17e272af;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Fri, 27 Mar 2015 09:35:56 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <20150326191255.GA3035@tatooine>
Date: Fri, 27 Mar 2015 09:35:56 +0000
Message-Id: <5FF1C614-C602-46FF-B5D8-54E94760B7D6@recoil.org>
References: <20150324052426.GA1017@tatooine>
	<AD0AC498-4EF2-4693-9B2C-5DC86C87A8D1@recoil.org>
	<20150324155755.GB4412@mtcomp.evidente.local>
	<20150326191255.GA3035@tatooine>
To: Magnus Therning <magnus@therning.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Compiling on/for ARM
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 26 Mar 2015, at 19:12, Magnus Therning <magnus@therning.org> wrote:
> ~~~
> 
> The dom0 has 512M memory, maybe it would help to give it a bit more...
> If I could only figure out how!  `sudo xl mem-set` fails with a rather
> surprising error:
> 
>    libxl: error: libxl.c:4075:libxl_set_memory_target: cannot get memory info from /local/domain/0/memory/static-max : No such file or directory
> 

You need to increase the amount of swap that dom0 has in the traditional way:

    sudo dd if=/dev/zero of=/swapfile bs=1024 count=512k
    sudo mkswap /swapfile
    sudo swapon /swapfile

and then add to /etc/fstab so it persists on reboot:

/swapfile none swap sw 0 0 

The mirage-arm-builder could automate this via an LVM partition on boot (so that it doesn't eat up the precious root filesystem space).  Feel free to patch that into the repository or create an issue on https://github.com/mirage/xen-arm-builder/issues to remind someone else to do it in the future.

-anil


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 09:36:06 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 09:36:06 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbQgJ-00025d-I6; Fri, 27 Mar 2015 09:35:59 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YbQgI-00025Y-UF
	for mirageos-devel@lists.xenproject.org; Fri, 27 Mar 2015 09:35:59 +0000
Received: from [193.109.254.147] by server-3.bemta-14.messagelabs.com id
	58/2A-21221-E7425155; Fri, 27 Mar 2015 09:35:58 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-3.tower-27.messagelabs.com!1427448957!13523537!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 18599 invoked from network); 27 Mar 2015 09:35:57 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-3.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 27 Mar 2015 09:35:57 -0000
Received: from [10.0.1.7] (cpc11-belf9-2-0-cust355.2-1.cable.virginm.net
	[86.24.61.100]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 17e272af;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Fri, 27 Mar 2015 09:35:56 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <20150326191255.GA3035@tatooine>
Date: Fri, 27 Mar 2015 09:35:56 +0000
Message-Id: <5FF1C614-C602-46FF-B5D8-54E94760B7D6@recoil.org>
References: <20150324052426.GA1017@tatooine>
	<AD0AC498-4EF2-4693-9B2C-5DC86C87A8D1@recoil.org>
	<20150324155755.GB4412@mtcomp.evidente.local>
	<20150326191255.GA3035@tatooine>
To: Magnus Therning <magnus@therning.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Compiling on/for ARM
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 26 Mar 2015, at 19:12, Magnus Therning <magnus@therning.org> wrote:
> ~~~
> 
> The dom0 has 512M memory, maybe it would help to give it a bit more...
> If I could only figure out how!  `sudo xl mem-set` fails with a rather
> surprising error:
> 
>    libxl: error: libxl.c:4075:libxl_set_memory_target: cannot get memory info from /local/domain/0/memory/static-max : No such file or directory
> 

You need to increase the amount of swap that dom0 has in the traditional way:

    sudo dd if=/dev/zero of=/swapfile bs=1024 count=512k
    sudo mkswap /swapfile
    sudo swapon /swapfile

and then add to /etc/fstab so it persists on reboot:

/swapfile none swap sw 0 0 

The mirage-arm-builder could automate this via an LVM partition on boot (so that it doesn't eat up the precious root filesystem space).  Feel free to patch that into the repository or create an issue on https://github.com/mirage/xen-arm-builder/issues to remind someone else to do it in the future.

-anil


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 10:21:11 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 10:21:11 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbRNw-0004Qv-Ml; Fri, 27 Mar 2015 10:21:04 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <lars.kurth.xen@gmail.com>)
	id 1YbRNv-0004Ms-5I; Fri, 27 Mar 2015 10:21:03 +0000
Received: from [85.158.139.211] by server-2.bemta-5.messagelabs.com id
	64/9F-12190-E0F25155; Fri, 27 Mar 2015 10:21:02 +0000
X-Env-Sender: lars.kurth.xen@gmail.com
X-Msg-Ref: server-9.tower-206.messagelabs.com!1427451660!12053812!1
X-Originating-IP: [209.85.212.176]
X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG,
	HTML_MESSAGE,ML_RADAR_SPEW_LINKS_8,spamassassin: 
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 16700 invoked from network); 27 Mar 2015 10:21:00 -0000
Received: from mail-wi0-f176.google.com (HELO mail-wi0-f176.google.com)
	(209.85.212.176)
	by server-9.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	27 Mar 2015 10:21:00 -0000
Received: by wibbg6 with SMTP id bg6so20890320wib.0;
	Fri, 27 Mar 2015 03:21:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:content-type:subject:message-id:date:to:mime-version;
	bh=nkKkFa8yxAkbnVkzg8znU40yWVpdzMCV0aMoNcuYhEs=;
	b=CW9yqKh1QbpFglgTOPrz8WG5Su4gNg0xD90sgLvboCHaGGHfcY12za47+jOEE9/H32
	2OLRvFYhQLzAhEpOTvpIPBPwIuMdz5pdz8yVM8Su66WXXxcAlKBv8TGbeVBBf+Ebn16p
	Ho3ajcn0iWfIFmSvp+Rl+CZATh2C9R/DiFTubyJ0Y+KpAa/ywkKa9O/rx+pSHvtafi3w
	mUXplW2sJzbLZluqkoRnr6EIV9IeSg2fZ8qaJV3YtfEkp36m+QQWySwoNmT6y2Mi5/4D
	BN4Hph+d+DJcycP9uM/rRe+NoL0FCOxxWhmvJfra58K79YPMJkl9vXpTXXd8sRLsZcvY
	qWnA==
X-Received: by 10.194.190.10 with SMTP id gm10mr36477186wjc.91.1427451660103; 
	Fri, 27 Mar 2015 03:21:00 -0700 (PDT)
Received: from [192.168.0.8] (97e5522d.skybroadband.com. [151.229.82.45])
	by mx.google.com with ESMTPSA id w8sm2193749wja.4.2015.03.27.03.20.58
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Fri, 27 Mar 2015 03:20:59 -0700 (PDT)
From: Lars Kurth <lars.kurth.xen@gmail.com>
Message-Id: <FCCD3435-A715-4B75-89F0-99AA25A22141@gmail.com>
Date: Fri, 27 Mar 2015 10:20:57 +0000
To: xen-devel <xen-devel@lists.xen.org>, xen-users@lists.xenproject.org,
	mirageos-devel <mirageos-devel@lists.xenproject.org>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
X-Mailer: Apple Mail (2.2070.6)
Subject: [MirageOS-devel] Upcoming CfP's (April & May)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============9012655277434727708=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============9012655277434727708==
Content-Type: multipart/alternative; boundary="Apple-Mail=_7EDABBA7-B055-408D-BE65-E7581F5F8488"


--Apple-Mail=_7EDABBA7-B055-408D-BE65-E7581F5F8488
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hi all,
just a reminder of CFP deadlines that are coming up in April - May. If =
you want to submit and need a reminder for any of the events, let me =
know and I will forward you a calendar reminder.
Regards
Lars

March 31st:
openSUSE Conference <https://events.opensuse.org/conference/osc15>, May =
01-04, Den Haag, Netherlands
April 15th:
SouthEast Linux Fest =
<https://docs.google.com/forms/d/1eftBuALrrIDTPYZvHEfWODOD8jGXhFgJmnsVZGt8=
6Y0/viewform>, June 12-14, 2015, Charlotte, NC, USA
April 17th:
LISA '15 <https://www.usenix.org/conferences/calls-for-papers>, November =
8-13, 2015, Washington, D.C., USA
May 1st: all events in the same week in Seattle, WA, USA the week of Aug =
17=20
Xen Project Developer Summit =
<http://events.linuxfoundation.org/events/xen-project-developer-summit>
Linux Plumbers <https://linuxplumbersconf.org/2015/participate/#cfmc>
ContainerCon =
<http://events.linuxfoundation.org//events/containercon/program/cfp>
CloudOpen =
<http://events.linuxfoundation.org//events/cloudopen-north-america/program=
/cfp>
LinuxCon =
<http://events.linuxfoundation.org//events/linuxcon-north-america/program/=
cfp>
KVM Forum <http://events.linuxfoundation.org/events/kvm-forum>
There may be more at http://events.linuxfoundation.org/ =
<http://events.linuxfoundation.org/>
May 11th
OSCON Europe <http://lanyrd.com/2015/oscon-europe/calls/qcykz/>, Oct =
26-28 , Amsterdam, Netherlands =E2=80=A6 note that this is the first =
OSCON in Europe


--Apple-Mail=_7EDABBA7-B055-408D-BE65-E7581F5F8488
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div style=3D"font-family: Calibri, sans-serif; font-size: =
14px;" class=3D"">Hi all,</div><div style=3D"font-family: Calibri, =
sans-serif; font-size: 14px;" class=3D"">just a reminder of CFP =
deadlines that are coming up in April - May. If you want to submit and =
need a reminder for any of the events, let me know and I will forward =
you a calendar reminder.</div><div style=3D"font-family: Calibri, =
sans-serif; font-size: 14px;" class=3D"">Regards</div><div =
style=3D"font-family: Calibri, sans-serif; font-size: 14px;" =
class=3D"">Lars</div><div style=3D"font-family: Calibri, sans-serif; =
font-size: 14px;" class=3D""><br class=3D""></div><div =
style=3D"font-family: Calibri, sans-serif; font-size: 14px;" =
class=3D"">March 31st:</div><ul style=3D"font-family: Calibri, =
sans-serif; font-size: 14px;" class=3D""><li class=3D""><a =
href=3D"https://events.opensuse.org/conference/osc15" class=3D"">openSUSE =
Conference</a>,&nbsp;May 01-04, Den Haag, Netherlands</li></ul><div =
style=3D"font-family: Calibri, sans-serif; font-size: 14px;" =
class=3D"">April 15th:</div><ul style=3D"font-family: Calibri, =
sans-serif; font-size: 14px;" class=3D""><li class=3D""><a =
href=3D"https://docs.google.com/forms/d/1eftBuALrrIDTPYZvHEfWODOD8jGXhFgJm=
nsVZGt86Y0/viewform" class=3D"">SouthEast Linux Fest</a>,&nbsp;June =
12-14, 2015,&nbsp;Charlotte, NC, USA</li></ul><div style=3D"font-family: =
Calibri, sans-serif; font-size: 14px;" class=3D"">April 17th:</div><ul =
style=3D"font-family: Calibri, sans-serif; font-size: 14px;" =
class=3D""><li class=3D""><a =
href=3D"https://www.usenix.org/conferences/calls-for-papers" =
class=3D"">LISA '15</a>,&nbsp;November 8-13, 2015, Washington, D.C., =
USA</li></ul><div style=3D"font-family: Calibri, sans-serif; font-size: =
14px;" class=3D"">May 1st: all events in the same week in Seattle, WA, =
USA the week of Aug 17&nbsp;</div><ul style=3D"font-family: Calibri, =
sans-serif; font-size: 14px;" class=3D""><li class=3D""><a =
href=3D"http://events.linuxfoundation.org/events/xen-project-developer-sum=
mit" class=3D""><b class=3D"">Xen Project Developer =
Summit</b></a></li><li class=3D""><a =
href=3D"https://linuxplumbersconf.org/2015/participate/#cfmc" =
class=3D""><b class=3D"">Linux Plumbers</b></a></li><li class=3D""><a =
href=3D"http://events.linuxfoundation.org//events/containercon/program/cfp=
" class=3D"">ContainerCon</a></li><li class=3D""><a =
href=3D"http://events.linuxfoundation.org//events/cloudopen-north-america/=
program/cfp" class=3D"">CloudOpen</a></li><li class=3D""><a =
href=3D"http://events.linuxfoundation.org//events/linuxcon-north-america/p=
rogram/cfp" class=3D"">LinuxCon</a></li><li class=3D""><a =
href=3D"http://events.linuxfoundation.org/events/kvm-forum" class=3D"">KVM=
 Forum</a></li><li class=3D"">There may be more at&nbsp;<a =
href=3D"http://events.linuxfoundation.org/" =
class=3D"">http://events.linuxfoundation.org/</a></li></ul><div =
style=3D"font-family: Calibri, sans-serif; font-size: 14px;" =
class=3D"">May 11th</div><ul style=3D"font-family: Calibri, sans-serif; =
font-size: 14px;" class=3D""><li class=3D""><a =
href=3D"http://lanyrd.com/2015/oscon-europe/calls/qcykz/" class=3D"">OSCON=
 Europe</a>,&nbsp;Oct 26-28 , Amsterdam, Netherlands =E2=80=A6 note that =
this is the first OSCON in Europe</li></ul><div class=3D""><br =
class=3D""></div></body></html>=

--Apple-Mail=_7EDABBA7-B055-408D-BE65-E7581F5F8488--


--===============9012655277434727708==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============9012655277434727708==--


From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 10:21:11 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 10:21:11 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbRNw-0004Qv-Ml; Fri, 27 Mar 2015 10:21:04 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <lars.kurth.xen@gmail.com>)
	id 1YbRNv-0004Ms-5I; Fri, 27 Mar 2015 10:21:03 +0000
Received: from [85.158.139.211] by server-2.bemta-5.messagelabs.com id
	64/9F-12190-E0F25155; Fri, 27 Mar 2015 10:21:02 +0000
X-Env-Sender: lars.kurth.xen@gmail.com
X-Msg-Ref: server-9.tower-206.messagelabs.com!1427451660!12053812!1
X-Originating-IP: [209.85.212.176]
X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG,
	HTML_MESSAGE,ML_RADAR_SPEW_LINKS_8,spamassassin: 
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 16700 invoked from network); 27 Mar 2015 10:21:00 -0000
Received: from mail-wi0-f176.google.com (HELO mail-wi0-f176.google.com)
	(209.85.212.176)
	by server-9.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	27 Mar 2015 10:21:00 -0000
Received: by wibbg6 with SMTP id bg6so20890320wib.0;
	Fri, 27 Mar 2015 03:21:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=from:content-type:subject:message-id:date:to:mime-version;
	bh=nkKkFa8yxAkbnVkzg8znU40yWVpdzMCV0aMoNcuYhEs=;
	b=CW9yqKh1QbpFglgTOPrz8WG5Su4gNg0xD90sgLvboCHaGGHfcY12za47+jOEE9/H32
	2OLRvFYhQLzAhEpOTvpIPBPwIuMdz5pdz8yVM8Su66WXXxcAlKBv8TGbeVBBf+Ebn16p
	Ho3ajcn0iWfIFmSvp+Rl+CZATh2C9R/DiFTubyJ0Y+KpAa/ywkKa9O/rx+pSHvtafi3w
	mUXplW2sJzbLZluqkoRnr6EIV9IeSg2fZ8qaJV3YtfEkp36m+QQWySwoNmT6y2Mi5/4D
	BN4Hph+d+DJcycP9uM/rRe+NoL0FCOxxWhmvJfra58K79YPMJkl9vXpTXXd8sRLsZcvY
	qWnA==
X-Received: by 10.194.190.10 with SMTP id gm10mr36477186wjc.91.1427451660103; 
	Fri, 27 Mar 2015 03:21:00 -0700 (PDT)
Received: from [192.168.0.8] (97e5522d.skybroadband.com. [151.229.82.45])
	by mx.google.com with ESMTPSA id w8sm2193749wja.4.2015.03.27.03.20.58
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Fri, 27 Mar 2015 03:20:59 -0700 (PDT)
From: Lars Kurth <lars.kurth.xen@gmail.com>
Message-Id: <FCCD3435-A715-4B75-89F0-99AA25A22141@gmail.com>
Date: Fri, 27 Mar 2015 10:20:57 +0000
To: xen-devel <xen-devel@lists.xen.org>, xen-users@lists.xenproject.org,
	mirageos-devel <mirageos-devel@lists.xenproject.org>
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
X-Mailer: Apple Mail (2.2070.6)
Subject: [MirageOS-devel] Upcoming CfP's (April & May)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============9012655277434727708=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============9012655277434727708==
Content-Type: multipart/alternative; boundary="Apple-Mail=_7EDABBA7-B055-408D-BE65-E7581F5F8488"


--Apple-Mail=_7EDABBA7-B055-408D-BE65-E7581F5F8488
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hi all,
just a reminder of CFP deadlines that are coming up in April - May. If =
you want to submit and need a reminder for any of the events, let me =
know and I will forward you a calendar reminder.
Regards
Lars

March 31st:
openSUSE Conference <https://events.opensuse.org/conference/osc15>, May =
01-04, Den Haag, Netherlands
April 15th:
SouthEast Linux Fest =
<https://docs.google.com/forms/d/1eftBuALrrIDTPYZvHEfWODOD8jGXhFgJmnsVZGt8=
6Y0/viewform>, June 12-14, 2015, Charlotte, NC, USA
April 17th:
LISA '15 <https://www.usenix.org/conferences/calls-for-papers>, November =
8-13, 2015, Washington, D.C., USA
May 1st: all events in the same week in Seattle, WA, USA the week of Aug =
17=20
Xen Project Developer Summit =
<http://events.linuxfoundation.org/events/xen-project-developer-summit>
Linux Plumbers <https://linuxplumbersconf.org/2015/participate/#cfmc>
ContainerCon =
<http://events.linuxfoundation.org//events/containercon/program/cfp>
CloudOpen =
<http://events.linuxfoundation.org//events/cloudopen-north-america/program=
/cfp>
LinuxCon =
<http://events.linuxfoundation.org//events/linuxcon-north-america/program/=
cfp>
KVM Forum <http://events.linuxfoundation.org/events/kvm-forum>
There may be more at http://events.linuxfoundation.org/ =
<http://events.linuxfoundation.org/>
May 11th
OSCON Europe <http://lanyrd.com/2015/oscon-europe/calls/qcykz/>, Oct =
26-28 , Amsterdam, Netherlands =E2=80=A6 note that this is the first =
OSCON in Europe


--Apple-Mail=_7EDABBA7-B055-408D-BE65-E7581F5F8488
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><div style=3D"font-family: Calibri, sans-serif; font-size: =
14px;" class=3D"">Hi all,</div><div style=3D"font-family: Calibri, =
sans-serif; font-size: 14px;" class=3D"">just a reminder of CFP =
deadlines that are coming up in April - May. If you want to submit and =
need a reminder for any of the events, let me know and I will forward =
you a calendar reminder.</div><div style=3D"font-family: Calibri, =
sans-serif; font-size: 14px;" class=3D"">Regards</div><div =
style=3D"font-family: Calibri, sans-serif; font-size: 14px;" =
class=3D"">Lars</div><div style=3D"font-family: Calibri, sans-serif; =
font-size: 14px;" class=3D""><br class=3D""></div><div =
style=3D"font-family: Calibri, sans-serif; font-size: 14px;" =
class=3D"">March 31st:</div><ul style=3D"font-family: Calibri, =
sans-serif; font-size: 14px;" class=3D""><li class=3D""><a =
href=3D"https://events.opensuse.org/conference/osc15" class=3D"">openSUSE =
Conference</a>,&nbsp;May 01-04, Den Haag, Netherlands</li></ul><div =
style=3D"font-family: Calibri, sans-serif; font-size: 14px;" =
class=3D"">April 15th:</div><ul style=3D"font-family: Calibri, =
sans-serif; font-size: 14px;" class=3D""><li class=3D""><a =
href=3D"https://docs.google.com/forms/d/1eftBuALrrIDTPYZvHEfWODOD8jGXhFgJm=
nsVZGt86Y0/viewform" class=3D"">SouthEast Linux Fest</a>,&nbsp;June =
12-14, 2015,&nbsp;Charlotte, NC, USA</li></ul><div style=3D"font-family: =
Calibri, sans-serif; font-size: 14px;" class=3D"">April 17th:</div><ul =
style=3D"font-family: Calibri, sans-serif; font-size: 14px;" =
class=3D""><li class=3D""><a =
href=3D"https://www.usenix.org/conferences/calls-for-papers" =
class=3D"">LISA '15</a>,&nbsp;November 8-13, 2015, Washington, D.C., =
USA</li></ul><div style=3D"font-family: Calibri, sans-serif; font-size: =
14px;" class=3D"">May 1st: all events in the same week in Seattle, WA, =
USA the week of Aug 17&nbsp;</div><ul style=3D"font-family: Calibri, =
sans-serif; font-size: 14px;" class=3D""><li class=3D""><a =
href=3D"http://events.linuxfoundation.org/events/xen-project-developer-sum=
mit" class=3D""><b class=3D"">Xen Project Developer =
Summit</b></a></li><li class=3D""><a =
href=3D"https://linuxplumbersconf.org/2015/participate/#cfmc" =
class=3D""><b class=3D"">Linux Plumbers</b></a></li><li class=3D""><a =
href=3D"http://events.linuxfoundation.org//events/containercon/program/cfp=
" class=3D"">ContainerCon</a></li><li class=3D""><a =
href=3D"http://events.linuxfoundation.org//events/cloudopen-north-america/=
program/cfp" class=3D"">CloudOpen</a></li><li class=3D""><a =
href=3D"http://events.linuxfoundation.org//events/linuxcon-north-america/p=
rogram/cfp" class=3D"">LinuxCon</a></li><li class=3D""><a =
href=3D"http://events.linuxfoundation.org/events/kvm-forum" class=3D"">KVM=
 Forum</a></li><li class=3D"">There may be more at&nbsp;<a =
href=3D"http://events.linuxfoundation.org/" =
class=3D"">http://events.linuxfoundation.org/</a></li></ul><div =
style=3D"font-family: Calibri, sans-serif; font-size: 14px;" =
class=3D"">May 11th</div><ul style=3D"font-family: Calibri, sans-serif; =
font-size: 14px;" class=3D""><li class=3D""><a =
href=3D"http://lanyrd.com/2015/oscon-europe/calls/qcykz/" class=3D"">OSCON=
 Europe</a>,&nbsp;Oct 26-28 , Amsterdam, Netherlands =E2=80=A6 note that =
this is the first OSCON in Europe</li></ul><div class=3D""><br =
class=3D""></div></body></html>=

--Apple-Mail=_7EDABBA7-B055-408D-BE65-E7581F5F8488--


--===============9012655277434727708==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============9012655277434727708==--


From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 15:16:43 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 15:16:43 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbVzx-0007NC-Eg; Fri, 27 Mar 2015 15:16:37 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YbVzw-0007N4-8G
	for mirageos-devel@lists.xenproject.org; Fri, 27 Mar 2015 15:16:36 +0000
Received: from [193.109.254.147] by server-8.bemta-14.messagelabs.com id
	B2/48-18377-35475155; Fri, 27 Mar 2015 15:16:35 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-7.tower-27.messagelabs.com!1427469394!13716347!1
X-Originating-IP: [74.125.82.46]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 4452 invoked from network); 27 Mar 2015 15:16:35 -0000
Received: from mail-wg0-f46.google.com (HELO mail-wg0-f46.google.com)
	(74.125.82.46)
	by server-7.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	27 Mar 2015 15:16:35 -0000
Received: by wgra20 with SMTP id a20so102414889wgr.3
	for <mirageos-devel@lists.xenproject.org>;
	Fri, 27 Mar 2015 08:16:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=G8yPvx2ZhXf6JONFXhNbuMQwujsfuMkGps0eH39+ZCA=;
	b=ZOIlw2Zea/VsJWvh9zGB6uQ6ssZ+HRXd8tB9BmtJohtTnqRPX/5Yb8sp4/DECs1uiM
	YsbrkCZEw9gO5hlYi5ocxmXZWs2JDfTkd1HKdHQkMQvNMSXVq1CU9HEvJ71xH5CttikK
	o5dukwwhRwYVEFvnkSUk71jWDwE27n0YjuimDfic5n4sUFGPXATKz/FAv7Cb7FJpoLCR
	W7wfgo8y5/e7OmdbTpBFBH1ZjR3L4sLTSk+PhqslcmTv58h13JqWt1ucKt6nGQO5te2W
	1fPh6hBT/4k3+Y1zBIHCo1OSzmSDFNVFFE4kcnXwEK8hNJZel4H+aY7ItaeNPmrhfFqk
	OI9Q==
X-Received: by 10.180.80.7 with SMTP id n7mr57456976wix.60.1427469394630;
	Fri, 27 Mar 2015 08:16:34 -0700 (PDT)
Received: from ?IPv6:2001:630:212:248:251b:fd07:916b:c72f?
	([2001:630:212:248:251b:fd07:916b:c72f])
	by mx.google.com with ESMTPSA id 17sm3226170wjt.45.2015.03.27.08.16.33
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Fri, 27 Mar 2015 08:16:33 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <CAAhS_v_0FJYStm60S=D4RO4B1t2of6wSCvg_4WXVRegqUv5WwA@mail.gmail.com>
Date: Fri, 27 Mar 2015 15:16:32 +0000
Message-Id: <B2308515-CF39-4DA2-A692-665437F23892@gazagnaire.org>
References: <CAAhS_v_0FJYStm60S=D4RO4B1t2of6wSCvg_4WXVRegqUv5WwA@mail.gmail.com>
To: david <unitedbiscuits@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Update on entropy
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi,

> And the question I am raising is: Are there objections to this? Did
> anyone want to code something that requires direct access to entropy
> sources (i.e. another RNG)? Did anyone want to make a separate entropy
> provider?

I think that's a good idea. We should still keep the modular approach of MirageOS (ie. having separate librarie(s) to deal with entropy) but I'm fine to remove the ENTROPY signature for V1 and V1_LWT as it doesn't bring much (apart from confusion it appears).

Thomas


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 15:16:43 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 15:16:43 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbVzx-0007NC-Eg; Fri, 27 Mar 2015 15:16:37 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YbVzw-0007N4-8G
	for mirageos-devel@lists.xenproject.org; Fri, 27 Mar 2015 15:16:36 +0000
Received: from [193.109.254.147] by server-8.bemta-14.messagelabs.com id
	B2/48-18377-35475155; Fri, 27 Mar 2015 15:16:35 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-7.tower-27.messagelabs.com!1427469394!13716347!1
X-Originating-IP: [74.125.82.46]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 4452 invoked from network); 27 Mar 2015 15:16:35 -0000
Received: from mail-wg0-f46.google.com (HELO mail-wg0-f46.google.com)
	(74.125.82.46)
	by server-7.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	27 Mar 2015 15:16:35 -0000
Received: by wgra20 with SMTP id a20so102414889wgr.3
	for <mirageos-devel@lists.xenproject.org>;
	Fri, 27 Mar 2015 08:16:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=G8yPvx2ZhXf6JONFXhNbuMQwujsfuMkGps0eH39+ZCA=;
	b=ZOIlw2Zea/VsJWvh9zGB6uQ6ssZ+HRXd8tB9BmtJohtTnqRPX/5Yb8sp4/DECs1uiM
	YsbrkCZEw9gO5hlYi5ocxmXZWs2JDfTkd1HKdHQkMQvNMSXVq1CU9HEvJ71xH5CttikK
	o5dukwwhRwYVEFvnkSUk71jWDwE27n0YjuimDfic5n4sUFGPXATKz/FAv7Cb7FJpoLCR
	W7wfgo8y5/e7OmdbTpBFBH1ZjR3L4sLTSk+PhqslcmTv58h13JqWt1ucKt6nGQO5te2W
	1fPh6hBT/4k3+Y1zBIHCo1OSzmSDFNVFFE4kcnXwEK8hNJZel4H+aY7ItaeNPmrhfFqk
	OI9Q==
X-Received: by 10.180.80.7 with SMTP id n7mr57456976wix.60.1427469394630;
	Fri, 27 Mar 2015 08:16:34 -0700 (PDT)
Received: from ?IPv6:2001:630:212:248:251b:fd07:916b:c72f?
	([2001:630:212:248:251b:fd07:916b:c72f])
	by mx.google.com with ESMTPSA id 17sm3226170wjt.45.2015.03.27.08.16.33
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Fri, 27 Mar 2015 08:16:33 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <CAAhS_v_0FJYStm60S=D4RO4B1t2of6wSCvg_4WXVRegqUv5WwA@mail.gmail.com>
Date: Fri, 27 Mar 2015 15:16:32 +0000
Message-Id: <B2308515-CF39-4DA2-A692-665437F23892@gazagnaire.org>
References: <CAAhS_v_0FJYStm60S=D4RO4B1t2of6wSCvg_4WXVRegqUv5WwA@mail.gmail.com>
To: david <unitedbiscuits@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Update on entropy
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi,

> And the question I am raising is: Are there objections to this? Did
> anyone want to code something that requires direct access to entropy
> sources (i.e. another RNG)? Did anyone want to make a separate entropy
> provider?

I think that's a good idea. We should still keep the modular approach of MirageOS (ie. having separate librarie(s) to deal with entropy) but I'm fine to remove the ENTROPY signature for V1 and V1_LWT as it doesn't bring much (apart from confusion it appears).

Thomas


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 15:23:36 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 15:23:36 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbW6h-0008TV-47; Fri, 27 Mar 2015 15:23:35 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <hannes@mehnert.org>) id 1YbW6f-0008TQ-Hx
	for mirageos-devel@lists.xenproject.org; Fri, 27 Mar 2015 15:23:33 +0000
Received: from [85.158.139.211] by server-1.bemta-5.messagelabs.com id
	28/0F-20070-4F575155; Fri, 27 Mar 2015 15:23:32 +0000
X-Env-Sender: hannes@mehnert.org
X-Msg-Ref: server-15.tower-206.messagelabs.com!1427469810!8810930!1
X-Originating-IP: [213.73.89.200]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 28167 invoked from network); 27 Mar 2015 15:23:30 -0000
Received: from mail.mehnert.org (HELO mail.mehnert.org) (213.73.89.200)
	by server-15.tower-206.messagelabs.com with DHE-RSA-AES256-SHA
	encrypted SMTP; 27 Mar 2015 15:23:30 -0000
Received: from [128.232.110.184] (c184.al.cl.cam.ac.uk [128.232.110.184])
	(using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
	(Client CN "hannes@mehnert.org", Issuer "mehnert root CA" (verified OK))
	by mail.mehnert.org (Postfix) with ESMTPS id 9111A1139
	for <mirageos-devel@lists.xenproject.org>;
	Fri, 27 Mar 2015 16:23:29 +0100 (CET)
Message-ID: <551575DC.4020803@mehnert.org>
Date: Fri, 27 Mar 2015 15:23:08 +0000
From: Hannes Mehnert <hannes@mehnert.org>
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: mirageos-devel@lists.xenproject.org
References: <84A7FEAD-26D0-4258-BDD1-AD6AAD10E8C7@gmail.com>
In-Reply-To: <84A7FEAD-26D0-4258-BDD1-AD6AAD10E8C7@gmail.com>
OpenPGP: id=DF7C28EE
Content-Length: 3518
Subject: Re: [MirageOS-devel] ask for outreachy program
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

LS0tLS1CRUdJTiBQR1AgU0lHTkVEIE1FU1NBR0UtLS0tLQpIYXNoOiBTSEEzODQKCkhpIENoZW5j
aGVuLAoKT24gMDMvMjUvMjAxNSAyMzo1MiwgQ2hlbmNoZW5aaGFvIHdyb3RlOgo+IEhpOiBNeSBu
YW1lIGlzIENoZW5jaGVuIFpoYW8uIEnigJltIGN1cnJlbnRseSBhIGZpcnN0IHllYXIgc3R1ZGVu
dAo+IGluIFVuaXZlcnNpdHkgb2YgV2F0ZXJsb28sIE1hdGggRmFjdWx0eS4gSSByZWFsbHkgcmVh
bGx5IHdhbnQgdG8gCj4gcGFydGljaXBhdGUgaW4gWGVuIE91dHJlYWNoeSBQcm9ncmFtIGFuZCBt
YWtlIHNvbWUgY29udHJpYnV0aW9ucwo+IHRvIG9wZW4gc291cmNlIGFuZCBJIHRoaW5rIHRoZSBw
cm9qZWN0IOKAnENvbW1hbmQgbGluZSB1dGlsaXRpZXMiIAo+IGZhc2NpbmF0ZXMgbWUgYSBsb3Qu
IEkgaGF2ZSBsZWFybmVkIFB5dGhvbiBhbmQgU2NoZW1lIGluCj4gc2Nob29sLGJ1dCBqdXN0IHNv
bWUgYmFzaWMgZnVuY3Rpb25zLkkgd2FzIHdvbmRlcmluZyBpZiBJIGNhbgo+IHBhcnRpY2lwYXRl
IGluIGl0IGFuZCBtYWtlIHNvbWUgY29udHJpYnV0aW9ucyBmcm9tIG5vdyBvbi4gV291bGQgaXQK
PiBwb3NzaWJsZSB0byBnaXZlIG1lIHRvIHNvbWUgc3VnZ2VzdGlvbnMgdG8gc3RhcnQgYW5kIHRl
bGwgbWUgd2hhdAo+IHNob3VsZCBJIGxlYXJuIGFuZCBkbyBub3c/IFRoYW5rIHlvdSxhbmQgSSBs
b29rIGZvcndhcmQgdG8gaGVhcmluZwo+IGZyb20geW91LgoKVGhhdCBzb3VuZHMgZ3JlYXQuICBJ
biB3aGljaCBhcmVhIHdvdWxkIHlvdSBsaWtlIHRvIGRldmVsb3AgdXRpbGl0aWVzCihuZXR3b3Jr
aW5nPyBzZWN1cml0eT8gLi4/KS4KSSBhcHByZWNpYXRlIHRvIGhhdmUgY29tbWFuZC1saW5lIHV0
aWxpdGllcyBhcyBvcGVuc3NsIHJlcGxhY2VtZW50cwooYm90aCBUTFMgW3NfY2xpZW50L3Nfc2Vy
dmVyXSwgYnV0IGFsc28gY3J5cHRvZ3JhcGhpYyBwcmltaXRpdmVzCltkZ3N0Ly4uXSksIGFsc28g
YSBuZXRjYXQvc29jYXQgd291bGQgYmUgbmljZSB0byBoYXZlICh3aXRoIGJvdGgKdGVybWluYWwg
YW5kIGFsc28gc3RydWN0dXJlZCBvdXRwdXQgbW9kZSAoanNvbj8pKS4KCllvdSBjb3VsZCBzdGFy
dCBieSBpbnN0YWxsaW5nIE9DYW1sIGFuZCBvcGFtLCBhbmQgZnVydGhlcm1vcmUgc29tZSBvZgp0
aGUgTWlyYWdlT1MgbGlicmFyaWVzLiAgSWYgeW91IHRoZW4gaW5zdGFsbCBhbmQgbG9vayB0aHJv
dWdoIGNtZGxpbmVyCihodHRwOi8vZXJyYXRpcXVlLmNoL3NvZnR3YXJlL2NtZGxpbmVyL2RvYy9D
bWRsaW5lcikgYW5kIHNlZSBpZiB5b3UKY2FuIGltcGxlbWVudCBzb21lIGJhc2ljIGxpYnJhcnkg
LS0gbWF5YmUgYSBtZDVzdW0sIHdoaWNoIHRha2VzIGEKc3RyaW5nIG9yIGEgZmlsZSBhbmQgb3V0
cHV0cyBpdHMgTUQ1IGRpZ2VzdCBhcyBhIHN0YXJ0IChNRDUgaXMgZm9yCmV4YW1wbGUgYXZhaWxh
YmxlIGFzIHBhcnQgb2YgdGhlIG5vY3J5cHRvIGxpYnJhcnkKaHR0cHM6Ly9naXRodWIuY29tL21p
cmxlZnQvb2NhbWwtbm9jcnlwdG8vYmxvYi9tYXN0ZXIvc3JjL25vY3J5cHRvLm1saSNMMTI2KT8K
CgpEb24ndCBoZXNpdGF0ZSB0byBhc2sgZnVydGhlciBxdWVzdGlvbnMgb24gdGhpcyBsaXN0LAoK
aGFubmVzCi0tLS0tQkVHSU4gUEdQIFNJR05BVFVSRS0tLS0tClZlcnNpb246IEdudVBHIHYyCgpp
UUljQkFFQkNRQUdCUUpWRlhYY0FBb0pFTHlKWllqZmZDanVGMEVRQUpsRnlxZExZSU9XTE5vb1lQ
dkFCWjJ2CnVkYnBtNFZIWnlBOWQvQ3ZDNHdmUlY1R2xvcm5DQmo2K1psQWVsQ0dqWTljenJ0QkhO
UU4xOE1wODlmZDJoaWwKanFvOFdFQVFTb01OaGQ3a1lCc01uZUc5ZTJEY2JCYVc1TVppeDB3eDhB
SlBudVBiUGJmRi9JN1NtcGk5U2xGcApxZkptak5Pd3F3ckY3S2RnVjZyUzg3VFB6eTJxVnhCYTJK
RGV0aDBWM1cwcnBHNmlOTHVNdW5GT1dwVUFTdjFBCkhPNUdrZHN4Q3FtVEhKeFRQYjdGUCsxOUgy
N3Vua2xldVk4WlR6dkRSUDJTMHNMOERQVWZ0TStrY2czWjVwdW4KVHEwSyt1cytaUk1xR1ZGMENr
SHJXT2hncVBTYnJiendENGZYMElZa2VZK1VITDBqVFp5clpBam04QUZoRDdCUAo5RkY5MDdNQktn
OEJndjRHUVl1VGhVYkZnRmVkNUVpVktXT0NQUEN3Q2pUMGIrc2wvb0hoOFNxemNZbVU0blVMCnVC
ZlpkbzgyVEVaRnloaE9HV2dVeTQ3NkQ0REQwbTVuU0tlSUdlaVpwOXRiQ0E4cEszYXBxdEQyaURp
SGVFZzYKcEl0eG1Wb25zNVozbDJ1TXQreitoN2dwQ2FYUlQ3Ui9wdG5XOFBUNEhMV1NVOEhLZ0M0
Mys1ZVg2STM2VHdteAozUFc2cU1KY2pQOE10T3ZuQVdZODkzb0h1MUNUVkNVeWpqc1p0RU5HcjlC
Zlh5MTFmODBjS09sRGg2QWdGK2V1CjA5ZWI3ODdCSWNoVXJwUUFUYUFVMEdsaWp0NlNWOUk2UWNo
cHBOSnVpNGVxc25QYVRtMjh6Z09zWDN5a2s1RUsKczFpbUZNWkk4WDZPeXpkeCtQbkkKPVFUdHUK
LS0tLS1FTkQgUEdQIFNJR05BVFVSRS0tLS0tCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fXwpNaXJhZ2VPUy1kZXZlbCBtYWlsaW5nIGxpc3QKTWlyYWdlT1Mt
ZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cDovL2xpc3RzLnhlbnByb2plY3Qub3JnL2Nn
aS1iaW4vbWFpbG1hbi9saXN0aW5mby9taXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 15:23:36 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 15:23:36 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbW6h-0008TV-47; Fri, 27 Mar 2015 15:23:35 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <hannes@mehnert.org>) id 1YbW6f-0008TQ-Hx
	for mirageos-devel@lists.xenproject.org; Fri, 27 Mar 2015 15:23:33 +0000
Received: from [85.158.139.211] by server-1.bemta-5.messagelabs.com id
	28/0F-20070-4F575155; Fri, 27 Mar 2015 15:23:32 +0000
X-Env-Sender: hannes@mehnert.org
X-Msg-Ref: server-15.tower-206.messagelabs.com!1427469810!8810930!1
X-Originating-IP: [213.73.89.200]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 28167 invoked from network); 27 Mar 2015 15:23:30 -0000
Received: from mail.mehnert.org (HELO mail.mehnert.org) (213.73.89.200)
	by server-15.tower-206.messagelabs.com with DHE-RSA-AES256-SHA
	encrypted SMTP; 27 Mar 2015 15:23:30 -0000
Received: from [128.232.110.184] (c184.al.cl.cam.ac.uk [128.232.110.184])
	(using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
	(Client CN "hannes@mehnert.org", Issuer "mehnert root CA" (verified OK))
	by mail.mehnert.org (Postfix) with ESMTPS id 9111A1139
	for <mirageos-devel@lists.xenproject.org>;
	Fri, 27 Mar 2015 16:23:29 +0100 (CET)
Message-ID: <551575DC.4020803@mehnert.org>
Date: Fri, 27 Mar 2015 15:23:08 +0000
From: Hannes Mehnert <hannes@mehnert.org>
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: mirageos-devel@lists.xenproject.org
References: <84A7FEAD-26D0-4258-BDD1-AD6AAD10E8C7@gmail.com>
In-Reply-To: <84A7FEAD-26D0-4258-BDD1-AD6AAD10E8C7@gmail.com>
OpenPGP: id=DF7C28EE
Content-Length: 3518
Subject: Re: [MirageOS-devel] ask for outreachy program
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

LS0tLS1CRUdJTiBQR1AgU0lHTkVEIE1FU1NBR0UtLS0tLQpIYXNoOiBTSEEzODQKCkhpIENoZW5j
aGVuLAoKT24gMDMvMjUvMjAxNSAyMzo1MiwgQ2hlbmNoZW5aaGFvIHdyb3RlOgo+IEhpOiBNeSBu
YW1lIGlzIENoZW5jaGVuIFpoYW8uIEnigJltIGN1cnJlbnRseSBhIGZpcnN0IHllYXIgc3R1ZGVu
dAo+IGluIFVuaXZlcnNpdHkgb2YgV2F0ZXJsb28sIE1hdGggRmFjdWx0eS4gSSByZWFsbHkgcmVh
bGx5IHdhbnQgdG8gCj4gcGFydGljaXBhdGUgaW4gWGVuIE91dHJlYWNoeSBQcm9ncmFtIGFuZCBt
YWtlIHNvbWUgY29udHJpYnV0aW9ucwo+IHRvIG9wZW4gc291cmNlIGFuZCBJIHRoaW5rIHRoZSBw
cm9qZWN0IOKAnENvbW1hbmQgbGluZSB1dGlsaXRpZXMiIAo+IGZhc2NpbmF0ZXMgbWUgYSBsb3Qu
IEkgaGF2ZSBsZWFybmVkIFB5dGhvbiBhbmQgU2NoZW1lIGluCj4gc2Nob29sLGJ1dCBqdXN0IHNv
bWUgYmFzaWMgZnVuY3Rpb25zLkkgd2FzIHdvbmRlcmluZyBpZiBJIGNhbgo+IHBhcnRpY2lwYXRl
IGluIGl0IGFuZCBtYWtlIHNvbWUgY29udHJpYnV0aW9ucyBmcm9tIG5vdyBvbi4gV291bGQgaXQK
PiBwb3NzaWJsZSB0byBnaXZlIG1lIHRvIHNvbWUgc3VnZ2VzdGlvbnMgdG8gc3RhcnQgYW5kIHRl
bGwgbWUgd2hhdAo+IHNob3VsZCBJIGxlYXJuIGFuZCBkbyBub3c/IFRoYW5rIHlvdSxhbmQgSSBs
b29rIGZvcndhcmQgdG8gaGVhcmluZwo+IGZyb20geW91LgoKVGhhdCBzb3VuZHMgZ3JlYXQuICBJ
biB3aGljaCBhcmVhIHdvdWxkIHlvdSBsaWtlIHRvIGRldmVsb3AgdXRpbGl0aWVzCihuZXR3b3Jr
aW5nPyBzZWN1cml0eT8gLi4/KS4KSSBhcHByZWNpYXRlIHRvIGhhdmUgY29tbWFuZC1saW5lIHV0
aWxpdGllcyBhcyBvcGVuc3NsIHJlcGxhY2VtZW50cwooYm90aCBUTFMgW3NfY2xpZW50L3Nfc2Vy
dmVyXSwgYnV0IGFsc28gY3J5cHRvZ3JhcGhpYyBwcmltaXRpdmVzCltkZ3N0Ly4uXSksIGFsc28g
YSBuZXRjYXQvc29jYXQgd291bGQgYmUgbmljZSB0byBoYXZlICh3aXRoIGJvdGgKdGVybWluYWwg
YW5kIGFsc28gc3RydWN0dXJlZCBvdXRwdXQgbW9kZSAoanNvbj8pKS4KCllvdSBjb3VsZCBzdGFy
dCBieSBpbnN0YWxsaW5nIE9DYW1sIGFuZCBvcGFtLCBhbmQgZnVydGhlcm1vcmUgc29tZSBvZgp0
aGUgTWlyYWdlT1MgbGlicmFyaWVzLiAgSWYgeW91IHRoZW4gaW5zdGFsbCBhbmQgbG9vayB0aHJv
dWdoIGNtZGxpbmVyCihodHRwOi8vZXJyYXRpcXVlLmNoL3NvZnR3YXJlL2NtZGxpbmVyL2RvYy9D
bWRsaW5lcikgYW5kIHNlZSBpZiB5b3UKY2FuIGltcGxlbWVudCBzb21lIGJhc2ljIGxpYnJhcnkg
LS0gbWF5YmUgYSBtZDVzdW0sIHdoaWNoIHRha2VzIGEKc3RyaW5nIG9yIGEgZmlsZSBhbmQgb3V0
cHV0cyBpdHMgTUQ1IGRpZ2VzdCBhcyBhIHN0YXJ0IChNRDUgaXMgZm9yCmV4YW1wbGUgYXZhaWxh
YmxlIGFzIHBhcnQgb2YgdGhlIG5vY3J5cHRvIGxpYnJhcnkKaHR0cHM6Ly9naXRodWIuY29tL21p
cmxlZnQvb2NhbWwtbm9jcnlwdG8vYmxvYi9tYXN0ZXIvc3JjL25vY3J5cHRvLm1saSNMMTI2KT8K
CgpEb24ndCBoZXNpdGF0ZSB0byBhc2sgZnVydGhlciBxdWVzdGlvbnMgb24gdGhpcyBsaXN0LAoK
aGFubmVzCi0tLS0tQkVHSU4gUEdQIFNJR05BVFVSRS0tLS0tClZlcnNpb246IEdudVBHIHYyCgpp
UUljQkFFQkNRQUdCUUpWRlhYY0FBb0pFTHlKWllqZmZDanVGMEVRQUpsRnlxZExZSU9XTE5vb1lQ
dkFCWjJ2CnVkYnBtNFZIWnlBOWQvQ3ZDNHdmUlY1R2xvcm5DQmo2K1psQWVsQ0dqWTljenJ0QkhO
UU4xOE1wODlmZDJoaWwKanFvOFdFQVFTb01OaGQ3a1lCc01uZUc5ZTJEY2JCYVc1TVppeDB3eDhB
SlBudVBiUGJmRi9JN1NtcGk5U2xGcApxZkptak5Pd3F3ckY3S2RnVjZyUzg3VFB6eTJxVnhCYTJK
RGV0aDBWM1cwcnBHNmlOTHVNdW5GT1dwVUFTdjFBCkhPNUdrZHN4Q3FtVEhKeFRQYjdGUCsxOUgy
N3Vua2xldVk4WlR6dkRSUDJTMHNMOERQVWZ0TStrY2czWjVwdW4KVHEwSyt1cytaUk1xR1ZGMENr
SHJXT2hncVBTYnJiendENGZYMElZa2VZK1VITDBqVFp5clpBam04QUZoRDdCUAo5RkY5MDdNQktn
OEJndjRHUVl1VGhVYkZnRmVkNUVpVktXT0NQUEN3Q2pUMGIrc2wvb0hoOFNxemNZbVU0blVMCnVC
ZlpkbzgyVEVaRnloaE9HV2dVeTQ3NkQ0REQwbTVuU0tlSUdlaVpwOXRiQ0E4cEszYXBxdEQyaURp
SGVFZzYKcEl0eG1Wb25zNVozbDJ1TXQreitoN2dwQ2FYUlQ3Ui9wdG5XOFBUNEhMV1NVOEhLZ0M0
Mys1ZVg2STM2VHdteAozUFc2cU1KY2pQOE10T3ZuQVdZODkzb0h1MUNUVkNVeWpqc1p0RU5HcjlC
Zlh5MTFmODBjS09sRGg2QWdGK2V1CjA5ZWI3ODdCSWNoVXJwUUFUYUFVMEdsaWp0NlNWOUk2UWNo
cHBOSnVpNGVxc25QYVRtMjh6Z09zWDN5a2s1RUsKczFpbUZNWkk4WDZPeXpkeCtQbkkKPVFUdHUK
LS0tLS1FTkQgUEdQIFNJR05BVFVSRS0tLS0tCgpfX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fXwpNaXJhZ2VPUy1kZXZlbCBtYWlsaW5nIGxpc3QKTWlyYWdlT1Mt
ZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcKaHR0cDovL2xpc3RzLnhlbnByb2plY3Qub3JnL2Nn
aS1iaW4vbWFpbG1hbi9saXN0aW5mby9taXJhZ2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 16:49:22 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 16:49:22 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbXRd-0002eS-Tt; Fri, 27 Mar 2015 16:49:17 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YbXRc-0002e4-Oq
	for mirageos-devel@lists.xenproject.org; Fri, 27 Mar 2015 16:49:16 +0000
Received: from [85.158.137.68] by server-10.bemta-3.messagelabs.com id
	8E/A2-14673-C0A85155; Fri, 27 Mar 2015 16:49:16 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-12.tower-31.messagelabs.com!1427474955!11677112!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 15032 invoked from network); 27 Mar 2015 16:49:15 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-12.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 27 Mar 2015 16:49:15 -0000
Received: from [10.0.1.7] (cpc11-belf9-2-0-cust355.2-1.cable.virginm.net
	[86.24.61.100]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 61ddefe6;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Fri, 27 Mar 2015 16:49:14 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <B2308515-CF39-4DA2-A692-665437F23892@gazagnaire.org>
Date: Fri, 27 Mar 2015 16:49:14 +0000
Message-Id: <810118AE-496E-4629-80C4-B27E62F648DB@recoil.org>
References: <CAAhS_v_0FJYStm60S=D4RO4B1t2of6wSCvg_4WXVRegqUv5WwA@mail.gmail.com>
	<B2308515-CF39-4DA2-A692-665437F23892@gazagnaire.org>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: david <unitedbiscuits@gmail.com>,
	mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Update on entropy
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 27 Mar 2015, at 15:16, Thomas Gazagnaire <thomas@gazagnaire.org> wrote:
> 
> Hi,
> 
>> And the question I am raising is: Are there objections to this? Did
>> anyone want to code something that requires direct access to entropy
>> sources (i.e. another RNG)? Did anyone want to make a separate entropy
>> provider?
> 
> I think that's a good idea. We should still keep the modular approach of MirageOS (ie. having separate librarie(s) to deal with entropy) but I'm fine to remove the ENTROPY signature for V1 and V1_LWT as it doesn't bring much (apart from confusion it appears).

I'm also fine with this approach.  Just one thing that would be good
to define would be which our "singleton" devices are.  In the case of
entropy, it's extremely unlikely that you would want to have a 
non-shared mixer, so perhaps we should enforce that explicitly in the
Mirage config eDSL...

It would also be good to port the TCP/IP stack to using nocrypto at
the same time, to give it the IP ID and TCP ISN random sources, and
to have more than one consumer outside of the TLS stack.  This is a
very localised patch -- it currently uses the Random module directly.

-anil
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 16:49:22 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 16:49:22 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbXRd-0002eS-Tt; Fri, 27 Mar 2015 16:49:17 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YbXRc-0002e4-Oq
	for mirageos-devel@lists.xenproject.org; Fri, 27 Mar 2015 16:49:16 +0000
Received: from [85.158.137.68] by server-10.bemta-3.messagelabs.com id
	8E/A2-14673-C0A85155; Fri, 27 Mar 2015 16:49:16 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-12.tower-31.messagelabs.com!1427474955!11677112!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 15032 invoked from network); 27 Mar 2015 16:49:15 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-12.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 27 Mar 2015 16:49:15 -0000
Received: from [10.0.1.7] (cpc11-belf9-2-0-cust355.2-1.cable.virginm.net
	[86.24.61.100]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 61ddefe6;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Fri, 27 Mar 2015 16:49:14 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <B2308515-CF39-4DA2-A692-665437F23892@gazagnaire.org>
Date: Fri, 27 Mar 2015 16:49:14 +0000
Message-Id: <810118AE-496E-4629-80C4-B27E62F648DB@recoil.org>
References: <CAAhS_v_0FJYStm60S=D4RO4B1t2of6wSCvg_4WXVRegqUv5WwA@mail.gmail.com>
	<B2308515-CF39-4DA2-A692-665437F23892@gazagnaire.org>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: david <unitedbiscuits@gmail.com>,
	mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Update on entropy
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 27 Mar 2015, at 15:16, Thomas Gazagnaire <thomas@gazagnaire.org> wrote:
> 
> Hi,
> 
>> And the question I am raising is: Are there objections to this? Did
>> anyone want to code something that requires direct access to entropy
>> sources (i.e. another RNG)? Did anyone want to make a separate entropy
>> provider?
> 
> I think that's a good idea. We should still keep the modular approach of MirageOS (ie. having separate librarie(s) to deal with entropy) but I'm fine to remove the ENTROPY signature for V1 and V1_LWT as it doesn't bring much (apart from confusion it appears).

I'm also fine with this approach.  Just one thing that would be good
to define would be which our "singleton" devices are.  In the case of
entropy, it's extremely unlikely that you would want to have a 
non-shared mixer, so perhaps we should enforce that explicitly in the
Mirage config eDSL...

It would also be good to port the TCP/IP stack to using nocrypto at
the same time, to give it the IP ID and TCP ISN random sources, and
to have more than one consumer outside of the TLS stack.  This is a
very localised patch -- it currently uses the Random module directly.

-anil
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 17:01:53 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 17:01:53 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbXdo-0005hv-52; Fri, 27 Mar 2015 17:01:52 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YbXdm-0005hg-Ot
	for mirageos-devel@lists.xenproject.org; Fri, 27 Mar 2015 17:01:50 +0000
Received: from [193.109.254.147] by server-5.bemta-14.messagelabs.com id
	7D/C6-04120-EFC85155; Fri, 27 Mar 2015 17:01:50 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-13.tower-27.messagelabs.com!1427475709!13787818!1
X-Originating-IP: [74.125.82.46]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 31052 invoked from network); 27 Mar 2015 17:01:49 -0000
Received: from mail-wg0-f46.google.com (HELO mail-wg0-f46.google.com)
	(74.125.82.46)
	by server-13.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	27 Mar 2015 17:01:49 -0000
Received: by wgbgs4 with SMTP id gs4so14837724wgb.0
	for <mirageos-devel@lists.xenproject.org>;
	Fri, 27 Mar 2015 10:01:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=9mAB2JHHMeyUGm9j8bZoVKiZkwsTybQ6V6T7jC59/ME=;
	b=hzIIElkEfdoPgEtKhv3+t4fPBrirEbUKOaAagkoJ9OeATp9/rsR/9VafNcf9iX968Z
	rCtjd9LmJXrNWdn/WB50LJsc5YPTXRyHHWaAhamTD8MJOPNtky5oxpJBVutUkOe4d7NC
	xAcdDUyRs/eourzqXhVYXQvU5pxoK48w+n1l7LflWZMXIATxgVK138Tg60eG8rJ58KvG
	RaQ7T5w0fs1SfLbRP+XkX+huie72NnSL1GEZ69oyIdd0awe5DEf2KQ0pjssctAc+L/8d
	N/pRs6BaT43n4NkmftHObAZ8+uiy98WQFqZVUvl617jgDXu2tZQ25ycRogZrLQiMHCUd
	MwoA==
X-Received: by 10.180.95.135 with SMTP id dk7mr23554814wib.64.1427475709178;
	Fri, 27 Mar 2015 10:01:49 -0700 (PDT)
Received: from ?IPv6:2001:630:212:248:251b:fd07:916b:c72f?
	([2001:630:212:248:251b:fd07:916b:c72f])
	by mx.google.com with ESMTPSA id at4sm3632264wjc.16.2015.03.27.10.01.47
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Fri, 27 Mar 2015 10:01:48 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <810118AE-496E-4629-80C4-B27E62F648DB@recoil.org>
Date: Fri, 27 Mar 2015 17:01:47 +0000
Message-Id: <E3C42CFC-C9A5-47DF-9D08-65319C90E1E1@gazagnaire.org>
References: <CAAhS_v_0FJYStm60S=D4RO4B1t2of6wSCvg_4WXVRegqUv5WwA@mail.gmail.com>
	<B2308515-CF39-4DA2-A692-665437F23892@gazagnaire.org>
	<810118AE-496E-4629-80C4-B27E62F648DB@recoil.org>
To: Anil Madhavapeddy <anil@recoil.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: david <unitedbiscuits@gmail.com>,
	mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Update on entropy
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


> It would also be good to port the TCP/IP stack to using nocrypto at
> the same time, to give it the IP ID and TCP ISN random sources, and
> to have more than one consumer outside of the TLS stack.  This is a
> very localised patch -- it currently uses the Random module directly.

Just a quick note on that: Hannes and David pointed out that this means we'll depend on gmp for any unikernel using the TCP/IP stack. It's a big chunk of C code (which takes ages to compile on the cubiboard), so that would be nice to keep the ability to use the normal Random if wanted.

Thomas 
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 17:01:53 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 17:01:53 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbXdo-0005hv-52; Fri, 27 Mar 2015 17:01:52 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YbXdm-0005hg-Ot
	for mirageos-devel@lists.xenproject.org; Fri, 27 Mar 2015 17:01:50 +0000
Received: from [193.109.254.147] by server-5.bemta-14.messagelabs.com id
	7D/C6-04120-EFC85155; Fri, 27 Mar 2015 17:01:50 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-13.tower-27.messagelabs.com!1427475709!13787818!1
X-Originating-IP: [74.125.82.46]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 31052 invoked from network); 27 Mar 2015 17:01:49 -0000
Received: from mail-wg0-f46.google.com (HELO mail-wg0-f46.google.com)
	(74.125.82.46)
	by server-13.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	27 Mar 2015 17:01:49 -0000
Received: by wgbgs4 with SMTP id gs4so14837724wgb.0
	for <mirageos-devel@lists.xenproject.org>;
	Fri, 27 Mar 2015 10:01:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=9mAB2JHHMeyUGm9j8bZoVKiZkwsTybQ6V6T7jC59/ME=;
	b=hzIIElkEfdoPgEtKhv3+t4fPBrirEbUKOaAagkoJ9OeATp9/rsR/9VafNcf9iX968Z
	rCtjd9LmJXrNWdn/WB50LJsc5YPTXRyHHWaAhamTD8MJOPNtky5oxpJBVutUkOe4d7NC
	xAcdDUyRs/eourzqXhVYXQvU5pxoK48w+n1l7LflWZMXIATxgVK138Tg60eG8rJ58KvG
	RaQ7T5w0fs1SfLbRP+XkX+huie72NnSL1GEZ69oyIdd0awe5DEf2KQ0pjssctAc+L/8d
	N/pRs6BaT43n4NkmftHObAZ8+uiy98WQFqZVUvl617jgDXu2tZQ25ycRogZrLQiMHCUd
	MwoA==
X-Received: by 10.180.95.135 with SMTP id dk7mr23554814wib.64.1427475709178;
	Fri, 27 Mar 2015 10:01:49 -0700 (PDT)
Received: from ?IPv6:2001:630:212:248:251b:fd07:916b:c72f?
	([2001:630:212:248:251b:fd07:916b:c72f])
	by mx.google.com with ESMTPSA id at4sm3632264wjc.16.2015.03.27.10.01.47
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Fri, 27 Mar 2015 10:01:48 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <810118AE-496E-4629-80C4-B27E62F648DB@recoil.org>
Date: Fri, 27 Mar 2015 17:01:47 +0000
Message-Id: <E3C42CFC-C9A5-47DF-9D08-65319C90E1E1@gazagnaire.org>
References: <CAAhS_v_0FJYStm60S=D4RO4B1t2of6wSCvg_4WXVRegqUv5WwA@mail.gmail.com>
	<B2308515-CF39-4DA2-A692-665437F23892@gazagnaire.org>
	<810118AE-496E-4629-80C4-B27E62F648DB@recoil.org>
To: Anil Madhavapeddy <anil@recoil.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: david <unitedbiscuits@gmail.com>,
	mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Update on entropy
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


> It would also be good to port the TCP/IP stack to using nocrypto at
> the same time, to give it the IP ID and TCP ISN random sources, and
> to have more than one consumer outside of the TLS stack.  This is a
> very localised patch -- it currently uses the Random module directly.

Just a quick note on that: Hannes and David pointed out that this means we'll depend on gmp for any unikernel using the TCP/IP stack. It's a big chunk of C code (which takes ages to compile on the cubiboard), so that would be nice to keep the ability to use the normal Random if wanted.

Thomas 
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 17:08:15 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 17:08:15 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbXjz-00075E-G9; Fri, 27 Mar 2015 17:08:15 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YbXjx-00074t-SV
	for mirageos-devel@lists.xenproject.org; Fri, 27 Mar 2015 17:08:13 +0000
Received: from [85.158.139.211] by server-12.bemta-5.messagelabs.com id
	E7/D5-22236-D7E85155; Fri, 27 Mar 2015 17:08:13 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-15.tower-206.messagelabs.com!1427476092!8837992!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 9655 invoked from network); 27 Mar 2015 17:08:12 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-15.tower-206.messagelabs.com with DHE-RSA-AES256-SHA
	encrypted SMTP; 27 Mar 2015 17:08:12 -0000
Received: from [10.0.1.7] (cpc11-belf9-2-0-cust355.2-1.cable.virginm.net
	[86.24.61.100]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 8f241d09;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Fri, 27 Mar 2015 17:08:11 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <E3C42CFC-C9A5-47DF-9D08-65319C90E1E1@gazagnaire.org>
Date: Fri, 27 Mar 2015 17:08:11 +0000
Message-Id: <625B5F8E-505C-43CF-AD2E-5BACE02A7A50@recoil.org>
References: <CAAhS_v_0FJYStm60S=D4RO4B1t2of6wSCvg_4WXVRegqUv5WwA@mail.gmail.com>
	<B2308515-CF39-4DA2-A692-665437F23892@gazagnaire.org>
	<810118AE-496E-4629-80C4-B27E62F648DB@recoil.org>
	<E3C42CFC-C9A5-47DF-9D08-65319C90E1E1@gazagnaire.org>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: david <unitedbiscuits@gmail.com>,
	mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Update on entropy
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 27 Mar 2015, at 17:01, Thomas Gazagnaire <thomas@gazagnaire.org> wrote:
> 
> 
>> It would also be good to port the TCP/IP stack to using nocrypto at
>> the same time, to give it the IP ID and TCP ISN random sources, and
>> to have more than one consumer outside of the TLS stack.  This is a
>> very localised patch -- it currently uses the Random module directly.
> 
> Just a quick note on that: Hannes and David pointed out that this means we'll depend on gmp for any unikernel using the TCP/IP stack. It's a big chunk of C code (which takes ages to compile on the cubiboard), so that would be nice to keep the ability to use the normal Random if wanted.

It should still be a functor rather than using the Random toplevel
module directly, though.  We could just supply a compatibility shim
to map the Random interface into a nocrypto-style one.

-anil
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 17:08:15 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 17:08:15 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbXjz-00075E-G9; Fri, 27 Mar 2015 17:08:15 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YbXjx-00074t-SV
	for mirageos-devel@lists.xenproject.org; Fri, 27 Mar 2015 17:08:13 +0000
Received: from [85.158.139.211] by server-12.bemta-5.messagelabs.com id
	E7/D5-22236-D7E85155; Fri, 27 Mar 2015 17:08:13 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-15.tower-206.messagelabs.com!1427476092!8837992!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 9655 invoked from network); 27 Mar 2015 17:08:12 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-15.tower-206.messagelabs.com with DHE-RSA-AES256-SHA
	encrypted SMTP; 27 Mar 2015 17:08:12 -0000
Received: from [10.0.1.7] (cpc11-belf9-2-0-cust355.2-1.cable.virginm.net
	[86.24.61.100]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 8f241d09;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Fri, 27 Mar 2015 17:08:11 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <E3C42CFC-C9A5-47DF-9D08-65319C90E1E1@gazagnaire.org>
Date: Fri, 27 Mar 2015 17:08:11 +0000
Message-Id: <625B5F8E-505C-43CF-AD2E-5BACE02A7A50@recoil.org>
References: <CAAhS_v_0FJYStm60S=D4RO4B1t2of6wSCvg_4WXVRegqUv5WwA@mail.gmail.com>
	<B2308515-CF39-4DA2-A692-665437F23892@gazagnaire.org>
	<810118AE-496E-4629-80C4-B27E62F648DB@recoil.org>
	<E3C42CFC-C9A5-47DF-9D08-65319C90E1E1@gazagnaire.org>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: david <unitedbiscuits@gmail.com>,
	mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Update on entropy
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 27 Mar 2015, at 17:01, Thomas Gazagnaire <thomas@gazagnaire.org> wrote:
> 
> 
>> It would also be good to port the TCP/IP stack to using nocrypto at
>> the same time, to give it the IP ID and TCP ISN random sources, and
>> to have more than one consumer outside of the TLS stack.  This is a
>> very localised patch -- it currently uses the Random module directly.
> 
> Just a quick note on that: Hannes and David pointed out that this means we'll depend on gmp for any unikernel using the TCP/IP stack. It's a big chunk of C code (which takes ages to compile on the cubiboard), so that would be nice to keep the ability to use the normal Random if wanted.

It should still be a functor rather than using the Random toplevel
module directly, though.  We could just supply a compatibility shim
to map the Random interface into a nocrypto-style one.

-anil
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 17:10:23 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 17:10:23 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbXm1-0007ja-Nz; Fri, 27 Mar 2015 17:10:21 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <richard.mortier@gmail.com>) id 1YbXm1-0007iP-4t
	for MirageOS-devel@lists.xenproject.org; Fri, 27 Mar 2015 17:10:21 +0000
Received: from [85.158.139.211] by server-1.bemta-5.messagelabs.com id
	B8/EB-20070-CFE85155; Fri, 27 Mar 2015 17:10:20 +0000
X-Env-Sender: richard.mortier@gmail.com
X-Msg-Ref: server-4.tower-206.messagelabs.com!1427476219!12211598!1
X-Originating-IP: [209.85.212.182]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 13667 invoked from network); 27 Mar 2015 17:10:19 -0000
Received: from mail-wi0-f182.google.com (HELO mail-wi0-f182.google.com)
	(209.85.212.182)
	by server-4.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	27 Mar 2015 17:10:19 -0000
Received: by wibgn9 with SMTP id gn9so39896557wib.1
	for <MirageOS-devel@lists.xenproject.org>;
	Fri, 27 Mar 2015 10:10:19 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=hIjUp+6OQ23QWsYfrzTGO0TTATkTxIbLQNnxvyVnlfQ=;
	b=f9KWbpNYVuCfS35FPt6yKK+eo54JQYbwRQsR2Qrtp+0gsAPFtQHl10iBXgGBB1quCn
	pf5F/N9uJIFKiQkHzBuewQ+HoPIsEGYH9G1flCtMgDFDd16ZX/HaSo5ExbpFjYtHf9vO
	079u0jJjhzXUpIeceYlkWCsa+w0N1WliogfFzXDYwwlCfjkiD9Hsuo0EuvHXTeCtRt/E
	Gwp66ldRmi4HeNzqvM7FIWYoKuC4MAVZBMGstlQmFEfJDxq4eJLlTMz7bmwWjzaw7qee
	OeUAnMzNnUyl1t70nbfsFvIKzesDw6V9I+46+7rCNZhr7gpoiqUkqiCUhvRuu5ilIFlR
	yj4Q==
X-Received: by 10.180.8.98 with SMTP id q2mr56647668wia.80.1427476219490;
	Fri, 27 Mar 2015 10:10:19 -0700 (PDT)
Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com.
	[209.85.212.174])
	by mx.google.com with ESMTPSA id ch6sm3680442wjc.3.2015.03.27.10.10.18
	for <MirageOS-devel@lists.xenproject.org>
	(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Fri, 27 Mar 2015 10:10:19 -0700 (PDT)
Received: by wibbg6 with SMTP id bg6so34243857wib.0
	for <MirageOS-devel@lists.xenproject.org>;
	Fri, 27 Mar 2015 10:10:18 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.194.19.10 with SMTP id a10mr40107065wje.153.1427476218469;
	Fri, 27 Mar 2015 10:10:18 -0700 (PDT)
Received: by 10.28.154.139 with HTTP; Fri, 27 Mar 2015 10:10:18 -0700 (PDT)
Date: Fri, 27 Mar 2015 17:10:18 +0000
Message-ID: <CAN2Hq065aw19pzHh7_SFEMqMXDJgbZvtPqBLwYdTcffci4Jhpw@mail.gmail.com>
From: Richard Mortier <richard.mortier@cl.cam.ac.uk>
To: mirageos-devel <MirageOS-devel@lists.xenproject.org>
Subject: [MirageOS-devel] Concerning testing network protocols
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

All;

I've been wondering about something recently and thought I'd throw the
question open as I'm a bit stumped :)

At present we have many implementations of various network protocol
wire format de/serializing code, which is rather unsatisfactory.  It
seems nice to reduce these to one implementation per protocol.

We also have a pcap trace parsing library, `pcap-format`. Currently,
some libraries use `pcap-format` as part of their unit testing, eg.,
`ocaml-dns`.

I've been playing around hacking in support to `pcap-format` to use
`ocaml-dns` to parse captured DNS packets, and have hit an obvious
snag: using `ocaml-dns` to parse DNS packets in `pcap-format` perhaps
invalidates using `pcap-format` to unit test `ocaml-dns`, and
certainly leads to issues when trying to build and install each of
them.

So-- how should this be handled? A few (almost wholly unsatisfactory)
options came to mind:

0. Leave things alone and simply be careful about when unit tests in
protocol libraries are turned on.

1. Split all wire format de/serialization code out of each protocol
into a distinct library. Link against this library in both
`pcap-format` and `ocaml-<protocol>`. Unit test the protocol
implementation separately (perhaps via property-based testing which
might not require a separate implementation, perhaps relying on
completely distinct implementations like `libpcap`).

2. Make `pcap-format` the only place all wire format parsing is done,
then much as 1.

3. Simply stop protocol unit tests depending on `pcap-format`, forcing
them to express tests differently (perhaps as property-based tests
that don't need a separate implementation of `parse`/`marshall`).

Thoughts?

-- 
Richard Mortier
richard.mortier@cl.cam.ac.uk

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 17:10:23 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 17:10:23 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbXm1-0007ja-Nz; Fri, 27 Mar 2015 17:10:21 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <richard.mortier@gmail.com>) id 1YbXm1-0007iP-4t
	for MirageOS-devel@lists.xenproject.org; Fri, 27 Mar 2015 17:10:21 +0000
Received: from [85.158.139.211] by server-1.bemta-5.messagelabs.com id
	B8/EB-20070-CFE85155; Fri, 27 Mar 2015 17:10:20 +0000
X-Env-Sender: richard.mortier@gmail.com
X-Msg-Ref: server-4.tower-206.messagelabs.com!1427476219!12211598!1
X-Originating-IP: [209.85.212.182]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 13667 invoked from network); 27 Mar 2015 17:10:19 -0000
Received: from mail-wi0-f182.google.com (HELO mail-wi0-f182.google.com)
	(209.85.212.182)
	by server-4.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	27 Mar 2015 17:10:19 -0000
Received: by wibgn9 with SMTP id gn9so39896557wib.1
	for <MirageOS-devel@lists.xenproject.org>;
	Fri, 27 Mar 2015 10:10:19 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=hIjUp+6OQ23QWsYfrzTGO0TTATkTxIbLQNnxvyVnlfQ=;
	b=f9KWbpNYVuCfS35FPt6yKK+eo54JQYbwRQsR2Qrtp+0gsAPFtQHl10iBXgGBB1quCn
	pf5F/N9uJIFKiQkHzBuewQ+HoPIsEGYH9G1flCtMgDFDd16ZX/HaSo5ExbpFjYtHf9vO
	079u0jJjhzXUpIeceYlkWCsa+w0N1WliogfFzXDYwwlCfjkiD9Hsuo0EuvHXTeCtRt/E
	Gwp66ldRmi4HeNzqvM7FIWYoKuC4MAVZBMGstlQmFEfJDxq4eJLlTMz7bmwWjzaw7qee
	OeUAnMzNnUyl1t70nbfsFvIKzesDw6V9I+46+7rCNZhr7gpoiqUkqiCUhvRuu5ilIFlR
	yj4Q==
X-Received: by 10.180.8.98 with SMTP id q2mr56647668wia.80.1427476219490;
	Fri, 27 Mar 2015 10:10:19 -0700 (PDT)
Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com.
	[209.85.212.174])
	by mx.google.com with ESMTPSA id ch6sm3680442wjc.3.2015.03.27.10.10.18
	for <MirageOS-devel@lists.xenproject.org>
	(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Fri, 27 Mar 2015 10:10:19 -0700 (PDT)
Received: by wibbg6 with SMTP id bg6so34243857wib.0
	for <MirageOS-devel@lists.xenproject.org>;
	Fri, 27 Mar 2015 10:10:18 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.194.19.10 with SMTP id a10mr40107065wje.153.1427476218469;
	Fri, 27 Mar 2015 10:10:18 -0700 (PDT)
Received: by 10.28.154.139 with HTTP; Fri, 27 Mar 2015 10:10:18 -0700 (PDT)
Date: Fri, 27 Mar 2015 17:10:18 +0000
Message-ID: <CAN2Hq065aw19pzHh7_SFEMqMXDJgbZvtPqBLwYdTcffci4Jhpw@mail.gmail.com>
From: Richard Mortier <richard.mortier@cl.cam.ac.uk>
To: mirageos-devel <MirageOS-devel@lists.xenproject.org>
Subject: [MirageOS-devel] Concerning testing network protocols
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

All;

I've been wondering about something recently and thought I'd throw the
question open as I'm a bit stumped :)

At present we have many implementations of various network protocol
wire format de/serializing code, which is rather unsatisfactory.  It
seems nice to reduce these to one implementation per protocol.

We also have a pcap trace parsing library, `pcap-format`. Currently,
some libraries use `pcap-format` as part of their unit testing, eg.,
`ocaml-dns`.

I've been playing around hacking in support to `pcap-format` to use
`ocaml-dns` to parse captured DNS packets, and have hit an obvious
snag: using `ocaml-dns` to parse DNS packets in `pcap-format` perhaps
invalidates using `pcap-format` to unit test `ocaml-dns`, and
certainly leads to issues when trying to build and install each of
them.

So-- how should this be handled? A few (almost wholly unsatisfactory)
options came to mind:

0. Leave things alone and simply be careful about when unit tests in
protocol libraries are turned on.

1. Split all wire format de/serialization code out of each protocol
into a distinct library. Link against this library in both
`pcap-format` and `ocaml-<protocol>`. Unit test the protocol
implementation separately (perhaps via property-based testing which
might not require a separate implementation, perhaps relying on
completely distinct implementations like `libpcap`).

2. Make `pcap-format` the only place all wire format parsing is done,
then much as 1.

3. Simply stop protocol unit tests depending on `pcap-format`, forcing
them to express tests differently (perhaps as property-based tests
that don't need a separate implementation of `parse`/`marshall`).

Thoughts?

-- 
Richard Mortier
richard.mortier@cl.cam.ac.uk

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 17:17:49 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 17:17:49 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbXtD-0000tU-BA; Fri, 27 Mar 2015 17:17:47 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YbXtC-0000tP-Hm
	for MirageOS-devel@lists.xenproject.org; Fri, 27 Mar 2015 17:17:46 +0000
Received: from [85.158.139.211] by server-9.bemta-5.messagelabs.com id
	7A/35-19899-9B095155; Fri, 27 Mar 2015 17:17:45 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-7.tower-206.messagelabs.com!1427476665!12238618!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 3073 invoked from network); 27 Mar 2015 17:17:45 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-7.tower-206.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 27 Mar 2015 17:17:45 -0000
Received: from [10.0.1.7] (cpc11-belf9-2-0-cust355.2-1.cable.virginm.net
	[86.24.61.100]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 191fbb72;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Fri, 27 Mar 2015 17:17:44 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAN2Hq065aw19pzHh7_SFEMqMXDJgbZvtPqBLwYdTcffci4Jhpw@mail.gmail.com>
Date: Fri, 27 Mar 2015 17:17:43 +0000
Message-Id: <A4EDEA26-B3FB-4F1C-A254-A122776F6056@recoil.org>
References: <CAN2Hq065aw19pzHh7_SFEMqMXDJgbZvtPqBLwYdTcffci4Jhpw@mail.gmail.com>
To: Richard Mortier <richard.mortier@cl.cam.ac.uk>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel <MirageOS-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Concerning testing network protocols
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


> On 27 Mar 2015, at 17:10, Richard Mortier <richard.mortier@cl.cam.ac.uk> wrote:
> 
> All;
> 
> I've been wondering about something recently and thought I'd throw the
> question open as I'm a bit stumped :)
> 
> At present we have many implementations of various network protocol
> wire format de/serializing code, which is rather unsatisfactory.  It
> seems nice to reduce these to one implementation per protocol.
> 
> We also have a pcap trace parsing library, `pcap-format`. Currently,
> some libraries use `pcap-format` as part of their unit testing, eg.,
> `ocaml-dns`.
> 
> I've been playing around hacking in support to `pcap-format` to use
> `ocaml-dns` to parse captured DNS packets, and have hit an obvious
> snag: using `ocaml-dns` to parse DNS packets in `pcap-format` perhaps
> invalidates using `pcap-format` to unit test `ocaml-dns`, and
> certainly leads to issues when trying to build and install each of
> them.
> 
> So-- how should this be handled? A few (almost wholly unsatisfactory)
> options came to mind:
> 
> 0. Leave things alone and simply be careful about when unit tests in
> protocol libraries are turned on.

I dont think this an option, since building with tests should not
introduce cycles into the build graph.

> 1. Split all wire format de/serialization code out of each protocol
> into a distinct library. Link against this library in both
> `pcap-format` and `ocaml-<protocol>`. Unit test the protocol
> implementation separately (perhaps via property-based testing which
> might not require a separate implementation, perhaps relying on
> completely distinct implementations like `libpcap`).

This one sounds best to me.  Although, it sounds like there's a
certain amount of feature creep going into pcap-format.

Why not just parse the raw pcap format in pcap-format, and have a new
pcap-format-analysis library that depends on both pcap-format and ocaml-dns?

-anil
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 17:17:49 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 17:17:49 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbXtD-0000tU-BA; Fri, 27 Mar 2015 17:17:47 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YbXtC-0000tP-Hm
	for MirageOS-devel@lists.xenproject.org; Fri, 27 Mar 2015 17:17:46 +0000
Received: from [85.158.139.211] by server-9.bemta-5.messagelabs.com id
	7A/35-19899-9B095155; Fri, 27 Mar 2015 17:17:45 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-7.tower-206.messagelabs.com!1427476665!12238618!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 3073 invoked from network); 27 Mar 2015 17:17:45 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-7.tower-206.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 27 Mar 2015 17:17:45 -0000
Received: from [10.0.1.7] (cpc11-belf9-2-0-cust355.2-1.cable.virginm.net
	[86.24.61.100]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 191fbb72;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Fri, 27 Mar 2015 17:17:44 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAN2Hq065aw19pzHh7_SFEMqMXDJgbZvtPqBLwYdTcffci4Jhpw@mail.gmail.com>
Date: Fri, 27 Mar 2015 17:17:43 +0000
Message-Id: <A4EDEA26-B3FB-4F1C-A254-A122776F6056@recoil.org>
References: <CAN2Hq065aw19pzHh7_SFEMqMXDJgbZvtPqBLwYdTcffci4Jhpw@mail.gmail.com>
To: Richard Mortier <richard.mortier@cl.cam.ac.uk>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel <MirageOS-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Concerning testing network protocols
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


> On 27 Mar 2015, at 17:10, Richard Mortier <richard.mortier@cl.cam.ac.uk> wrote:
> 
> All;
> 
> I've been wondering about something recently and thought I'd throw the
> question open as I'm a bit stumped :)
> 
> At present we have many implementations of various network protocol
> wire format de/serializing code, which is rather unsatisfactory.  It
> seems nice to reduce these to one implementation per protocol.
> 
> We also have a pcap trace parsing library, `pcap-format`. Currently,
> some libraries use `pcap-format` as part of their unit testing, eg.,
> `ocaml-dns`.
> 
> I've been playing around hacking in support to `pcap-format` to use
> `ocaml-dns` to parse captured DNS packets, and have hit an obvious
> snag: using `ocaml-dns` to parse DNS packets in `pcap-format` perhaps
> invalidates using `pcap-format` to unit test `ocaml-dns`, and
> certainly leads to issues when trying to build and install each of
> them.
> 
> So-- how should this be handled? A few (almost wholly unsatisfactory)
> options came to mind:
> 
> 0. Leave things alone and simply be careful about when unit tests in
> protocol libraries are turned on.

I dont think this an option, since building with tests should not
introduce cycles into the build graph.

> 1. Split all wire format de/serialization code out of each protocol
> into a distinct library. Link against this library in both
> `pcap-format` and `ocaml-<protocol>`. Unit test the protocol
> implementation separately (perhaps via property-based testing which
> might not require a separate implementation, perhaps relying on
> completely distinct implementations like `libpcap`).

This one sounds best to me.  Although, it sounds like there's a
certain amount of feature creep going into pcap-format.

Why not just parse the raw pcap format in pcap-format, and have a new
pcap-format-analysis library that depends on both pcap-format and ocaml-dns?

-anil
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 17:19:06 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 17:19:06 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbXuU-0000wr-Ge; Fri, 27 Mar 2015 17:19:06 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YbXuT-0000wV-BV
	for MirageOS-devel@lists.xenproject.org; Fri, 27 Mar 2015 17:19:05 +0000
Received: from [85.158.139.211] by server-1.bemta-5.messagelabs.com id
	B3/C8-20070-80195155; Fri, 27 Mar 2015 17:19:04 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-6.tower-206.messagelabs.com!1427476743!12190685!1
X-Originating-IP: [209.85.212.181]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 7413 invoked from network); 27 Mar 2015 17:19:03 -0000
Received: from mail-wi0-f181.google.com (HELO mail-wi0-f181.google.com)
	(209.85.212.181)
	by server-6.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	27 Mar 2015 17:19:03 -0000
Received: by wixm2 with SMTP id m2so39252830wix.0
	for <MirageOS-devel@lists.xenproject.org>;
	Fri, 27 Mar 2015 10:19:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=HfiN1PR0BwIqHqA9QScmTT2Ry/x2X7gxYcW69Z6UTZs=;
	b=fQ3gekQ00X6yH4fGpFj4M3FE7VXhubV8aBXtz1p1hJBqU6bivUyKNvQxfqlRgl4eFz
	ZDFTTiBTAe0ZlqNRj+Tb00fOjxGmfJxcmLI1G9Aa5RCKeR0Dlx4FlOBzfq5iu9xDigrq
	JBsO2ALA3ykhGMTFpywAF9UScqzHR8+BXwHfvAuX+r/mzKZdvT1kR/FsupK5dKTvn3en
	QPHp7ZtRPa4iTDKDuZ855nRW2JHxVnqaTjCI22KLhDWZGsHAG/x1UhQcfxpmxW7VH5bs
	LF/i796wZ1clFzMO/cRJRSA/89UnDED9PG7xIyDQ5tn0bMjoyfxLZaUkLRBDuiAGFFle
	FItg==
X-Received: by 10.194.109.9 with SMTP id ho9mr39083181wjb.29.1427476743503;
	Fri, 27 Mar 2015 10:19:03 -0700 (PDT)
Received: from ?IPv6:2001:630:212:248:251b:fd07:916b:c72f?
	([2001:630:212:248:251b:fd07:916b:c72f])
	by mx.google.com with ESMTPSA id nh17sm3689006wic.5.2015.03.27.10.19.02
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Fri, 27 Mar 2015 10:19:02 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <CAN2Hq065aw19pzHh7_SFEMqMXDJgbZvtPqBLwYdTcffci4Jhpw@mail.gmail.com>
Date: Fri, 27 Mar 2015 17:19:01 +0000
Message-Id: <756BB013-A9D5-4050-9924-96E6438FCD21@gazagnaire.org>
References: <CAN2Hq065aw19pzHh7_SFEMqMXDJgbZvtPqBLwYdTcffci4Jhpw@mail.gmail.com>
To: Richard Mortier <richard.mortier@cl.cam.ac.uk>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel <MirageOS-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Concerning testing network protocols
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi,

> 1. Split all wire format de/serialization code out of each protocol
> into a distinct library. Link against this library in both
> `pcap-format` and `ocaml-<protocol>`. Unit test the protocol
> implementation separately (perhaps via property-based testing which
> might not require a separate implementation, perhaps relying on
> completely distinct implementations like `libpcap`).

In my opinion, that's the preferable way to go. It's sometime not very easy and practical to split the repository into pieces, but hopefully opam 1.2.1 let you add `opam` and `foo-format.opam` to host two opam packages in the same repository.

Best,
Thomas

> 2. Make `pcap-format` the only place all wire format parsing is done,
> then much as 1.
> 
> 3. Simply stop protocol unit tests depending on `pcap-format`, forcing
> them to express tests differently (perhaps as property-based tests
> that don't need a separate implementation of `parse`/`marshall`).
> 
> Thoughts?
> 
> -- 
> Richard Mortier
> richard.mortier@cl.cam.ac.uk
> 
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 17:19:06 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 17:19:06 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbXuU-0000wr-Ge; Fri, 27 Mar 2015 17:19:06 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YbXuT-0000wV-BV
	for MirageOS-devel@lists.xenproject.org; Fri, 27 Mar 2015 17:19:05 +0000
Received: from [85.158.139.211] by server-1.bemta-5.messagelabs.com id
	B3/C8-20070-80195155; Fri, 27 Mar 2015 17:19:04 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-6.tower-206.messagelabs.com!1427476743!12190685!1
X-Originating-IP: [209.85.212.181]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 7413 invoked from network); 27 Mar 2015 17:19:03 -0000
Received: from mail-wi0-f181.google.com (HELO mail-wi0-f181.google.com)
	(209.85.212.181)
	by server-6.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	27 Mar 2015 17:19:03 -0000
Received: by wixm2 with SMTP id m2so39252830wix.0
	for <MirageOS-devel@lists.xenproject.org>;
	Fri, 27 Mar 2015 10:19:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=HfiN1PR0BwIqHqA9QScmTT2Ry/x2X7gxYcW69Z6UTZs=;
	b=fQ3gekQ00X6yH4fGpFj4M3FE7VXhubV8aBXtz1p1hJBqU6bivUyKNvQxfqlRgl4eFz
	ZDFTTiBTAe0ZlqNRj+Tb00fOjxGmfJxcmLI1G9Aa5RCKeR0Dlx4FlOBzfq5iu9xDigrq
	JBsO2ALA3ykhGMTFpywAF9UScqzHR8+BXwHfvAuX+r/mzKZdvT1kR/FsupK5dKTvn3en
	QPHp7ZtRPa4iTDKDuZ855nRW2JHxVnqaTjCI22KLhDWZGsHAG/x1UhQcfxpmxW7VH5bs
	LF/i796wZ1clFzMO/cRJRSA/89UnDED9PG7xIyDQ5tn0bMjoyfxLZaUkLRBDuiAGFFle
	FItg==
X-Received: by 10.194.109.9 with SMTP id ho9mr39083181wjb.29.1427476743503;
	Fri, 27 Mar 2015 10:19:03 -0700 (PDT)
Received: from ?IPv6:2001:630:212:248:251b:fd07:916b:c72f?
	([2001:630:212:248:251b:fd07:916b:c72f])
	by mx.google.com with ESMTPSA id nh17sm3689006wic.5.2015.03.27.10.19.02
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Fri, 27 Mar 2015 10:19:02 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <CAN2Hq065aw19pzHh7_SFEMqMXDJgbZvtPqBLwYdTcffci4Jhpw@mail.gmail.com>
Date: Fri, 27 Mar 2015 17:19:01 +0000
Message-Id: <756BB013-A9D5-4050-9924-96E6438FCD21@gazagnaire.org>
References: <CAN2Hq065aw19pzHh7_SFEMqMXDJgbZvtPqBLwYdTcffci4Jhpw@mail.gmail.com>
To: Richard Mortier <richard.mortier@cl.cam.ac.uk>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel <MirageOS-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Concerning testing network protocols
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi,

> 1. Split all wire format de/serialization code out of each protocol
> into a distinct library. Link against this library in both
> `pcap-format` and `ocaml-<protocol>`. Unit test the protocol
> implementation separately (perhaps via property-based testing which
> might not require a separate implementation, perhaps relying on
> completely distinct implementations like `libpcap`).

In my opinion, that's the preferable way to go. It's sometime not very easy and practical to split the repository into pieces, but hopefully opam 1.2.1 let you add `opam` and `foo-format.opam` to host two opam packages in the same repository.

Best,
Thomas

> 2. Make `pcap-format` the only place all wire format parsing is done,
> then much as 1.
> 
> 3. Simply stop protocol unit tests depending on `pcap-format`, forcing
> them to express tests differently (perhaps as property-based tests
> that don't need a separate implementation of `parse`/`marshall`).
> 
> Thoughts?
> 
> -- 
> Richard Mortier
> richard.mortier@cl.cam.ac.uk
> 
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 17:29:05 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 17:29:05 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbY47-00030J-C1; Fri, 27 Mar 2015 17:29:03 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YbY46-000307-MD
	for mirageos-devel@lists.xenproject.org; Fri, 27 Mar 2015 17:29:02 +0000
Received: from [85.158.137.68] by server-6.bemta-3.messagelabs.com id
	76/5A-12069-D5395155; Fri, 27 Mar 2015 17:29:01 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-12.tower-31.messagelabs.com!1427477341!11686749!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 29471 invoked from network); 27 Mar 2015 17:29:01 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-12.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 27 Mar 2015 17:29:01 -0000
Received: from [10.0.1.7] (cpc11-belf9-2-0-cust355.2-1.cable.virginm.net
	[86.24.61.100]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 5bb1667a;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Fri, 27 Mar 2015 17:29:00 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <5512DACC.5090604@mehnert.org>
Date: Fri, 27 Mar 2015 17:28:59 +0000
Message-Id: <01F7C088-97CA-4D31-AAAB-FDB91BB410F9@recoil.org>
References: <09E9C361-E86D-489A-8A81-DD43B0A81D5E@cam.ac.uk>
	<5512D7A0.1000304@somerandomidiot.com>
	<5512DACC.5090604@mehnert.org>
To: Hannes Mehnert <hannes@mehnert.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] Serving each URL from a separate unikernel: an
	experiment
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

T24gMjUgTWFyIDIwMTUsIGF0IDE1OjU3LCBIYW5uZXMgTWVobmVydCA8aGFubmVzQG1laG5lcnQu
b3JnPiB3cm90ZToKPiAKPiAtLS0tLUJFR0lOIFBHUCBTSUdORUQgTUVTU0FHRS0tLS0tCj4gSGFz
aDogU0hBMzg0Cj4gCj4gT24gMDMvMjUvMjAxNSAxNTo0MywgTWluZHkgd3JvdGU6Cj4+IEFsc28s
IG5vbmUgb2YgdGhlIHVuaWtlcm5lbHMgZXhwZWN0IHRvIHNlcnZlIGFueXRoaW5nIGJ1dCB0aGVp
cgo+PiBmcm9udCBwYWdlcywgc28gb25lIGNvdWxkIHByb2JhYmx5IHJlbW92ZSB0aGUgcGF0aC1t
YXRjaGluZyBsb2dpYwo+PiBmcm9tIGRpc3BhdGNoLm1sLCBhbmQganVzdCBhbHdheXMgc2VydmUg
dGhlIChvbmx5KSBjb250ZW50cyBvZiB0aGUKPj4gS1ZfUk8gZnMuIDopCj4gCj4geWVwLi4uIHRo
YXQncyB3aGF0IHRoZSBidGMgcGnDsWF0YSBkb2VzIChoZXJlOgo+IGh0dHBzOi8vZ2l0aHViLmNv
bS9taXJsZWZ0L2J0Yy1waW5hdGEvYmxvYi9tYXN0ZXIvdW5pa2VybmVsLm1sI0wxMDksCj4gd2hl
cmUgcGFnZSBpcyBjb3cKPiBodHRwczovL2dpdGh1Yi5jb20vbWlybGVmdC9idGMtcGluYXRhL2Js
b2IvbWFzdGVyL3BhZ2UubWwpLiBubwo+IGRpc3BhdGNoIGludm9sdmVkLCBpdCBkb2Vzbid0IGV2
ZW4gd2FpdCBmb3IgdGhlIEdFVCByZXF1ZXN0Li4gOikKCk15IE1ldGFPQ2FtbCBibGVlcGVyIGp1
c3Qgd2VudCBvZmYhICBJdCBzaG91bGQgYmUgcG9zc2libGUgdG8gc3RhZ2UKdGhlIGRpc3BhdGNo
IGZ1bmN0aW9uIGFuZCBlbWl0IGEgZGlzcGF0Y2gtZnJlZSB2ZXJzaW9uIGJ5CnBhcnRpYWxseSBl
dmFsdWF0aW5nIGl0IHdpdGggdGhlIFVSTC4KCkplcmVteSAob3IgYW55b25lIGVsc2UgZmFtaWxp
YXIgd2l0aCBNZXRhT0NhbWwpOiBpcyBpdCBwb3NzaWJsZQp0byBkbyBhbiBBU1Qgb3V0cHV0IGZy
b20gdGhlIHJlc3VsdHMgb2Ygc3RhZ2luZywgYXNzdW1pbmcgdGhhdCB3ZQpkb24ndCBkbyBhbnkg
Y3Jvc3Mtc3RhZ2UgcGVyc2lzdGVuY2U/ICBUaGF0IHdvdWxkIGxldCB1cyBob29rIGl0CmludG8g
dGhlIGV4aXN0aW5nIGJ1aWxkIGNoYWluIHF1aXRlIGVhc2lseS4KCi1hbmlsCgoKX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTWlyYWdlT1MtZGV2ZWwgbWFp
bGluZyBsaXN0Ck1pcmFnZU9TLWRldmVsQGxpc3RzLnhlbnByb2plY3Qub3JnCmh0dHA6Ly9saXN0
cy54ZW5wcm9qZWN0Lm9yZy9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbWlyYWdlb3MtZGV2ZWwK

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 17:29:05 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 17:29:05 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbY47-00030J-C1; Fri, 27 Mar 2015 17:29:03 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YbY46-000307-MD
	for mirageos-devel@lists.xenproject.org; Fri, 27 Mar 2015 17:29:02 +0000
Received: from [85.158.137.68] by server-6.bemta-3.messagelabs.com id
	76/5A-12069-D5395155; Fri, 27 Mar 2015 17:29:01 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-12.tower-31.messagelabs.com!1427477341!11686749!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.2 required=7.0 tests=RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 29471 invoked from network); 27 Mar 2015 17:29:01 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-12.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 27 Mar 2015 17:29:01 -0000
Received: from [10.0.1.7] (cpc11-belf9-2-0-cust355.2-1.cable.virginm.net
	[86.24.61.100]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 5bb1667a;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Fri, 27 Mar 2015 17:29:00 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <5512DACC.5090604@mehnert.org>
Date: Fri, 27 Mar 2015 17:28:59 +0000
Message-Id: <01F7C088-97CA-4D31-AAAB-FDB91BB410F9@recoil.org>
References: <09E9C361-E86D-489A-8A81-DD43B0A81D5E@cam.ac.uk>
	<5512D7A0.1000304@somerandomidiot.com>
	<5512DACC.5090604@mehnert.org>
To: Hannes Mehnert <hannes@mehnert.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] Serving each URL from a separate unikernel: an
	experiment
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

T24gMjUgTWFyIDIwMTUsIGF0IDE1OjU3LCBIYW5uZXMgTWVobmVydCA8aGFubmVzQG1laG5lcnQu
b3JnPiB3cm90ZToKPiAKPiAtLS0tLUJFR0lOIFBHUCBTSUdORUQgTUVTU0FHRS0tLS0tCj4gSGFz
aDogU0hBMzg0Cj4gCj4gT24gMDMvMjUvMjAxNSAxNTo0MywgTWluZHkgd3JvdGU6Cj4+IEFsc28s
IG5vbmUgb2YgdGhlIHVuaWtlcm5lbHMgZXhwZWN0IHRvIHNlcnZlIGFueXRoaW5nIGJ1dCB0aGVp
cgo+PiBmcm9udCBwYWdlcywgc28gb25lIGNvdWxkIHByb2JhYmx5IHJlbW92ZSB0aGUgcGF0aC1t
YXRjaGluZyBsb2dpYwo+PiBmcm9tIGRpc3BhdGNoLm1sLCBhbmQganVzdCBhbHdheXMgc2VydmUg
dGhlIChvbmx5KSBjb250ZW50cyBvZiB0aGUKPj4gS1ZfUk8gZnMuIDopCj4gCj4geWVwLi4uIHRo
YXQncyB3aGF0IHRoZSBidGMgcGnDsWF0YSBkb2VzIChoZXJlOgo+IGh0dHBzOi8vZ2l0aHViLmNv
bS9taXJsZWZ0L2J0Yy1waW5hdGEvYmxvYi9tYXN0ZXIvdW5pa2VybmVsLm1sI0wxMDksCj4gd2hl
cmUgcGFnZSBpcyBjb3cKPiBodHRwczovL2dpdGh1Yi5jb20vbWlybGVmdC9idGMtcGluYXRhL2Js
b2IvbWFzdGVyL3BhZ2UubWwpLiBubwo+IGRpc3BhdGNoIGludm9sdmVkLCBpdCBkb2Vzbid0IGV2
ZW4gd2FpdCBmb3IgdGhlIEdFVCByZXF1ZXN0Li4gOikKCk15IE1ldGFPQ2FtbCBibGVlcGVyIGp1
c3Qgd2VudCBvZmYhICBJdCBzaG91bGQgYmUgcG9zc2libGUgdG8gc3RhZ2UKdGhlIGRpc3BhdGNo
IGZ1bmN0aW9uIGFuZCBlbWl0IGEgZGlzcGF0Y2gtZnJlZSB2ZXJzaW9uIGJ5CnBhcnRpYWxseSBl
dmFsdWF0aW5nIGl0IHdpdGggdGhlIFVSTC4KCkplcmVteSAob3IgYW55b25lIGVsc2UgZmFtaWxp
YXIgd2l0aCBNZXRhT0NhbWwpOiBpcyBpdCBwb3NzaWJsZQp0byBkbyBhbiBBU1Qgb3V0cHV0IGZy
b20gdGhlIHJlc3VsdHMgb2Ygc3RhZ2luZywgYXNzdW1pbmcgdGhhdCB3ZQpkb24ndCBkbyBhbnkg
Y3Jvc3Mtc3RhZ2UgcGVyc2lzdGVuY2U/ICBUaGF0IHdvdWxkIGxldCB1cyBob29rIGl0CmludG8g
dGhlIGV4aXN0aW5nIGJ1aWxkIGNoYWluIHF1aXRlIGVhc2lseS4KCi1hbmlsCgoKX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTWlyYWdlT1MtZGV2ZWwgbWFp
bGluZyBsaXN0Ck1pcmFnZU9TLWRldmVsQGxpc3RzLnhlbnByb2plY3Qub3JnCmh0dHA6Ly9saXN0
cy54ZW5wcm9qZWN0Lm9yZy9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbWlyYWdlb3MtZGV2ZWwK

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 17:29:37 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 17:29:37 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbY4f-00039W-Fv; Fri, 27 Mar 2015 17:29:37 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <richard.mortier@gmail.com>) id 1YbY4e-00039Q-Lh
	for MirageOS-devel@lists.xenproject.org; Fri, 27 Mar 2015 17:29:36 +0000
Received: from [85.158.139.211] by server-10.bemta-5.messagelabs.com id
	AB/E4-21049-F7395155; Fri, 27 Mar 2015 17:29:35 +0000
X-Env-Sender: richard.mortier@gmail.com
X-Msg-Ref: server-10.tower-206.messagelabs.com!1427477373!6903509!1
X-Originating-IP: [209.85.212.180]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 32208 invoked from network); 27 Mar 2015 17:29:33 -0000
Received: from mail-wi0-f180.google.com (HELO mail-wi0-f180.google.com)
	(209.85.212.180)
	by server-10.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	27 Mar 2015 17:29:33 -0000
Received: by wibgn9 with SMTP id gn9so40569207wib.1
	for <MirageOS-devel@lists.xenproject.org>;
	Fri, 27 Mar 2015 10:29:33 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=Jk425zqTNL2yzEyWQ2pL8Z5Whswi5cuPL2jFtDnw5bo=;
	b=dlfkNl48Vmr08s4U0CXZjH20hMihKA828WrlAsoMbxGyg1gIlJijMLcHKuMZGEcLvz
	eq3HlOuKBWp+mqyhWu74XP7hYXy2r0yhJWO/ldjsrGFO0OwSVaUIYwvtCA5VMxoyG39y
	fsbf29mrz8lAnG99c+mW7M7Tjq33/+Ga6O+JuwRjxs5z0KNdXd+HoWTt5VjVMEgt1kNb
	+GqVHCm1gRoV+ulkYFvL/8VG6BVQweQ06HFDLCeoAxIEvFmEpFYPh1qvOEZ6ebosNOV/
	y7Xh02uk/SoBasAyF8noiuuTXZMHzsiiT/6R8CEViZUVpDwb+0uI7J31M/4kqK1rmL4b
	SmEQ==
X-Received: by 10.180.7.194 with SMTP id l2mr59027047wia.39.1427477373092;
	Fri, 27 Mar 2015 10:29:33 -0700 (PDT)
Received: from mail-wg0-f44.google.com (mail-wg0-f44.google.com.
	[74.125.82.44])
	by mx.google.com with ESMTPSA id r14sm3708976wiv.13.2015.03.27.10.29.31
	for <MirageOS-devel@lists.xenproject.org>
	(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Fri, 27 Mar 2015 10:29:32 -0700 (PDT)
Received: by wgbgs4 with SMTP id gs4so15633867wgb.0
	for <MirageOS-devel@lists.xenproject.org>;
	Fri, 27 Mar 2015 10:29:31 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.180.96.37 with SMTP id dp5mr59143158wib.41.1427477371763;
	Fri, 27 Mar 2015 10:29:31 -0700 (PDT)
Received: by 10.28.154.139 with HTTP; Fri, 27 Mar 2015 10:29:31 -0700 (PDT)
In-Reply-To: <A4EDEA26-B3FB-4F1C-A254-A122776F6056@recoil.org>
References: <CAN2Hq065aw19pzHh7_SFEMqMXDJgbZvtPqBLwYdTcffci4Jhpw@mail.gmail.com>
	<A4EDEA26-B3FB-4F1C-A254-A122776F6056@recoil.org>
Date: Fri, 27 Mar 2015 17:29:31 +0000
Message-ID: <CAN2Hq05adTAz3sKCb7od8t281iOjt_foCOqdRiR2Fu4h-hxrKQ@mail.gmail.com>
From: Richard Mortier <richard.mortier@cl.cam.ac.uk>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: mirageos-devel <MirageOS-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Concerning testing network protocols
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 27 March 2015 at 17:17, Anil Madhavapeddy <anil@recoil.org> wrote:
>> 1. Split all wire format de/serialization code out of each protocol
>> into a distinct library. Link against this library in both
>> `pcap-format` and `ocaml-<protocol>`. Unit test the protocol
>> implementation separately (perhaps via property-based testing which
>> might not require a separate implementation, perhaps relying on
>> completely distinct implementations like `libpcap`).
>
> This one sounds best to me.

Good -- it's probably my preferred one too. Guess it would mean
creating `x` and `x-format` (and perhaps `x-unix` to capture the
values that convert files to streams of captured packets) for x =
pcap, tcpip, dns, etc etc; and then a separate `trace-analysis`
library or something...

> Although, it sounds like there's a
> certain amount of feature creep going into pcap-format.
>
> Why not just parse the raw pcap format in pcap-format, and have a new
> pcap-format-analysis library that depends on both pcap-format and ocaml-dns?

Not sure what you mean. What was the intended feature set of `pcap-format`?

The first version of `pcap-format` parsed the PCAP container format,
Ethernet, IP, TCP from Unix files iirc.

I hacked about to add some more, but then stopped doing that and
started trying to use existing implementations, starting with
`ocaml-dns` as that seemed easier than trying to use `tcipip` to cover
TCP and IP (and Ethernet?), and I wanted a `libpcap` lookalike for
Mirage.

Are you suggesting

4. Strip `pcap-format` back to just the PCAP container parsing code,
and create `pcap-format-analysis` as a separate library?

In which case the same problem will arise as I believe the current
unit test code in `ocaml-dns` will end up relying on
`pcap-format-analysis` as currently posed. (Presumably the point being
to use an independent implementation of the wire format parsers to
unit test the `ocaml-dns` implementations.)

-- 
Richard Mortier
richard.mortier@cl.cam.ac.uk

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 17:29:37 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 17:29:37 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbY4f-00039W-Fv; Fri, 27 Mar 2015 17:29:37 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <richard.mortier@gmail.com>) id 1YbY4e-00039Q-Lh
	for MirageOS-devel@lists.xenproject.org; Fri, 27 Mar 2015 17:29:36 +0000
Received: from [85.158.139.211] by server-10.bemta-5.messagelabs.com id
	AB/E4-21049-F7395155; Fri, 27 Mar 2015 17:29:35 +0000
X-Env-Sender: richard.mortier@gmail.com
X-Msg-Ref: server-10.tower-206.messagelabs.com!1427477373!6903509!1
X-Originating-IP: [209.85.212.180]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 32208 invoked from network); 27 Mar 2015 17:29:33 -0000
Received: from mail-wi0-f180.google.com (HELO mail-wi0-f180.google.com)
	(209.85.212.180)
	by server-10.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	27 Mar 2015 17:29:33 -0000
Received: by wibgn9 with SMTP id gn9so40569207wib.1
	for <MirageOS-devel@lists.xenproject.org>;
	Fri, 27 Mar 2015 10:29:33 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=Jk425zqTNL2yzEyWQ2pL8Z5Whswi5cuPL2jFtDnw5bo=;
	b=dlfkNl48Vmr08s4U0CXZjH20hMihKA828WrlAsoMbxGyg1gIlJijMLcHKuMZGEcLvz
	eq3HlOuKBWp+mqyhWu74XP7hYXy2r0yhJWO/ldjsrGFO0OwSVaUIYwvtCA5VMxoyG39y
	fsbf29mrz8lAnG99c+mW7M7Tjq33/+Ga6O+JuwRjxs5z0KNdXd+HoWTt5VjVMEgt1kNb
	+GqVHCm1gRoV+ulkYFvL/8VG6BVQweQ06HFDLCeoAxIEvFmEpFYPh1qvOEZ6ebosNOV/
	y7Xh02uk/SoBasAyF8noiuuTXZMHzsiiT/6R8CEViZUVpDwb+0uI7J31M/4kqK1rmL4b
	SmEQ==
X-Received: by 10.180.7.194 with SMTP id l2mr59027047wia.39.1427477373092;
	Fri, 27 Mar 2015 10:29:33 -0700 (PDT)
Received: from mail-wg0-f44.google.com (mail-wg0-f44.google.com.
	[74.125.82.44])
	by mx.google.com with ESMTPSA id r14sm3708976wiv.13.2015.03.27.10.29.31
	for <MirageOS-devel@lists.xenproject.org>
	(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Fri, 27 Mar 2015 10:29:32 -0700 (PDT)
Received: by wgbgs4 with SMTP id gs4so15633867wgb.0
	for <MirageOS-devel@lists.xenproject.org>;
	Fri, 27 Mar 2015 10:29:31 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.180.96.37 with SMTP id dp5mr59143158wib.41.1427477371763;
	Fri, 27 Mar 2015 10:29:31 -0700 (PDT)
Received: by 10.28.154.139 with HTTP; Fri, 27 Mar 2015 10:29:31 -0700 (PDT)
In-Reply-To: <A4EDEA26-B3FB-4F1C-A254-A122776F6056@recoil.org>
References: <CAN2Hq065aw19pzHh7_SFEMqMXDJgbZvtPqBLwYdTcffci4Jhpw@mail.gmail.com>
	<A4EDEA26-B3FB-4F1C-A254-A122776F6056@recoil.org>
Date: Fri, 27 Mar 2015 17:29:31 +0000
Message-ID: <CAN2Hq05adTAz3sKCb7od8t281iOjt_foCOqdRiR2Fu4h-hxrKQ@mail.gmail.com>
From: Richard Mortier <richard.mortier@cl.cam.ac.uk>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: mirageos-devel <MirageOS-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Concerning testing network protocols
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 27 March 2015 at 17:17, Anil Madhavapeddy <anil@recoil.org> wrote:
>> 1. Split all wire format de/serialization code out of each protocol
>> into a distinct library. Link against this library in both
>> `pcap-format` and `ocaml-<protocol>`. Unit test the protocol
>> implementation separately (perhaps via property-based testing which
>> might not require a separate implementation, perhaps relying on
>> completely distinct implementations like `libpcap`).
>
> This one sounds best to me.

Good -- it's probably my preferred one too. Guess it would mean
creating `x` and `x-format` (and perhaps `x-unix` to capture the
values that convert files to streams of captured packets) for x =
pcap, tcpip, dns, etc etc; and then a separate `trace-analysis`
library or something...

> Although, it sounds like there's a
> certain amount of feature creep going into pcap-format.
>
> Why not just parse the raw pcap format in pcap-format, and have a new
> pcap-format-analysis library that depends on both pcap-format and ocaml-dns?

Not sure what you mean. What was the intended feature set of `pcap-format`?

The first version of `pcap-format` parsed the PCAP container format,
Ethernet, IP, TCP from Unix files iirc.

I hacked about to add some more, but then stopped doing that and
started trying to use existing implementations, starting with
`ocaml-dns` as that seemed easier than trying to use `tcipip` to cover
TCP and IP (and Ethernet?), and I wanted a `libpcap` lookalike for
Mirage.

Are you suggesting

4. Strip `pcap-format` back to just the PCAP container parsing code,
and create `pcap-format-analysis` as a separate library?

In which case the same problem will arise as I believe the current
unit test code in `ocaml-dns` will end up relying on
`pcap-format-analysis` as currently posed. (Presumably the point being
to use an independent implementation of the wire format parsers to
unit test the `ocaml-dns` implementations.)

-- 
Richard Mortier
richard.mortier@cl.cam.ac.uk

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 17:40:23 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 17:40:23 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbYF3-0005Wj-Cy; Fri, 27 Mar 2015 17:40:21 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YbYF2-0005Vt-HQ
	for mirageos-devel@lists.xenproject.org; Fri, 27 Mar 2015 17:40:20 +0000
Received: from [85.158.137.68] by server-17.bemta-3.messagelabs.com id
	E8/24-14975-30695155; Fri, 27 Mar 2015 17:40:19 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-2.tower-31.messagelabs.com!1427478018!11758048!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=1.1 required=7.0 tests=HTML_40_50,HTML_MESSAGE,
	MAILTO_TO_SPAM_ADDR,RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 22976 invoked from network); 27 Mar 2015 17:40:18 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-2.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 27 Mar 2015 17:40:18 -0000
Received: from [10.0.1.7] (cpc11-belf9-2-0-cust355.2-1.cable.virginm.net
	[86.24.61.100]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 83504054;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Fri, 27 Mar 2015 17:40:18 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <84A7FEAD-26D0-4258-BDD1-AD6AAD10E8C7@gmail.com>
Date: Fri, 27 Mar 2015 17:40:16 +0000
Message-Id: <DC33746D-86ED-4DBE-8F85-63602B04DBCE@recoil.org>
References: <84A7FEAD-26D0-4258-BDD1-AD6AAD10E8C7@gmail.com>
To: ChenchenZhao <chenchenzhao606@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] ask for outreachy program
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============7431612652606557147=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============7431612652606557147==
Content-Type: multipart/alternative; boundary="Apple-Mail=_29D1611F-6874-43AD-A57E-7DAFE227A60F"


--Apple-Mail=_29D1611F-6874-43AD-A57E-7DAFE227A60F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hi Chenchen,

Glad you're interested in the Outreachy program!  The "command line =
utilities" problem is a really good one to get started with, since it's =
quite open ended.

In MirageOS, most of the functionality is implemented as an OCaml =
library, which can be linked into applications that run on either Unix =
or Xen directly.  In order to make the libraries more useful from Unix, =
there are a lot of places where a small command line utility can be =
added that provides an interface from Unix to that library's =
functionality.

Hannes pointed out that there's the opportunity to do this for the =
cryptography layer.  The CoHTTP library also has a simple "curl"-like =
command that could be extended to have more functionality as well.  =
Heidi Howard has been blogging recently about DNS name resolvers, and =
that's an area where a command-line client would help (see her blog at: =
http://hh360.user.srcf.net/blog/ <http://hh360.user.srcf.net/blog/>)

With any of these, please feel free to send any questions to this list =
before preparing your Outreachy application, and also to guide the =
conversation to a topic that interests you and would be of help to you =
in your second and third year studies...

-anil

> On 25 Mar 2015, at 23:52, ChenchenZhao <chenchenzhao606@gmail.com> =
wrote:
>=20
> Hi:
>   My name is Chenchen Zhao. I=E2=80=99m currently a first year student =
in University of Waterloo, Math Faculty. I really really want to =
participate in Xen Outreachy Program and make some contributions to open =
source and I think the project =E2=80=9CCommand line utilities" =
fascinates me a lot. I have learned Python and Scheme in school,but just =
some basic functions.I was wondering if I can participate in it and make =
some contributions from now on. Would it possible to give me to some =
suggestions to start and tell me what should I learn and do now?
>  Thank you,and I look forward to hearing from you.
>=20
>   Sincerely
>=20
>   Chenchen Zhao
>=20
>=20
>=20
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


--Apple-Mail=_29D1611F-6874-43AD-A57E-7DAFE227A60F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">Hi Chenchen,<div class=3D""><br class=3D""></div><div =
class=3D"">Glad you're interested in the Outreachy program! &nbsp;The =
"command line utilities" problem is a really good one to get started =
with, since it's quite open ended.</div><div class=3D""><br =
class=3D""></div><div class=3D"">In MirageOS, most of the functionality =
is implemented as an OCaml library, which can be linked into =
applications that run on either Unix or Xen directly. &nbsp;In order to =
make the libraries more useful from Unix, there are a lot of places =
where a small command line utility can be added that provides an =
interface from Unix to that library's functionality.</div><div =
class=3D""><br class=3D""></div><div class=3D"">Hannes pointed out that =
there's the opportunity to do this for the cryptography layer. &nbsp;The =
CoHTTP library also has a simple "curl"-like command that could be =
extended to have more functionality as well. &nbsp;Heidi Howard has been =
blogging recently about DNS name resolvers, and that's an area where a =
command-line client would help (see her blog at:&nbsp;<a =
href=3D"http://hh360.user.srcf.net/blog/" =
class=3D"">http://hh360.user.srcf.net/blog/</a>)</div><div class=3D""><br =
class=3D""></div><div class=3D"">With any of these, please feel free to =
send any questions to this list before preparing your Outreachy =
application, and also to guide the conversation to a topic that =
interests you and would be of help to you in your second and third year =
studies...</div><div class=3D""><br class=3D""></div><div =
class=3D"">-anil</div><div class=3D""><br class=3D""></div><div =
class=3D""><div><blockquote type=3D"cite" class=3D""><div class=3D"">On =
25 Mar 2015, at 23:52, ChenchenZhao &lt;<a =
href=3D"mailto:chenchenzhao606@gmail.com" =
class=3D"">chenchenzhao606@gmail.com</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><meta =
http-equiv=3D"Content-Type" content=3D"text/html charset=3Dutf-8" =
class=3D""><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: =
space; -webkit-line-break: after-white-space;" class=3D"">Hi:<div =
class=3D""><span style=3D"font-size: 14px;" class=3D"">&nbsp; My name is =
Chenchen Zhao. I=E2=80=99m currently a first year student in University =
of Waterloo, Math Faculty.</span><span class=3D"" style=3D"font-size: =
14px;">&nbsp;I really really want to participate in =
Xen&nbsp;</span><span style=3D"font-size: 14px;" class=3D"">Outreachy =
Program and make some&nbsp;contributions to open source&nbsp;and I think =
the project =E2=80=9CCommand line utilities"&nbsp;fascinates me =
a&nbsp;lot.</span><span style=3D"font-size: 14px;" class=3D"">&nbsp;I =
have learned Python and Scheme in school,but just some basic =
functions.</span><span style=3D"font-size: 14px;" class=3D"">I was =
wondering if I can participate in it and make some contributions from =
now on.&nbsp;</span><span style=3D"font-size: 14px;" class=3D"">Would it =
possible to&nbsp;give me to some suggestions to start and tell me what =
should I learn and do now?</span></div><div class=3D""><p class=3D""><span=
 class=3D"" style=3D"font-size: 14px;">&nbsp;Thank you,and I look =
forward to hearing from you.</span></p><p class=3D""><span class=3D"" =
style=3D"font-size: 14px;">&nbsp; Sincerely</span></p><font class=3D"" =
style=3D"font-size: 14px;">&nbsp; Chenchen Zhao</font></div><div =
class=3D""><span style=3D"font-size: 14px;" class=3D""><br =
class=3D""></span></div><div class=3D""><br class=3D""><div class=3D""><br=
 =
class=3D""></div></div></div>_____________________________________________=
__<br class=3D"">MirageOS-devel mailing list<br class=3D""><a =
href=3D"mailto:MirageOS-devel@lists.xenproject.org" =
class=3D"">MirageOS-devel@lists.xenproject.org</a><br =
class=3D"">http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-d=
evel<br class=3D""></div></blockquote></div><br =
class=3D""></div></body></html>=

--Apple-Mail=_29D1611F-6874-43AD-A57E-7DAFE227A60F--


--===============7431612652606557147==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============7431612652606557147==--


From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 17:40:23 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 17:40:23 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbYF3-0005Wj-Cy; Fri, 27 Mar 2015 17:40:21 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YbYF2-0005Vt-HQ
	for mirageos-devel@lists.xenproject.org; Fri, 27 Mar 2015 17:40:20 +0000
Received: from [85.158.137.68] by server-17.bemta-3.messagelabs.com id
	E8/24-14975-30695155; Fri, 27 Mar 2015 17:40:19 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-2.tower-31.messagelabs.com!1427478018!11758048!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=1.1 required=7.0 tests=HTML_40_50,HTML_MESSAGE,
	MAILTO_TO_SPAM_ADDR,RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 22976 invoked from network); 27 Mar 2015 17:40:18 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-2.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 27 Mar 2015 17:40:18 -0000
Received: from [10.0.1.7] (cpc11-belf9-2-0-cust355.2-1.cable.virginm.net
	[86.24.61.100]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 83504054;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Fri, 27 Mar 2015 17:40:18 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <84A7FEAD-26D0-4258-BDD1-AD6AAD10E8C7@gmail.com>
Date: Fri, 27 Mar 2015 17:40:16 +0000
Message-Id: <DC33746D-86ED-4DBE-8F85-63602B04DBCE@recoil.org>
References: <84A7FEAD-26D0-4258-BDD1-AD6AAD10E8C7@gmail.com>
To: ChenchenZhao <chenchenzhao606@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: mirageos-devel@lists.xenproject.org
Subject: Re: [MirageOS-devel] ask for outreachy program
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============7431612652606557147=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============7431612652606557147==
Content-Type: multipart/alternative; boundary="Apple-Mail=_29D1611F-6874-43AD-A57E-7DAFE227A60F"


--Apple-Mail=_29D1611F-6874-43AD-A57E-7DAFE227A60F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hi Chenchen,

Glad you're interested in the Outreachy program!  The "command line =
utilities" problem is a really good one to get started with, since it's =
quite open ended.

In MirageOS, most of the functionality is implemented as an OCaml =
library, which can be linked into applications that run on either Unix =
or Xen directly.  In order to make the libraries more useful from Unix, =
there are a lot of places where a small command line utility can be =
added that provides an interface from Unix to that library's =
functionality.

Hannes pointed out that there's the opportunity to do this for the =
cryptography layer.  The CoHTTP library also has a simple "curl"-like =
command that could be extended to have more functionality as well.  =
Heidi Howard has been blogging recently about DNS name resolvers, and =
that's an area where a command-line client would help (see her blog at: =
http://hh360.user.srcf.net/blog/ <http://hh360.user.srcf.net/blog/>)

With any of these, please feel free to send any questions to this list =
before preparing your Outreachy application, and also to guide the =
conversation to a topic that interests you and would be of help to you =
in your second and third year studies...

-anil

> On 25 Mar 2015, at 23:52, ChenchenZhao <chenchenzhao606@gmail.com> =
wrote:
>=20
> Hi:
>   My name is Chenchen Zhao. I=E2=80=99m currently a first year student =
in University of Waterloo, Math Faculty. I really really want to =
participate in Xen Outreachy Program and make some contributions to open =
source and I think the project =E2=80=9CCommand line utilities" =
fascinates me a lot. I have learned Python and Scheme in school,but just =
some basic functions.I was wondering if I can participate in it and make =
some contributions from now on. Would it possible to give me to some =
suggestions to start and tell me what should I learn and do now?
>  Thank you,and I look forward to hearing from you.
>=20
>   Sincerely
>=20
>   Chenchen Zhao
>=20
>=20
>=20
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel


--Apple-Mail=_29D1611F-6874-43AD-A57E-7DAFE227A60F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">Hi Chenchen,<div class=3D""><br class=3D""></div><div =
class=3D"">Glad you're interested in the Outreachy program! &nbsp;The =
"command line utilities" problem is a really good one to get started =
with, since it's quite open ended.</div><div class=3D""><br =
class=3D""></div><div class=3D"">In MirageOS, most of the functionality =
is implemented as an OCaml library, which can be linked into =
applications that run on either Unix or Xen directly. &nbsp;In order to =
make the libraries more useful from Unix, there are a lot of places =
where a small command line utility can be added that provides an =
interface from Unix to that library's functionality.</div><div =
class=3D""><br class=3D""></div><div class=3D"">Hannes pointed out that =
there's the opportunity to do this for the cryptography layer. &nbsp;The =
CoHTTP library also has a simple "curl"-like command that could be =
extended to have more functionality as well. &nbsp;Heidi Howard has been =
blogging recently about DNS name resolvers, and that's an area where a =
command-line client would help (see her blog at:&nbsp;<a =
href=3D"http://hh360.user.srcf.net/blog/" =
class=3D"">http://hh360.user.srcf.net/blog/</a>)</div><div class=3D""><br =
class=3D""></div><div class=3D"">With any of these, please feel free to =
send any questions to this list before preparing your Outreachy =
application, and also to guide the conversation to a topic that =
interests you and would be of help to you in your second and third year =
studies...</div><div class=3D""><br class=3D""></div><div =
class=3D"">-anil</div><div class=3D""><br class=3D""></div><div =
class=3D""><div><blockquote type=3D"cite" class=3D""><div class=3D"">On =
25 Mar 2015, at 23:52, ChenchenZhao &lt;<a =
href=3D"mailto:chenchenzhao606@gmail.com" =
class=3D"">chenchenzhao606@gmail.com</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><meta =
http-equiv=3D"Content-Type" content=3D"text/html charset=3Dutf-8" =
class=3D""><div style=3D"word-wrap: break-word; -webkit-nbsp-mode: =
space; -webkit-line-break: after-white-space;" class=3D"">Hi:<div =
class=3D""><span style=3D"font-size: 14px;" class=3D"">&nbsp; My name is =
Chenchen Zhao. I=E2=80=99m currently a first year student in University =
of Waterloo, Math Faculty.</span><span class=3D"" style=3D"font-size: =
14px;">&nbsp;I really really want to participate in =
Xen&nbsp;</span><span style=3D"font-size: 14px;" class=3D"">Outreachy =
Program and make some&nbsp;contributions to open source&nbsp;and I think =
the project =E2=80=9CCommand line utilities"&nbsp;fascinates me =
a&nbsp;lot.</span><span style=3D"font-size: 14px;" class=3D"">&nbsp;I =
have learned Python and Scheme in school,but just some basic =
functions.</span><span style=3D"font-size: 14px;" class=3D"">I was =
wondering if I can participate in it and make some contributions from =
now on.&nbsp;</span><span style=3D"font-size: 14px;" class=3D"">Would it =
possible to&nbsp;give me to some suggestions to start and tell me what =
should I learn and do now?</span></div><div class=3D""><p class=3D""><span=
 class=3D"" style=3D"font-size: 14px;">&nbsp;Thank you,and I look =
forward to hearing from you.</span></p><p class=3D""><span class=3D"" =
style=3D"font-size: 14px;">&nbsp; Sincerely</span></p><font class=3D"" =
style=3D"font-size: 14px;">&nbsp; Chenchen Zhao</font></div><div =
class=3D""><span style=3D"font-size: 14px;" class=3D""><br =
class=3D""></span></div><div class=3D""><br class=3D""><div class=3D""><br=
 =
class=3D""></div></div></div>_____________________________________________=
__<br class=3D"">MirageOS-devel mailing list<br class=3D""><a =
href=3D"mailto:MirageOS-devel@lists.xenproject.org" =
class=3D"">MirageOS-devel@lists.xenproject.org</a><br =
class=3D"">http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-d=
evel<br class=3D""></div></blockquote></div><br =
class=3D""></div></body></html>=

--Apple-Mail=_29D1611F-6874-43AD-A57E-7DAFE227A60F--


--===============7431612652606557147==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============7431612652606557147==--


From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 17:53:57 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 17:53:57 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbYS8-0000Sr-GD; Fri, 27 Mar 2015 17:53:52 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <jdy22@hermes.cam.ac.uk>) id 1YbYS7-0000Si-Lr
	for mirageos-devel@lists.xenproject.org; Fri, 27 Mar 2015 17:53:51 +0000
Received: from [85.158.139.211] by server-15.bemta-5.messagelabs.com id
	F0/06-14044-E2995155; Fri, 27 Mar 2015 17:53:50 +0000
X-Env-Sender: jdy22@hermes.cam.ac.uk
X-Msg-Ref: server-8.tower-206.messagelabs.com!1427478830!12180699!1
X-Originating-IP: [131.111.8.142]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogMTMxLjExMS44LjE0MiA9PiAxMTg0OA==\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 18809 invoked from network); 27 Mar 2015 17:53:50 -0000
Received: from ppsw-42.csi.cam.ac.uk (HELO ppsw-42.csi.cam.ac.uk)
	(131.111.8.142)
	by server-8.tower-206.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 27 Mar 2015 17:53:50 -0000
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from mail-qg0-f54.google.com ([209.85.192.54]:34081)
	by ppsw-42.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.158]:587)
	with esmtpsa (PLAIN:jdy22) (TLSv1.2:AES128-GCM-SHA256:128)
	id 1YbYS5-0001pN-96 (Exim 4.82_3-c0e5623) for
	mirageos-devel@lists.xenproject.org
	(return-path <jdy22@hermes.cam.ac.uk>); Fri, 27 Mar 2015 17:53:49 +0000
Received: by qgep97 with SMTP id p97so140372031qge.1
	for <mirageos-devel@lists.xenproject.org>;
	Fri, 27 Mar 2015 10:53:49 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.140.151.72 with SMTP id 69mr27265963qhx.68.1427478829019;
	Fri, 27 Mar 2015 10:53:49 -0700 (PDT)
Received: by 10.229.160.11 with HTTP; Fri, 27 Mar 2015 10:53:48 -0700 (PDT)
In-Reply-To: <01F7C088-97CA-4D31-AAAB-FDB91BB410F9@recoil.org>
References: <09E9C361-E86D-489A-8A81-DD43B0A81D5E@cam.ac.uk>
	<5512D7A0.1000304@somerandomidiot.com>
	<5512DACC.5090604@mehnert.org>
	<01F7C088-97CA-4D31-AAAB-FDB91BB410F9@recoil.org>
Date: Fri, 27 Mar 2015 17:53:48 +0000
Message-ID: <CAAxsn=HJKDUZn0OJyjo-i1B65Unx4Eo=vWe=9uUHG7yhiiiT=g@mail.gmail.com>
From: Jeremy Yallop <jeremy.yallop@cl.cam.ac.uk>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Serving each URL from a separate unikernel: an
	experiment
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

T24gMjcgTWFyY2ggMjAxNSBhdCAxNzoyOCwgQW5pbCBNYWRoYXZhcGVkZHkgPGFuaWxAcmVjb2ls
Lm9yZz4gd3JvdGU6Cj4gT24gMjUgTWFyIDIwMTUsIGF0IDE1OjU3LCBIYW5uZXMgTWVobmVydCA8
aGFubmVzQG1laG5lcnQub3JnPiB3cm90ZToKPj4KPj4gLS0tLS1CRUdJTiBQR1AgU0lHTkVEIE1F
U1NBR0UtLS0tLQo+PiBIYXNoOiBTSEEzODQKPj4KPj4gT24gMDMvMjUvMjAxNSAxNTo0MywgTWlu
ZHkgd3JvdGU6Cj4+PiBBbHNvLCBub25lIG9mIHRoZSB1bmlrZXJuZWxzIGV4cGVjdCB0byBzZXJ2
ZSBhbnl0aGluZyBidXQgdGhlaXIKPj4+IGZyb250IHBhZ2VzLCBzbyBvbmUgY291bGQgcHJvYmFi
bHkgcmVtb3ZlIHRoZSBwYXRoLW1hdGNoaW5nIGxvZ2ljCj4+PiBmcm9tIGRpc3BhdGNoLm1sLCBh
bmQganVzdCBhbHdheXMgc2VydmUgdGhlIChvbmx5KSBjb250ZW50cyBvZiB0aGUKPj4+IEtWX1JP
IGZzLiA6KQo+Pgo+PiB5ZXAuLi4gdGhhdCdzIHdoYXQgdGhlIGJ0YyBwacOxYXRhIGRvZXMgKGhl
cmU6Cj4+IGh0dHBzOi8vZ2l0aHViLmNvbS9taXJsZWZ0L2J0Yy1waW5hdGEvYmxvYi9tYXN0ZXIv
dW5pa2VybmVsLm1sI0wxMDksCj4+IHdoZXJlIHBhZ2UgaXMgY293Cj4+IGh0dHBzOi8vZ2l0aHVi
LmNvbS9taXJsZWZ0L2J0Yy1waW5hdGEvYmxvYi9tYXN0ZXIvcGFnZS5tbCkuIG5vCj4+IGRpc3Bh
dGNoIGludm9sdmVkLCBpdCBkb2Vzbid0IGV2ZW4gd2FpdCBmb3IgdGhlIEdFVCByZXF1ZXN0Li4g
OikKPgo+IE15IE1ldGFPQ2FtbCBibGVlcGVyIGp1c3Qgd2VudCBvZmYhICBJdCBzaG91bGQgYmUg
cG9zc2libGUgdG8gc3RhZ2UKPiB0aGUgZGlzcGF0Y2ggZnVuY3Rpb24gYW5kIGVtaXQgYSBkaXNw
YXRjaC1mcmVlIHZlcnNpb24gYnkKPiBwYXJ0aWFsbHkgZXZhbHVhdGluZyBpdCB3aXRoIHRoZSBV
UkwuCj4KPiBKZXJlbXkgKG9yIGFueW9uZSBlbHNlIGZhbWlsaWFyIHdpdGggTWV0YU9DYW1sKTog
aXMgaXQgcG9zc2libGUKPiB0byBkbyBhbiBBU1Qgb3V0cHV0IGZyb20gdGhlIHJlc3VsdHMgb2Yg
c3RhZ2luZywgYXNzdW1pbmcgdGhhdCB3ZQo+IGRvbid0IGRvIGFueSBjcm9zcy1zdGFnZSBwZXJz
aXN0ZW5jZT8gIFRoYXQgd291bGQgbGV0IHVzIGhvb2sgaXQKPiBpbnRvIHRoZSBleGlzdGluZyBi
dWlsZCBjaGFpbiBxdWl0ZSBlYXNpbHkuCgpJdCBpcywgYXQgbGVhc3QgaW4gcHJpbmNpcGxlLiAg
WW91IGNhbiB3cml0ZToKCiAgICBsZXQgY2xvc2VkX2NvZGUgPSBSdW5jb2RlLmNsb3NlX2NvZGUg
LjwgZnVuIHggLT4geCArIDEgPi4gaW4KICAgICAgIFByaW50X2NvZGUuZm9ybWF0X2NvZGUgRm9y
bWF0LnN0ZF9mb3JtYXR0ZXIgY2xvc2VkX2NvZGUKCnRvIG91dHB1dCBzb3VyY2Ugb3IKCiAgICBQ
cmludF9jb2RlLnByaW50X2NvZGVfYXNfYXN0IGNsb3NlZF9jb2RlCgp0byBkdW1wIGFuIEFTVCwg
YW5kIGl0IHdvdWxkbid0IGJlIGhhcmQgdG8gYWRkIHN1cHBvcnQgZm9yIG90aGVyIGZvcm1hdHMu
CgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpNaXJhZ2VP
Uy1kZXZlbCBtYWlsaW5nIGxpc3QKTWlyYWdlT1MtZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcK
aHR0cDovL2xpc3RzLnhlbnByb2plY3Qub3JnL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9taXJh
Z2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 17:53:57 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 17:53:57 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbYS8-0000Sr-GD; Fri, 27 Mar 2015 17:53:52 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <jdy22@hermes.cam.ac.uk>) id 1YbYS7-0000Si-Lr
	for mirageos-devel@lists.xenproject.org; Fri, 27 Mar 2015 17:53:51 +0000
Received: from [85.158.139.211] by server-15.bemta-5.messagelabs.com id
	F0/06-14044-E2995155; Fri, 27 Mar 2015 17:53:50 +0000
X-Env-Sender: jdy22@hermes.cam.ac.uk
X-Msg-Ref: server-8.tower-206.messagelabs.com!1427478830!12180699!1
X-Originating-IP: [131.111.8.142]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogMTMxLjExMS44LjE0MiA9PiAxMTg0OA==\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 18809 invoked from network); 27 Mar 2015 17:53:50 -0000
Received: from ppsw-42.csi.cam.ac.uk (HELO ppsw-42.csi.cam.ac.uk)
	(131.111.8.142)
	by server-8.tower-206.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 27 Mar 2015 17:53:50 -0000
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from mail-qg0-f54.google.com ([209.85.192.54]:34081)
	by ppsw-42.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.158]:587)
	with esmtpsa (PLAIN:jdy22) (TLSv1.2:AES128-GCM-SHA256:128)
	id 1YbYS5-0001pN-96 (Exim 4.82_3-c0e5623) for
	mirageos-devel@lists.xenproject.org
	(return-path <jdy22@hermes.cam.ac.uk>); Fri, 27 Mar 2015 17:53:49 +0000
Received: by qgep97 with SMTP id p97so140372031qge.1
	for <mirageos-devel@lists.xenproject.org>;
	Fri, 27 Mar 2015 10:53:49 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.140.151.72 with SMTP id 69mr27265963qhx.68.1427478829019;
	Fri, 27 Mar 2015 10:53:49 -0700 (PDT)
Received: by 10.229.160.11 with HTTP; Fri, 27 Mar 2015 10:53:48 -0700 (PDT)
In-Reply-To: <01F7C088-97CA-4D31-AAAB-FDB91BB410F9@recoil.org>
References: <09E9C361-E86D-489A-8A81-DD43B0A81D5E@cam.ac.uk>
	<5512D7A0.1000304@somerandomidiot.com>
	<5512DACC.5090604@mehnert.org>
	<01F7C088-97CA-4D31-AAAB-FDB91BB410F9@recoil.org>
Date: Fri, 27 Mar 2015 17:53:48 +0000
Message-ID: <CAAxsn=HJKDUZn0OJyjo-i1B65Unx4Eo=vWe=9uUHG7yhiiiT=g@mail.gmail.com>
From: Jeremy Yallop <jeremy.yallop@cl.cam.ac.uk>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Serving each URL from a separate unikernel: an
	experiment
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

T24gMjcgTWFyY2ggMjAxNSBhdCAxNzoyOCwgQW5pbCBNYWRoYXZhcGVkZHkgPGFuaWxAcmVjb2ls
Lm9yZz4gd3JvdGU6Cj4gT24gMjUgTWFyIDIwMTUsIGF0IDE1OjU3LCBIYW5uZXMgTWVobmVydCA8
aGFubmVzQG1laG5lcnQub3JnPiB3cm90ZToKPj4KPj4gLS0tLS1CRUdJTiBQR1AgU0lHTkVEIE1F
U1NBR0UtLS0tLQo+PiBIYXNoOiBTSEEzODQKPj4KPj4gT24gMDMvMjUvMjAxNSAxNTo0MywgTWlu
ZHkgd3JvdGU6Cj4+PiBBbHNvLCBub25lIG9mIHRoZSB1bmlrZXJuZWxzIGV4cGVjdCB0byBzZXJ2
ZSBhbnl0aGluZyBidXQgdGhlaXIKPj4+IGZyb250IHBhZ2VzLCBzbyBvbmUgY291bGQgcHJvYmFi
bHkgcmVtb3ZlIHRoZSBwYXRoLW1hdGNoaW5nIGxvZ2ljCj4+PiBmcm9tIGRpc3BhdGNoLm1sLCBh
bmQganVzdCBhbHdheXMgc2VydmUgdGhlIChvbmx5KSBjb250ZW50cyBvZiB0aGUKPj4+IEtWX1JP
IGZzLiA6KQo+Pgo+PiB5ZXAuLi4gdGhhdCdzIHdoYXQgdGhlIGJ0YyBwacOxYXRhIGRvZXMgKGhl
cmU6Cj4+IGh0dHBzOi8vZ2l0aHViLmNvbS9taXJsZWZ0L2J0Yy1waW5hdGEvYmxvYi9tYXN0ZXIv
dW5pa2VybmVsLm1sI0wxMDksCj4+IHdoZXJlIHBhZ2UgaXMgY293Cj4+IGh0dHBzOi8vZ2l0aHVi
LmNvbS9taXJsZWZ0L2J0Yy1waW5hdGEvYmxvYi9tYXN0ZXIvcGFnZS5tbCkuIG5vCj4+IGRpc3Bh
dGNoIGludm9sdmVkLCBpdCBkb2Vzbid0IGV2ZW4gd2FpdCBmb3IgdGhlIEdFVCByZXF1ZXN0Li4g
OikKPgo+IE15IE1ldGFPQ2FtbCBibGVlcGVyIGp1c3Qgd2VudCBvZmYhICBJdCBzaG91bGQgYmUg
cG9zc2libGUgdG8gc3RhZ2UKPiB0aGUgZGlzcGF0Y2ggZnVuY3Rpb24gYW5kIGVtaXQgYSBkaXNw
YXRjaC1mcmVlIHZlcnNpb24gYnkKPiBwYXJ0aWFsbHkgZXZhbHVhdGluZyBpdCB3aXRoIHRoZSBV
UkwuCj4KPiBKZXJlbXkgKG9yIGFueW9uZSBlbHNlIGZhbWlsaWFyIHdpdGggTWV0YU9DYW1sKTog
aXMgaXQgcG9zc2libGUKPiB0byBkbyBhbiBBU1Qgb3V0cHV0IGZyb20gdGhlIHJlc3VsdHMgb2Yg
c3RhZ2luZywgYXNzdW1pbmcgdGhhdCB3ZQo+IGRvbid0IGRvIGFueSBjcm9zcy1zdGFnZSBwZXJz
aXN0ZW5jZT8gIFRoYXQgd291bGQgbGV0IHVzIGhvb2sgaXQKPiBpbnRvIHRoZSBleGlzdGluZyBi
dWlsZCBjaGFpbiBxdWl0ZSBlYXNpbHkuCgpJdCBpcywgYXQgbGVhc3QgaW4gcHJpbmNpcGxlLiAg
WW91IGNhbiB3cml0ZToKCiAgICBsZXQgY2xvc2VkX2NvZGUgPSBSdW5jb2RlLmNsb3NlX2NvZGUg
LjwgZnVuIHggLT4geCArIDEgPi4gaW4KICAgICAgIFByaW50X2NvZGUuZm9ybWF0X2NvZGUgRm9y
bWF0LnN0ZF9mb3JtYXR0ZXIgY2xvc2VkX2NvZGUKCnRvIG91dHB1dCBzb3VyY2Ugb3IKCiAgICBQ
cmludF9jb2RlLnByaW50X2NvZGVfYXNfYXN0IGNsb3NlZF9jb2RlCgp0byBkdW1wIGFuIEFTVCwg
YW5kIGl0IHdvdWxkbid0IGJlIGhhcmQgdG8gYWRkIHN1cHBvcnQgZm9yIG90aGVyIGZvcm1hdHMu
CgpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwpNaXJhZ2VP
Uy1kZXZlbCBtYWlsaW5nIGxpc3QKTWlyYWdlT1MtZGV2ZWxAbGlzdHMueGVucHJvamVjdC5vcmcK
aHR0cDovL2xpc3RzLnhlbnByb2plY3Qub3JnL2NnaS1iaW4vbWFpbG1hbi9saXN0aW5mby9taXJh
Z2Vvcy1kZXZlbAo=

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 18:03:26 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 18:03:26 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbYbN-0002Y0-Rh; Fri, 27 Mar 2015 18:03:25 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <jdy22@hermes.cam.ac.uk>) id 1YbYbM-0002Xl-5M
	for mirageos-devel@lists.xenproject.org; Fri, 27 Mar 2015 18:03:24 +0000
Received: from [85.158.139.211] by server-17.bemta-5.messagelabs.com id
	0E/7B-09809-B6B95155; Fri, 27 Mar 2015 18:03:23 +0000
X-Env-Sender: jdy22@hermes.cam.ac.uk
X-Msg-Ref: server-11.tower-206.messagelabs.com!1427479402!8079292!1
X-Originating-IP: [131.111.8.142]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogMTMxLjExMS44LjE0MiA9PiAxMTg0OA==\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 30102 invoked from network); 27 Mar 2015 18:03:23 -0000
Received: from ppsw-42.csi.cam.ac.uk (HELO ppsw-42.csi.cam.ac.uk)
	(131.111.8.142)
	by server-11.tower-206.messagelabs.com with DHE-RSA-AES256-SHA
	encrypted SMTP; 27 Mar 2015 18:03:23 -0000
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from mail-qc0-f175.google.com ([209.85.216.175]:34719)
	by ppsw-42.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.158]:587)
	with esmtpsa (PLAIN:jdy22) (TLSv1.2:AES128-GCM-SHA256:128)
	id 1YbYbK-0005rM-8V (Exim 4.82_3-c0e5623) for
	mirageos-devel@lists.xenproject.org
	(return-path <jdy22@hermes.cam.ac.uk>); Fri, 27 Mar 2015 18:03:22 +0000
Received: by qcay5 with SMTP id y5so23305643qca.1
	for <mirageos-devel@lists.xenproject.org>;
	Fri, 27 Mar 2015 11:03:21 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.55.23.204 with SMTP id 73mr42141583qkx.47.1427479401831;
	Fri, 27 Mar 2015 11:03:21 -0700 (PDT)
Received: by 10.229.160.11 with HTTP; Fri, 27 Mar 2015 11:03:21 -0700 (PDT)
In-Reply-To: <CAAxsn=HJKDUZn0OJyjo-i1B65Unx4Eo=vWe=9uUHG7yhiiiT=g@mail.gmail.com>
References: <09E9C361-E86D-489A-8A81-DD43B0A81D5E@cam.ac.uk>
	<5512D7A0.1000304@somerandomidiot.com>
	<5512DACC.5090604@mehnert.org>
	<01F7C088-97CA-4D31-AAAB-FDB91BB410F9@recoil.org>
	<CAAxsn=HJKDUZn0OJyjo-i1B65Unx4Eo=vWe=9uUHG7yhiiiT=g@mail.gmail.com>
Date: Fri, 27 Mar 2015 18:03:21 +0000
Message-ID: <CAAxsn=HXZBJQTh6RYMCwxRd91E2ZNjAQXWe0BU_c-iz8HA3yBA@mail.gmail.com>
From: Jeremy Yallop <jeremy.yallop@cl.cam.ac.uk>
To: Jeremy Yallop <jeremy.yallop@cl.cam.ac.uk>
Cc: "mirageos-devel@lists.xenproject.org"
	<mirageos-devel@lists.xenproject.org>, Anil Madhavapeddy <anil@recoil.org>
Subject: Re: [MirageOS-devel] Serving each URL from a separate unikernel: an
	experiment
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

T24gMjcgTWFyY2ggMjAxNSBhdCAxNzo1MywgSmVyZW15IFlhbGxvcCA8amVyZW15LnlhbGxvcEBj
bC5jYW0uYWMudWs+IHdyb3RlOgo+IE9uIDI3IE1hcmNoIDIwMTUgYXQgMTc6MjgsIEFuaWwgTWFk
aGF2YXBlZGR5IDxhbmlsQHJlY29pbC5vcmc+IHdyb3RlOgo+PiBPbiAyNSBNYXIgMjAxNSwgYXQg
MTU6NTcsIEhhbm5lcyBNZWhuZXJ0IDxoYW5uZXNAbWVobmVydC5vcmc+IHdyb3RlOgo+Pj4KPj4+
IC0tLS0tQkVHSU4gUEdQIFNJR05FRCBNRVNTQUdFLS0tLS0KPj4+IEhhc2g6IFNIQTM4NAo+Pj4K
Pj4+IE9uIDAzLzI1LzIwMTUgMTU6NDMsIE1pbmR5IHdyb3RlOgo+Pj4+IEFsc28sIG5vbmUgb2Yg
dGhlIHVuaWtlcm5lbHMgZXhwZWN0IHRvIHNlcnZlIGFueXRoaW5nIGJ1dCB0aGVpcgo+Pj4+IGZy
b250IHBhZ2VzLCBzbyBvbmUgY291bGQgcHJvYmFibHkgcmVtb3ZlIHRoZSBwYXRoLW1hdGNoaW5n
IGxvZ2ljCj4+Pj4gZnJvbSBkaXNwYXRjaC5tbCwgYW5kIGp1c3QgYWx3YXlzIHNlcnZlIHRoZSAo
b25seSkgY29udGVudHMgb2YgdGhlCj4+Pj4gS1ZfUk8gZnMuIDopCj4+Pgo+Pj4geWVwLi4uIHRo
YXQncyB3aGF0IHRoZSBidGMgcGnDsWF0YSBkb2VzIChoZXJlOgo+Pj4gaHR0cHM6Ly9naXRodWIu
Y29tL21pcmxlZnQvYnRjLXBpbmF0YS9ibG9iL21hc3Rlci91bmlrZXJuZWwubWwjTDEwOSwKPj4+
IHdoZXJlIHBhZ2UgaXMgY293Cj4+PiBodHRwczovL2dpdGh1Yi5jb20vbWlybGVmdC9idGMtcGlu
YXRhL2Jsb2IvbWFzdGVyL3BhZ2UubWwpLiBubwo+Pj4gZGlzcGF0Y2ggaW52b2x2ZWQsIGl0IGRv
ZXNuJ3QgZXZlbiB3YWl0IGZvciB0aGUgR0VUIHJlcXVlc3QuLiA6KQo+Pgo+PiBNeSBNZXRhT0Nh
bWwgYmxlZXBlciBqdXN0IHdlbnQgb2ZmISAgSXQgc2hvdWxkIGJlIHBvc3NpYmxlIHRvIHN0YWdl
Cj4+IHRoZSBkaXNwYXRjaCBmdW5jdGlvbiBhbmQgZW1pdCBhIGRpc3BhdGNoLWZyZWUgdmVyc2lv
biBieQo+PiBwYXJ0aWFsbHkgZXZhbHVhdGluZyBpdCB3aXRoIHRoZSBVUkwuCgpJcyB0aGlzIHRo
ZSBkaXNwYXRjaCBmdW5jdGlvbiBpbiBxdWVzdGlvbj8KCiAgIGh0dHBzOi8vZ2l0aHViLmNvbS9N
YWdudXNTL3ZtLXBlci11cmwtZXhwZXJpbWVudC9ibG9iL2Q2NGY3ZWIzODQ4OC9taXJhZ2UvZGlz
cGF0Y2gubWwjTDMyLUw0MgoKVGhhdCBjZXJ0YWlubHkgbG9va3MgdmVyeSBzdGFnZWFibGUsIGJ1
dCBJIHRoaW5rIHlvdSdkIGhhdmUgdG8KZWxpbWluYXRlIHRoZSBsd3Qgc3ludGF4LCBzaW5jZSBN
ZXRhT0NhbWwgYW5kIENhbWxwNCBkb24ndCBjdXJyZW50bHkKcGxheSBoYXBwaWx5IHRvZ2V0aGVy
LgoKT2YgY291cnNlLCBvbmNlIHlvdSBzdGFydCBzdGFnaW5nIGF3YXkgb3ZlcmhlYWQgaXQncyB0
ZW1wdGluZyB0byBrZWVwCmdvaW5nLCBzbyB5b3UgbWlnaHQgZW5kIHVwIHRyYW5zZm9ybWluZyBl
dmVyeXRoaW5nIGRvd24gdG8gYSBzaW5nbGUKY2FsbCB0byB3cml0ZSBhIHN0cmluZyBsaXRlcmFs
LgoKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTWlyYWdl
T1MtZGV2ZWwgbWFpbGluZyBsaXN0Ck1pcmFnZU9TLWRldmVsQGxpc3RzLnhlbnByb2plY3Qub3Jn
Cmh0dHA6Ly9saXN0cy54ZW5wcm9qZWN0Lm9yZy9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbWly
YWdlb3MtZGV2ZWwK

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 18:03:26 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 18:03:26 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbYbN-0002Y0-Rh; Fri, 27 Mar 2015 18:03:25 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <jdy22@hermes.cam.ac.uk>) id 1YbYbM-0002Xl-5M
	for mirageos-devel@lists.xenproject.org; Fri, 27 Mar 2015 18:03:24 +0000
Received: from [85.158.139.211] by server-17.bemta-5.messagelabs.com id
	0E/7B-09809-B6B95155; Fri, 27 Mar 2015 18:03:23 +0000
X-Env-Sender: jdy22@hermes.cam.ac.uk
X-Msg-Ref: server-11.tower-206.messagelabs.com!1427479402!8079292!1
X-Originating-IP: [131.111.8.142]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogMTMxLjExMS44LjE0MiA9PiAxMTg0OA==\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 30102 invoked from network); 27 Mar 2015 18:03:23 -0000
Received: from ppsw-42.csi.cam.ac.uk (HELO ppsw-42.csi.cam.ac.uk)
	(131.111.8.142)
	by server-11.tower-206.messagelabs.com with DHE-RSA-AES256-SHA
	encrypted SMTP; 27 Mar 2015 18:03:23 -0000
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from mail-qc0-f175.google.com ([209.85.216.175]:34719)
	by ppsw-42.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.158]:587)
	with esmtpsa (PLAIN:jdy22) (TLSv1.2:AES128-GCM-SHA256:128)
	id 1YbYbK-0005rM-8V (Exim 4.82_3-c0e5623) for
	mirageos-devel@lists.xenproject.org
	(return-path <jdy22@hermes.cam.ac.uk>); Fri, 27 Mar 2015 18:03:22 +0000
Received: by qcay5 with SMTP id y5so23305643qca.1
	for <mirageos-devel@lists.xenproject.org>;
	Fri, 27 Mar 2015 11:03:21 -0700 (PDT)
MIME-Version: 1.0
X-Received: by 10.55.23.204 with SMTP id 73mr42141583qkx.47.1427479401831;
	Fri, 27 Mar 2015 11:03:21 -0700 (PDT)
Received: by 10.229.160.11 with HTTP; Fri, 27 Mar 2015 11:03:21 -0700 (PDT)
In-Reply-To: <CAAxsn=HJKDUZn0OJyjo-i1B65Unx4Eo=vWe=9uUHG7yhiiiT=g@mail.gmail.com>
References: <09E9C361-E86D-489A-8A81-DD43B0A81D5E@cam.ac.uk>
	<5512D7A0.1000304@somerandomidiot.com>
	<5512DACC.5090604@mehnert.org>
	<01F7C088-97CA-4D31-AAAB-FDB91BB410F9@recoil.org>
	<CAAxsn=HJKDUZn0OJyjo-i1B65Unx4Eo=vWe=9uUHG7yhiiiT=g@mail.gmail.com>
Date: Fri, 27 Mar 2015 18:03:21 +0000
Message-ID: <CAAxsn=HXZBJQTh6RYMCwxRd91E2ZNjAQXWe0BU_c-iz8HA3yBA@mail.gmail.com>
From: Jeremy Yallop <jeremy.yallop@cl.cam.ac.uk>
To: Jeremy Yallop <jeremy.yallop@cl.cam.ac.uk>
Cc: "mirageos-devel@lists.xenproject.org"
	<mirageos-devel@lists.xenproject.org>, Anil Madhavapeddy <anil@recoil.org>
Subject: Re: [MirageOS-devel] Serving each URL from a separate unikernel: an
	experiment
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

T24gMjcgTWFyY2ggMjAxNSBhdCAxNzo1MywgSmVyZW15IFlhbGxvcCA8amVyZW15LnlhbGxvcEBj
bC5jYW0uYWMudWs+IHdyb3RlOgo+IE9uIDI3IE1hcmNoIDIwMTUgYXQgMTc6MjgsIEFuaWwgTWFk
aGF2YXBlZGR5IDxhbmlsQHJlY29pbC5vcmc+IHdyb3RlOgo+PiBPbiAyNSBNYXIgMjAxNSwgYXQg
MTU6NTcsIEhhbm5lcyBNZWhuZXJ0IDxoYW5uZXNAbWVobmVydC5vcmc+IHdyb3RlOgo+Pj4KPj4+
IC0tLS0tQkVHSU4gUEdQIFNJR05FRCBNRVNTQUdFLS0tLS0KPj4+IEhhc2g6IFNIQTM4NAo+Pj4K
Pj4+IE9uIDAzLzI1LzIwMTUgMTU6NDMsIE1pbmR5IHdyb3RlOgo+Pj4+IEFsc28sIG5vbmUgb2Yg
dGhlIHVuaWtlcm5lbHMgZXhwZWN0IHRvIHNlcnZlIGFueXRoaW5nIGJ1dCB0aGVpcgo+Pj4+IGZy
b250IHBhZ2VzLCBzbyBvbmUgY291bGQgcHJvYmFibHkgcmVtb3ZlIHRoZSBwYXRoLW1hdGNoaW5n
IGxvZ2ljCj4+Pj4gZnJvbSBkaXNwYXRjaC5tbCwgYW5kIGp1c3QgYWx3YXlzIHNlcnZlIHRoZSAo
b25seSkgY29udGVudHMgb2YgdGhlCj4+Pj4gS1ZfUk8gZnMuIDopCj4+Pgo+Pj4geWVwLi4uIHRo
YXQncyB3aGF0IHRoZSBidGMgcGnDsWF0YSBkb2VzIChoZXJlOgo+Pj4gaHR0cHM6Ly9naXRodWIu
Y29tL21pcmxlZnQvYnRjLXBpbmF0YS9ibG9iL21hc3Rlci91bmlrZXJuZWwubWwjTDEwOSwKPj4+
IHdoZXJlIHBhZ2UgaXMgY293Cj4+PiBodHRwczovL2dpdGh1Yi5jb20vbWlybGVmdC9idGMtcGlu
YXRhL2Jsb2IvbWFzdGVyL3BhZ2UubWwpLiBubwo+Pj4gZGlzcGF0Y2ggaW52b2x2ZWQsIGl0IGRv
ZXNuJ3QgZXZlbiB3YWl0IGZvciB0aGUgR0VUIHJlcXVlc3QuLiA6KQo+Pgo+PiBNeSBNZXRhT0Nh
bWwgYmxlZXBlciBqdXN0IHdlbnQgb2ZmISAgSXQgc2hvdWxkIGJlIHBvc3NpYmxlIHRvIHN0YWdl
Cj4+IHRoZSBkaXNwYXRjaCBmdW5jdGlvbiBhbmQgZW1pdCBhIGRpc3BhdGNoLWZyZWUgdmVyc2lv
biBieQo+PiBwYXJ0aWFsbHkgZXZhbHVhdGluZyBpdCB3aXRoIHRoZSBVUkwuCgpJcyB0aGlzIHRo
ZSBkaXNwYXRjaCBmdW5jdGlvbiBpbiBxdWVzdGlvbj8KCiAgIGh0dHBzOi8vZ2l0aHViLmNvbS9N
YWdudXNTL3ZtLXBlci11cmwtZXhwZXJpbWVudC9ibG9iL2Q2NGY3ZWIzODQ4OC9taXJhZ2UvZGlz
cGF0Y2gubWwjTDMyLUw0MgoKVGhhdCBjZXJ0YWlubHkgbG9va3MgdmVyeSBzdGFnZWFibGUsIGJ1
dCBJIHRoaW5rIHlvdSdkIGhhdmUgdG8KZWxpbWluYXRlIHRoZSBsd3Qgc3ludGF4LCBzaW5jZSBN
ZXRhT0NhbWwgYW5kIENhbWxwNCBkb24ndCBjdXJyZW50bHkKcGxheSBoYXBwaWx5IHRvZ2V0aGVy
LgoKT2YgY291cnNlLCBvbmNlIHlvdSBzdGFydCBzdGFnaW5nIGF3YXkgb3ZlcmhlYWQgaXQncyB0
ZW1wdGluZyB0byBrZWVwCmdvaW5nLCBzbyB5b3UgbWlnaHQgZW5kIHVwIHRyYW5zZm9ybWluZyBl
dmVyeXRoaW5nIGRvd24gdG8gYSBzaW5nbGUKY2FsbCB0byB3cml0ZSBhIHN0cmluZyBsaXRlcmFs
LgoKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KTWlyYWdl
T1MtZGV2ZWwgbWFpbGluZyBsaXN0Ck1pcmFnZU9TLWRldmVsQGxpc3RzLnhlbnByb2plY3Qub3Jn
Cmh0dHA6Ly9saXN0cy54ZW5wcm9qZWN0Lm9yZy9jZ2ktYmluL21haWxtYW4vbGlzdGluZm8vbWly
YWdlb3MtZGV2ZWwK

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 18:25:03 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 18:25:03 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbYwH-00077e-1v; Fri, 27 Mar 2015 18:25:01 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <unitedbiscuits@gmail.com>) id 1YbYwF-00077Z-LB
	for mirageos-devel@lists.xenproject.org; Fri, 27 Mar 2015 18:24:59 +0000
Received: from [85.158.137.68] by server-9.bemta-3.messagelabs.com id
	B9/C8-26324-A70A5155; Fri, 27 Mar 2015 18:24:58 +0000
X-Env-Sender: unitedbiscuits@gmail.com
X-Msg-Ref: server-4.tower-31.messagelabs.com!1427480698!11729878!1
X-Originating-IP: [209.85.212.170]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 26808 invoked from network); 27 Mar 2015 18:24:58 -0000
Received: from mail-wi0-f170.google.com (HELO mail-wi0-f170.google.com)
	(209.85.212.170)
	by server-4.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	27 Mar 2015 18:24:58 -0000
Received: by wixm2 with SMTP id m2so40420943wix.0
	for <mirageos-devel@lists.xenproject.org>;
	Fri, 27 Mar 2015 11:24:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type:content-transfer-encoding;
	bh=ridy9j/ru5Jm3GaNhyHFpdEUzq8tCF2eg51SFgtFBTg=;
	b=IIZnYtz9eQ5KGjDZNnhh1Myz4n9Y+ALaawhSs6P36C4WC/oIiGZ5kWmacKZ6deGtth
	V3+GCd1Rb6dilMWCPrQye54/r2lIxUYoBgVLKHUSg81xFo2IQwcVfWpkVrqcoSZyeNUu
	OALnN1q8xIuRJU+maEnVkzHke+MnVFjHjDNqPj+2op/6jom5BgyoMvTbBmbJyIHAkdtX
	rSSormjmK1aiBFlNnVj+jF3pBSF7s8/3W3Ya8ECyG+kV6+yLzfVY0WcTw3hJCAMRru55
	EZLrv4BstJBiqeA2tpy0+o08jGPeZK5CLk8PzGYcvH0wnVQLgyiBCHB9i6ygSpWXsMnp
	9mNA==
X-Received: by 10.194.220.7 with SMTP id ps7mr41095944wjc.84.1427480698047;
	Fri, 27 Mar 2015 11:24:58 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.27.103.13 with HTTP; Fri, 27 Mar 2015 11:24:37 -0700 (PDT)
In-Reply-To: <810118AE-496E-4629-80C4-B27E62F648DB@recoil.org>
References: <CAAhS_v_0FJYStm60S=D4RO4B1t2of6wSCvg_4WXVRegqUv5WwA@mail.gmail.com>
	<B2308515-CF39-4DA2-A692-665437F23892@gazagnaire.org>
	<810118AE-496E-4629-80C4-B27E62F648DB@recoil.org>
From: david <unitedbiscuits@gmail.com>
Date: Fri, 27 Mar 2015 18:24:37 +0000
Message-ID: <CAAhS_v_OKicESyswF1wZerUJqsHdLuSJCcTBOKo1Bex0+P4oZw@mail.gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: Thomas Gazagnaire <thomas@gazagnaire.org>,
	mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Update on entropy
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On Fri, Mar 27, 2015 at 4:49 PM, Anil Madhavapeddy <anil@recoil.org> wrote:
> On 27 Mar 2015, at 15:16, Thomas Gazagnaire <thomas@gazagnaire.org> wrote:
>>
>> Hi,
>>
>>> And the question I am raising is: Are there objections to this? Did
>>> anyone want to code something that requires direct access to entropy
>>> sources (i.e. another RNG)? Did anyone want to make a separate entropy
>>> provider?
>>
>> I think that's a good idea. We should still keep the modular approach of MirageOS (ie. having separate librarie(s) to deal with entropy) but I'm fine to remove the ENTROPY signature for V1 and V1_LWT as it doesn't bring much (apart from confusion it appears).

Yes, absolutely. I did not actually want to inline various libraries
into one; rather, I'm arguing that we introduced a bit of unintended
generality by adding a public interface ahead of actual need, and that
we can simplify the system by backing out a bit.

> I'm also fine with this approach.  Just one thing that would be good
> to define would be which our "singleton" devices are.  In the case of
> entropy, it's extremely unlikely that you would want to have a
> non-shared mixer, so perhaps we should enforce that explicitly in the
> Mirage config eDSL...
>
> It would also be good to port the TCP/IP stack to using nocrypto at
> the same time, to give it the IP ID and TCP ISN random sources, and
> to have more than one consumer outside of the TLS stack.  This is a
> very localised patch -- it currently uses the Random module directly.

This follows from equipping Nocrypto with the existing Mirage RANDOM
signature (almost trivial). I think no further changes to anything
else are needed, as TCP is already functorized over RANDOM. Thomas'
objection to GMP still applies, though, but there would be no
coupling.

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Fri Mar 27 18:25:03 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Fri, 27 Mar 2015 18:25:03 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbYwH-00077e-1v; Fri, 27 Mar 2015 18:25:01 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <unitedbiscuits@gmail.com>) id 1YbYwF-00077Z-LB
	for mirageos-devel@lists.xenproject.org; Fri, 27 Mar 2015 18:24:59 +0000
Received: from [85.158.137.68] by server-9.bemta-3.messagelabs.com id
	B9/C8-26324-A70A5155; Fri, 27 Mar 2015 18:24:58 +0000
X-Env-Sender: unitedbiscuits@gmail.com
X-Msg-Ref: server-4.tower-31.messagelabs.com!1427480698!11729878!1
X-Originating-IP: [209.85.212.170]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 26808 invoked from network); 27 Mar 2015 18:24:58 -0000
Received: from mail-wi0-f170.google.com (HELO mail-wi0-f170.google.com)
	(209.85.212.170)
	by server-4.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	27 Mar 2015 18:24:58 -0000
Received: by wixm2 with SMTP id m2so40420943wix.0
	for <mirageos-devel@lists.xenproject.org>;
	Fri, 27 Mar 2015 11:24:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type:content-transfer-encoding;
	bh=ridy9j/ru5Jm3GaNhyHFpdEUzq8tCF2eg51SFgtFBTg=;
	b=IIZnYtz9eQ5KGjDZNnhh1Myz4n9Y+ALaawhSs6P36C4WC/oIiGZ5kWmacKZ6deGtth
	V3+GCd1Rb6dilMWCPrQye54/r2lIxUYoBgVLKHUSg81xFo2IQwcVfWpkVrqcoSZyeNUu
	OALnN1q8xIuRJU+maEnVkzHke+MnVFjHjDNqPj+2op/6jom5BgyoMvTbBmbJyIHAkdtX
	rSSormjmK1aiBFlNnVj+jF3pBSF7s8/3W3Ya8ECyG+kV6+yLzfVY0WcTw3hJCAMRru55
	EZLrv4BstJBiqeA2tpy0+o08jGPeZK5CLk8PzGYcvH0wnVQLgyiBCHB9i6ygSpWXsMnp
	9mNA==
X-Received: by 10.194.220.7 with SMTP id ps7mr41095944wjc.84.1427480698047;
	Fri, 27 Mar 2015 11:24:58 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.27.103.13 with HTTP; Fri, 27 Mar 2015 11:24:37 -0700 (PDT)
In-Reply-To: <810118AE-496E-4629-80C4-B27E62F648DB@recoil.org>
References: <CAAhS_v_0FJYStm60S=D4RO4B1t2of6wSCvg_4WXVRegqUv5WwA@mail.gmail.com>
	<B2308515-CF39-4DA2-A692-665437F23892@gazagnaire.org>
	<810118AE-496E-4629-80C4-B27E62F648DB@recoil.org>
From: david <unitedbiscuits@gmail.com>
Date: Fri, 27 Mar 2015 18:24:37 +0000
Message-ID: <CAAhS_v_OKicESyswF1wZerUJqsHdLuSJCcTBOKo1Bex0+P4oZw@mail.gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: Thomas Gazagnaire <thomas@gazagnaire.org>,
	mirageos-devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Update on entropy
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On Fri, Mar 27, 2015 at 4:49 PM, Anil Madhavapeddy <anil@recoil.org> wrote:
> On 27 Mar 2015, at 15:16, Thomas Gazagnaire <thomas@gazagnaire.org> wrote:
>>
>> Hi,
>>
>>> And the question I am raising is: Are there objections to this? Did
>>> anyone want to code something that requires direct access to entropy
>>> sources (i.e. another RNG)? Did anyone want to make a separate entropy
>>> provider?
>>
>> I think that's a good idea. We should still keep the modular approach of MirageOS (ie. having separate librarie(s) to deal with entropy) but I'm fine to remove the ENTROPY signature for V1 and V1_LWT as it doesn't bring much (apart from confusion it appears).

Yes, absolutely. I did not actually want to inline various libraries
into one; rather, I'm arguing that we introduced a bit of unintended
generality by adding a public interface ahead of actual need, and that
we can simplify the system by backing out a bit.

> I'm also fine with this approach.  Just one thing that would be good
> to define would be which our "singleton" devices are.  In the case of
> entropy, it's extremely unlikely that you would want to have a
> non-shared mixer, so perhaps we should enforce that explicitly in the
> Mirage config eDSL...
>
> It would also be good to port the TCP/IP stack to using nocrypto at
> the same time, to give it the IP ID and TCP ISN random sources, and
> to have more than one consumer outside of the TLS stack.  This is a
> very localised patch -- it currently uses the Random module directly.

This follows from equipping Nocrypto with the existing Mirage RANDOM
signature (almost trivial). I think no further changes to anything
else are needed, as TCP is already functorized over RANDOM. Thomas'
objection to GMP still applies, though, but there would be no
coupling.

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Sat Mar 28 02:21:58 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 28 Mar 2015 02:21:58 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbgNj-0007NT-HO; Sat, 28 Mar 2015 02:21:51 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <lukedunstan81@gmail.com>) id 1YbgNh-0007NO-KV
	for MirageOS-devel@lists.xenproject.org; Sat, 28 Mar 2015 02:21:49 +0000
Received: from [85.158.139.211] by server-6.bemta-5.messagelabs.com id
	62/B3-03284-C3016155; Sat, 28 Mar 2015 02:21:48 +0000
X-Env-Sender: lukedunstan81@gmail.com
X-Msg-Ref: server-2.tower-206.messagelabs.com!1427509307!12240484!1
X-Originating-IP: [209.85.215.53]
X-SpamReason: No, hits=0.8 required=7.0 tests=BODY_RANDOM_LONG,
  RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 17785 invoked from network); 28 Mar 2015 02:21:48 -0000
Received: from mail-la0-f53.google.com (HELO mail-la0-f53.google.com)
	(209.85.215.53)
	by server-2.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	28 Mar 2015 02:21:48 -0000
Received: by labto5 with SMTP id to5so83420556lab.0
	for <MirageOS-devel@lists.xenproject.org>;
	Fri, 27 Mar 2015 19:21:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=mqE8Idol6fdIul3wPf9d2hlWPHBnaJQkysCtviOABYs=;
	b=CyQGP0KkW1OLfH1crWHQ4Rqy+8jScMsjLnsNhDOgrBmuxSeT8Q6mzYqakRJuKREfra
	NGNwvjO6XciSc7ACCNIC6KozwDfodra/hcOHEM4cwTdCSWjmh0rr4QqFB5pFhtc6ebFP
	e7fe5bS++fnD6WsKmpg89NMscZ7SKWNyDQ9S5A5q/CM4ZFl6HLG/VPDtbUOU1Ygz3OH/
	UflnJmmNXtUIVwy7rytAnweA6beS3NsvebLRgiV88RBq/I7+01ePWSJO2H52nrUyCr52
	0qqyMo3mEFNF05wQzJICSTDHNQpNQrG1ulwkPEKg4dknD8GUanm0leaJ9DjII4qis6ex
	KR+A==
MIME-Version: 1.0
X-Received: by 10.112.46.74 with SMTP id t10mr19675064lbm.73.1427509307311;
	Fri, 27 Mar 2015 19:21:47 -0700 (PDT)
Received: by 10.112.119.168 with HTTP; Fri, 27 Mar 2015 19:21:47 -0700 (PDT)
In-Reply-To: <CAN2Hq05adTAz3sKCb7od8t281iOjt_foCOqdRiR2Fu4h-hxrKQ@mail.gmail.com>
References: <CAN2Hq065aw19pzHh7_SFEMqMXDJgbZvtPqBLwYdTcffci4Jhpw@mail.gmail.com>
	<A4EDEA26-B3FB-4F1C-A254-A122776F6056@recoil.org>
	<CAN2Hq05adTAz3sKCb7od8t281iOjt_foCOqdRiR2Fu4h-hxrKQ@mail.gmail.com>
Date: Sat, 28 Mar 2015 10:21:47 +0800
Message-ID: <CAEui0wVcRMaGmu_YKXcuV3pqv8SbvODcaYcoNXC9OLnGLk_4vA@mail.gmail.com>
From: Luke Dunstan <lukedunstan81@gmail.com>
To: Richard Mortier <richard.mortier@cl.cam.ac.uk>
Cc: mirageos-devel <MirageOS-devel@lists.xenproject.org>,
	Anil Madhavapeddy <anil@recoil.org>
Subject: Re: [MirageOS-devel] Concerning testing network protocols
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 28 March 2015 at 01:29, Richard Mortier <richard.mortier@cl.cam.ac.uk> wrote:
> On 27 March 2015 at 17:17, Anil Madhavapeddy <anil@recoil.org> wrote:
>>> 1. Split all wire format de/serialization code out of each protocol
>>> into a distinct library. Link against this library in both
>>> `pcap-format` and `ocaml-<protocol>`. Unit test the protocol
>>> implementation separately (perhaps via property-based testing which
>>> might not require a separate implementation, perhaps relying on
>>> completely distinct implementations like `libpcap`).
>>
>> This one sounds best to me.
>
> Good -- it's probably my preferred one too. Guess it would mean
> creating `x` and `x-format` (and perhaps `x-unix` to capture the
> values that convert files to streams of captured packets) for x =
> pcap, tcpip, dns, etc etc; and then a separate `trace-analysis`
> library or something...
>
>> Although, it sounds like there's a
>> certain amount of feature creep going into pcap-format.
>>
>> Why not just parse the raw pcap format in pcap-format, and have a new
>> pcap-format-analysis library that depends on both pcap-format and ocaml-dns?
>
> Not sure what you mean. What was the intended feature set of `pcap-format`?
>
> The first version of `pcap-format` parsed the PCAP container format,
> Ethernet, IP, TCP from Unix files iirc.

The version of pcap-format that the ocaml-dns unit tests were written
against only supported the PCAP container format in its interface:

https://github.com/mirage/ocaml-pcap/blob/d3f127d160c0f484a9364a25f274926b7a416ab7/lib/pcap.ml

The print.ml program supported Ethernet, IP, and TCP structs (not UDP)
and printing, but those weren't exposed.

>
> I hacked about to add some more, but then stopped doing that and
> started trying to use existing implementations, starting with
> `ocaml-dns` as that seemed easier than trying to use `tcipip` to cover
> TCP and IP (and Ethernet?), and I wanted a `libpcap` lookalike for
> Mirage.

Sounds good.

>
> Are you suggesting
>
> 4. Strip `pcap-format` back to just the PCAP container parsing code,
> and create `pcap-format-analysis` as a separate library?
>
> In which case the same problem will arise as I believe the current
> unit test code in `ocaml-dns` will end up relying on
> `pcap-format-analysis` as currently posed. (Presumably the point being
> to use an independent implementation of the wire format parsers to
> unit test the `ocaml-dns` implementations.)

The ocaml-dns unit tests needed Ethernet, IP, and UDP structs (not
pretty printing), so those ~50 lines of code was copied and pasted
from print.ml as a temporary solution. So yes, if the packet structs
for UDP and lower layers were moved to pcap-format-analysis then the
DNS unit tests would have to continue to duplicate them to avoid a
circular dependency.

On the other hand, if the transport layer was available as
tcpip-format and pcap-format was doing nothing but PCAP then the DNS
unit tests could depend on those two packages. Then
pcap-format-analysis would be free to depend on ocaml-dns (or
dns-format).

I am imagining that pcap-format-analysis would mainly be the glue that
figures out which x-format libraries to call based on port numbers (if
not overridden by the user). It would also be doing the top-level
pretty printing, while x-format libraries would still implement
to_string functions, like Dns.Packet does.


Luke

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Sat Mar 28 02:21:58 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 28 Mar 2015 02:21:58 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbgNj-0007NT-HO; Sat, 28 Mar 2015 02:21:51 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <lukedunstan81@gmail.com>) id 1YbgNh-0007NO-KV
	for MirageOS-devel@lists.xenproject.org; Sat, 28 Mar 2015 02:21:49 +0000
Received: from [85.158.139.211] by server-6.bemta-5.messagelabs.com id
	62/B3-03284-C3016155; Sat, 28 Mar 2015 02:21:48 +0000
X-Env-Sender: lukedunstan81@gmail.com
X-Msg-Ref: server-2.tower-206.messagelabs.com!1427509307!12240484!1
X-Originating-IP: [209.85.215.53]
X-SpamReason: No, hits=0.8 required=7.0 tests=BODY_RANDOM_LONG,
  RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 17785 invoked from network); 28 Mar 2015 02:21:48 -0000
Received: from mail-la0-f53.google.com (HELO mail-la0-f53.google.com)
	(209.85.215.53)
	by server-2.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	28 Mar 2015 02:21:48 -0000
Received: by labto5 with SMTP id to5so83420556lab.0
	for <MirageOS-devel@lists.xenproject.org>;
	Fri, 27 Mar 2015 19:21:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=mqE8Idol6fdIul3wPf9d2hlWPHBnaJQkysCtviOABYs=;
	b=CyQGP0KkW1OLfH1crWHQ4Rqy+8jScMsjLnsNhDOgrBmuxSeT8Q6mzYqakRJuKREfra
	NGNwvjO6XciSc7ACCNIC6KozwDfodra/hcOHEM4cwTdCSWjmh0rr4QqFB5pFhtc6ebFP
	e7fe5bS++fnD6WsKmpg89NMscZ7SKWNyDQ9S5A5q/CM4ZFl6HLG/VPDtbUOU1Ygz3OH/
	UflnJmmNXtUIVwy7rytAnweA6beS3NsvebLRgiV88RBq/I7+01ePWSJO2H52nrUyCr52
	0qqyMo3mEFNF05wQzJICSTDHNQpNQrG1ulwkPEKg4dknD8GUanm0leaJ9DjII4qis6ex
	KR+A==
MIME-Version: 1.0
X-Received: by 10.112.46.74 with SMTP id t10mr19675064lbm.73.1427509307311;
	Fri, 27 Mar 2015 19:21:47 -0700 (PDT)
Received: by 10.112.119.168 with HTTP; Fri, 27 Mar 2015 19:21:47 -0700 (PDT)
In-Reply-To: <CAN2Hq05adTAz3sKCb7od8t281iOjt_foCOqdRiR2Fu4h-hxrKQ@mail.gmail.com>
References: <CAN2Hq065aw19pzHh7_SFEMqMXDJgbZvtPqBLwYdTcffci4Jhpw@mail.gmail.com>
	<A4EDEA26-B3FB-4F1C-A254-A122776F6056@recoil.org>
	<CAN2Hq05adTAz3sKCb7od8t281iOjt_foCOqdRiR2Fu4h-hxrKQ@mail.gmail.com>
Date: Sat, 28 Mar 2015 10:21:47 +0800
Message-ID: <CAEui0wVcRMaGmu_YKXcuV3pqv8SbvODcaYcoNXC9OLnGLk_4vA@mail.gmail.com>
From: Luke Dunstan <lukedunstan81@gmail.com>
To: Richard Mortier <richard.mortier@cl.cam.ac.uk>
Cc: mirageos-devel <MirageOS-devel@lists.xenproject.org>,
	Anil Madhavapeddy <anil@recoil.org>
Subject: Re: [MirageOS-devel] Concerning testing network protocols
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 28 March 2015 at 01:29, Richard Mortier <richard.mortier@cl.cam.ac.uk> wrote:
> On 27 March 2015 at 17:17, Anil Madhavapeddy <anil@recoil.org> wrote:
>>> 1. Split all wire format de/serialization code out of each protocol
>>> into a distinct library. Link against this library in both
>>> `pcap-format` and `ocaml-<protocol>`. Unit test the protocol
>>> implementation separately (perhaps via property-based testing which
>>> might not require a separate implementation, perhaps relying on
>>> completely distinct implementations like `libpcap`).
>>
>> This one sounds best to me.
>
> Good -- it's probably my preferred one too. Guess it would mean
> creating `x` and `x-format` (and perhaps `x-unix` to capture the
> values that convert files to streams of captured packets) for x =
> pcap, tcpip, dns, etc etc; and then a separate `trace-analysis`
> library or something...
>
>> Although, it sounds like there's a
>> certain amount of feature creep going into pcap-format.
>>
>> Why not just parse the raw pcap format in pcap-format, and have a new
>> pcap-format-analysis library that depends on both pcap-format and ocaml-dns?
>
> Not sure what you mean. What was the intended feature set of `pcap-format`?
>
> The first version of `pcap-format` parsed the PCAP container format,
> Ethernet, IP, TCP from Unix files iirc.

The version of pcap-format that the ocaml-dns unit tests were written
against only supported the PCAP container format in its interface:

https://github.com/mirage/ocaml-pcap/blob/d3f127d160c0f484a9364a25f274926b7a416ab7/lib/pcap.ml

The print.ml program supported Ethernet, IP, and TCP structs (not UDP)
and printing, but those weren't exposed.

>
> I hacked about to add some more, but then stopped doing that and
> started trying to use existing implementations, starting with
> `ocaml-dns` as that seemed easier than trying to use `tcipip` to cover
> TCP and IP (and Ethernet?), and I wanted a `libpcap` lookalike for
> Mirage.

Sounds good.

>
> Are you suggesting
>
> 4. Strip `pcap-format` back to just the PCAP container parsing code,
> and create `pcap-format-analysis` as a separate library?
>
> In which case the same problem will arise as I believe the current
> unit test code in `ocaml-dns` will end up relying on
> `pcap-format-analysis` as currently posed. (Presumably the point being
> to use an independent implementation of the wire format parsers to
> unit test the `ocaml-dns` implementations.)

The ocaml-dns unit tests needed Ethernet, IP, and UDP structs (not
pretty printing), so those ~50 lines of code was copied and pasted
from print.ml as a temporary solution. So yes, if the packet structs
for UDP and lower layers were moved to pcap-format-analysis then the
DNS unit tests would have to continue to duplicate them to avoid a
circular dependency.

On the other hand, if the transport layer was available as
tcpip-format and pcap-format was doing nothing but PCAP then the DNS
unit tests could depend on those two packages. Then
pcap-format-analysis would be free to depend on ocaml-dns (or
dns-format).

I am imagining that pcap-format-analysis would mainly be the glue that
figures out which x-format libraries to call based on port numbers (if
not overridden by the user). It would also be doing the top-level
pretty printing, while x-format libraries would still implement
to_string functions, like Dns.Packet does.


Luke

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Sat Mar 28 14:24:30 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 28 Mar 2015 14:24:30 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Ybrev-0000rH-Hh; Sat, 28 Mar 2015 14:24:21 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <trevorsummerssmith@gmail.com>) id 1Ybreu-0000rC-8d
	for mirageos-devel@lists.xenproject.org; Sat, 28 Mar 2015 14:24:20 +0000
Received: from [85.158.137.68] by server-3.bemta-3.messagelabs.com id
	EA/F6-11187-399B6155; Sat, 28 Mar 2015 14:24:19 +0000
X-Env-Sender: trevorsummerssmith@gmail.com
X-Msg-Ref: server-9.tower-31.messagelabs.com!1427552657!8186807!1
X-Originating-IP: [209.85.216.171]
X-SpamReason: No, hits=1.2 required=7.0 tests=HTML_10_20,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 17140 invoked from network); 28 Mar 2015 14:24:18 -0000
Received: from mail-qc0-f171.google.com (HELO mail-qc0-f171.google.com)
	(209.85.216.171)
	by server-9.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	28 Mar 2015 14:24:18 -0000
Received: by qcfy6 with SMTP id y6so19165671qcf.2
	for <mirageos-devel@lists.xenproject.org>;
	Sat, 28 Mar 2015 07:24:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=s7NALHzSCvQpvVVXAJ/NZJl1fdXZAqsGuGNjkg6J6YU=;
	b=CS9Q9Osnw4ZypuIkZtgobCKeZnh6u3kimrw+BSoHVxTS/6WhtbZS8vkWXN/5KSLfvx
	h88a8tH0T+CUcEpfiyHyV5B1NVOS4ME2UgwfqlD4mJ+ZsV4mY18GFQwJ0UR1x/W+wtIi
	42Mm+1+MPcwQ4MQ6O6ZXqxyUwpd5CBSPFbK8VngNpDC/uY3T9a0AxjT+SbVo6VbLzpGL
	jfjnoQ7usppZZgTQH+ZMk/IEYkRuNLblwRV51F17tzSMT/ieElx3R+jO6ueFnxLrunJe
	w/yEmw21yaDb1Wm1ikXqaJPFCeW6wr1qoQ+7wQTga1HlHavKbZ9pnX/dEq6OMnGaMu74
	a99Q==
MIME-Version: 1.0
X-Received: by 10.55.31.143 with SMTP id n15mr50222373qkh.70.1427552657444;
	Sat, 28 Mar 2015 07:24:17 -0700 (PDT)
Received: by 10.229.240.68 with HTTP; Sat, 28 Mar 2015 07:24:17 -0700 (PDT)
Date: Sat, 28 Mar 2015 10:24:17 -0400
Message-ID: <CAG-KTt98N7vUvLKtuM5m1HWsh-Sqsi=ziTKS6r9Tr6XHtZVovQ@mail.gmail.com>
From: Trevor Smith <trevorsummerssmith@gmail.com>
To: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: [MirageOS-devel] Cohttp Design -- LWT, Async, JS,
	Mirage Compatibility
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============6567388503121204256=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============6567388503121204256==
Content-Type: multipart/alternative; boundary=001a1147e97c0b950605125a0101

--001a1147e97c0b950605125a0101
Content-Type: text/plain; charset=UTF-8

Hi all,

I was wondering if there is a document somewhere describing why the
different backends to cohttp don't have a unified client/server interface?
It seems like it would be such a boon for the user to be able to write
their code but be able to choose the backends. I realize that this must
have already received much discussion but am not sure where it is located.

Thanks.

Trevor

--001a1147e97c0b950605125a0101
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi all,<div><br></div><div>I was wondering if there is a d=
ocument somewhere describing why the different backends to cohttp don&#39;t=
 have a unified client/server interface? It seems like it would be such a b=
oon for the user to be able to write their code but be able to choose the b=
ackends. I realize that this must have already received much discussion but=
 am not sure where it is located.</div><div><br></div><div>Thanks.</div><di=
v><br></div><div>Trevor</div></div>

--001a1147e97c0b950605125a0101--


--===============6567388503121204256==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============6567388503121204256==--


From mirageos-devel-bounces@lists.xenproject.org Sat Mar 28 14:24:30 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 28 Mar 2015 14:24:30 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Ybrev-0000rH-Hh; Sat, 28 Mar 2015 14:24:21 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <trevorsummerssmith@gmail.com>) id 1Ybreu-0000rC-8d
	for mirageos-devel@lists.xenproject.org; Sat, 28 Mar 2015 14:24:20 +0000
Received: from [85.158.137.68] by server-3.bemta-3.messagelabs.com id
	EA/F6-11187-399B6155; Sat, 28 Mar 2015 14:24:19 +0000
X-Env-Sender: trevorsummerssmith@gmail.com
X-Msg-Ref: server-9.tower-31.messagelabs.com!1427552657!8186807!1
X-Originating-IP: [209.85.216.171]
X-SpamReason: No, hits=1.2 required=7.0 tests=HTML_10_20,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 17140 invoked from network); 28 Mar 2015 14:24:18 -0000
Received: from mail-qc0-f171.google.com (HELO mail-qc0-f171.google.com)
	(209.85.216.171)
	by server-9.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	28 Mar 2015 14:24:18 -0000
Received: by qcfy6 with SMTP id y6so19165671qcf.2
	for <mirageos-devel@lists.xenproject.org>;
	Sat, 28 Mar 2015 07:24:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=s7NALHzSCvQpvVVXAJ/NZJl1fdXZAqsGuGNjkg6J6YU=;
	b=CS9Q9Osnw4ZypuIkZtgobCKeZnh6u3kimrw+BSoHVxTS/6WhtbZS8vkWXN/5KSLfvx
	h88a8tH0T+CUcEpfiyHyV5B1NVOS4ME2UgwfqlD4mJ+ZsV4mY18GFQwJ0UR1x/W+wtIi
	42Mm+1+MPcwQ4MQ6O6ZXqxyUwpd5CBSPFbK8VngNpDC/uY3T9a0AxjT+SbVo6VbLzpGL
	jfjnoQ7usppZZgTQH+ZMk/IEYkRuNLblwRV51F17tzSMT/ieElx3R+jO6ueFnxLrunJe
	w/yEmw21yaDb1Wm1ikXqaJPFCeW6wr1qoQ+7wQTga1HlHavKbZ9pnX/dEq6OMnGaMu74
	a99Q==
MIME-Version: 1.0
X-Received: by 10.55.31.143 with SMTP id n15mr50222373qkh.70.1427552657444;
	Sat, 28 Mar 2015 07:24:17 -0700 (PDT)
Received: by 10.229.240.68 with HTTP; Sat, 28 Mar 2015 07:24:17 -0700 (PDT)
Date: Sat, 28 Mar 2015 10:24:17 -0400
Message-ID: <CAG-KTt98N7vUvLKtuM5m1HWsh-Sqsi=ziTKS6r9Tr6XHtZVovQ@mail.gmail.com>
From: Trevor Smith <trevorsummerssmith@gmail.com>
To: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: [MirageOS-devel] Cohttp Design -- LWT, Async, JS,
	Mirage Compatibility
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============6567388503121204256=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============6567388503121204256==
Content-Type: multipart/alternative; boundary=001a1147e97c0b950605125a0101

--001a1147e97c0b950605125a0101
Content-Type: text/plain; charset=UTF-8

Hi all,

I was wondering if there is a document somewhere describing why the
different backends to cohttp don't have a unified client/server interface?
It seems like it would be such a boon for the user to be able to write
their code but be able to choose the backends. I realize that this must
have already received much discussion but am not sure where it is located.

Thanks.

Trevor

--001a1147e97c0b950605125a0101
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi all,<div><br></div><div>I was wondering if there is a d=
ocument somewhere describing why the different backends to cohttp don&#39;t=
 have a unified client/server interface? It seems like it would be such a b=
oon for the user to be able to write their code but be able to choose the b=
ackends. I realize that this must have already received much discussion but=
 am not sure where it is located.</div><div><br></div><div>Thanks.</div><di=
v><br></div><div>Trevor</div></div>

--001a1147e97c0b950605125a0101--


--===============6567388503121204256==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============6567388503121204256==--


From mirageos-devel-bounces@lists.xenproject.org Sat Mar 28 16:37:11 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 28 Mar 2015 16:37:11 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbtjL-0005It-2t; Sat, 28 Mar 2015 16:37:03 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YbtjJ-0005Io-5U
	for mirageos-devel@lists.xenproject.org; Sat, 28 Mar 2015 16:37:01 +0000
Received: from [193.109.254.147] by server-9.bemta-14.messagelabs.com id
	5C/6F-17310-CA8D6155; Sat, 28 Mar 2015 16:37:00 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-7.tower-27.messagelabs.com!1427560618!13893134!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=1.6 required=7.0 tests=BODY_RANDOM_LONG,
	HTML_10_20,HTML_MESSAGE,RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 1216 invoked from network); 28 Mar 2015 16:36:58 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-7.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 28 Mar 2015 16:36:58 -0000
Received: from [10.0.1.7] (cpc11-belf9-2-0-cust355.2-1.cable.virginm.net
	[86.24.61.100]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 4517b100;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Sat, 28 Mar 2015 16:36:57 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAG-KTt98N7vUvLKtuM5m1HWsh-Sqsi=ziTKS6r9Tr6XHtZVovQ@mail.gmail.com>
Date: Sat, 28 Mar 2015 16:36:57 +0000
Message-Id: <DAB7D242-C922-45D4-B01A-53697855979F@recoil.org>
References: <CAG-KTt98N7vUvLKtuM5m1HWsh-Sqsi=ziTKS6r9Tr6XHtZVovQ@mail.gmail.com>
To: Trevor Smith <trevorsummerssmith@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Cohttp Design -- LWT, Async, JS,
	Mirage Compatibility
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============3738530756651320925=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============3738530756651320925==
Content-Type: multipart/alternative; boundary="Apple-Mail=_464D3655-770A-47ED-9CB1-1604AA0C46A2"


--Apple-Mail=_464D3655-770A-47ED-9CB1-1604AA0C46A2
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 28 Mar 2015, at 14:24, Trevor Smith <trevorsummerssmith@gmail.com> =
wrote:
>=20
> Hi all,
>=20
> I was wondering if there is a document somewhere describing why the =
different backends to cohttp don't have a unified client/server =
interface? It seems like it would be such a boon for the user to be able =
to write their code but be able to choose the backends. I realize that =
this must have already received much discussion but am not sure where it =
is located.

Hi Trevor,

There's no design document describing this, mainly because CoHTTP =
started as an informal bet between me and Yaron Minsky that the current =
design would be impossible/a bad idea.  The jury's still out on the =
verdict, but I don't think I've lost yet :-)

I wanted to build an HTTP implementation as an "onion", with the =
portable parsing core progressively introducing I/O, and then =
higher-level abstractions for various HTTP operations.  Here's my =
description of each layer (that eventually ought to go into a design doc =
in the CoHTTP repo to make it more accessible to newcomers to the =
codebase):

- The very first layer (in `lib/`) is a pure OCaml, non-blocking layer =
that handles simple parts of the HTTP protocol such as parsing requests =
and responses, various header parsers (e.g. cookies) and codes.

- Some layers of HTTP need some notion of I/O, and so there is a set of =
signatures in `lib/s.mli` that defines some common module types that can =
be used to build parameterised modules (also known as functors).  The =
first one used in the `lib/` layer is the IO module type, which defines =
the minimal collection of functions used by cooperative threading =
libraries.  The pure HTTP core uses this IO module to capture IO-based =
operations, such as Transfer_IO (for transfer encoding).

- There are three implementations that satisfy the IO module in the =
tree: Lwt, Async and String.  The first two are full cooperative =
threading libraries, and the latter is used by the js_of_ocaml backend =
to read/write between Strings.

- Now that IO has been handled, we can send HTTP requests and responses =
from Lwt or Async.  However, at this point some differences appear in =
the implementations of Async and Lwt, notably in how they handle =
cancellation of threads and also higher-level iterators (e.g. Async has =
Pipes, and Lwt has Lwt_stream -- both quite different).  Therefore, we =
build backend-specific Client and Server modules that use their =
respective threading libraries in as native a style as possible, but =
still reusing the core HTTP library from `lib/`.  These can be found in =
`Cohttp_lwt` and `Cohttp_async` respectively.  Dave Scott also wrote an =
(as yet not merged) POSIX blocking version that they use in the XenAPI =
daemon.

- Lwt comes with an additional twist -- it is portable to both Unix =
*and* the MirageOS, which has no Unix at all!  Lwt makes it possible to =
define a "Lwt core" that uses the portable Lwt thread abstractions, but =
doesn't use any OS-specific functionality.  Thus we can define an HTTP =
Client and Server in Cohttp_lwt, but still not tie ourself to one =
particular OS.  This Cohttp_lwt is then used by the Cohttp_lwt_unix and =
Cohttp_mirage backends to hook it into the operating system.

- There's no commonality at present between Cohttp_async and Cohttp_lwt, =
but that's the topic of a design discussion at the moment.  It should be =
possible to build a common signature between the two, and Rudi Grinberg =
took a shot at this a while back.  I'm not sure that it's worth the =
trouble right now.

- Andy Ray did something interesting with the Lwt backend: he ported it =
to JavaScript by implementing an IO backend that marshals the requests =
to and from strings.  This allows REST API users built over Cohttp (such =
as ocaml-github) to compile to pure JavaScript as well.

Drawbacks:

- The heavy use of functors does make it hard to navigate the 'end user' =
API, even though those interfaces never expose any functors (for =
instance, you just use Cohttp_lwt_unix directly in most cases). This is =
a drawback of current OCaml tooling, and Merlin (for IDEs) and Codoc =
(for cross-referenced documentation) will fix this soon.

- A bigger problem that needs to be addressed in Cohttp2 is body =
handling, which we basically got wrong in this iteration.  The Body =
module is not idempotent, so to_string does not always return the same =
value if called multiple times.  The caller can currently be careful, =
but this is just an awful part of the API.  There are enough users of =
Cohttp that we'll leave it for 1.0, but hopefully fix it quite rapidly =
for 2.0.

- Cohttp is not a complete HTTP client, and doesn't implement the full =
logic for redirections, loop detection and so on.  That's the job of a =
library built over it, and there is some nascent code in opam-mirror =
that can do this [1].  Before building this, David Sheets and I want to =
look at some of the more larger API clients built using it (such as =
Vincent Bernardoff's BitStamp API [2]) and take a shot at a portable =
client API that will work with both Lwt and Async.

So was functorising this heavily such a good idea?  I think so -- the =
litmus test is whether or not there is more than one different =
implementation for each parameterised module, and this has worked out =
particularly well for the Cohttp_lwt backend, where there are now 4 (!) =
very different implementations.

Hope this helps,
Anil

[1] =
https://github.com/avsm/opam-mirror/blob/master/opam_mirror_fetch_urls.ml#=
L49 =
<https://github.com/avsm/opam-mirror/blob/master/opam_mirror_fetch_urls.ml=
#L49>
[2] https://github.com/vbmithr/ocaml-bitstamp-api =
<https://github.com/vbmithr/ocaml-bitstamp-api>=

--Apple-Mail=_464D3655-770A-47ED-9CB1-1604AA0C46A2
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">On 28 Mar 2015, at 14:24, Trevor Smith &lt;<a =
href=3D"mailto:trevorsummerssmith@gmail.com" =
class=3D"">trevorsummerssmith@gmail.com</a>&gt; wrote:<br =
class=3D""><div><blockquote type=3D"cite" class=3D""><br =
class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" =
class=3D"">Hi all,<div class=3D""><br class=3D""></div><div class=3D"">I =
was wondering if there is a document somewhere describing why the =
different backends to cohttp don't have a unified client/server =
interface? It seems like it would be such a boon for the user to be able =
to write their code but be able to choose the backends. I realize that =
this must have already received much discussion but am not sure where it =
is located.</div></div></div></blockquote><br class=3D""></div><div>Hi =
Trevor,</div><div><br class=3D""></div><div>There's no design document =
describing this, mainly because CoHTTP started as an informal bet =
between me and Yaron Minsky that the current design would be =
impossible/a bad idea. &nbsp;The jury's still out on the verdict, but I =
don't think I've lost yet :-)</div><div><br class=3D""></div><div>I =
wanted to build an HTTP implementation as an "onion", with the portable =
parsing core progressively introducing I/O, and then higher-level =
abstractions for various HTTP operations. &nbsp;Here's my description of =
each layer (that eventually ought to go into a design doc in the CoHTTP =
repo to make it more accessible to newcomers to the =
codebase):</div><div><br class=3D""></div><div>- The very first layer =
(in `lib/`) is a pure OCaml, non-blocking layer that handles simple =
parts of the HTTP protocol such as parsing requests and responses, =
various header parsers (e.g. cookies) and codes.</div><div><br =
class=3D""></div><div>- Some layers of HTTP need some notion of I/O, and =
so there is a set of signatures in `lib/s.mli` that defines some common =
module types that can be used to build parameterised modules (also known =
as functors). &nbsp;The first one used in the `lib/` layer is the IO =
module type, which defines the minimal collection of functions used by =
cooperative threading libraries. &nbsp;The pure HTTP core uses this IO =
module to capture IO-based operations, such as Transfer_IO (for transfer =
encoding).</div><div><br class=3D""></div><div>- There are three =
implementations that satisfy the IO module in the tree: Lwt, Async and =
String. &nbsp;The first two are full cooperative threading libraries, =
and the latter is used by the js_of_ocaml backend to read/write between =
Strings.</div><div><br class=3D""></div><div>- Now that IO has been =
handled, we can send HTTP requests and responses from Lwt or Async. =
&nbsp;However, at this point some differences appear in the =
implementations of Async and Lwt, notably in how they handle =
cancellation of threads and also higher-level iterators (e.g. Async has =
Pipes, and Lwt has Lwt_stream -- both quite different). &nbsp;Therefore, =
we build backend-specific Client and Server modules that use their =
respective threading libraries in as native a style as possible, but =
still reusing the core HTTP library from `lib/`. &nbsp;These can be =
found in `Cohttp_lwt` and `Cohttp_async` respectively. &nbsp;Dave Scott =
also wrote an (as yet not merged) POSIX blocking version that they use =
in the XenAPI daemon.</div><div><br class=3D""></div><div>- Lwt comes =
with an additional twist -- it is portable to both Unix *and* the =
MirageOS, which has no Unix at all! &nbsp;Lwt makes it possible to =
define a "Lwt core" that uses the portable Lwt thread abstractions, but =
doesn't use any OS-specific functionality. &nbsp;Thus we can define an =
HTTP Client and Server in Cohttp_lwt, but still not tie ourself to one =
particular OS. &nbsp;This Cohttp_lwt is then used by the Cohttp_lwt_unix =
and Cohttp_mirage backends to hook it into the operating =
system.</div><div><br class=3D""></div><div>- There's no commonality at =
present between Cohttp_async and Cohttp_lwt, but that's the topic of a =
design discussion at the moment. &nbsp;It should be possible to build a =
common signature between the two, and Rudi Grinberg took a shot at this =
a while back. &nbsp;I'm not sure that it's worth the trouble right =
now.</div><div><br class=3D""></div><div>- Andy Ray did something =
interesting with the Lwt backend: he ported it to JavaScript by =
implementing an IO backend that marshals the requests to and from =
strings. &nbsp;This allows REST API users built over Cohttp (such as =
ocaml-github) to compile to pure JavaScript as well.</div><div><br =
class=3D""></div><div>Drawbacks:</div><div><br class=3D""></div><div>- =
The heavy use of functors does make it hard to navigate the 'end user' =
API, even though those interfaces never expose any functors (for =
instance, you just use Cohttp_lwt_unix directly in most cases). This is =
a drawback of current OCaml tooling, and Merlin (for IDEs) and Codoc =
(for cross-referenced documentation) will fix this soon.</div><div><br =
class=3D""></div><div>- A bigger problem that needs to be addressed in =
Cohttp2 is body handling, which we basically got wrong in this =
iteration. &nbsp;The Body module is not idempotent, so to_string does =
not always return the same value if called multiple times. &nbsp;The =
caller can currently be careful, but this is just an awful part of the =
API. &nbsp;There are enough users of Cohttp that we'll leave it for 1.0, =
but hopefully fix it quite rapidly for 2.0.</div><div><br =
class=3D""></div><div>- Cohttp is not a complete HTTP client, and =
doesn't implement the full logic for redirections, loop detection and so =
on. &nbsp;That's the job of a library built over it, and there is some =
nascent code in opam-mirror that can do this [1]. &nbsp;Before building =
this, David Sheets and I want to look at some of the more larger API =
clients built using it (such as Vincent Bernardoff's BitStamp API [2]) =
and take a shot at a portable client API that will work with both Lwt =
and Async.</div><div><br class=3D""></div><div>So was functorising this =
heavily such a good idea? &nbsp;I think so -- the litmus test is whether =
or not there is more than one different implementation for each =
parameterised module, and this has worked out particularly well for the =
Cohttp_lwt backend, where there are now 4 (!) very different =
implementations.</div><div><br class=3D""></div><div>Hope this =
helps,</div><div>Anil</div><div><br class=3D""></div><div>[1]&nbsp;<a =
href=3D"https://github.com/avsm/opam-mirror/blob/master/opam_mirror_fetch_=
urls.ml#L49" =
class=3D"">https://github.com/avsm/opam-mirror/blob/master/opam_mirror_fet=
ch_urls.ml#L49</a></div><div>[2]&nbsp;<a =
href=3D"https://github.com/vbmithr/ocaml-bitstamp-api" =
class=3D"">https://github.com/vbmithr/ocaml-bitstamp-api</a></div></body><=
/html>=

--Apple-Mail=_464D3655-770A-47ED-9CB1-1604AA0C46A2--


--===============3738530756651320925==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============3738530756651320925==--


From mirageos-devel-bounces@lists.xenproject.org Sat Mar 28 16:37:11 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 28 Mar 2015 16:37:11 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YbtjL-0005It-2t; Sat, 28 Mar 2015 16:37:03 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1YbtjJ-0005Io-5U
	for mirageos-devel@lists.xenproject.org; Sat, 28 Mar 2015 16:37:01 +0000
Received: from [193.109.254.147] by server-9.bemta-14.messagelabs.com id
	5C/6F-17310-CA8D6155; Sat, 28 Mar 2015 16:37:00 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-7.tower-27.messagelabs.com!1427560618!13893134!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=1.6 required=7.0 tests=BODY_RANDOM_LONG,
	HTML_10_20,HTML_MESSAGE,RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 1216 invoked from network); 28 Mar 2015 16:36:58 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-7.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 28 Mar 2015 16:36:58 -0000
Received: from [10.0.1.7] (cpc11-belf9-2-0-cust355.2-1.cable.virginm.net
	[86.24.61.100]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 4517b100;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Sat, 28 Mar 2015 16:36:57 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAG-KTt98N7vUvLKtuM5m1HWsh-Sqsi=ziTKS6r9Tr6XHtZVovQ@mail.gmail.com>
Date: Sat, 28 Mar 2015 16:36:57 +0000
Message-Id: <DAB7D242-C922-45D4-B01A-53697855979F@recoil.org>
References: <CAG-KTt98N7vUvLKtuM5m1HWsh-Sqsi=ziTKS6r9Tr6XHtZVovQ@mail.gmail.com>
To: Trevor Smith <trevorsummerssmith@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Cohttp Design -- LWT, Async, JS,
	Mirage Compatibility
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============3738530756651320925=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============3738530756651320925==
Content-Type: multipart/alternative; boundary="Apple-Mail=_464D3655-770A-47ED-9CB1-1604AA0C46A2"


--Apple-Mail=_464D3655-770A-47ED-9CB1-1604AA0C46A2
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 28 Mar 2015, at 14:24, Trevor Smith <trevorsummerssmith@gmail.com> =
wrote:
>=20
> Hi all,
>=20
> I was wondering if there is a document somewhere describing why the =
different backends to cohttp don't have a unified client/server =
interface? It seems like it would be such a boon for the user to be able =
to write their code but be able to choose the backends. I realize that =
this must have already received much discussion but am not sure where it =
is located.

Hi Trevor,

There's no design document describing this, mainly because CoHTTP =
started as an informal bet between me and Yaron Minsky that the current =
design would be impossible/a bad idea.  The jury's still out on the =
verdict, but I don't think I've lost yet :-)

I wanted to build an HTTP implementation as an "onion", with the =
portable parsing core progressively introducing I/O, and then =
higher-level abstractions for various HTTP operations.  Here's my =
description of each layer (that eventually ought to go into a design doc =
in the CoHTTP repo to make it more accessible to newcomers to the =
codebase):

- The very first layer (in `lib/`) is a pure OCaml, non-blocking layer =
that handles simple parts of the HTTP protocol such as parsing requests =
and responses, various header parsers (e.g. cookies) and codes.

- Some layers of HTTP need some notion of I/O, and so there is a set of =
signatures in `lib/s.mli` that defines some common module types that can =
be used to build parameterised modules (also known as functors).  The =
first one used in the `lib/` layer is the IO module type, which defines =
the minimal collection of functions used by cooperative threading =
libraries.  The pure HTTP core uses this IO module to capture IO-based =
operations, such as Transfer_IO (for transfer encoding).

- There are three implementations that satisfy the IO module in the =
tree: Lwt, Async and String.  The first two are full cooperative =
threading libraries, and the latter is used by the js_of_ocaml backend =
to read/write between Strings.

- Now that IO has been handled, we can send HTTP requests and responses =
from Lwt or Async.  However, at this point some differences appear in =
the implementations of Async and Lwt, notably in how they handle =
cancellation of threads and also higher-level iterators (e.g. Async has =
Pipes, and Lwt has Lwt_stream -- both quite different).  Therefore, we =
build backend-specific Client and Server modules that use their =
respective threading libraries in as native a style as possible, but =
still reusing the core HTTP library from `lib/`.  These can be found in =
`Cohttp_lwt` and `Cohttp_async` respectively.  Dave Scott also wrote an =
(as yet not merged) POSIX blocking version that they use in the XenAPI =
daemon.

- Lwt comes with an additional twist -- it is portable to both Unix =
*and* the MirageOS, which has no Unix at all!  Lwt makes it possible to =
define a "Lwt core" that uses the portable Lwt thread abstractions, but =
doesn't use any OS-specific functionality.  Thus we can define an HTTP =
Client and Server in Cohttp_lwt, but still not tie ourself to one =
particular OS.  This Cohttp_lwt is then used by the Cohttp_lwt_unix and =
Cohttp_mirage backends to hook it into the operating system.

- There's no commonality at present between Cohttp_async and Cohttp_lwt, =
but that's the topic of a design discussion at the moment.  It should be =
possible to build a common signature between the two, and Rudi Grinberg =
took a shot at this a while back.  I'm not sure that it's worth the =
trouble right now.

- Andy Ray did something interesting with the Lwt backend: he ported it =
to JavaScript by implementing an IO backend that marshals the requests =
to and from strings.  This allows REST API users built over Cohttp (such =
as ocaml-github) to compile to pure JavaScript as well.

Drawbacks:

- The heavy use of functors does make it hard to navigate the 'end user' =
API, even though those interfaces never expose any functors (for =
instance, you just use Cohttp_lwt_unix directly in most cases). This is =
a drawback of current OCaml tooling, and Merlin (for IDEs) and Codoc =
(for cross-referenced documentation) will fix this soon.

- A bigger problem that needs to be addressed in Cohttp2 is body =
handling, which we basically got wrong in this iteration.  The Body =
module is not idempotent, so to_string does not always return the same =
value if called multiple times.  The caller can currently be careful, =
but this is just an awful part of the API.  There are enough users of =
Cohttp that we'll leave it for 1.0, but hopefully fix it quite rapidly =
for 2.0.

- Cohttp is not a complete HTTP client, and doesn't implement the full =
logic for redirections, loop detection and so on.  That's the job of a =
library built over it, and there is some nascent code in opam-mirror =
that can do this [1].  Before building this, David Sheets and I want to =
look at some of the more larger API clients built using it (such as =
Vincent Bernardoff's BitStamp API [2]) and take a shot at a portable =
client API that will work with both Lwt and Async.

So was functorising this heavily such a good idea?  I think so -- the =
litmus test is whether or not there is more than one different =
implementation for each parameterised module, and this has worked out =
particularly well for the Cohttp_lwt backend, where there are now 4 (!) =
very different implementations.

Hope this helps,
Anil

[1] =
https://github.com/avsm/opam-mirror/blob/master/opam_mirror_fetch_urls.ml#=
L49 =
<https://github.com/avsm/opam-mirror/blob/master/opam_mirror_fetch_urls.ml=
#L49>
[2] https://github.com/vbmithr/ocaml-bitstamp-api =
<https://github.com/vbmithr/ocaml-bitstamp-api>=

--Apple-Mail=_464D3655-770A-47ED-9CB1-1604AA0C46A2
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">On 28 Mar 2015, at 14:24, Trevor Smith &lt;<a =
href=3D"mailto:trevorsummerssmith@gmail.com" =
class=3D"">trevorsummerssmith@gmail.com</a>&gt; wrote:<br =
class=3D""><div><blockquote type=3D"cite" class=3D""><br =
class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" =
class=3D"">Hi all,<div class=3D""><br class=3D""></div><div class=3D"">I =
was wondering if there is a document somewhere describing why the =
different backends to cohttp don't have a unified client/server =
interface? It seems like it would be such a boon for the user to be able =
to write their code but be able to choose the backends. I realize that =
this must have already received much discussion but am not sure where it =
is located.</div></div></div></blockquote><br class=3D""></div><div>Hi =
Trevor,</div><div><br class=3D""></div><div>There's no design document =
describing this, mainly because CoHTTP started as an informal bet =
between me and Yaron Minsky that the current design would be =
impossible/a bad idea. &nbsp;The jury's still out on the verdict, but I =
don't think I've lost yet :-)</div><div><br class=3D""></div><div>I =
wanted to build an HTTP implementation as an "onion", with the portable =
parsing core progressively introducing I/O, and then higher-level =
abstractions for various HTTP operations. &nbsp;Here's my description of =
each layer (that eventually ought to go into a design doc in the CoHTTP =
repo to make it more accessible to newcomers to the =
codebase):</div><div><br class=3D""></div><div>- The very first layer =
(in `lib/`) is a pure OCaml, non-blocking layer that handles simple =
parts of the HTTP protocol such as parsing requests and responses, =
various header parsers (e.g. cookies) and codes.</div><div><br =
class=3D""></div><div>- Some layers of HTTP need some notion of I/O, and =
so there is a set of signatures in `lib/s.mli` that defines some common =
module types that can be used to build parameterised modules (also known =
as functors). &nbsp;The first one used in the `lib/` layer is the IO =
module type, which defines the minimal collection of functions used by =
cooperative threading libraries. &nbsp;The pure HTTP core uses this IO =
module to capture IO-based operations, such as Transfer_IO (for transfer =
encoding).</div><div><br class=3D""></div><div>- There are three =
implementations that satisfy the IO module in the tree: Lwt, Async and =
String. &nbsp;The first two are full cooperative threading libraries, =
and the latter is used by the js_of_ocaml backend to read/write between =
Strings.</div><div><br class=3D""></div><div>- Now that IO has been =
handled, we can send HTTP requests and responses from Lwt or Async. =
&nbsp;However, at this point some differences appear in the =
implementations of Async and Lwt, notably in how they handle =
cancellation of threads and also higher-level iterators (e.g. Async has =
Pipes, and Lwt has Lwt_stream -- both quite different). &nbsp;Therefore, =
we build backend-specific Client and Server modules that use their =
respective threading libraries in as native a style as possible, but =
still reusing the core HTTP library from `lib/`. &nbsp;These can be =
found in `Cohttp_lwt` and `Cohttp_async` respectively. &nbsp;Dave Scott =
also wrote an (as yet not merged) POSIX blocking version that they use =
in the XenAPI daemon.</div><div><br class=3D""></div><div>- Lwt comes =
with an additional twist -- it is portable to both Unix *and* the =
MirageOS, which has no Unix at all! &nbsp;Lwt makes it possible to =
define a "Lwt core" that uses the portable Lwt thread abstractions, but =
doesn't use any OS-specific functionality. &nbsp;Thus we can define an =
HTTP Client and Server in Cohttp_lwt, but still not tie ourself to one =
particular OS. &nbsp;This Cohttp_lwt is then used by the Cohttp_lwt_unix =
and Cohttp_mirage backends to hook it into the operating =
system.</div><div><br class=3D""></div><div>- There's no commonality at =
present between Cohttp_async and Cohttp_lwt, but that's the topic of a =
design discussion at the moment. &nbsp;It should be possible to build a =
common signature between the two, and Rudi Grinberg took a shot at this =
a while back. &nbsp;I'm not sure that it's worth the trouble right =
now.</div><div><br class=3D""></div><div>- Andy Ray did something =
interesting with the Lwt backend: he ported it to JavaScript by =
implementing an IO backend that marshals the requests to and from =
strings. &nbsp;This allows REST API users built over Cohttp (such as =
ocaml-github) to compile to pure JavaScript as well.</div><div><br =
class=3D""></div><div>Drawbacks:</div><div><br class=3D""></div><div>- =
The heavy use of functors does make it hard to navigate the 'end user' =
API, even though those interfaces never expose any functors (for =
instance, you just use Cohttp_lwt_unix directly in most cases). This is =
a drawback of current OCaml tooling, and Merlin (for IDEs) and Codoc =
(for cross-referenced documentation) will fix this soon.</div><div><br =
class=3D""></div><div>- A bigger problem that needs to be addressed in =
Cohttp2 is body handling, which we basically got wrong in this =
iteration. &nbsp;The Body module is not idempotent, so to_string does =
not always return the same value if called multiple times. &nbsp;The =
caller can currently be careful, but this is just an awful part of the =
API. &nbsp;There are enough users of Cohttp that we'll leave it for 1.0, =
but hopefully fix it quite rapidly for 2.0.</div><div><br =
class=3D""></div><div>- Cohttp is not a complete HTTP client, and =
doesn't implement the full logic for redirections, loop detection and so =
on. &nbsp;That's the job of a library built over it, and there is some =
nascent code in opam-mirror that can do this [1]. &nbsp;Before building =
this, David Sheets and I want to look at some of the more larger API =
clients built using it (such as Vincent Bernardoff's BitStamp API [2]) =
and take a shot at a portable client API that will work with both Lwt =
and Async.</div><div><br class=3D""></div><div>So was functorising this =
heavily such a good idea? &nbsp;I think so -- the litmus test is whether =
or not there is more than one different implementation for each =
parameterised module, and this has worked out particularly well for the =
Cohttp_lwt backend, where there are now 4 (!) very different =
implementations.</div><div><br class=3D""></div><div>Hope this =
helps,</div><div>Anil</div><div><br class=3D""></div><div>[1]&nbsp;<a =
href=3D"https://github.com/avsm/opam-mirror/blob/master/opam_mirror_fetch_=
urls.ml#L49" =
class=3D"">https://github.com/avsm/opam-mirror/blob/master/opam_mirror_fet=
ch_urls.ml#L49</a></div><div>[2]&nbsp;<a =
href=3D"https://github.com/vbmithr/ocaml-bitstamp-api" =
class=3D"">https://github.com/vbmithr/ocaml-bitstamp-api</a></div></body><=
/html>=

--Apple-Mail=_464D3655-770A-47ED-9CB1-1604AA0C46A2--


--===============3738530756651320925==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============3738530756651320925==--


From mirageos-devel-bounces@lists.xenproject.org Sat Mar 28 19:40:54 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 28 Mar 2015 19:40:54 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Ybwb9-0000JG-SH; Sat, 28 Mar 2015 19:40:47 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <n.oje.bar@gmail.com>) id 1Ybwb7-0000JB-QC
	for mirageos-devel@lists.xenproject.org; Sat, 28 Mar 2015 19:40:46 +0000
Received: from [85.158.137.68] by server-1.bemta-3.messagelabs.com id
	23/F1-13265-CB307155; Sat, 28 Mar 2015 19:40:44 +0000
X-Env-Sender: n.oje.bar@gmail.com
X-Msg-Ref: server-6.tower-31.messagelabs.com!1427571642!7500607!1
X-Originating-IP: [209.85.212.173]
X-SpamReason: No, hits=1.7 required=7.0 tests=BODY_RANDOM_LONG,
	HTML_20_30,HTML_MESSAGE,RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 12069 invoked from network); 28 Mar 2015 19:40:42 -0000
Received: from mail-wi0-f173.google.com (HELO mail-wi0-f173.google.com)
	(209.85.212.173)
	by server-6.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	28 Mar 2015 19:40:42 -0000
Received: by wiaa2 with SMTP id a2so73334492wia.0
	for <mirageos-devel@lists.xenproject.org>;
	Sat, 28 Mar 2015 12:40:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:in-reply-to:references:date:message-id:subject
	:from:to:cc:content-type;
	bh=R57+PbK7P5IZ+o9ZEr9Wblc3YAJEGlmIUGgmKPeDJ4o=;
	b=t0fTRMV9fL9iV5xfuSevJL+VJLF/vv/O53UPC2vqqdFn5jrnCFT3PYPxt8RGkPnhkv
	JfyrqMUNKZHB7GlfFHilhG12FpVyXhQXckdVkxMuUKH1uPAIWS3EyKikIYSgvK80+lWH
	B4/0pd17dPRQZFIPSwQNdsjac/nXV6SRsrXm2+liY0aeyf+TmrUAA9eKiHWMYPilGaoP
	T/HYZtwcwVz5f+To7zixI8nemt0U4e1RNNNL8H8LVUJwYlNjZmLxTWAXDq7yL1lbY6HN
	7KGbCLshGzvwHMk6Ea43PAEmbTCxdgz2FkVQ7zs7fM0tHxMIUyxMwO12El3auBQCWEUY
	gSjA==
MIME-Version: 1.0
X-Received: by 10.180.207.227 with SMTP id lz3mr8020746wic.47.1427571641925;
	Sat, 28 Mar 2015 12:40:41 -0700 (PDT)
Received: by 10.27.89.19 with HTTP; Sat, 28 Mar 2015 12:40:41 -0700 (PDT)
In-Reply-To: <DAB7D242-C922-45D4-B01A-53697855979F@recoil.org>
References: <CAG-KTt98N7vUvLKtuM5m1HWsh-Sqsi=ziTKS6r9Tr6XHtZVovQ@mail.gmail.com>
	<DAB7D242-C922-45D4-B01A-53697855979F@recoil.org>
Date: Sat, 28 Mar 2015 19:40:41 +0000
X-Google-Sender-Auth: zV8VBd6h8jMDSZd9sPCiNb6Ove4
Message-ID: <CAPunWhCSKt-G8D7Y8=XUJcKvOn9PhEQfnrPWmXMdObnQT+Gzvw@mail.gmail.com>
From: Nicolas Ojeda Bar <no263@dpmms.cam.ac.uk>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: Trevor Smith <trevorsummerssmith@gmail.com>,
	"mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Cohttp Design -- LWT, Async, JS,
	Mirage Compatibility
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============3470524457829229789=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============3470524457829229789==
Content-Type: multipart/alternative; boundary=001a11c3f7f09bc61b05125e6cb7

--001a11c3f7f09bc61b05125e6cb7
Content-Type: text/plain; charset=UTF-8

Hi,

While I do not have any particular criticism of cohttp, there is another
approach to this problem that I personally find far more elegant and
flexible.  I will talk mostly of how to handle IO, but the same approach
works with any type of "layering".  Let us call it the "functor-less"
approach.

The main difference is that, while functors are used to parametrise the IO
operations used *in* the code (often by way of defining an enclosing
monad), the functor-less approach takes the IO completely *out* of the
code.  Instead IO actions are returned as values that guide the actions of
particular backends.  This involves formulating the sequencing of IO
actions as a state machine.  Rather than trying to explain the general
setup, let me point to some well-known examples, which I hope will convey
the essence of this approach:

- ocaml-tls (purely functional style)

<https://github.com/mirleft/ocaml-tls/blob/master/lib/engine.mli#L116>

(Lwt backend) <
https://github.com/mirleft/ocaml-tls/blob/master/lwt/tls_lwt.ml#L75>

- D Buenzli's codecs (imperative signature), eg

<https://github.com/dbuenzli/uutf/blob/master/src/uutf.mli#L207>

(Unix backend) <
https://github.com/dbuenzli/uutf/blob/master/src/uutf.mli#L446>

Some advantages of this approach:

- using functors require following a greatest common divisor design - the
argument signature has to account for all relevant features of each
backend, whether they are relevant or not for a particular one. Similarly,
adding a new feature to a backend in the functorised approach often means
giving an interpretation of this feature to all other backends, even if it
does not make much sense.

- by construction it completely decouples IO and the program logic.  The
advantages of this with respect to clarity, error handling, safety,
testing, are hard to overestimate.

- do not have to write code in monadic style

Best wishes,
Nicolas

On Sat, Mar 28, 2015 at 4:36 PM, Anil Madhavapeddy <anil@recoil.org> wrote:

> On 28 Mar 2015, at 14:24, Trevor Smith <trevorsummerssmith@gmail.com>
> wrote:
>
>
> Hi all,
>
> I was wondering if there is a document somewhere describing why the
> different backends to cohttp don't have a unified client/server interface?
> It seems like it would be such a boon for the user to be able to write
> their code but be able to choose the backends. I realize that this must
> have already received much discussion but am not sure where it is located.
>
>
> Hi Trevor,
>
> There's no design document describing this, mainly because CoHTTP started
> as an informal bet between me and Yaron Minsky that the current design
> would be impossible/a bad idea.  The jury's still out on the verdict, but I
> don't think I've lost yet :-)
>
> I wanted to build an HTTP implementation as an "onion", with the portable
> parsing core progressively introducing I/O, and then higher-level
> abstractions for various HTTP operations.  Here's my description of each
> layer (that eventually ought to go into a design doc in the CoHTTP repo to
> make it more accessible to newcomers to the codebase):
>
> - The very first layer (in `lib/`) is a pure OCaml, non-blocking layer
> that handles simple parts of the HTTP protocol such as parsing requests and
> responses, various header parsers (e.g. cookies) and codes.
>
> - Some layers of HTTP need some notion of I/O, and so there is a set of
> signatures in `lib/s.mli` that defines some common module types that can be
> used to build parameterised modules (also known as functors).  The first
> one used in the `lib/` layer is the IO module type, which defines the
> minimal collection of functions used by cooperative threading libraries.
> The pure HTTP core uses this IO module to capture IO-based operations, such
> as Transfer_IO (for transfer encoding).
>
> - There are three implementations that satisfy the IO module in the tree:
> Lwt, Async and String.  The first two are full cooperative threading
> libraries, and the latter is used by the js_of_ocaml backend to read/write
> between Strings.
>
> - Now that IO has been handled, we can send HTTP requests and responses
> from Lwt or Async.  However, at this point some differences appear in the
> implementations of Async and Lwt, notably in how they handle cancellation
> of threads and also higher-level iterators (e.g. Async has Pipes, and Lwt
> has Lwt_stream -- both quite different).  Therefore, we build
> backend-specific Client and Server modules that use their respective
> threading libraries in as native a style as possible, but still reusing the
> core HTTP library from `lib/`.  These can be found in `Cohttp_lwt` and
> `Cohttp_async` respectively.  Dave Scott also wrote an (as yet not merged)
> POSIX blocking version that they use in the XenAPI daemon.
>
> - Lwt comes with an additional twist -- it is portable to both Unix *and*
> the MirageOS, which has no Unix at all!  Lwt makes it possible to define a
> "Lwt core" that uses the portable Lwt thread abstractions, but doesn't use
> any OS-specific functionality.  Thus we can define an HTTP Client and
> Server in Cohttp_lwt, but still not tie ourself to one particular OS.  This
> Cohttp_lwt is then used by the Cohttp_lwt_unix and Cohttp_mirage backends
> to hook it into the operating system.
>
> - There's no commonality at present between Cohttp_async and Cohttp_lwt,
> but that's the topic of a design discussion at the moment.  It should be
> possible to build a common signature between the two, and Rudi Grinberg
> took a shot at this a while back.  I'm not sure that it's worth the trouble
> right now.
>
> - Andy Ray did something interesting with the Lwt backend: he ported it to
> JavaScript by implementing an IO backend that marshals the requests to and
> from strings.  This allows REST API users built over Cohttp (such as
> ocaml-github) to compile to pure JavaScript as well.
>
> Drawbacks:
>
> - The heavy use of functors does make it hard to navigate the 'end user'
> API, even though those interfaces never expose any functors (for instance,
> you just use Cohttp_lwt_unix directly in most cases). This is a drawback of
> current OCaml tooling, and Merlin (for IDEs) and Codoc (for
> cross-referenced documentation) will fix this soon.
>
> - A bigger problem that needs to be addressed in Cohttp2 is body handling,
> which we basically got wrong in this iteration.  The Body module is not
> idempotent, so to_string does not always return the same value if called
> multiple times.  The caller can currently be careful, but this is just an
> awful part of the API.  There are enough users of Cohttp that we'll leave
> it for 1.0, but hopefully fix it quite rapidly for 2.0.
>
> - Cohttp is not a complete HTTP client, and doesn't implement the full
> logic for redirections, loop detection and so on.  That's the job of a
> library built over it, and there is some nascent code in opam-mirror that
> can do this [1].  Before building this, David Sheets and I want to look at
> some of the more larger API clients built using it (such as Vincent
> Bernardoff's BitStamp API [2]) and take a shot at a portable client API
> that will work with both Lwt and Async.
>
> So was functorising this heavily such a good idea?  I think so -- the
> litmus test is whether or not there is more than one different
> implementation for each parameterised module, and this has worked out
> particularly well for the Cohttp_lwt backend, where there are now 4 (!)
> very different implementations.
>
> Hope this helps,
> Anil
>
> [1]
> https://github.com/avsm/opam-mirror/blob/master/opam_mirror_fetch_urls.ml#L49
> [2] https://github.com/vbmithr/ocaml-bitstamp-api
>
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>
>

--001a11c3f7f09bc61b05125e6cb7
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><span style=3D"font-size:13px">Hi,</span><div style=3D"fon=
t-size:13px"><br></div><div style=3D"font-size:13px">While I do not have an=
y particular criticism of cohttp, there is another approach to this problem=
 that I personally find far more elegant and flexible.=C2=A0 I will talk mo=
stly of how to handle IO, but the same approach works with any type of &quo=
t;layering&quot;.=C2=A0 Let us call it the &quot;functor-less&quot; approac=
h.</div><div style=3D"font-size:13px"><br></div><div style=3D"font-size:13p=
x">The main difference is that, while functors are=C2=A0used to parametrise=
 the IO operations used *in* the code (often by way of defining an enclosin=
g monad), the functor-less approach takes the IO completely *out* of the co=
de.=C2=A0 Instead IO actions are returned as values that guide the actions =
of particular backends.=C2=A0 This involves formulating the sequencing of I=
O actions as a state machine.=C2=A0 Rather than trying to explain the gener=
al setup, let me point to some well-known examples, which I hope will conve=
y the essence=C2=A0of this approach:</div><div style=3D"font-size:13px"><br=
></div><div style=3D"font-size:13px">- ocaml-tls (purely=C2=A0functional st=
yle)</div><div style=3D"font-size:13px"><br></div><div style=3D"font-size:1=
3px">&lt;<a href=3D"https://github.com/mirleft/ocaml-tls/blob/master/lib/en=
gine.mli#L116" target=3D"_blank">https://github.com/mirleft/ocaml-tls/blob/=
master/lib/engine.mli#L116</a>&gt;<br></div><div style=3D"font-size:13px"><=
br></div><div style=3D"font-size:13px">(Lwt backend) &lt;<a href=3D"https:/=
/github.com/mirleft/ocaml-tls/blob/master/lwt/tls_lwt.ml#L75" target=3D"_bl=
ank">https://github.com/mirleft/ocaml-tls/blob/master/lwt/tls_lwt.ml#L75</a=
>&gt;<br></div><div style=3D"font-size:13px"><br></div><span style=3D"font-=
size:13px">- D Buenzli&#39;s codecs (imperative signature), eg</span><div s=
tyle=3D"font-size:13px"><div><br></div><div>&lt;<a href=3D"https://github.c=
om/dbuenzli/uutf/blob/master/src/uutf.mli#L207" target=3D"_blank">https://g=
ithub.com/dbuenzli/uutf/blob/master/src/uutf.mli#L207</a>&gt;<br></div><div=
><br></div><div>(Unix backend) &lt;<a href=3D"https://github.com/dbuenzli/u=
utf/blob/master/src/uutf.mli#L446" target=3D"_blank">https://github.com/dbu=
enzli/uutf/blob/master/src/uutf.mli#L446</a>&gt;</div><div><br></div><div>S=
ome advantages of this approach:<br></div><div><br></div><div>- using funct=
ors require following a greatest common divisor design - the argument signa=
ture has to account for all relevant features of each backend, whether they=
 are relevant or not for a particular one. Similarly, adding a new feature =
to a backend in the functorised approach often means giving an interpretati=
on of this feature to all other backends, even if it does not make much sen=
se.</div><div><div><br></div><div>- by construction it completely decouples=
=C2=A0IO and the program logic.=C2=A0 The advantages of this with respect t=
o clarity, error handling, safety, testing,=C2=A0are hard to overestimate.<=
/div><div><br></div><div>- do not have to write code in monadic style</div>=
<div><br></div><div>Best wishes,</div><div>Nicolas</div></div></div></div><=
div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Sat, Mar 28, 20=
15 at 4:36 PM, Anil Madhavapeddy <span dir=3D"ltr">&lt;<a href=3D"mailto:an=
il@recoil.org" target=3D"_blank">anil@recoil.org</a>&gt;</span> wrote:<br><=
blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px=
 #ccc solid;padding-left:1ex"><div style=3D"word-wrap:break-word"><span cla=
ss=3D"">On 28 Mar 2015, at 14:24, Trevor Smith &lt;<a href=3D"mailto:trevor=
summerssmith@gmail.com" target=3D"_blank">trevorsummerssmith@gmail.com</a>&=
gt; wrote:<br><div><blockquote type=3D"cite"><br><div><div dir=3D"ltr">Hi a=
ll,<div><br></div><div>I was wondering if there is a document somewhere des=
cribing why the different backends to cohttp don&#39;t have a unified clien=
t/server interface? It seems like it would be such a boon for the user to b=
e able to write their code but be able to choose the backends. I realize th=
at this must have already received much discussion but am not sure where it=
 is located.</div></div></div></blockquote><br></div></span><div>Hi Trevor,=
</div><div><br></div><div>There&#39;s no design document describing this, m=
ainly because CoHTTP started as an informal bet between me and Yaron Minsky=
 that the current design would be impossible/a bad idea.=C2=A0 The jury&#39=
;s still out on the verdict, but I don&#39;t think I&#39;ve lost yet :-)</d=
iv><div><br></div><div>I wanted to build an HTTP implementation as an &quot=
;onion&quot;, with the portable parsing core progressively introducing I/O,=
 and then higher-level abstractions for various HTTP operations.=C2=A0 Here=
&#39;s my description of each layer (that eventually ought to go into a des=
ign doc in the CoHTTP repo to make it more accessible to newcomers to the c=
odebase):</div><div><br></div><div>- The very first layer (in `lib/`) is a =
pure OCaml, non-blocking layer that handles simple parts of the HTTP protoc=
ol such as parsing requests and responses, various header parsers (e.g. coo=
kies) and codes.</div><div><br></div><div>- Some layers of HTTP need some n=
otion of I/O, and so there is a set of signatures in `lib/s.mli` that defin=
es some common module types that can be used to build parameterised modules=
 (also known as functors).=C2=A0 The first one used in the `lib/` layer is =
the IO module type, which defines the minimal collection of functions used =
by cooperative threading libraries.=C2=A0 The pure HTTP core uses this IO m=
odule to capture IO-based operations, such as Transfer_IO (for transfer enc=
oding).</div><div><br></div><div>- There are three implementations that sat=
isfy the IO module in the tree: Lwt, Async and String.=C2=A0 The first two =
are full cooperative threading libraries, and the latter is used by the js_=
of_ocaml backend to read/write between Strings.</div><div><br></div><div>- =
Now that IO has been handled, we can send HTTP requests and responses from =
Lwt or Async.=C2=A0 However, at this point some differences appear in the i=
mplementations of Async and Lwt, notably in how they handle cancellation of=
 threads and also higher-level iterators (e.g. Async has Pipes, and Lwt has=
 Lwt_stream -- both quite different).=C2=A0 Therefore, we build backend-spe=
cific Client and Server modules that use their respective threading librari=
es in as native a style as possible, but still reusing the core HTTP librar=
y from `lib/`.=C2=A0 These can be found in `Cohttp_lwt` and `Cohttp_async` =
respectively.=C2=A0 Dave Scott also wrote an (as yet not merged) POSIX bloc=
king version that they use in the XenAPI daemon.</div><div><br></div><div>-=
 Lwt comes with an additional twist -- it is portable to both Unix *and* th=
e MirageOS, which has no Unix at all!=C2=A0 Lwt makes it possible to define=
 a &quot;Lwt core&quot; that uses the portable Lwt thread abstractions, but=
 doesn&#39;t use any OS-specific functionality.=C2=A0 Thus we can define an=
 HTTP Client and Server in Cohttp_lwt, but still not tie ourself to one par=
ticular OS.=C2=A0 This Cohttp_lwt is then used by the Cohttp_lwt_unix and C=
ohttp_mirage backends to hook it into the operating system.</div><div><br><=
/div><div>- There&#39;s no commonality at present between Cohttp_async and =
Cohttp_lwt, but that&#39;s the topic of a design discussion at the moment.=
=C2=A0 It should be possible to build a common signature between the two, a=
nd Rudi Grinberg took a shot at this a while back.=C2=A0 I&#39;m not sure t=
hat it&#39;s worth the trouble right now.</div><div><br></div><div>- Andy R=
ay did something interesting with the Lwt backend: he ported it to JavaScri=
pt by implementing an IO backend that marshals the requests to and from str=
ings.=C2=A0 This allows REST API users built over Cohttp (such as ocaml-git=
hub) to compile to pure JavaScript as well.</div><div><br></div><div>Drawba=
cks:</div><div><br></div><div>- The heavy use of functors does make it hard=
 to navigate the &#39;end user&#39; API, even though those interfaces never=
 expose any functors (for instance, you just use Cohttp_lwt_unix directly i=
n most cases). This is a drawback of current OCaml tooling, and Merlin (for=
 IDEs) and Codoc (for cross-referenced documentation) will fix this soon.</=
div><div><br></div><div>- A bigger problem that needs to be addressed in Co=
http2 is body handling, which we basically got wrong in this iteration.=C2=
=A0 The Body module is not idempotent, so to_string does not always return =
the same value if called multiple times.=C2=A0 The caller can currently be =
careful, but this is just an awful part of the API.=C2=A0 There are enough =
users of Cohttp that we&#39;ll leave it for 1.0, but hopefully fix it quite=
 rapidly for 2.0.</div><div><br></div><div>- Cohttp is not a complete HTTP =
client, and doesn&#39;t implement the full logic for redirections, loop det=
ection and so on.=C2=A0 That&#39;s the job of a library built over it, and =
there is some nascent code in opam-mirror that can do this [1].=C2=A0 Befor=
e building this, David Sheets and I want to look at some of the more larger=
 API clients built using it (such as Vincent Bernardoff&#39;s BitStamp API =
[2]) and take a shot at a portable client API that will work with both Lwt =
and Async.</div><div><br></div><div>So was functorising this heavily such a=
 good idea?=C2=A0 I think so -- the litmus test is whether or not there is =
more than one different implementation for each parameterised module, and t=
his has worked out particularly well for the Cohttp_lwt backend, where ther=
e are now 4 (!) very different implementations.</div><div><br></div><div>Ho=
pe this helps,</div><div>Anil</div><div><br></div><div>[1]=C2=A0<a href=3D"=
https://github.com/avsm/opam-mirror/blob/master/opam_mirror_fetch_urls.ml#L=
49" target=3D"_blank">https://github.com/avsm/opam-mirror/blob/master/opam_=
mirror_fetch_urls.ml#L49</a></div><div>[2]=C2=A0<a href=3D"https://github.c=
om/vbmithr/ocaml-bitstamp-api" target=3D"_blank">https://github.com/vbmithr=
/ocaml-bitstamp-api</a></div></div><br>____________________________________=
___________<br>
MirageOS-devel mailing list<br>
<a href=3D"mailto:MirageOS-devel@lists.xenproject.org">MirageOS-devel@lists=
.xenproject.org</a><br>
<a href=3D"http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-de=
vel" target=3D"_blank">http://lists.xenproject.org/cgi-bin/mailman/listinfo=
/mirageos-devel</a><br>
<br></blockquote></div><br></div>

--001a11c3f7f09bc61b05125e6cb7--


--===============3470524457829229789==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============3470524457829229789==--


From mirageos-devel-bounces@lists.xenproject.org Sat Mar 28 19:40:54 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 28 Mar 2015 19:40:54 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Ybwb9-0000JG-SH; Sat, 28 Mar 2015 19:40:47 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <n.oje.bar@gmail.com>) id 1Ybwb7-0000JB-QC
	for mirageos-devel@lists.xenproject.org; Sat, 28 Mar 2015 19:40:46 +0000
Received: from [85.158.137.68] by server-1.bemta-3.messagelabs.com id
	23/F1-13265-CB307155; Sat, 28 Mar 2015 19:40:44 +0000
X-Env-Sender: n.oje.bar@gmail.com
X-Msg-Ref: server-6.tower-31.messagelabs.com!1427571642!7500607!1
X-Originating-IP: [209.85.212.173]
X-SpamReason: No, hits=1.7 required=7.0 tests=BODY_RANDOM_LONG,
	HTML_20_30,HTML_MESSAGE,RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 12069 invoked from network); 28 Mar 2015 19:40:42 -0000
Received: from mail-wi0-f173.google.com (HELO mail-wi0-f173.google.com)
	(209.85.212.173)
	by server-6.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	28 Mar 2015 19:40:42 -0000
Received: by wiaa2 with SMTP id a2so73334492wia.0
	for <mirageos-devel@lists.xenproject.org>;
	Sat, 28 Mar 2015 12:40:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:sender:in-reply-to:references:date:message-id:subject
	:from:to:cc:content-type;
	bh=R57+PbK7P5IZ+o9ZEr9Wblc3YAJEGlmIUGgmKPeDJ4o=;
	b=t0fTRMV9fL9iV5xfuSevJL+VJLF/vv/O53UPC2vqqdFn5jrnCFT3PYPxt8RGkPnhkv
	JfyrqMUNKZHB7GlfFHilhG12FpVyXhQXckdVkxMuUKH1uPAIWS3EyKikIYSgvK80+lWH
	B4/0pd17dPRQZFIPSwQNdsjac/nXV6SRsrXm2+liY0aeyf+TmrUAA9eKiHWMYPilGaoP
	T/HYZtwcwVz5f+To7zixI8nemt0U4e1RNNNL8H8LVUJwYlNjZmLxTWAXDq7yL1lbY6HN
	7KGbCLshGzvwHMk6Ea43PAEmbTCxdgz2FkVQ7zs7fM0tHxMIUyxMwO12El3auBQCWEUY
	gSjA==
MIME-Version: 1.0
X-Received: by 10.180.207.227 with SMTP id lz3mr8020746wic.47.1427571641925;
	Sat, 28 Mar 2015 12:40:41 -0700 (PDT)
Received: by 10.27.89.19 with HTTP; Sat, 28 Mar 2015 12:40:41 -0700 (PDT)
In-Reply-To: <DAB7D242-C922-45D4-B01A-53697855979F@recoil.org>
References: <CAG-KTt98N7vUvLKtuM5m1HWsh-Sqsi=ziTKS6r9Tr6XHtZVovQ@mail.gmail.com>
	<DAB7D242-C922-45D4-B01A-53697855979F@recoil.org>
Date: Sat, 28 Mar 2015 19:40:41 +0000
X-Google-Sender-Auth: zV8VBd6h8jMDSZd9sPCiNb6Ove4
Message-ID: <CAPunWhCSKt-G8D7Y8=XUJcKvOn9PhEQfnrPWmXMdObnQT+Gzvw@mail.gmail.com>
From: Nicolas Ojeda Bar <no263@dpmms.cam.ac.uk>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: Trevor Smith <trevorsummerssmith@gmail.com>,
	"mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Cohttp Design -- LWT, Async, JS,
	Mirage Compatibility
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============3470524457829229789=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============3470524457829229789==
Content-Type: multipart/alternative; boundary=001a11c3f7f09bc61b05125e6cb7

--001a11c3f7f09bc61b05125e6cb7
Content-Type: text/plain; charset=UTF-8

Hi,

While I do not have any particular criticism of cohttp, there is another
approach to this problem that I personally find far more elegant and
flexible.  I will talk mostly of how to handle IO, but the same approach
works with any type of "layering".  Let us call it the "functor-less"
approach.

The main difference is that, while functors are used to parametrise the IO
operations used *in* the code (often by way of defining an enclosing
monad), the functor-less approach takes the IO completely *out* of the
code.  Instead IO actions are returned as values that guide the actions of
particular backends.  This involves formulating the sequencing of IO
actions as a state machine.  Rather than trying to explain the general
setup, let me point to some well-known examples, which I hope will convey
the essence of this approach:

- ocaml-tls (purely functional style)

<https://github.com/mirleft/ocaml-tls/blob/master/lib/engine.mli#L116>

(Lwt backend) <
https://github.com/mirleft/ocaml-tls/blob/master/lwt/tls_lwt.ml#L75>

- D Buenzli's codecs (imperative signature), eg

<https://github.com/dbuenzli/uutf/blob/master/src/uutf.mli#L207>

(Unix backend) <
https://github.com/dbuenzli/uutf/blob/master/src/uutf.mli#L446>

Some advantages of this approach:

- using functors require following a greatest common divisor design - the
argument signature has to account for all relevant features of each
backend, whether they are relevant or not for a particular one. Similarly,
adding a new feature to a backend in the functorised approach often means
giving an interpretation of this feature to all other backends, even if it
does not make much sense.

- by construction it completely decouples IO and the program logic.  The
advantages of this with respect to clarity, error handling, safety,
testing, are hard to overestimate.

- do not have to write code in monadic style

Best wishes,
Nicolas

On Sat, Mar 28, 2015 at 4:36 PM, Anil Madhavapeddy <anil@recoil.org> wrote:

> On 28 Mar 2015, at 14:24, Trevor Smith <trevorsummerssmith@gmail.com>
> wrote:
>
>
> Hi all,
>
> I was wondering if there is a document somewhere describing why the
> different backends to cohttp don't have a unified client/server interface?
> It seems like it would be such a boon for the user to be able to write
> their code but be able to choose the backends. I realize that this must
> have already received much discussion but am not sure where it is located.
>
>
> Hi Trevor,
>
> There's no design document describing this, mainly because CoHTTP started
> as an informal bet between me and Yaron Minsky that the current design
> would be impossible/a bad idea.  The jury's still out on the verdict, but I
> don't think I've lost yet :-)
>
> I wanted to build an HTTP implementation as an "onion", with the portable
> parsing core progressively introducing I/O, and then higher-level
> abstractions for various HTTP operations.  Here's my description of each
> layer (that eventually ought to go into a design doc in the CoHTTP repo to
> make it more accessible to newcomers to the codebase):
>
> - The very first layer (in `lib/`) is a pure OCaml, non-blocking layer
> that handles simple parts of the HTTP protocol such as parsing requests and
> responses, various header parsers (e.g. cookies) and codes.
>
> - Some layers of HTTP need some notion of I/O, and so there is a set of
> signatures in `lib/s.mli` that defines some common module types that can be
> used to build parameterised modules (also known as functors).  The first
> one used in the `lib/` layer is the IO module type, which defines the
> minimal collection of functions used by cooperative threading libraries.
> The pure HTTP core uses this IO module to capture IO-based operations, such
> as Transfer_IO (for transfer encoding).
>
> - There are three implementations that satisfy the IO module in the tree:
> Lwt, Async and String.  The first two are full cooperative threading
> libraries, and the latter is used by the js_of_ocaml backend to read/write
> between Strings.
>
> - Now that IO has been handled, we can send HTTP requests and responses
> from Lwt or Async.  However, at this point some differences appear in the
> implementations of Async and Lwt, notably in how they handle cancellation
> of threads and also higher-level iterators (e.g. Async has Pipes, and Lwt
> has Lwt_stream -- both quite different).  Therefore, we build
> backend-specific Client and Server modules that use their respective
> threading libraries in as native a style as possible, but still reusing the
> core HTTP library from `lib/`.  These can be found in `Cohttp_lwt` and
> `Cohttp_async` respectively.  Dave Scott also wrote an (as yet not merged)
> POSIX blocking version that they use in the XenAPI daemon.
>
> - Lwt comes with an additional twist -- it is portable to both Unix *and*
> the MirageOS, which has no Unix at all!  Lwt makes it possible to define a
> "Lwt core" that uses the portable Lwt thread abstractions, but doesn't use
> any OS-specific functionality.  Thus we can define an HTTP Client and
> Server in Cohttp_lwt, but still not tie ourself to one particular OS.  This
> Cohttp_lwt is then used by the Cohttp_lwt_unix and Cohttp_mirage backends
> to hook it into the operating system.
>
> - There's no commonality at present between Cohttp_async and Cohttp_lwt,
> but that's the topic of a design discussion at the moment.  It should be
> possible to build a common signature between the two, and Rudi Grinberg
> took a shot at this a while back.  I'm not sure that it's worth the trouble
> right now.
>
> - Andy Ray did something interesting with the Lwt backend: he ported it to
> JavaScript by implementing an IO backend that marshals the requests to and
> from strings.  This allows REST API users built over Cohttp (such as
> ocaml-github) to compile to pure JavaScript as well.
>
> Drawbacks:
>
> - The heavy use of functors does make it hard to navigate the 'end user'
> API, even though those interfaces never expose any functors (for instance,
> you just use Cohttp_lwt_unix directly in most cases). This is a drawback of
> current OCaml tooling, and Merlin (for IDEs) and Codoc (for
> cross-referenced documentation) will fix this soon.
>
> - A bigger problem that needs to be addressed in Cohttp2 is body handling,
> which we basically got wrong in this iteration.  The Body module is not
> idempotent, so to_string does not always return the same value if called
> multiple times.  The caller can currently be careful, but this is just an
> awful part of the API.  There are enough users of Cohttp that we'll leave
> it for 1.0, but hopefully fix it quite rapidly for 2.0.
>
> - Cohttp is not a complete HTTP client, and doesn't implement the full
> logic for redirections, loop detection and so on.  That's the job of a
> library built over it, and there is some nascent code in opam-mirror that
> can do this [1].  Before building this, David Sheets and I want to look at
> some of the more larger API clients built using it (such as Vincent
> Bernardoff's BitStamp API [2]) and take a shot at a portable client API
> that will work with both Lwt and Async.
>
> So was functorising this heavily such a good idea?  I think so -- the
> litmus test is whether or not there is more than one different
> implementation for each parameterised module, and this has worked out
> particularly well for the Cohttp_lwt backend, where there are now 4 (!)
> very different implementations.
>
> Hope this helps,
> Anil
>
> [1]
> https://github.com/avsm/opam-mirror/blob/master/opam_mirror_fetch_urls.ml#L49
> [2] https://github.com/vbmithr/ocaml-bitstamp-api
>
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>
>

--001a11c3f7f09bc61b05125e6cb7
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><span style=3D"font-size:13px">Hi,</span><div style=3D"fon=
t-size:13px"><br></div><div style=3D"font-size:13px">While I do not have an=
y particular criticism of cohttp, there is another approach to this problem=
 that I personally find far more elegant and flexible.=C2=A0 I will talk mo=
stly of how to handle IO, but the same approach works with any type of &quo=
t;layering&quot;.=C2=A0 Let us call it the &quot;functor-less&quot; approac=
h.</div><div style=3D"font-size:13px"><br></div><div style=3D"font-size:13p=
x">The main difference is that, while functors are=C2=A0used to parametrise=
 the IO operations used *in* the code (often by way of defining an enclosin=
g monad), the functor-less approach takes the IO completely *out* of the co=
de.=C2=A0 Instead IO actions are returned as values that guide the actions =
of particular backends.=C2=A0 This involves formulating the sequencing of I=
O actions as a state machine.=C2=A0 Rather than trying to explain the gener=
al setup, let me point to some well-known examples, which I hope will conve=
y the essence=C2=A0of this approach:</div><div style=3D"font-size:13px"><br=
></div><div style=3D"font-size:13px">- ocaml-tls (purely=C2=A0functional st=
yle)</div><div style=3D"font-size:13px"><br></div><div style=3D"font-size:1=
3px">&lt;<a href=3D"https://github.com/mirleft/ocaml-tls/blob/master/lib/en=
gine.mli#L116" target=3D"_blank">https://github.com/mirleft/ocaml-tls/blob/=
master/lib/engine.mli#L116</a>&gt;<br></div><div style=3D"font-size:13px"><=
br></div><div style=3D"font-size:13px">(Lwt backend) &lt;<a href=3D"https:/=
/github.com/mirleft/ocaml-tls/blob/master/lwt/tls_lwt.ml#L75" target=3D"_bl=
ank">https://github.com/mirleft/ocaml-tls/blob/master/lwt/tls_lwt.ml#L75</a=
>&gt;<br></div><div style=3D"font-size:13px"><br></div><span style=3D"font-=
size:13px">- D Buenzli&#39;s codecs (imperative signature), eg</span><div s=
tyle=3D"font-size:13px"><div><br></div><div>&lt;<a href=3D"https://github.c=
om/dbuenzli/uutf/blob/master/src/uutf.mli#L207" target=3D"_blank">https://g=
ithub.com/dbuenzli/uutf/blob/master/src/uutf.mli#L207</a>&gt;<br></div><div=
><br></div><div>(Unix backend) &lt;<a href=3D"https://github.com/dbuenzli/u=
utf/blob/master/src/uutf.mli#L446" target=3D"_blank">https://github.com/dbu=
enzli/uutf/blob/master/src/uutf.mli#L446</a>&gt;</div><div><br></div><div>S=
ome advantages of this approach:<br></div><div><br></div><div>- using funct=
ors require following a greatest common divisor design - the argument signa=
ture has to account for all relevant features of each backend, whether they=
 are relevant or not for a particular one. Similarly, adding a new feature =
to a backend in the functorised approach often means giving an interpretati=
on of this feature to all other backends, even if it does not make much sen=
se.</div><div><div><br></div><div>- by construction it completely decouples=
=C2=A0IO and the program logic.=C2=A0 The advantages of this with respect t=
o clarity, error handling, safety, testing,=C2=A0are hard to overestimate.<=
/div><div><br></div><div>- do not have to write code in monadic style</div>=
<div><br></div><div>Best wishes,</div><div>Nicolas</div></div></div></div><=
div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Sat, Mar 28, 20=
15 at 4:36 PM, Anil Madhavapeddy <span dir=3D"ltr">&lt;<a href=3D"mailto:an=
il@recoil.org" target=3D"_blank">anil@recoil.org</a>&gt;</span> wrote:<br><=
blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px=
 #ccc solid;padding-left:1ex"><div style=3D"word-wrap:break-word"><span cla=
ss=3D"">On 28 Mar 2015, at 14:24, Trevor Smith &lt;<a href=3D"mailto:trevor=
summerssmith@gmail.com" target=3D"_blank">trevorsummerssmith@gmail.com</a>&=
gt; wrote:<br><div><blockquote type=3D"cite"><br><div><div dir=3D"ltr">Hi a=
ll,<div><br></div><div>I was wondering if there is a document somewhere des=
cribing why the different backends to cohttp don&#39;t have a unified clien=
t/server interface? It seems like it would be such a boon for the user to b=
e able to write their code but be able to choose the backends. I realize th=
at this must have already received much discussion but am not sure where it=
 is located.</div></div></div></blockquote><br></div></span><div>Hi Trevor,=
</div><div><br></div><div>There&#39;s no design document describing this, m=
ainly because CoHTTP started as an informal bet between me and Yaron Minsky=
 that the current design would be impossible/a bad idea.=C2=A0 The jury&#39=
;s still out on the verdict, but I don&#39;t think I&#39;ve lost yet :-)</d=
iv><div><br></div><div>I wanted to build an HTTP implementation as an &quot=
;onion&quot;, with the portable parsing core progressively introducing I/O,=
 and then higher-level abstractions for various HTTP operations.=C2=A0 Here=
&#39;s my description of each layer (that eventually ought to go into a des=
ign doc in the CoHTTP repo to make it more accessible to newcomers to the c=
odebase):</div><div><br></div><div>- The very first layer (in `lib/`) is a =
pure OCaml, non-blocking layer that handles simple parts of the HTTP protoc=
ol such as parsing requests and responses, various header parsers (e.g. coo=
kies) and codes.</div><div><br></div><div>- Some layers of HTTP need some n=
otion of I/O, and so there is a set of signatures in `lib/s.mli` that defin=
es some common module types that can be used to build parameterised modules=
 (also known as functors).=C2=A0 The first one used in the `lib/` layer is =
the IO module type, which defines the minimal collection of functions used =
by cooperative threading libraries.=C2=A0 The pure HTTP core uses this IO m=
odule to capture IO-based operations, such as Transfer_IO (for transfer enc=
oding).</div><div><br></div><div>- There are three implementations that sat=
isfy the IO module in the tree: Lwt, Async and String.=C2=A0 The first two =
are full cooperative threading libraries, and the latter is used by the js_=
of_ocaml backend to read/write between Strings.</div><div><br></div><div>- =
Now that IO has been handled, we can send HTTP requests and responses from =
Lwt or Async.=C2=A0 However, at this point some differences appear in the i=
mplementations of Async and Lwt, notably in how they handle cancellation of=
 threads and also higher-level iterators (e.g. Async has Pipes, and Lwt has=
 Lwt_stream -- both quite different).=C2=A0 Therefore, we build backend-spe=
cific Client and Server modules that use their respective threading librari=
es in as native a style as possible, but still reusing the core HTTP librar=
y from `lib/`.=C2=A0 These can be found in `Cohttp_lwt` and `Cohttp_async` =
respectively.=C2=A0 Dave Scott also wrote an (as yet not merged) POSIX bloc=
king version that they use in the XenAPI daemon.</div><div><br></div><div>-=
 Lwt comes with an additional twist -- it is portable to both Unix *and* th=
e MirageOS, which has no Unix at all!=C2=A0 Lwt makes it possible to define=
 a &quot;Lwt core&quot; that uses the portable Lwt thread abstractions, but=
 doesn&#39;t use any OS-specific functionality.=C2=A0 Thus we can define an=
 HTTP Client and Server in Cohttp_lwt, but still not tie ourself to one par=
ticular OS.=C2=A0 This Cohttp_lwt is then used by the Cohttp_lwt_unix and C=
ohttp_mirage backends to hook it into the operating system.</div><div><br><=
/div><div>- There&#39;s no commonality at present between Cohttp_async and =
Cohttp_lwt, but that&#39;s the topic of a design discussion at the moment.=
=C2=A0 It should be possible to build a common signature between the two, a=
nd Rudi Grinberg took a shot at this a while back.=C2=A0 I&#39;m not sure t=
hat it&#39;s worth the trouble right now.</div><div><br></div><div>- Andy R=
ay did something interesting with the Lwt backend: he ported it to JavaScri=
pt by implementing an IO backend that marshals the requests to and from str=
ings.=C2=A0 This allows REST API users built over Cohttp (such as ocaml-git=
hub) to compile to pure JavaScript as well.</div><div><br></div><div>Drawba=
cks:</div><div><br></div><div>- The heavy use of functors does make it hard=
 to navigate the &#39;end user&#39; API, even though those interfaces never=
 expose any functors (for instance, you just use Cohttp_lwt_unix directly i=
n most cases). This is a drawback of current OCaml tooling, and Merlin (for=
 IDEs) and Codoc (for cross-referenced documentation) will fix this soon.</=
div><div><br></div><div>- A bigger problem that needs to be addressed in Co=
http2 is body handling, which we basically got wrong in this iteration.=C2=
=A0 The Body module is not idempotent, so to_string does not always return =
the same value if called multiple times.=C2=A0 The caller can currently be =
careful, but this is just an awful part of the API.=C2=A0 There are enough =
users of Cohttp that we&#39;ll leave it for 1.0, but hopefully fix it quite=
 rapidly for 2.0.</div><div><br></div><div>- Cohttp is not a complete HTTP =
client, and doesn&#39;t implement the full logic for redirections, loop det=
ection and so on.=C2=A0 That&#39;s the job of a library built over it, and =
there is some nascent code in opam-mirror that can do this [1].=C2=A0 Befor=
e building this, David Sheets and I want to look at some of the more larger=
 API clients built using it (such as Vincent Bernardoff&#39;s BitStamp API =
[2]) and take a shot at a portable client API that will work with both Lwt =
and Async.</div><div><br></div><div>So was functorising this heavily such a=
 good idea?=C2=A0 I think so -- the litmus test is whether or not there is =
more than one different implementation for each parameterised module, and t=
his has worked out particularly well for the Cohttp_lwt backend, where ther=
e are now 4 (!) very different implementations.</div><div><br></div><div>Ho=
pe this helps,</div><div>Anil</div><div><br></div><div>[1]=C2=A0<a href=3D"=
https://github.com/avsm/opam-mirror/blob/master/opam_mirror_fetch_urls.ml#L=
49" target=3D"_blank">https://github.com/avsm/opam-mirror/blob/master/opam_=
mirror_fetch_urls.ml#L49</a></div><div>[2]=C2=A0<a href=3D"https://github.c=
om/vbmithr/ocaml-bitstamp-api" target=3D"_blank">https://github.com/vbmithr=
/ocaml-bitstamp-api</a></div></div><br>____________________________________=
___________<br>
MirageOS-devel mailing list<br>
<a href=3D"mailto:MirageOS-devel@lists.xenproject.org">MirageOS-devel@lists=
.xenproject.org</a><br>
<a href=3D"http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-de=
vel" target=3D"_blank">http://lists.xenproject.org/cgi-bin/mailman/listinfo=
/mirageos-devel</a><br>
<br></blockquote></div><br></div>

--001a11c3f7f09bc61b05125e6cb7--


--===============3470524457829229789==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============3470524457829229789==--


From mirageos-devel-bounces@lists.xenproject.org Sat Mar 28 19:54:59 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 28 Mar 2015 19:54:59 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Ybwos-0001mw-0b; Sat, 28 Mar 2015 19:54:58 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1Ybwoq-0001mr-Eu
	for mirageos-devel@lists.xenproject.org; Sat, 28 Mar 2015 19:54:56 +0000
Received: from [85.158.137.68] by server-8.bemta-3.messagelabs.com id
	76/78-09361-F0707155; Sat, 28 Mar 2015 19:54:55 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-5.tower-31.messagelabs.com!1427572492!11972478!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=1.1 required=7.0 tests=BODY_RANDOM_LONG,
	HTML_30_40,HTML_MESSAGE,MAILTO_TO_SPAM_ADDR,RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 25807 invoked from network); 28 Mar 2015 19:54:52 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-5.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 28 Mar 2015 19:54:52 -0000
Received: from [10.0.1.7] (cpc11-belf9-2-0-cust355.2-1.cable.virginm.net
	[86.24.61.100]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id aba08e42;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Sat, 28 Mar 2015 19:54:51 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAPunWhCSKt-G8D7Y8=XUJcKvOn9PhEQfnrPWmXMdObnQT+Gzvw@mail.gmail.com>
Date: Sat, 28 Mar 2015 19:54:50 +0000
Message-Id: <FC4D422B-A041-4C6B-AF0C-E4C787969A79@recoil.org>
References: <CAG-KTt98N7vUvLKtuM5m1HWsh-Sqsi=ziTKS6r9Tr6XHtZVovQ@mail.gmail.com>
	<DAB7D242-C922-45D4-B01A-53697855979F@recoil.org>
	<CAPunWhCSKt-G8D7Y8=XUJcKvOn9PhEQfnrPWmXMdObnQT+Gzvw@mail.gmail.com>
To: Nicolas Ojeda Bar <no263@dpmms.cam.ac.uk>
X-Mailer: Apple Mail (2.2070.6)
Cc: Trevor Smith <trevorsummerssmith@gmail.com>,
	"mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Cohttp Design -- LWT, Async, JS,
	Mirage Compatibility
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============3435508303438990640=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============3435508303438990640==
Content-Type: multipart/alternative; boundary="Apple-Mail=_813CFA78-A8CD-4059-82F8-D805B8BFBB0F"


--Apple-Mail=_813CFA78-A8CD-4059-82F8-D805B8BFBB0F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Indeed, these are very good approaches too.  There's a distinct tradeoff =
in all three examples though:

- ocaml-tls is a very complex state machine, and so the pure core =
dominates the Lwt driver.  After that though, there's no abstraction =
across (e.g.) Async or Lwt.  I'm not sure how well this would translate =
to HTTP, which is dominated by I/O logic (after all, there's a pure =
protocol core already).

- Despite being a heavy user of Daniel's libraries, I don't find them to =
have the most usable interfaces for quick usage, although they are the =
best documented and thought through from the libraries I select from =
(hence the existence of ezxmlm, ezjsonm, and so on as wrapper =
libraries).  A monadic interface is quite intuitive to pick up and use.

The compelling argument against functors for I/O is the greatest common =
divisor argument, although even this is (somewhat) mitigated by careful =
signature inclusion rather than massive interface types. This does =
create a burden on maintaining fine-grained interface types.

One aspect that really needs more investigation are the performance =
tradeoffs.  It used to be that functors always introduced an extra =
indirection, but with Pierre Chambart's new inliner this is greatly =
mitigated.  The pressure now goes onto the GC for the purely functional =
code that will do a lot more allocation...

-anil

> On 28 Mar 2015, at 19:40, Nicolas Ojeda Bar <no263@dpmms.cam.ac.uk> =
wrote:
>=20
> Hi,
>=20
> While I do not have any particular criticism of cohttp, there is =
another approach to this problem that I personally find far more elegant =
and flexible.  I will talk mostly of how to handle IO, but the same =
approach works with any type of "layering".  Let us call it the =
"functor-less" approach.
>=20
> The main difference is that, while functors are used to parametrise =
the IO operations used *in* the code (often by way of defining an =
enclosing monad), the functor-less approach takes the IO completely =
*out* of the code.  Instead IO actions are returned as values that guide =
the actions of particular backends.  This involves formulating the =
sequencing of IO actions as a state machine.  Rather than trying to =
explain the general setup, let me point to some well-known examples, =
which I hope will convey the essence of this approach:
>=20
> - ocaml-tls (purely functional style)
>=20
> <https://github.com/mirleft/ocaml-tls/blob/master/lib/engine.mli#L116 =
<https://github.com/mirleft/ocaml-tls/blob/master/lib/engine.mli#L116>>
>=20
> (Lwt backend) =
<https://github.com/mirleft/ocaml-tls/blob/master/lwt/tls_lwt.ml#L75 =
<https://github.com/mirleft/ocaml-tls/blob/master/lwt/tls_lwt.ml#L75>>
>=20
> - D Buenzli's codecs (imperative signature), eg
>=20
> <https://github.com/dbuenzli/uutf/blob/master/src/uutf.mli#L207 =
<https://github.com/dbuenzli/uutf/blob/master/src/uutf.mli#L207>>
>=20
> (Unix backend) =
<https://github.com/dbuenzli/uutf/blob/master/src/uutf.mli#L446 =
<https://github.com/dbuenzli/uutf/blob/master/src/uutf.mli#L446>>
>=20
> Some advantages of this approach:
>=20
> - using functors require following a greatest common divisor design - =
the argument signature has to account for all relevant features of each =
backend, whether they are relevant or not for a particular one. =
Similarly, adding a new feature to a backend in the functorised approach =
often means giving an interpretation of this feature to all other =
backends, even if it does not make much sense.
>=20
> - by construction it completely decouples IO and the program logic.  =
The advantages of this with respect to clarity, error handling, safety, =
testing, are hard to overestimate.
>=20
> - do not have to write code in monadic style
>=20
> Best wishes,
> Nicolas
>=20
> On Sat, Mar 28, 2015 at 4:36 PM, Anil Madhavapeddy <anil@recoil.org =
<mailto:anil@recoil.org>> wrote:
> On 28 Mar 2015, at 14:24, Trevor Smith <trevorsummerssmith@gmail.com =
<mailto:trevorsummerssmith@gmail.com>> wrote:
>>=20
>> Hi all,
>>=20
>> I was wondering if there is a document somewhere describing why the =
different backends to cohttp don't have a unified client/server =
interface? It seems like it would be such a boon for the user to be able =
to write their code but be able to choose the backends. I realize that =
this must have already received much discussion but am not sure where it =
is located.
>=20
> Hi Trevor,
>=20
> There's no design document describing this, mainly because CoHTTP =
started as an informal bet between me and Yaron Minsky that the current =
design would be impossible/a bad idea.  The jury's still out on the =
verdict, but I don't think I've lost yet :-)
>=20
> I wanted to build an HTTP implementation as an "onion", with the =
portable parsing core progressively introducing I/O, and then =
higher-level abstractions for various HTTP operations.  Here's my =
description of each layer (that eventually ought to go into a design doc =
in the CoHTTP repo to make it more accessible to newcomers to the =
codebase):
>=20
> - The very first layer (in `lib/`) is a pure OCaml, non-blocking layer =
that handles simple parts of the HTTP protocol such as parsing requests =
and responses, various header parsers (e.g. cookies) and codes.
>=20
> - Some layers of HTTP need some notion of I/O, and so there is a set =
of signatures in `lib/s.mli` that defines some common module types that =
can be used to build parameterised modules (also known as functors).  =
The first one used in the `lib/` layer is the IO module type, which =
defines the minimal collection of functions used by cooperative =
threading libraries.  The pure HTTP core uses this IO module to capture =
IO-based operations, such as Transfer_IO (for transfer encoding).
>=20
> - There are three implementations that satisfy the IO module in the =
tree: Lwt, Async and String.  The first two are full cooperative =
threading libraries, and the latter is used by the js_of_ocaml backend =
to read/write between Strings.
>=20
> - Now that IO has been handled, we can send HTTP requests and =
responses from Lwt or Async.  However, at this point some differences =
appear in the implementations of Async and Lwt, notably in how they =
handle cancellation of threads and also higher-level iterators (e.g. =
Async has Pipes, and Lwt has Lwt_stream -- both quite different).  =
Therefore, we build backend-specific Client and Server modules that use =
their respective threading libraries in as native a style as possible, =
but still reusing the core HTTP library from `lib/`.  These can be found =
in `Cohttp_lwt` and `Cohttp_async` respectively.  Dave Scott also wrote =
an (as yet not merged) POSIX blocking version that they use in the =
XenAPI daemon.
>=20
> - Lwt comes with an additional twist -- it is portable to both Unix =
*and* the MirageOS, which has no Unix at all!  Lwt makes it possible to =
define a "Lwt core" that uses the portable Lwt thread abstractions, but =
doesn't use any OS-specific functionality.  Thus we can define an HTTP =
Client and Server in Cohttp_lwt, but still not tie ourself to one =
particular OS.  This Cohttp_lwt is then used by the Cohttp_lwt_unix and =
Cohttp_mirage backends to hook it into the operating system.
>=20
> - There's no commonality at present between Cohttp_async and =
Cohttp_lwt, but that's the topic of a design discussion at the moment.  =
It should be possible to build a common signature between the two, and =
Rudi Grinberg took a shot at this a while back.  I'm not sure that it's =
worth the trouble right now.
>=20
> - Andy Ray did something interesting with the Lwt backend: he ported =
it to JavaScript by implementing an IO backend that marshals the =
requests to and from strings.  This allows REST API users built over =
Cohttp (such as ocaml-github) to compile to pure JavaScript as well.
>=20
> Drawbacks:
>=20
> - The heavy use of functors does make it hard to navigate the 'end =
user' API, even though those interfaces never expose any functors (for =
instance, you just use Cohttp_lwt_unix directly in most cases). This is =
a drawback of current OCaml tooling, and Merlin (for IDEs) and Codoc =
(for cross-referenced documentation) will fix this soon.
>=20
> - A bigger problem that needs to be addressed in Cohttp2 is body =
handling, which we basically got wrong in this iteration.  The Body =
module is not idempotent, so to_string does not always return the same =
value if called multiple times.  The caller can currently be careful, =
but this is just an awful part of the API.  There are enough users of =
Cohttp that we'll leave it for 1.0, but hopefully fix it quite rapidly =
for 2.0.
>=20
> - Cohttp is not a complete HTTP client, and doesn't implement the full =
logic for redirections, loop detection and so on.  That's the job of a =
library built over it, and there is some nascent code in opam-mirror =
that can do this [1].  Before building this, David Sheets and I want to =
look at some of the more larger API clients built using it (such as =
Vincent Bernardoff's BitStamp API [2]) and take a shot at a portable =
client API that will work with both Lwt and Async.
>=20
> So was functorising this heavily such a good idea?  I think so -- the =
litmus test is whether or not there is more than one different =
implementation for each parameterised module, and this has worked out =
particularly well for the Cohttp_lwt backend, where there are now 4 (!) =
very different implementations.
>=20
> Hope this helps,
> Anil
>=20
> [1] =
https://github.com/avsm/opam-mirror/blob/master/opam_mirror_fetch_urls.ml#=
L49 =
<https://github.com/avsm/opam-mirror/blob/master/opam_mirror_fetch_urls.ml=
#L49>
> [2] https://github.com/vbmithr/ocaml-bitstamp-api =
<https://github.com/vbmithr/ocaml-bitstamp-api>
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org =
<mailto:MirageOS-devel@lists.xenproject.org>
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel =
<http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>
>=20
>=20


--Apple-Mail=_813CFA78-A8CD-4059-82F8-D805B8BFBB0F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">Indeed, these are very good approaches too. &nbsp;There's a =
distinct tradeoff in all three examples though:<div class=3D""><br =
class=3D""></div><div class=3D"">- ocaml-tls is a very complex state =
machine, and so the pure core dominates the Lwt driver. &nbsp;After that =
though, there's no abstraction across (e.g.) Async or Lwt. &nbsp;I'm not =
sure how well this would translate to HTTP, which is dominated by I/O =
logic (after all, there's a pure protocol core already).</div><div =
class=3D""><br class=3D""></div><div class=3D"">- Despite being a heavy =
user of Daniel's libraries, I don't find them to have the most usable =
interfaces for quick usage, although they are the best documented and =
thought through from the libraries I select from (hence the existence of =
ezxmlm, ezjsonm, and so on as wrapper libraries). &nbsp;A monadic =
interface is quite intuitive to pick up and use.</div><div class=3D""><br =
class=3D""></div><div class=3D"">The compelling argument against =
functors for I/O is the greatest common divisor argument, although even =
this is (somewhat) mitigated by careful signature inclusion rather than =
massive interface types. This does create a burden on maintaining =
fine-grained interface types.</div><div class=3D""><br =
class=3D""></div><div class=3D"">One aspect that really needs more =
investigation are the performance tradeoffs. &nbsp;It used to be that =
functors always introduced an extra indirection, but with Pierre =
Chambart's new inliner this is greatly mitigated. &nbsp;The pressure now =
goes onto the GC for the purely functional code that will do a lot more =
allocation...</div><div class=3D""><br class=3D""></div><div =
class=3D"">-anil</div><div class=3D""><br class=3D""><div><blockquote =
type=3D"cite" class=3D""><div class=3D"">On 28 Mar 2015, at 19:40, =
Nicolas Ojeda Bar &lt;<a href=3D"mailto:no263@dpmms.cam.ac.uk" =
class=3D"">no263@dpmms.cam.ac.uk</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" =
class=3D""><span style=3D"font-size:13px" class=3D"">Hi,</span><div =
style=3D"font-size:13px" class=3D""><br class=3D""></div><div =
style=3D"font-size:13px" class=3D"">While I do not have any particular =
criticism of cohttp, there is another approach to this problem that I =
personally find far more elegant and flexible.&nbsp; I will talk mostly =
of how to handle IO, but the same approach works with any type of =
"layering".&nbsp; Let us call it the "functor-less" approach.</div><div =
style=3D"font-size:13px" class=3D""><br class=3D""></div><div =
style=3D"font-size:13px" class=3D"">The main difference is that, while =
functors are&nbsp;used to parametrise the IO operations used *in* the =
code (often by way of defining an enclosing monad), the functor-less =
approach takes the IO completely *out* of the code.&nbsp; Instead IO =
actions are returned as values that guide the actions of particular =
backends.&nbsp; This involves formulating the sequencing of IO actions =
as a state machine.&nbsp; Rather than trying to explain the general =
setup, let me point to some well-known examples, which I hope will =
convey the essence&nbsp;of this approach:</div><div =
style=3D"font-size:13px" class=3D""><br class=3D""></div><div =
style=3D"font-size:13px" class=3D"">- ocaml-tls (purely&nbsp;functional =
style)</div><div style=3D"font-size:13px" class=3D""><br =
class=3D""></div><div style=3D"font-size:13px" class=3D"">&lt;<a =
href=3D"https://github.com/mirleft/ocaml-tls/blob/master/lib/engine.mli#L1=
16" target=3D"_blank" =
class=3D"">https://github.com/mirleft/ocaml-tls/blob/master/lib/engine.mli=
#L116</a>&gt;<br class=3D""></div><div style=3D"font-size:13px" =
class=3D""><br class=3D""></div><div style=3D"font-size:13px" =
class=3D"">(Lwt backend) &lt;<a =
href=3D"https://github.com/mirleft/ocaml-tls/blob/master/lwt/tls_lwt.ml#L7=
5" target=3D"_blank" =
class=3D"">https://github.com/mirleft/ocaml-tls/blob/master/lwt/tls_lwt.ml=
#L75</a>&gt;<br class=3D""></div><div style=3D"font-size:13px" =
class=3D""><br class=3D""></div><span style=3D"font-size:13px" =
class=3D"">- D Buenzli's codecs (imperative signature), eg</span><div =
style=3D"font-size:13px" class=3D""><div class=3D""><br =
class=3D""></div><div class=3D"">&lt;<a =
href=3D"https://github.com/dbuenzli/uutf/blob/master/src/uutf.mli#L207" =
target=3D"_blank" =
class=3D"">https://github.com/dbuenzli/uutf/blob/master/src/uutf.mli#L207<=
/a>&gt;<br class=3D""></div><div class=3D""><br class=3D""></div><div =
class=3D"">(Unix backend) &lt;<a =
href=3D"https://github.com/dbuenzli/uutf/blob/master/src/uutf.mli#L446" =
target=3D"_blank" =
class=3D"">https://github.com/dbuenzli/uutf/blob/master/src/uutf.mli#L446<=
/a>&gt;</div><div class=3D""><br class=3D""></div><div class=3D"">Some =
advantages of this approach:<br class=3D""></div><div class=3D""><br =
class=3D""></div><div class=3D"">- using functors require following a =
greatest common divisor design - the argument signature has to account =
for all relevant features of each backend, whether they are relevant or =
not for a particular one. Similarly, adding a new feature to a backend =
in the functorised approach often means giving an interpretation of this =
feature to all other backends, even if it does not make much =
sense.</div><div class=3D""><div class=3D""><br class=3D""></div><div =
class=3D"">- by construction it completely decouples&nbsp;IO and the =
program logic.&nbsp; The advantages of this with respect to clarity, =
error handling, safety, testing,&nbsp;are hard to =
overestimate.</div><div class=3D""><br class=3D""></div><div class=3D"">- =
do not have to write code in monadic style</div><div class=3D""><br =
class=3D""></div><div class=3D"">Best wishes,</div><div =
class=3D"">Nicolas</div></div></div></div><div class=3D"gmail_extra"><br =
class=3D""><div class=3D"gmail_quote">On Sat, Mar 28, 2015 at 4:36 PM, =
Anil Madhavapeddy <span dir=3D"ltr" class=3D"">&lt;<a =
href=3D"mailto:anil@recoil.org" target=3D"_blank" =
class=3D"">anil@recoil.org</a>&gt;</span> wrote:<br class=3D""><blockquote=
 class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc =
solid;padding-left:1ex"><div style=3D"word-wrap:break-word" =
class=3D""><span class=3D"">On 28 Mar 2015, at 14:24, Trevor Smith =
&lt;<a href=3D"mailto:trevorsummerssmith@gmail.com" target=3D"_blank" =
class=3D"">trevorsummerssmith@gmail.com</a>&gt; wrote:<br class=3D""><div =
class=3D""><blockquote type=3D"cite" class=3D""><br class=3D""><div =
class=3D""><div dir=3D"ltr" class=3D"">Hi all,<div class=3D""><br =
class=3D""></div><div class=3D"">I was wondering if there is a document =
somewhere describing why the different backends to cohttp don't have a =
unified client/server interface? It seems like it would be such a boon =
for the user to be able to write their code but be able to choose the =
backends. I realize that this must have already received much discussion =
but am not sure where it is located.</div></div></div></blockquote><br =
class=3D""></div></span><div class=3D"">Hi Trevor,</div><div =
class=3D""><br class=3D""></div><div class=3D"">There's no design =
document describing this, mainly because CoHTTP started as an informal =
bet between me and Yaron Minsky that the current design would be =
impossible/a bad idea.&nbsp; The jury's still out on the verdict, but I =
don't think I've lost yet :-)</div><div class=3D""><br =
class=3D""></div><div class=3D"">I wanted to build an HTTP =
implementation as an "onion", with the portable parsing core =
progressively introducing I/O, and then higher-level abstractions for =
various HTTP operations.&nbsp; Here's my description of each layer (that =
eventually ought to go into a design doc in the CoHTTP repo to make it =
more accessible to newcomers to the codebase):</div><div class=3D""><br =
class=3D""></div><div class=3D"">- The very first layer (in `lib/`) is a =
pure OCaml, non-blocking layer that handles simple parts of the HTTP =
protocol such as parsing requests and responses, various header parsers =
(e.g. cookies) and codes.</div><div class=3D""><br class=3D""></div><div =
class=3D"">- Some layers of HTTP need some notion of I/O, and so there =
is a set of signatures in `lib/s.mli` that defines some common module =
types that can be used to build parameterised modules (also known as =
functors).&nbsp; The first one used in the `lib/` layer is the IO module =
type, which defines the minimal collection of functions used by =
cooperative threading libraries.&nbsp; The pure HTTP core uses this IO =
module to capture IO-based operations, such as Transfer_IO (for transfer =
encoding).</div><div class=3D""><br class=3D""></div><div class=3D"">- =
There are three implementations that satisfy the IO module in the tree: =
Lwt, Async and String.&nbsp; The first two are full cooperative =
threading libraries, and the latter is used by the js_of_ocaml backend =
to read/write between Strings.</div><div class=3D""><br =
class=3D""></div><div class=3D"">- Now that IO has been handled, we can =
send HTTP requests and responses from Lwt or Async.&nbsp; However, at =
this point some differences appear in the implementations of Async and =
Lwt, notably in how they handle cancellation of threads and also =
higher-level iterators (e.g. Async has Pipes, and Lwt has Lwt_stream -- =
both quite different).&nbsp; Therefore, we build backend-specific Client =
and Server modules that use their respective threading libraries in as =
native a style as possible, but still reusing the core HTTP library from =
`lib/`.&nbsp; These can be found in `Cohttp_lwt` and `Cohttp_async` =
respectively.&nbsp; Dave Scott also wrote an (as yet not merged) POSIX =
blocking version that they use in the XenAPI daemon.</div><div =
class=3D""><br class=3D""></div><div class=3D"">- Lwt comes with an =
additional twist -- it is portable to both Unix *and* the MirageOS, =
which has no Unix at all!&nbsp; Lwt makes it possible to define a "Lwt =
core" that uses the portable Lwt thread abstractions, but doesn't use =
any OS-specific functionality.&nbsp; Thus we can define an HTTP Client =
and Server in Cohttp_lwt, but still not tie ourself to one particular =
OS.&nbsp; This Cohttp_lwt is then used by the Cohttp_lwt_unix and =
Cohttp_mirage backends to hook it into the operating system.</div><div =
class=3D""><br class=3D""></div><div class=3D"">- There's no commonality =
at present between Cohttp_async and Cohttp_lwt, but that's the topic of =
a design discussion at the moment.&nbsp; It should be possible to build =
a common signature between the two, and Rudi Grinberg took a shot at =
this a while back.&nbsp; I'm not sure that it's worth the trouble right =
now.</div><div class=3D""><br class=3D""></div><div class=3D"">- Andy =
Ray did something interesting with the Lwt backend: he ported it to =
JavaScript by implementing an IO backend that marshals the requests to =
and from strings.&nbsp; This allows REST API users built over Cohttp =
(such as ocaml-github) to compile to pure JavaScript as well.</div><div =
class=3D""><br class=3D""></div><div class=3D"">Drawbacks:</div><div =
class=3D""><br class=3D""></div><div class=3D"">- The heavy use of =
functors does make it hard to navigate the 'end user' API, even though =
those interfaces never expose any functors (for instance, you just use =
Cohttp_lwt_unix directly in most cases). This is a drawback of current =
OCaml tooling, and Merlin (for IDEs) and Codoc (for cross-referenced =
documentation) will fix this soon.</div><div class=3D""><br =
class=3D""></div><div class=3D"">- A bigger problem that needs to be =
addressed in Cohttp2 is body handling, which we basically got wrong in =
this iteration.&nbsp; The Body module is not idempotent, so to_string =
does not always return the same value if called multiple times.&nbsp; =
The caller can currently be careful, but this is just an awful part of =
the API.&nbsp; There are enough users of Cohttp that we'll leave it for =
1.0, but hopefully fix it quite rapidly for 2.0.</div><div class=3D""><br =
class=3D""></div><div class=3D"">- Cohttp is not a complete HTTP client, =
and doesn't implement the full logic for redirections, loop detection =
and so on.&nbsp; That's the job of a library built over it, and there is =
some nascent code in opam-mirror that can do this [1].&nbsp; Before =
building this, David Sheets and I want to look at some of the more =
larger API clients built using it (such as Vincent Bernardoff's BitStamp =
API [2]) and take a shot at a portable client API that will work with =
both Lwt and Async.</div><div class=3D""><br class=3D""></div><div =
class=3D"">So was functorising this heavily such a good idea?&nbsp; I =
think so -- the litmus test is whether or not there is more than one =
different implementation for each parameterised module, and this has =
worked out particularly well for the Cohttp_lwt backend, where there are =
now 4 (!) very different implementations.</div><div class=3D""><br =
class=3D""></div><div class=3D"">Hope this helps,</div><div =
class=3D"">Anil</div><div class=3D""><br class=3D""></div><div =
class=3D"">[1]&nbsp;<a =
href=3D"https://github.com/avsm/opam-mirror/blob/master/opam_mirror_fetch_=
urls.ml#L49" target=3D"_blank" =
class=3D"">https://github.com/avsm/opam-mirror/blob/master/opam_mirror_fet=
ch_urls.ml#L49</a></div><div class=3D"">[2]&nbsp;<a =
href=3D"https://github.com/vbmithr/ocaml-bitstamp-api" target=3D"_blank" =
class=3D"">https://github.com/vbmithr/ocaml-bitstamp-api</a></div></div><b=
r class=3D"">_______________________________________________<br =
class=3D"">
MirageOS-devel mailing list<br class=3D"">
<a href=3D"mailto:MirageOS-devel@lists.xenproject.org" =
class=3D"">MirageOS-devel@lists.xenproject.org</a><br class=3D"">
<a =
href=3D"http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-deve=
l" target=3D"_blank" =
class=3D"">http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-d=
evel</a><br class=3D"">
<br class=3D""></blockquote></div><br class=3D""></div>
</div></blockquote></div><br class=3D""></div></body></html>=

--Apple-Mail=_813CFA78-A8CD-4059-82F8-D805B8BFBB0F--


--===============3435508303438990640==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============3435508303438990640==--


From mirageos-devel-bounces@lists.xenproject.org Sat Mar 28 19:54:59 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sat, 28 Mar 2015 19:54:59 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Ybwos-0001mw-0b; Sat, 28 Mar 2015 19:54:58 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1Ybwoq-0001mr-Eu
	for mirageos-devel@lists.xenproject.org; Sat, 28 Mar 2015 19:54:56 +0000
Received: from [85.158.137.68] by server-8.bemta-3.messagelabs.com id
	76/78-09361-F0707155; Sat, 28 Mar 2015 19:54:55 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-5.tower-31.messagelabs.com!1427572492!11972478!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=1.1 required=7.0 tests=BODY_RANDOM_LONG,
	HTML_30_40,HTML_MESSAGE,MAILTO_TO_SPAM_ADDR,RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 25807 invoked from network); 28 Mar 2015 19:54:52 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-5.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 28 Mar 2015 19:54:52 -0000
Received: from [10.0.1.7] (cpc11-belf9-2-0-cust355.2-1.cable.virginm.net
	[86.24.61.100]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id aba08e42;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Sat, 28 Mar 2015 19:54:51 +0000 (GMT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAPunWhCSKt-G8D7Y8=XUJcKvOn9PhEQfnrPWmXMdObnQT+Gzvw@mail.gmail.com>
Date: Sat, 28 Mar 2015 19:54:50 +0000
Message-Id: <FC4D422B-A041-4C6B-AF0C-E4C787969A79@recoil.org>
References: <CAG-KTt98N7vUvLKtuM5m1HWsh-Sqsi=ziTKS6r9Tr6XHtZVovQ@mail.gmail.com>
	<DAB7D242-C922-45D4-B01A-53697855979F@recoil.org>
	<CAPunWhCSKt-G8D7Y8=XUJcKvOn9PhEQfnrPWmXMdObnQT+Gzvw@mail.gmail.com>
To: Nicolas Ojeda Bar <no263@dpmms.cam.ac.uk>
X-Mailer: Apple Mail (2.2070.6)
Cc: Trevor Smith <trevorsummerssmith@gmail.com>,
	"mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Cohttp Design -- LWT, Async, JS,
	Mirage Compatibility
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============3435508303438990640=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============3435508303438990640==
Content-Type: multipart/alternative; boundary="Apple-Mail=_813CFA78-A8CD-4059-82F8-D805B8BFBB0F"


--Apple-Mail=_813CFA78-A8CD-4059-82F8-D805B8BFBB0F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

Indeed, these are very good approaches too.  There's a distinct tradeoff =
in all three examples though:

- ocaml-tls is a very complex state machine, and so the pure core =
dominates the Lwt driver.  After that though, there's no abstraction =
across (e.g.) Async or Lwt.  I'm not sure how well this would translate =
to HTTP, which is dominated by I/O logic (after all, there's a pure =
protocol core already).

- Despite being a heavy user of Daniel's libraries, I don't find them to =
have the most usable interfaces for quick usage, although they are the =
best documented and thought through from the libraries I select from =
(hence the existence of ezxmlm, ezjsonm, and so on as wrapper =
libraries).  A monadic interface is quite intuitive to pick up and use.

The compelling argument against functors for I/O is the greatest common =
divisor argument, although even this is (somewhat) mitigated by careful =
signature inclusion rather than massive interface types. This does =
create a burden on maintaining fine-grained interface types.

One aspect that really needs more investigation are the performance =
tradeoffs.  It used to be that functors always introduced an extra =
indirection, but with Pierre Chambart's new inliner this is greatly =
mitigated.  The pressure now goes onto the GC for the purely functional =
code that will do a lot more allocation...

-anil

> On 28 Mar 2015, at 19:40, Nicolas Ojeda Bar <no263@dpmms.cam.ac.uk> =
wrote:
>=20
> Hi,
>=20
> While I do not have any particular criticism of cohttp, there is =
another approach to this problem that I personally find far more elegant =
and flexible.  I will talk mostly of how to handle IO, but the same =
approach works with any type of "layering".  Let us call it the =
"functor-less" approach.
>=20
> The main difference is that, while functors are used to parametrise =
the IO operations used *in* the code (often by way of defining an =
enclosing monad), the functor-less approach takes the IO completely =
*out* of the code.  Instead IO actions are returned as values that guide =
the actions of particular backends.  This involves formulating the =
sequencing of IO actions as a state machine.  Rather than trying to =
explain the general setup, let me point to some well-known examples, =
which I hope will convey the essence of this approach:
>=20
> - ocaml-tls (purely functional style)
>=20
> <https://github.com/mirleft/ocaml-tls/blob/master/lib/engine.mli#L116 =
<https://github.com/mirleft/ocaml-tls/blob/master/lib/engine.mli#L116>>
>=20
> (Lwt backend) =
<https://github.com/mirleft/ocaml-tls/blob/master/lwt/tls_lwt.ml#L75 =
<https://github.com/mirleft/ocaml-tls/blob/master/lwt/tls_lwt.ml#L75>>
>=20
> - D Buenzli's codecs (imperative signature), eg
>=20
> <https://github.com/dbuenzli/uutf/blob/master/src/uutf.mli#L207 =
<https://github.com/dbuenzli/uutf/blob/master/src/uutf.mli#L207>>
>=20
> (Unix backend) =
<https://github.com/dbuenzli/uutf/blob/master/src/uutf.mli#L446 =
<https://github.com/dbuenzli/uutf/blob/master/src/uutf.mli#L446>>
>=20
> Some advantages of this approach:
>=20
> - using functors require following a greatest common divisor design - =
the argument signature has to account for all relevant features of each =
backend, whether they are relevant or not for a particular one. =
Similarly, adding a new feature to a backend in the functorised approach =
often means giving an interpretation of this feature to all other =
backends, even if it does not make much sense.
>=20
> - by construction it completely decouples IO and the program logic.  =
The advantages of this with respect to clarity, error handling, safety, =
testing, are hard to overestimate.
>=20
> - do not have to write code in monadic style
>=20
> Best wishes,
> Nicolas
>=20
> On Sat, Mar 28, 2015 at 4:36 PM, Anil Madhavapeddy <anil@recoil.org =
<mailto:anil@recoil.org>> wrote:
> On 28 Mar 2015, at 14:24, Trevor Smith <trevorsummerssmith@gmail.com =
<mailto:trevorsummerssmith@gmail.com>> wrote:
>>=20
>> Hi all,
>>=20
>> I was wondering if there is a document somewhere describing why the =
different backends to cohttp don't have a unified client/server =
interface? It seems like it would be such a boon for the user to be able =
to write their code but be able to choose the backends. I realize that =
this must have already received much discussion but am not sure where it =
is located.
>=20
> Hi Trevor,
>=20
> There's no design document describing this, mainly because CoHTTP =
started as an informal bet between me and Yaron Minsky that the current =
design would be impossible/a bad idea.  The jury's still out on the =
verdict, but I don't think I've lost yet :-)
>=20
> I wanted to build an HTTP implementation as an "onion", with the =
portable parsing core progressively introducing I/O, and then =
higher-level abstractions for various HTTP operations.  Here's my =
description of each layer (that eventually ought to go into a design doc =
in the CoHTTP repo to make it more accessible to newcomers to the =
codebase):
>=20
> - The very first layer (in `lib/`) is a pure OCaml, non-blocking layer =
that handles simple parts of the HTTP protocol such as parsing requests =
and responses, various header parsers (e.g. cookies) and codes.
>=20
> - Some layers of HTTP need some notion of I/O, and so there is a set =
of signatures in `lib/s.mli` that defines some common module types that =
can be used to build parameterised modules (also known as functors).  =
The first one used in the `lib/` layer is the IO module type, which =
defines the minimal collection of functions used by cooperative =
threading libraries.  The pure HTTP core uses this IO module to capture =
IO-based operations, such as Transfer_IO (for transfer encoding).
>=20
> - There are three implementations that satisfy the IO module in the =
tree: Lwt, Async and String.  The first two are full cooperative =
threading libraries, and the latter is used by the js_of_ocaml backend =
to read/write between Strings.
>=20
> - Now that IO has been handled, we can send HTTP requests and =
responses from Lwt or Async.  However, at this point some differences =
appear in the implementations of Async and Lwt, notably in how they =
handle cancellation of threads and also higher-level iterators (e.g. =
Async has Pipes, and Lwt has Lwt_stream -- both quite different).  =
Therefore, we build backend-specific Client and Server modules that use =
their respective threading libraries in as native a style as possible, =
but still reusing the core HTTP library from `lib/`.  These can be found =
in `Cohttp_lwt` and `Cohttp_async` respectively.  Dave Scott also wrote =
an (as yet not merged) POSIX blocking version that they use in the =
XenAPI daemon.
>=20
> - Lwt comes with an additional twist -- it is portable to both Unix =
*and* the MirageOS, which has no Unix at all!  Lwt makes it possible to =
define a "Lwt core" that uses the portable Lwt thread abstractions, but =
doesn't use any OS-specific functionality.  Thus we can define an HTTP =
Client and Server in Cohttp_lwt, but still not tie ourself to one =
particular OS.  This Cohttp_lwt is then used by the Cohttp_lwt_unix and =
Cohttp_mirage backends to hook it into the operating system.
>=20
> - There's no commonality at present between Cohttp_async and =
Cohttp_lwt, but that's the topic of a design discussion at the moment.  =
It should be possible to build a common signature between the two, and =
Rudi Grinberg took a shot at this a while back.  I'm not sure that it's =
worth the trouble right now.
>=20
> - Andy Ray did something interesting with the Lwt backend: he ported =
it to JavaScript by implementing an IO backend that marshals the =
requests to and from strings.  This allows REST API users built over =
Cohttp (such as ocaml-github) to compile to pure JavaScript as well.
>=20
> Drawbacks:
>=20
> - The heavy use of functors does make it hard to navigate the 'end =
user' API, even though those interfaces never expose any functors (for =
instance, you just use Cohttp_lwt_unix directly in most cases). This is =
a drawback of current OCaml tooling, and Merlin (for IDEs) and Codoc =
(for cross-referenced documentation) will fix this soon.
>=20
> - A bigger problem that needs to be addressed in Cohttp2 is body =
handling, which we basically got wrong in this iteration.  The Body =
module is not idempotent, so to_string does not always return the same =
value if called multiple times.  The caller can currently be careful, =
but this is just an awful part of the API.  There are enough users of =
Cohttp that we'll leave it for 1.0, but hopefully fix it quite rapidly =
for 2.0.
>=20
> - Cohttp is not a complete HTTP client, and doesn't implement the full =
logic for redirections, loop detection and so on.  That's the job of a =
library built over it, and there is some nascent code in opam-mirror =
that can do this [1].  Before building this, David Sheets and I want to =
look at some of the more larger API clients built using it (such as =
Vincent Bernardoff's BitStamp API [2]) and take a shot at a portable =
client API that will work with both Lwt and Async.
>=20
> So was functorising this heavily such a good idea?  I think so -- the =
litmus test is whether or not there is more than one different =
implementation for each parameterised module, and this has worked out =
particularly well for the Cohttp_lwt backend, where there are now 4 (!) =
very different implementations.
>=20
> Hope this helps,
> Anil
>=20
> [1] =
https://github.com/avsm/opam-mirror/blob/master/opam_mirror_fetch_urls.ml#=
L49 =
<https://github.com/avsm/opam-mirror/blob/master/opam_mirror_fetch_urls.ml=
#L49>
> [2] https://github.com/vbmithr/ocaml-bitstamp-api =
<https://github.com/vbmithr/ocaml-bitstamp-api>
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org =
<mailto:MirageOS-devel@lists.xenproject.org>
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel =
<http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>
>=20
>=20


--Apple-Mail=_813CFA78-A8CD-4059-82F8-D805B8BFBB0F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">Indeed, these are very good approaches too. &nbsp;There's a =
distinct tradeoff in all three examples though:<div class=3D""><br =
class=3D""></div><div class=3D"">- ocaml-tls is a very complex state =
machine, and so the pure core dominates the Lwt driver. &nbsp;After that =
though, there's no abstraction across (e.g.) Async or Lwt. &nbsp;I'm not =
sure how well this would translate to HTTP, which is dominated by I/O =
logic (after all, there's a pure protocol core already).</div><div =
class=3D""><br class=3D""></div><div class=3D"">- Despite being a heavy =
user of Daniel's libraries, I don't find them to have the most usable =
interfaces for quick usage, although they are the best documented and =
thought through from the libraries I select from (hence the existence of =
ezxmlm, ezjsonm, and so on as wrapper libraries). &nbsp;A monadic =
interface is quite intuitive to pick up and use.</div><div class=3D""><br =
class=3D""></div><div class=3D"">The compelling argument against =
functors for I/O is the greatest common divisor argument, although even =
this is (somewhat) mitigated by careful signature inclusion rather than =
massive interface types. This does create a burden on maintaining =
fine-grained interface types.</div><div class=3D""><br =
class=3D""></div><div class=3D"">One aspect that really needs more =
investigation are the performance tradeoffs. &nbsp;It used to be that =
functors always introduced an extra indirection, but with Pierre =
Chambart's new inliner this is greatly mitigated. &nbsp;The pressure now =
goes onto the GC for the purely functional code that will do a lot more =
allocation...</div><div class=3D""><br class=3D""></div><div =
class=3D"">-anil</div><div class=3D""><br class=3D""><div><blockquote =
type=3D"cite" class=3D""><div class=3D"">On 28 Mar 2015, at 19:40, =
Nicolas Ojeda Bar &lt;<a href=3D"mailto:no263@dpmms.cam.ac.uk" =
class=3D"">no263@dpmms.cam.ac.uk</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" =
class=3D""><span style=3D"font-size:13px" class=3D"">Hi,</span><div =
style=3D"font-size:13px" class=3D""><br class=3D""></div><div =
style=3D"font-size:13px" class=3D"">While I do not have any particular =
criticism of cohttp, there is another approach to this problem that I =
personally find far more elegant and flexible.&nbsp; I will talk mostly =
of how to handle IO, but the same approach works with any type of =
"layering".&nbsp; Let us call it the "functor-less" approach.</div><div =
style=3D"font-size:13px" class=3D""><br class=3D""></div><div =
style=3D"font-size:13px" class=3D"">The main difference is that, while =
functors are&nbsp;used to parametrise the IO operations used *in* the =
code (often by way of defining an enclosing monad), the functor-less =
approach takes the IO completely *out* of the code.&nbsp; Instead IO =
actions are returned as values that guide the actions of particular =
backends.&nbsp; This involves formulating the sequencing of IO actions =
as a state machine.&nbsp; Rather than trying to explain the general =
setup, let me point to some well-known examples, which I hope will =
convey the essence&nbsp;of this approach:</div><div =
style=3D"font-size:13px" class=3D""><br class=3D""></div><div =
style=3D"font-size:13px" class=3D"">- ocaml-tls (purely&nbsp;functional =
style)</div><div style=3D"font-size:13px" class=3D""><br =
class=3D""></div><div style=3D"font-size:13px" class=3D"">&lt;<a =
href=3D"https://github.com/mirleft/ocaml-tls/blob/master/lib/engine.mli#L1=
16" target=3D"_blank" =
class=3D"">https://github.com/mirleft/ocaml-tls/blob/master/lib/engine.mli=
#L116</a>&gt;<br class=3D""></div><div style=3D"font-size:13px" =
class=3D""><br class=3D""></div><div style=3D"font-size:13px" =
class=3D"">(Lwt backend) &lt;<a =
href=3D"https://github.com/mirleft/ocaml-tls/blob/master/lwt/tls_lwt.ml#L7=
5" target=3D"_blank" =
class=3D"">https://github.com/mirleft/ocaml-tls/blob/master/lwt/tls_lwt.ml=
#L75</a>&gt;<br class=3D""></div><div style=3D"font-size:13px" =
class=3D""><br class=3D""></div><span style=3D"font-size:13px" =
class=3D"">- D Buenzli's codecs (imperative signature), eg</span><div =
style=3D"font-size:13px" class=3D""><div class=3D""><br =
class=3D""></div><div class=3D"">&lt;<a =
href=3D"https://github.com/dbuenzli/uutf/blob/master/src/uutf.mli#L207" =
target=3D"_blank" =
class=3D"">https://github.com/dbuenzli/uutf/blob/master/src/uutf.mli#L207<=
/a>&gt;<br class=3D""></div><div class=3D""><br class=3D""></div><div =
class=3D"">(Unix backend) &lt;<a =
href=3D"https://github.com/dbuenzli/uutf/blob/master/src/uutf.mli#L446" =
target=3D"_blank" =
class=3D"">https://github.com/dbuenzli/uutf/blob/master/src/uutf.mli#L446<=
/a>&gt;</div><div class=3D""><br class=3D""></div><div class=3D"">Some =
advantages of this approach:<br class=3D""></div><div class=3D""><br =
class=3D""></div><div class=3D"">- using functors require following a =
greatest common divisor design - the argument signature has to account =
for all relevant features of each backend, whether they are relevant or =
not for a particular one. Similarly, adding a new feature to a backend =
in the functorised approach often means giving an interpretation of this =
feature to all other backends, even if it does not make much =
sense.</div><div class=3D""><div class=3D""><br class=3D""></div><div =
class=3D"">- by construction it completely decouples&nbsp;IO and the =
program logic.&nbsp; The advantages of this with respect to clarity, =
error handling, safety, testing,&nbsp;are hard to =
overestimate.</div><div class=3D""><br class=3D""></div><div class=3D"">- =
do not have to write code in monadic style</div><div class=3D""><br =
class=3D""></div><div class=3D"">Best wishes,</div><div =
class=3D"">Nicolas</div></div></div></div><div class=3D"gmail_extra"><br =
class=3D""><div class=3D"gmail_quote">On Sat, Mar 28, 2015 at 4:36 PM, =
Anil Madhavapeddy <span dir=3D"ltr" class=3D"">&lt;<a =
href=3D"mailto:anil@recoil.org" target=3D"_blank" =
class=3D"">anil@recoil.org</a>&gt;</span> wrote:<br class=3D""><blockquote=
 class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc =
solid;padding-left:1ex"><div style=3D"word-wrap:break-word" =
class=3D""><span class=3D"">On 28 Mar 2015, at 14:24, Trevor Smith =
&lt;<a href=3D"mailto:trevorsummerssmith@gmail.com" target=3D"_blank" =
class=3D"">trevorsummerssmith@gmail.com</a>&gt; wrote:<br class=3D""><div =
class=3D""><blockquote type=3D"cite" class=3D""><br class=3D""><div =
class=3D""><div dir=3D"ltr" class=3D"">Hi all,<div class=3D""><br =
class=3D""></div><div class=3D"">I was wondering if there is a document =
somewhere describing why the different backends to cohttp don't have a =
unified client/server interface? It seems like it would be such a boon =
for the user to be able to write their code but be able to choose the =
backends. I realize that this must have already received much discussion =
but am not sure where it is located.</div></div></div></blockquote><br =
class=3D""></div></span><div class=3D"">Hi Trevor,</div><div =
class=3D""><br class=3D""></div><div class=3D"">There's no design =
document describing this, mainly because CoHTTP started as an informal =
bet between me and Yaron Minsky that the current design would be =
impossible/a bad idea.&nbsp; The jury's still out on the verdict, but I =
don't think I've lost yet :-)</div><div class=3D""><br =
class=3D""></div><div class=3D"">I wanted to build an HTTP =
implementation as an "onion", with the portable parsing core =
progressively introducing I/O, and then higher-level abstractions for =
various HTTP operations.&nbsp; Here's my description of each layer (that =
eventually ought to go into a design doc in the CoHTTP repo to make it =
more accessible to newcomers to the codebase):</div><div class=3D""><br =
class=3D""></div><div class=3D"">- The very first layer (in `lib/`) is a =
pure OCaml, non-blocking layer that handles simple parts of the HTTP =
protocol such as parsing requests and responses, various header parsers =
(e.g. cookies) and codes.</div><div class=3D""><br class=3D""></div><div =
class=3D"">- Some layers of HTTP need some notion of I/O, and so there =
is a set of signatures in `lib/s.mli` that defines some common module =
types that can be used to build parameterised modules (also known as =
functors).&nbsp; The first one used in the `lib/` layer is the IO module =
type, which defines the minimal collection of functions used by =
cooperative threading libraries.&nbsp; The pure HTTP core uses this IO =
module to capture IO-based operations, such as Transfer_IO (for transfer =
encoding).</div><div class=3D""><br class=3D""></div><div class=3D"">- =
There are three implementations that satisfy the IO module in the tree: =
Lwt, Async and String.&nbsp; The first two are full cooperative =
threading libraries, and the latter is used by the js_of_ocaml backend =
to read/write between Strings.</div><div class=3D""><br =
class=3D""></div><div class=3D"">- Now that IO has been handled, we can =
send HTTP requests and responses from Lwt or Async.&nbsp; However, at =
this point some differences appear in the implementations of Async and =
Lwt, notably in how they handle cancellation of threads and also =
higher-level iterators (e.g. Async has Pipes, and Lwt has Lwt_stream -- =
both quite different).&nbsp; Therefore, we build backend-specific Client =
and Server modules that use their respective threading libraries in as =
native a style as possible, but still reusing the core HTTP library from =
`lib/`.&nbsp; These can be found in `Cohttp_lwt` and `Cohttp_async` =
respectively.&nbsp; Dave Scott also wrote an (as yet not merged) POSIX =
blocking version that they use in the XenAPI daemon.</div><div =
class=3D""><br class=3D""></div><div class=3D"">- Lwt comes with an =
additional twist -- it is portable to both Unix *and* the MirageOS, =
which has no Unix at all!&nbsp; Lwt makes it possible to define a "Lwt =
core" that uses the portable Lwt thread abstractions, but doesn't use =
any OS-specific functionality.&nbsp; Thus we can define an HTTP Client =
and Server in Cohttp_lwt, but still not tie ourself to one particular =
OS.&nbsp; This Cohttp_lwt is then used by the Cohttp_lwt_unix and =
Cohttp_mirage backends to hook it into the operating system.</div><div =
class=3D""><br class=3D""></div><div class=3D"">- There's no commonality =
at present between Cohttp_async and Cohttp_lwt, but that's the topic of =
a design discussion at the moment.&nbsp; It should be possible to build =
a common signature between the two, and Rudi Grinberg took a shot at =
this a while back.&nbsp; I'm not sure that it's worth the trouble right =
now.</div><div class=3D""><br class=3D""></div><div class=3D"">- Andy =
Ray did something interesting with the Lwt backend: he ported it to =
JavaScript by implementing an IO backend that marshals the requests to =
and from strings.&nbsp; This allows REST API users built over Cohttp =
(such as ocaml-github) to compile to pure JavaScript as well.</div><div =
class=3D""><br class=3D""></div><div class=3D"">Drawbacks:</div><div =
class=3D""><br class=3D""></div><div class=3D"">- The heavy use of =
functors does make it hard to navigate the 'end user' API, even though =
those interfaces never expose any functors (for instance, you just use =
Cohttp_lwt_unix directly in most cases). This is a drawback of current =
OCaml tooling, and Merlin (for IDEs) and Codoc (for cross-referenced =
documentation) will fix this soon.</div><div class=3D""><br =
class=3D""></div><div class=3D"">- A bigger problem that needs to be =
addressed in Cohttp2 is body handling, which we basically got wrong in =
this iteration.&nbsp; The Body module is not idempotent, so to_string =
does not always return the same value if called multiple times.&nbsp; =
The caller can currently be careful, but this is just an awful part of =
the API.&nbsp; There are enough users of Cohttp that we'll leave it for =
1.0, but hopefully fix it quite rapidly for 2.0.</div><div class=3D""><br =
class=3D""></div><div class=3D"">- Cohttp is not a complete HTTP client, =
and doesn't implement the full logic for redirections, loop detection =
and so on.&nbsp; That's the job of a library built over it, and there is =
some nascent code in opam-mirror that can do this [1].&nbsp; Before =
building this, David Sheets and I want to look at some of the more =
larger API clients built using it (such as Vincent Bernardoff's BitStamp =
API [2]) and take a shot at a portable client API that will work with =
both Lwt and Async.</div><div class=3D""><br class=3D""></div><div =
class=3D"">So was functorising this heavily such a good idea?&nbsp; I =
think so -- the litmus test is whether or not there is more than one =
different implementation for each parameterised module, and this has =
worked out particularly well for the Cohttp_lwt backend, where there are =
now 4 (!) very different implementations.</div><div class=3D""><br =
class=3D""></div><div class=3D"">Hope this helps,</div><div =
class=3D"">Anil</div><div class=3D""><br class=3D""></div><div =
class=3D"">[1]&nbsp;<a =
href=3D"https://github.com/avsm/opam-mirror/blob/master/opam_mirror_fetch_=
urls.ml#L49" target=3D"_blank" =
class=3D"">https://github.com/avsm/opam-mirror/blob/master/opam_mirror_fet=
ch_urls.ml#L49</a></div><div class=3D"">[2]&nbsp;<a =
href=3D"https://github.com/vbmithr/ocaml-bitstamp-api" target=3D"_blank" =
class=3D"">https://github.com/vbmithr/ocaml-bitstamp-api</a></div></div><b=
r class=3D"">_______________________________________________<br =
class=3D"">
MirageOS-devel mailing list<br class=3D"">
<a href=3D"mailto:MirageOS-devel@lists.xenproject.org" =
class=3D"">MirageOS-devel@lists.xenproject.org</a><br class=3D"">
<a =
href=3D"http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-deve=
l" target=3D"_blank" =
class=3D"">http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-d=
evel</a><br class=3D"">
<br class=3D""></blockquote></div><br class=3D""></div>
</div></blockquote></div><br class=3D""></div></body></html>=

--Apple-Mail=_813CFA78-A8CD-4059-82F8-D805B8BFBB0F--


--===============3435508303438990640==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============3435508303438990640==--


From mirageos-devel-bounces@lists.xenproject.org Sun Mar 29 10:18:54 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 29 Mar 2015 10:18:54 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcAIm-0006Yn-SB; Sun, 29 Mar 2015 10:18:44 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YcAIm-0006Yf-0n
	for mirageos-devel@lists.xenproject.org; Sun, 29 Mar 2015 10:18:44 +0000
Received: from [193.109.254.147] by server-13.bemta-14.messagelabs.com id
	AA/5C-23283-381D7155; Sun, 29 Mar 2015 10:18:43 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-3.tower-27.messagelabs.com!1427624321!13910798!1
X-Originating-IP: [209.85.217.171]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 20489 invoked from network); 29 Mar 2015 10:18:41 -0000
Received: from mail-lb0-f171.google.com (HELO mail-lb0-f171.google.com)
	(209.85.217.171)
	by server-3.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	29 Mar 2015 10:18:41 -0000
Received: by lbdc10 with SMTP id c10so35320484lbd.2
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 29 Mar 2015 03:18:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=3vEZI3Kk7hMn84VqRFo6Ik8f2MDMs6lYJ2yamx/9wQ8=;
	b=ZBgINAbyRgTmsvlu20Zaxt175UyIuVTDInZl6t8pvsknqZMjrpvNS0OHOvlGVWyR01
	bOXvCkvlKFRyL0Q6skIFCmHstHCMyG1HXhvLBAB19tvxOAtnEudUjGUTkwDy4/q8TlRZ
	nHox8gIt9RSzulK8BpSVZ90jOs7R+6jtvwugJt2aLZDKfwL2SbqnrsWYJPUWjP4QNnEY
	TyAUXeUW7Jq2qvgIjhPS8y38SiL2899hqNgrKSalpqalG1G3Fy+fY8A6pXtV+g/eiuhN
	j9ShqzdpZUbZ1U2Zc3QI0yqAE5STEvHADY6J49hWWp1sKrGX+BbL8eWxcA3yYirJexkk
	i2sw==
MIME-Version: 1.0
X-Received: by 10.112.62.167 with SMTP id z7mr24129160lbr.115.1427624320950;
	Sun, 29 Mar 2015 03:18:40 -0700 (PDT)
Received: by 10.25.207.17 with HTTP; Sun, 29 Mar 2015 03:18:40 -0700 (PDT)
In-Reply-To: <AF788E82-23CC-4D51-A218-39521B54EB0A@recoil.org>
References: <CAG4opy98s0_vD0=FaBvLWNF_2gntLb4xrYam4SzeqgJoiXQzzg@mail.gmail.com>
	<AF788E82-23CC-4D51-A218-39521B54EB0A@recoil.org>
Date: Sun, 29 Mar 2015 11:18:40 +0100
Message-ID: <CAG4opy_ZPZeis5qDcTFM5x1abv--E0cppVc_ftEHMJa4VPu0rg@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] IndexedDB Irmin backend
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 24 March 2015 at 21:55, Anil Madhavapeddy <anil@recoil.org> wrote:
> On 24 Mar 2015, at 16:23, Thomas Leonard <talex5@gmail.com> wrote:
>>
>> I've replaced my HTML Storage Irmin backend with an IndexedDB one:
>>
>>  https://github.com/talex5/cuekeeper/blob/master/js/irmin_IDB.ml
>>
>> Unlike HTML Storage, IndexedDB isn't limited to 5 MB. It also supports
>> transactions, so updates should no longer be racey.
>>
>> However, IndexedDB doesn't support notifications. My backend therefore
>> also writes the current branch head hash to a single HTML Storage key
>> so notifications work (browser tabs remain synchronised).
>
> That's a good idea -- I guess it's safe to assume that any browser
> modern enough to support IndexedDB will also have LocalStorage.
>
> Is there a prebuilt version anywhere (or a simpler testcase) to point
> various browsers at to check if the requisite support is present? I'm
> thinking in particular of Android and iPhone browsers which may be
> buggy, at least according to http://caniuse.com/#feat=indexeddb

There isn't at the moment. I'd rather not put up a demo site yet as
the storage format is likely to change and anyone who started using it
would have to migrate their data manually.

The Safari bug, while bad, shouldn't affect us. We only have two
tables and they should have no primary keys in common (unless you name
a branch after a sha1 hash you already used in a commit). Encoding the
branch names would fix that (and perhaps should be done anyway, in
case someone wants a non-string branch name).

The IE bugs are related to complex keys, which we don't use.

There appears to be a minor memory leak in Firefox too:

  https://bugzilla.mozilla.org/show_bug.cgi?id=1147942

On the good news side: backups turned out to be easy. Each site (in
Firefox at least) gets its own directory under ~/.mozilla containing
an SQLite DB for that site. You can simply copy this to a new Firefox
instance and it will pick up the data. Example path:

~/.mozilla/firefox/(salt).default/storage/default/http+++example.com/idb/


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Sun Mar 29 10:18:54 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 29 Mar 2015 10:18:54 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcAIm-0006Yn-SB; Sun, 29 Mar 2015 10:18:44 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YcAIm-0006Yf-0n
	for mirageos-devel@lists.xenproject.org; Sun, 29 Mar 2015 10:18:44 +0000
Received: from [193.109.254.147] by server-13.bemta-14.messagelabs.com id
	AA/5C-23283-381D7155; Sun, 29 Mar 2015 10:18:43 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-3.tower-27.messagelabs.com!1427624321!13910798!1
X-Originating-IP: [209.85.217.171]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 20489 invoked from network); 29 Mar 2015 10:18:41 -0000
Received: from mail-lb0-f171.google.com (HELO mail-lb0-f171.google.com)
	(209.85.217.171)
	by server-3.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	29 Mar 2015 10:18:41 -0000
Received: by lbdc10 with SMTP id c10so35320484lbd.2
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 29 Mar 2015 03:18:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=3vEZI3Kk7hMn84VqRFo6Ik8f2MDMs6lYJ2yamx/9wQ8=;
	b=ZBgINAbyRgTmsvlu20Zaxt175UyIuVTDInZl6t8pvsknqZMjrpvNS0OHOvlGVWyR01
	bOXvCkvlKFRyL0Q6skIFCmHstHCMyG1HXhvLBAB19tvxOAtnEudUjGUTkwDy4/q8TlRZ
	nHox8gIt9RSzulK8BpSVZ90jOs7R+6jtvwugJt2aLZDKfwL2SbqnrsWYJPUWjP4QNnEY
	TyAUXeUW7Jq2qvgIjhPS8y38SiL2899hqNgrKSalpqalG1G3Fy+fY8A6pXtV+g/eiuhN
	j9ShqzdpZUbZ1U2Zc3QI0yqAE5STEvHADY6J49hWWp1sKrGX+BbL8eWxcA3yYirJexkk
	i2sw==
MIME-Version: 1.0
X-Received: by 10.112.62.167 with SMTP id z7mr24129160lbr.115.1427624320950;
	Sun, 29 Mar 2015 03:18:40 -0700 (PDT)
Received: by 10.25.207.17 with HTTP; Sun, 29 Mar 2015 03:18:40 -0700 (PDT)
In-Reply-To: <AF788E82-23CC-4D51-A218-39521B54EB0A@recoil.org>
References: <CAG4opy98s0_vD0=FaBvLWNF_2gntLb4xrYam4SzeqgJoiXQzzg@mail.gmail.com>
	<AF788E82-23CC-4D51-A218-39521B54EB0A@recoil.org>
Date: Sun, 29 Mar 2015 11:18:40 +0100
Message-ID: <CAG4opy_ZPZeis5qDcTFM5x1abv--E0cppVc_ftEHMJa4VPu0rg@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] IndexedDB Irmin backend
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 24 March 2015 at 21:55, Anil Madhavapeddy <anil@recoil.org> wrote:
> On 24 Mar 2015, at 16:23, Thomas Leonard <talex5@gmail.com> wrote:
>>
>> I've replaced my HTML Storage Irmin backend with an IndexedDB one:
>>
>>  https://github.com/talex5/cuekeeper/blob/master/js/irmin_IDB.ml
>>
>> Unlike HTML Storage, IndexedDB isn't limited to 5 MB. It also supports
>> transactions, so updates should no longer be racey.
>>
>> However, IndexedDB doesn't support notifications. My backend therefore
>> also writes the current branch head hash to a single HTML Storage key
>> so notifications work (browser tabs remain synchronised).
>
> That's a good idea -- I guess it's safe to assume that any browser
> modern enough to support IndexedDB will also have LocalStorage.
>
> Is there a prebuilt version anywhere (or a simpler testcase) to point
> various browsers at to check if the requisite support is present? I'm
> thinking in particular of Android and iPhone browsers which may be
> buggy, at least according to http://caniuse.com/#feat=indexeddb

There isn't at the moment. I'd rather not put up a demo site yet as
the storage format is likely to change and anyone who started using it
would have to migrate their data manually.

The Safari bug, while bad, shouldn't affect us. We only have two
tables and they should have no primary keys in common (unless you name
a branch after a sha1 hash you already used in a commit). Encoding the
branch names would fix that (and perhaps should be done anyway, in
case someone wants a non-string branch name).

The IE bugs are related to complex keys, which we don't use.

There appears to be a minor memory leak in Firefox too:

  https://bugzilla.mozilla.org/show_bug.cgi?id=1147942

On the good news side: backups turned out to be easy. Each site (in
Firefox at least) gets its own directory under ~/.mozilla containing
an SQLite DB for that site. You can simply copy this to a new Firefox
instance and it will pick up the data. Example path:

~/.mozilla/firefox/(salt).default/storage/default/http+++example.com/idb/


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Sun Mar 29 10:21:12 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 29 Mar 2015 10:21:12 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcALA-0007sJ-6h; Sun, 29 Mar 2015 10:21:12 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YcAL8-0007sE-Rr
	for mirageos-devel@lists.xenproject.org; Sun, 29 Mar 2015 10:21:10 +0000
Received: from [85.158.137.68] by server-7.bemta-3.messagelabs.com id
	80/5A-24632-512D7155; Sun, 29 Mar 2015 10:21:09 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-15.tower-31.messagelabs.com!1427624467!11895646!1
X-Originating-IP: [209.85.217.176]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 16856 invoked from network); 29 Mar 2015 10:21:07 -0000
Received: from mail-lb0-f176.google.com (HELO mail-lb0-f176.google.com)
	(209.85.217.176)
	by server-15.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	29 Mar 2015 10:21:07 -0000
Received: by lbdc10 with SMTP id c10so35338425lbd.2
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 29 Mar 2015 03:21:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=GHbXJyr0LAtlygckA6ufkizw0VtsRmQQgwt/LGb8hFg=;
	b=FmCX/qprRlk5e9875EcYGozxamQN/UjDN+zvgHyaa+ojca3c3+pq2Lwy8W7lQJk7PZ
	zbIBS3pTzEr6NfGKK4MroK8oECa73UPOqTenFMiChJCbfuhBlVgPtx3MCKQeq820WQvD
	lsJ2mcygppXe9+DnKH7WX+xfDc+gkHZqFhJYg+y5SOoAKLKLSfPAQDGTxCaAB9FFnbBP
	vFvDtiOB3BIgs27mAhl/rzmhAWJUOSSzCkYSvfLtkNSAe+orGWSo/ZnD+JsdNJmAQPuy
	K50mg0buofYThxpFQu7mudTIFMbM/p32a2rswYmiiILakE0hwwkqtpy4hm99H+KRMnBJ
	IyOg==
MIME-Version: 1.0
X-Received: by 10.112.89.71 with SMTP id bm7mr24738073lbb.20.1427624467022;
	Sun, 29 Mar 2015 03:21:07 -0700 (PDT)
Received: by 10.25.207.17 with HTTP; Sun, 29 Mar 2015 03:21:06 -0700 (PDT)
In-Reply-To: <DE958618-2C4A-4D87-BE4E-42D63499C48E@gazagnaire.org>
References: <CAG4opy98s0_vD0=FaBvLWNF_2gntLb4xrYam4SzeqgJoiXQzzg@mail.gmail.com>
	<DE958618-2C4A-4D87-BE4E-42D63499C48E@gazagnaire.org>
Date: Sun, 29 Mar 2015 11:21:06 +0100
Message-ID: <CAG4opy-goeZ42XmC-untnUuEMUMdOHM2MOg6qT2O00L6jQ5jDA@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] IndexedDB Irmin backend
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 24 March 2015 at 23:54, Thomas Gazagnaire <thomas@gazagnaire.org> wrote:
>> I've replaced my HTML Storage Irmin backend with an IndexedDB one:
>>
>>  https://github.com/talex5/cuekeeper/blob/master/js/irmin_IDB.ml
>>
>> Unlike HTML Storage, IndexedDB isn't limited to 5 MB. It also supports
>> transactions, so updates should no longer be racey.
>>
>> However, IndexedDB doesn't support notifications. My backend therefore
>> also writes the current branch head hash to a single HTML Storage key
>> so notifications work (browser tabs remain synchronised).
>
> Interesting thanks! When things get more stable I think it would be interesting to move all the Irmin JS backend in a separate project.

Agreed.

> Thomas
>
> (and I'm still working on fixing the missing unwatch function)

Great! The new LCA code seems to have fixed the performance problems
too. The main remaining issue for me is support for more flexible
merges (merging whole trees and/or creating commits with user-supplied
parents).


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Sun Mar 29 10:21:12 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 29 Mar 2015 10:21:12 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcALA-0007sJ-6h; Sun, 29 Mar 2015 10:21:12 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YcAL8-0007sE-Rr
	for mirageos-devel@lists.xenproject.org; Sun, 29 Mar 2015 10:21:10 +0000
Received: from [85.158.137.68] by server-7.bemta-3.messagelabs.com id
	80/5A-24632-512D7155; Sun, 29 Mar 2015 10:21:09 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-15.tower-31.messagelabs.com!1427624467!11895646!1
X-Originating-IP: [209.85.217.176]
X-SpamReason: No, hits=0.3 required=7.0 tests=RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 16856 invoked from network); 29 Mar 2015 10:21:07 -0000
Received: from mail-lb0-f176.google.com (HELO mail-lb0-f176.google.com)
	(209.85.217.176)
	by server-15.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	29 Mar 2015 10:21:07 -0000
Received: by lbdc10 with SMTP id c10so35338425lbd.2
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 29 Mar 2015 03:21:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=GHbXJyr0LAtlygckA6ufkizw0VtsRmQQgwt/LGb8hFg=;
	b=FmCX/qprRlk5e9875EcYGozxamQN/UjDN+zvgHyaa+ojca3c3+pq2Lwy8W7lQJk7PZ
	zbIBS3pTzEr6NfGKK4MroK8oECa73UPOqTenFMiChJCbfuhBlVgPtx3MCKQeq820WQvD
	lsJ2mcygppXe9+DnKH7WX+xfDc+gkHZqFhJYg+y5SOoAKLKLSfPAQDGTxCaAB9FFnbBP
	vFvDtiOB3BIgs27mAhl/rzmhAWJUOSSzCkYSvfLtkNSAe+orGWSo/ZnD+JsdNJmAQPuy
	K50mg0buofYThxpFQu7mudTIFMbM/p32a2rswYmiiILakE0hwwkqtpy4hm99H+KRMnBJ
	IyOg==
MIME-Version: 1.0
X-Received: by 10.112.89.71 with SMTP id bm7mr24738073lbb.20.1427624467022;
	Sun, 29 Mar 2015 03:21:07 -0700 (PDT)
Received: by 10.25.207.17 with HTTP; Sun, 29 Mar 2015 03:21:06 -0700 (PDT)
In-Reply-To: <DE958618-2C4A-4D87-BE4E-42D63499C48E@gazagnaire.org>
References: <CAG4opy98s0_vD0=FaBvLWNF_2gntLb4xrYam4SzeqgJoiXQzzg@mail.gmail.com>
	<DE958618-2C4A-4D87-BE4E-42D63499C48E@gazagnaire.org>
Date: Sun, 29 Mar 2015 11:21:06 +0100
Message-ID: <CAG4opy-goeZ42XmC-untnUuEMUMdOHM2MOg6qT2O00L6jQ5jDA@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: Thomas Gazagnaire <thomas@gazagnaire.org>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] IndexedDB Irmin backend
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

On 24 March 2015 at 23:54, Thomas Gazagnaire <thomas@gazagnaire.org> wrote:
>> I've replaced my HTML Storage Irmin backend with an IndexedDB one:
>>
>>  https://github.com/talex5/cuekeeper/blob/master/js/irmin_IDB.ml
>>
>> Unlike HTML Storage, IndexedDB isn't limited to 5 MB. It also supports
>> transactions, so updates should no longer be racey.
>>
>> However, IndexedDB doesn't support notifications. My backend therefore
>> also writes the current branch head hash to a single HTML Storage key
>> so notifications work (browser tabs remain synchronised).
>
> Interesting thanks! When things get more stable I think it would be interesting to move all the Irmin JS backend in a separate project.

Agreed.

> Thomas
>
> (and I'm still working on fixing the missing unwatch function)

Great! The new LCA code seems to have fixed the performance problems
too. The main remaining issue for me is support for more flexible
merges (merging whole trees and/or creating commits with user-supplied
parents).


-- 
Dr Thomas Leonard        http://0install.net/
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1
GPG: DA98 25AE CAD0 8975 7CDA  BD8E 0713 3F96 CA74 D8BA

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Sun Mar 29 10:54:51 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 29 Mar 2015 10:54:51 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcArh-0003Je-OY; Sun, 29 Mar 2015 10:54:49 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YcArg-0003JZ-SI
	for mirageos-devel@lists.xenproject.org; Sun, 29 Mar 2015 10:54:49 +0000
Received: from [85.158.139.211] by server-14.bemta-5.messagelabs.com id
	12/FD-25404-8F9D7155; Sun, 29 Mar 2015 10:54:48 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-13.tower-206.messagelabs.com!1427626486!12402094!1
X-Originating-IP: [209.85.215.53]
X-SpamReason: No, hits=0.8 required=7.0 tests=BODY_RANDOM_LONG,
  RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 28090 invoked from network); 29 Mar 2015 10:54:47 -0000
Received: from mail-la0-f53.google.com (HELO mail-la0-f53.google.com)
	(209.85.215.53)
	by server-13.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	29 Mar 2015 10:54:47 -0000
Received: by labe2 with SMTP id e2so98558109lab.3
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 29 Mar 2015 03:54:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding;
	bh=S7jGreNsgGzZgGtkPf/uZoxQZEOZvcLTlaKOe8+l1Mo=;
	b=QZIBpcdlGegOCU0EGOnew1HVBtvvrx8oUStY1DHt6CqcfJkqfkwF4UugsVGDjQLuC1
	GHaBw3ZNHxoolML4mxQVFJevPFcmeLzJWCxJx1kHhvsxk2BKv5buslxHx/1RlTA/CxZx
	UnjB3vwmQem3d1/bSp1WCEPBsGSMHc7M67XtlS7yZmiGV+NiOe6KSlZtw8n8mCFTnmZV
	Hnp0TQqfE0fgGGWZxAySE3ei0WcAZNo8RHt+F20bp/rugC5ODYTlY/p5lddv08OklaC5
	lt8TR8tRHNCNsp5rydE8wrXoQQQ+9nMl2Z5tP0dYC2Z8GOlJMYC2XEhZ8DdONAk2gVEg
	i9EA==
MIME-Version: 1.0
X-Received: by 10.112.91.165 with SMTP id cf5mr24678622lbb.121.1427626486615; 
	Sun, 29 Mar 2015 03:54:46 -0700 (PDT)
Received: by 10.25.207.17 with HTTP; Sun, 29 Mar 2015 03:54:46 -0700 (PDT)
In-Reply-To: <CF8B685CB30142548F7684212DCB340A@erratique.ch>
References: <CAG4opy9mf+NEhYAs-tj0JYNocVS0dGU9oxqam+hqFK5ZJq7VLg@mail.gmail.com>
	<20150202.014549.1883720051237442569.Christophe.Troestler@umons.ac.be>
	<CAG4opy9X-rg5qY+Yu0c-OJ8NumJSAPMVLr01xoHt99y9_i==8w@mail.gmail.com>
	<20150204.001614.26478837567139584.Christophe.Troestler@umons.ac.be>
	<CAG4opy8uTBQS4cM75dYEm=Jsa3078wMPNW+BQEHNsu7Mb4OJ8Q@mail.gmail.com>
	<87oap97rvw.fsf@study.localdomain>
	<CAG4opy9e5iq7rMPrSDzqiPbJZeJe8Wctg0trc1CbFZJG8ARNqw@mail.gmail.com>
	<87lhk4csew.fsf@study.localdomain>
	<CAG4opy9AdJwqcPZyP6KDoPR4-25NDqmUiApSX_D9obraQ2y0jg@mail.gmail.com>
	<CF8B685CB30142548F7684212DCB340A@erratique.ch>
Date: Sun, 29 Mar 2015 11:54:46 +0100
Message-ID: <CAG4opy8KMF3=QA1ipHEpFmShcc1rvsRKJ2ByFObWcXOU1E2kmg@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: =?UTF-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
Cc: Leo White <lpw25@cam.ac.uk>, "mirageos-devel@lists.xenproject.org"
	<mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Error handling in Mirage - request for
	comments!
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

T24gMjIgTWFyY2ggMjAxNSBhdCAxNTowMiwgRGFuaWVsIELDvG56bGkgPGRhbmllbC5idWVuemxp
QGVycmF0aXF1ZS5jaD4gd3JvdGU6Cj4gTGUgZGltYW5jaGUsIDIyIG1hcnMgMjAxNSDDoCAxNDo0
MywgVGhvbWFzIExlb25hcmQgYSDDqWNyaXQgOgo+PiBZZXMsIGJ1dCB0aGUgcXVlc3Rpb24gaXMg
d2hldGhlciB0aGlzIGluZm9ybWF0aW9uIGlzIHdvcnRoIHRoZQo+PiBvdmVyaGVhZC4KPgo+IEFn
YWluIHByb2dyYW1tYXRpY2FsbHkgdGhlcmUncyBubyBvdmVyaGVhZCBpZiB5b3UgYXJlIHVzaW5n
IHRoZSByaWdodCBzZXQgb2YgY29tYmluYXRvcnMgYW5kIHR5cGUgZGVmaW5pdGlvbnMuIFlvdSBj
YW4gc2F5IHRoZXJlIGlzIGEgcGVyZm9ybWFuY2Ugb3ZlcmhlYWQgYnV0IGF0IGEgY2VydGFpbiBw
b2ludCB5b3UgaGF2ZSB0byBjaG9vc2Ugd2hldGhlciB5b3Ugd2FudCBjb3JyZWN0LCBzYWZlIGFu
ZCByZWxpYWJsZSBzeXN0ZW1zIG9yIGZhdm91ciBwZXJmb3JtYW5jZS4gSSdtIHN0cm9uZ2x5IGlu
IGZhdm91ciBvZiB0aGUgZm9ybWVyIGFuZCBoYXZlIGJvdGggd2hlbmV2ZXIgcG9zc2libGUuCj4K
Pj4gLSBXZSBtdXN0IGFzc3VtZSB0aGF0IHNvbWUgaW1wbGVtZW50YXRpb24gb2YgYSBNaXJhZ2Ug
bW9kdWxlIHR5cGUgbWF5Cj4+IHByb2R1Y2UgYW4gZXJyb3IgKHRoZXkncmUgYWxsIGFib3V0IEkv
TywgYWZ0ZXIgYWxsKSwgc28gYW5ub3RhdGluZwo+PiBldmVyeSBmdW5jdGlvbiB0byBzYXkgdGhp
cyBkb2Vzbid0IHByb3ZpZGUgYW55IGV4dHJhIGluZm9ybWF0aW9uLgo+Cj4gVGhpcyBtaXNzZXMg
dGhlIHBvaW50LiBIYXZpbmcgZXZlcnkgZnVuY3Rpb25zIGFubm90YXRlZCBwcm92aWRlcyB5b3Ug
aW5mb3JtYXRpb24gKmluIHRoZSB0eXBlIHN5c3RlbSogd2hpY2ggZ2l2ZXMgeW91IGEgbWVjaGFu
aXNtIHRvICplbmZvcmNlKiBnb29kIGFuZCBjb3JyZWN0IGVycm9yIGhhbmRsaW5nIGluIHRoZSBw
cm9ncmFtLgo+Cj4gVXNpbmcgZXhjZXB0aW9ucyBkb2Vzbid0IGFsbG93IHlvdSB0byBlbmZvcmNl
IGVycm9yIGhhbmRsaW5nIGFuZCBpcyBvdGhlcndpc2UgdmVyeSBkYW5nZXJvdXMgYmVjYXVzZSAx
KSBZb3UgYmFzaWNhbGx5IGRvbid0IGtub3cgd2hlbiB0aGV5IGhhcHBlbiBleGNlcHQgdGhyb3Vn
aCBkb2N1bWVudGF0aW9uLCBzbyB0aGV5IGFyZSBlYXN5IHRvIG1pc3MgYW5kIG5vdCBoYW5kbGUg
dGhlbSAoaWYgZG9jdW1lbnRhdGlvbiBleGlzdHMgYXQgYWxsLi4uKSAyKSBUaGV5IGRpc3J1cHQg
eW91ciB3aG9sZSBjYWxsc3RhY2ssIHBvc3NpYmx5IGxlYWtpbmcgcmVzb3VyY2VzIGFuZCBwdXR0
aW5nIHlvdXIgcHJvZ3JhbSBpbiBhIGJhZCBzdGF0ZSBieSBicmVha2luZyBpbnZhcmlhbnRzIHRo
YXQgc2hvdWxkIGhvbGQgaW4gb3VyIHN5c3RlbSAgMykgVGhlIHNvdXJjZSBvZiB0aGUgZXhjZXB0
aW9uIG1heSBiZSBoYXJkIHRvIHRyYWNrIDQpIFRoZXkgYXJlIGhhcmQgdG8gcmVhc29uIGFib3V0
IGFuZCBoYW5kbGUgY29ycmVjdGx5LgoKVGhlIG9ubHkgY2FzZSBvZiBoYW5kbGluZyB0aGUgY3Vy
cmVudCBwb2x5bW9ycGhpYyBlcnJvcnMgaW4gTWlyYWdlIHNvCmZhciBwcmVzZW50ZWQgaXMgdGhp
cyBjYXNlIGZyb20gb2NhbWwtdGxzICh0aGFua3MgRGF2aWQhKToKCmh0dHBzOi8vZ2l0aHViLmNv
bS9taXJsZWZ0L29jYW1sLXRscy9ibG9iL21hc3Rlci9taXJhZ2UvdGxzX21pcmFnZS5tbCNMNTEK
CiAgbGV0IGxpZnRfcmVzdWx0ID0gZnVuY3Rpb24KICAgIHwgYEVycm9yIGUgICAgICAgICAgLT4g
YEVycm9yIChgRmxvdyBlKQogICAgfCBgRW9mIHwgYE9rIF8gYXMgciAtPiByCgogIGxldCBjaGVj
a193cml0ZSBmbG93IGZfcmVzID0KICAgIGxldCByZXMgPSBsaWZ0X3Jlc3VsdCBmX3JlcyBpbgog
ICAgKCBtYXRjaCAoZmxvdy5zdGF0ZSwgcmVzKSB3aXRoCiAgICAgIHwgKGBBY3RpdmUgXywgKGBF
b2YgfCBgRXJyb3IgXyBhcyBlKSkgLT4KICAgICAgICAgIGZsb3cuc3RhdGUgPC0gZSA7IEZMT1cu
Y2xvc2UgZmxvdy5mbG93CiAgICAgIHwgXyAtPiByZXR1cm5fdW5pdCApID4+CiAgICByZXR1cm4g
cmVzCgpBcyB5b3Ugc2F5LCBpdCdzIGVhc3kgdG8gcmVhc29uIGFib3V0IHRoaXMgY29kZSBpZiB3
ZSBhc3N1bWUgdGhhdApleGNlcHRpb25zIGRvbid0IGV4aXN0OgoKLSBJZiB0aGUgdW5kZXJseWlu
ZyBGTE9XIHJldHVybnMgYW55IGVycm9yIG9uIHdyaXRlLCB0aGVuIHRoZSBUTFMKc3RhdGUgdHJh
bnNpdGlvbnMgdG8gYEVycm9yIGFuZCBjYW5ub3QgYmUgdXNlZCBhZ2FpbiBhbmQgdGhlIEZMT1cg
aXMKY2xvc2VkLgoKSG93ZXZlciwgZXhjZXB0aW9ucyBkbyBleGlzdCBpbiBPQ2FtbC4gVGhlIGFj
dHVhbCBiZWhhdmlvdXIgdGhlcmVmb3JlCmlzIHNvbWV0aGluZyBsaWtlOgoKLSBPbiBgUmVmdXNl
ZCwgYFRpbWVvdXQgb3IgYFVua25vd24sIHRoZSBmbG93IGlzIGNsb3NlZCBhbmQgdGhlIFRMUwpz
eXN0ZW0gdHJhbnNpdGlvbnMgdG8gYEVycm9yLgoKLSBPbiBEaXZpc2lvbl9ieV96ZXJvLCBOb3Rf
Zm91bmQsIEFzc2VydF9mYWlsdXJlIG9yIFN0YWNrX292ZXJmbG93LAp0aGUgZmxvdyByZW1haW5z
IG9wZW4gYW5kIHRoZSBUTFMgc3RhdGUgY2FuIGNvbnRpbnVlIHRvIGJlIHVzZWQuCgpJdCBzZWVt
cyB1bmxpa2VseSB0byBtZSB0aGF0IHRoaXMgaXMgdGhlIGRlc2lyZWQgYmVoYXZpb3VyLiBJZiBh
bGwKZXJyb3JzIHdlcmUgZXhjZXB0aW9ucyB0aGVuIHRoZSBjb2RlIHdvdWxkIGxpa2VseSBoYW5k
bGUgYWxsIHRoZXNlCmNhc2VzLgoKKGhvd2V2ZXIsIGl0J3Mgbm90IGNsZWFyIHRvIG1lIGV4YWN0
bHkgd2hhdCB0aGlzIGNvZGUgaXMgdHJ5aW5nIHRvCmFjaGlldmUsIHNvIEkgY291bGQgYmUgd3Jv
bmcpCgoKLS0gCkRyIFRob21hcyBMZW9uYXJkICAgICAgICBodHRwOi8vMGluc3RhbGwubmV0LwpH
UEc6IDkyNDIgOTgwNyBDOTg1IDNDMDcgNDRBNiAgOEI5QSBBRTA3IDgyODAgNTlBNSAzQ0MxCkdQ
RzogREE5OCAyNUFFIENBRDAgODk3NSA3Q0RBICBCRDhFIDA3MTMgM0Y5NiBDQTc0IEQ4QkEKCl9f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCk1pcmFnZU9TLWRl
dmVsIG1haWxpbmcgbGlzdApNaXJhZ2VPUy1kZXZlbEBsaXN0cy54ZW5wcm9qZWN0Lm9yZwpodHRw
Oi8vbGlzdHMueGVucHJvamVjdC5vcmcvY2dpLWJpbi9tYWlsbWFuL2xpc3RpbmZvL21pcmFnZW9z
LWRldmVsCg==

From mirageos-devel-bounces@lists.xenproject.org Sun Mar 29 10:54:51 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 29 Mar 2015 10:54:51 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcArh-0003Je-OY; Sun, 29 Mar 2015 10:54:49 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <talex5@gmail.com>) id 1YcArg-0003JZ-SI
	for mirageos-devel@lists.xenproject.org; Sun, 29 Mar 2015 10:54:49 +0000
Received: from [85.158.139.211] by server-14.bemta-5.messagelabs.com id
	12/FD-25404-8F9D7155; Sun, 29 Mar 2015 10:54:48 +0000
X-Env-Sender: talex5@gmail.com
X-Msg-Ref: server-13.tower-206.messagelabs.com!1427626486!12402094!1
X-Originating-IP: [209.85.215.53]
X-SpamReason: No, hits=0.8 required=7.0 tests=BODY_RANDOM_LONG,
  RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 28090 invoked from network); 29 Mar 2015 10:54:47 -0000
Received: from mail-la0-f53.google.com (HELO mail-la0-f53.google.com)
	(209.85.215.53)
	by server-13.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	29 Mar 2015 10:54:47 -0000
Received: by labe2 with SMTP id e2so98558109lab.3
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 29 Mar 2015 03:54:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type:content-transfer-encoding;
	bh=S7jGreNsgGzZgGtkPf/uZoxQZEOZvcLTlaKOe8+l1Mo=;
	b=QZIBpcdlGegOCU0EGOnew1HVBtvvrx8oUStY1DHt6CqcfJkqfkwF4UugsVGDjQLuC1
	GHaBw3ZNHxoolML4mxQVFJevPFcmeLzJWCxJx1kHhvsxk2BKv5buslxHx/1RlTA/CxZx
	UnjB3vwmQem3d1/bSp1WCEPBsGSMHc7M67XtlS7yZmiGV+NiOe6KSlZtw8n8mCFTnmZV
	Hnp0TQqfE0fgGGWZxAySE3ei0WcAZNo8RHt+F20bp/rugC5ODYTlY/p5lddv08OklaC5
	lt8TR8tRHNCNsp5rydE8wrXoQQQ+9nMl2Z5tP0dYC2Z8GOlJMYC2XEhZ8DdONAk2gVEg
	i9EA==
MIME-Version: 1.0
X-Received: by 10.112.91.165 with SMTP id cf5mr24678622lbb.121.1427626486615; 
	Sun, 29 Mar 2015 03:54:46 -0700 (PDT)
Received: by 10.25.207.17 with HTTP; Sun, 29 Mar 2015 03:54:46 -0700 (PDT)
In-Reply-To: <CF8B685CB30142548F7684212DCB340A@erratique.ch>
References: <CAG4opy9mf+NEhYAs-tj0JYNocVS0dGU9oxqam+hqFK5ZJq7VLg@mail.gmail.com>
	<20150202.014549.1883720051237442569.Christophe.Troestler@umons.ac.be>
	<CAG4opy9X-rg5qY+Yu0c-OJ8NumJSAPMVLr01xoHt99y9_i==8w@mail.gmail.com>
	<20150204.001614.26478837567139584.Christophe.Troestler@umons.ac.be>
	<CAG4opy8uTBQS4cM75dYEm=Jsa3078wMPNW+BQEHNsu7Mb4OJ8Q@mail.gmail.com>
	<87oap97rvw.fsf@study.localdomain>
	<CAG4opy9e5iq7rMPrSDzqiPbJZeJe8Wctg0trc1CbFZJG8ARNqw@mail.gmail.com>
	<87lhk4csew.fsf@study.localdomain>
	<CAG4opy9AdJwqcPZyP6KDoPR4-25NDqmUiApSX_D9obraQ2y0jg@mail.gmail.com>
	<CF8B685CB30142548F7684212DCB340A@erratique.ch>
Date: Sun, 29 Mar 2015 11:54:46 +0100
Message-ID: <CAG4opy8KMF3=QA1ipHEpFmShcc1rvsRKJ2ByFObWcXOU1E2kmg@mail.gmail.com>
From: Thomas Leonard <talex5@gmail.com>
To: =?UTF-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
Cc: Leo White <lpw25@cam.ac.uk>, "mirageos-devel@lists.xenproject.org"
	<mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Error handling in Mirage - request for
	comments!
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

T24gMjIgTWFyY2ggMjAxNSBhdCAxNTowMiwgRGFuaWVsIELDvG56bGkgPGRhbmllbC5idWVuemxp
QGVycmF0aXF1ZS5jaD4gd3JvdGU6Cj4gTGUgZGltYW5jaGUsIDIyIG1hcnMgMjAxNSDDoCAxNDo0
MywgVGhvbWFzIExlb25hcmQgYSDDqWNyaXQgOgo+PiBZZXMsIGJ1dCB0aGUgcXVlc3Rpb24gaXMg
d2hldGhlciB0aGlzIGluZm9ybWF0aW9uIGlzIHdvcnRoIHRoZQo+PiBvdmVyaGVhZC4KPgo+IEFn
YWluIHByb2dyYW1tYXRpY2FsbHkgdGhlcmUncyBubyBvdmVyaGVhZCBpZiB5b3UgYXJlIHVzaW5n
IHRoZSByaWdodCBzZXQgb2YgY29tYmluYXRvcnMgYW5kIHR5cGUgZGVmaW5pdGlvbnMuIFlvdSBj
YW4gc2F5IHRoZXJlIGlzIGEgcGVyZm9ybWFuY2Ugb3ZlcmhlYWQgYnV0IGF0IGEgY2VydGFpbiBw
b2ludCB5b3UgaGF2ZSB0byBjaG9vc2Ugd2hldGhlciB5b3Ugd2FudCBjb3JyZWN0LCBzYWZlIGFu
ZCByZWxpYWJsZSBzeXN0ZW1zIG9yIGZhdm91ciBwZXJmb3JtYW5jZS4gSSdtIHN0cm9uZ2x5IGlu
IGZhdm91ciBvZiB0aGUgZm9ybWVyIGFuZCBoYXZlIGJvdGggd2hlbmV2ZXIgcG9zc2libGUuCj4K
Pj4gLSBXZSBtdXN0IGFzc3VtZSB0aGF0IHNvbWUgaW1wbGVtZW50YXRpb24gb2YgYSBNaXJhZ2Ug
bW9kdWxlIHR5cGUgbWF5Cj4+IHByb2R1Y2UgYW4gZXJyb3IgKHRoZXkncmUgYWxsIGFib3V0IEkv
TywgYWZ0ZXIgYWxsKSwgc28gYW5ub3RhdGluZwo+PiBldmVyeSBmdW5jdGlvbiB0byBzYXkgdGhp
cyBkb2Vzbid0IHByb3ZpZGUgYW55IGV4dHJhIGluZm9ybWF0aW9uLgo+Cj4gVGhpcyBtaXNzZXMg
dGhlIHBvaW50LiBIYXZpbmcgZXZlcnkgZnVuY3Rpb25zIGFubm90YXRlZCBwcm92aWRlcyB5b3Ug
aW5mb3JtYXRpb24gKmluIHRoZSB0eXBlIHN5c3RlbSogd2hpY2ggZ2l2ZXMgeW91IGEgbWVjaGFu
aXNtIHRvICplbmZvcmNlKiBnb29kIGFuZCBjb3JyZWN0IGVycm9yIGhhbmRsaW5nIGluIHRoZSBw
cm9ncmFtLgo+Cj4gVXNpbmcgZXhjZXB0aW9ucyBkb2Vzbid0IGFsbG93IHlvdSB0byBlbmZvcmNl
IGVycm9yIGhhbmRsaW5nIGFuZCBpcyBvdGhlcndpc2UgdmVyeSBkYW5nZXJvdXMgYmVjYXVzZSAx
KSBZb3UgYmFzaWNhbGx5IGRvbid0IGtub3cgd2hlbiB0aGV5IGhhcHBlbiBleGNlcHQgdGhyb3Vn
aCBkb2N1bWVudGF0aW9uLCBzbyB0aGV5IGFyZSBlYXN5IHRvIG1pc3MgYW5kIG5vdCBoYW5kbGUg
dGhlbSAoaWYgZG9jdW1lbnRhdGlvbiBleGlzdHMgYXQgYWxsLi4uKSAyKSBUaGV5IGRpc3J1cHQg
eW91ciB3aG9sZSBjYWxsc3RhY2ssIHBvc3NpYmx5IGxlYWtpbmcgcmVzb3VyY2VzIGFuZCBwdXR0
aW5nIHlvdXIgcHJvZ3JhbSBpbiBhIGJhZCBzdGF0ZSBieSBicmVha2luZyBpbnZhcmlhbnRzIHRo
YXQgc2hvdWxkIGhvbGQgaW4gb3VyIHN5c3RlbSAgMykgVGhlIHNvdXJjZSBvZiB0aGUgZXhjZXB0
aW9uIG1heSBiZSBoYXJkIHRvIHRyYWNrIDQpIFRoZXkgYXJlIGhhcmQgdG8gcmVhc29uIGFib3V0
IGFuZCBoYW5kbGUgY29ycmVjdGx5LgoKVGhlIG9ubHkgY2FzZSBvZiBoYW5kbGluZyB0aGUgY3Vy
cmVudCBwb2x5bW9ycGhpYyBlcnJvcnMgaW4gTWlyYWdlIHNvCmZhciBwcmVzZW50ZWQgaXMgdGhp
cyBjYXNlIGZyb20gb2NhbWwtdGxzICh0aGFua3MgRGF2aWQhKToKCmh0dHBzOi8vZ2l0aHViLmNv
bS9taXJsZWZ0L29jYW1sLXRscy9ibG9iL21hc3Rlci9taXJhZ2UvdGxzX21pcmFnZS5tbCNMNTEK
CiAgbGV0IGxpZnRfcmVzdWx0ID0gZnVuY3Rpb24KICAgIHwgYEVycm9yIGUgICAgICAgICAgLT4g
YEVycm9yIChgRmxvdyBlKQogICAgfCBgRW9mIHwgYE9rIF8gYXMgciAtPiByCgogIGxldCBjaGVj
a193cml0ZSBmbG93IGZfcmVzID0KICAgIGxldCByZXMgPSBsaWZ0X3Jlc3VsdCBmX3JlcyBpbgog
ICAgKCBtYXRjaCAoZmxvdy5zdGF0ZSwgcmVzKSB3aXRoCiAgICAgIHwgKGBBY3RpdmUgXywgKGBF
b2YgfCBgRXJyb3IgXyBhcyBlKSkgLT4KICAgICAgICAgIGZsb3cuc3RhdGUgPC0gZSA7IEZMT1cu
Y2xvc2UgZmxvdy5mbG93CiAgICAgIHwgXyAtPiByZXR1cm5fdW5pdCApID4+CiAgICByZXR1cm4g
cmVzCgpBcyB5b3Ugc2F5LCBpdCdzIGVhc3kgdG8gcmVhc29uIGFib3V0IHRoaXMgY29kZSBpZiB3
ZSBhc3N1bWUgdGhhdApleGNlcHRpb25zIGRvbid0IGV4aXN0OgoKLSBJZiB0aGUgdW5kZXJseWlu
ZyBGTE9XIHJldHVybnMgYW55IGVycm9yIG9uIHdyaXRlLCB0aGVuIHRoZSBUTFMKc3RhdGUgdHJh
bnNpdGlvbnMgdG8gYEVycm9yIGFuZCBjYW5ub3QgYmUgdXNlZCBhZ2FpbiBhbmQgdGhlIEZMT1cg
aXMKY2xvc2VkLgoKSG93ZXZlciwgZXhjZXB0aW9ucyBkbyBleGlzdCBpbiBPQ2FtbC4gVGhlIGFj
dHVhbCBiZWhhdmlvdXIgdGhlcmVmb3JlCmlzIHNvbWV0aGluZyBsaWtlOgoKLSBPbiBgUmVmdXNl
ZCwgYFRpbWVvdXQgb3IgYFVua25vd24sIHRoZSBmbG93IGlzIGNsb3NlZCBhbmQgdGhlIFRMUwpz
eXN0ZW0gdHJhbnNpdGlvbnMgdG8gYEVycm9yLgoKLSBPbiBEaXZpc2lvbl9ieV96ZXJvLCBOb3Rf
Zm91bmQsIEFzc2VydF9mYWlsdXJlIG9yIFN0YWNrX292ZXJmbG93LAp0aGUgZmxvdyByZW1haW5z
IG9wZW4gYW5kIHRoZSBUTFMgc3RhdGUgY2FuIGNvbnRpbnVlIHRvIGJlIHVzZWQuCgpJdCBzZWVt
cyB1bmxpa2VseSB0byBtZSB0aGF0IHRoaXMgaXMgdGhlIGRlc2lyZWQgYmVoYXZpb3VyLiBJZiBh
bGwKZXJyb3JzIHdlcmUgZXhjZXB0aW9ucyB0aGVuIHRoZSBjb2RlIHdvdWxkIGxpa2VseSBoYW5k
bGUgYWxsIHRoZXNlCmNhc2VzLgoKKGhvd2V2ZXIsIGl0J3Mgbm90IGNsZWFyIHRvIG1lIGV4YWN0
bHkgd2hhdCB0aGlzIGNvZGUgaXMgdHJ5aW5nIHRvCmFjaGlldmUsIHNvIEkgY291bGQgYmUgd3Jv
bmcpCgoKLS0gCkRyIFRob21hcyBMZW9uYXJkICAgICAgICBodHRwOi8vMGluc3RhbGwubmV0LwpH
UEc6IDkyNDIgOTgwNyBDOTg1IDNDMDcgNDRBNiAgOEI5QSBBRTA3IDgyODAgNTlBNSAzQ0MxCkdQ
RzogREE5OCAyNUFFIENBRDAgODk3NSA3Q0RBICBCRDhFIDA3MTMgM0Y5NiBDQTc0IEQ4QkEKCl9f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCk1pcmFnZU9TLWRl
dmVsIG1haWxpbmcgbGlzdApNaXJhZ2VPUy1kZXZlbEBsaXN0cy54ZW5wcm9qZWN0Lm9yZwpodHRw
Oi8vbGlzdHMueGVucHJvamVjdC5vcmcvY2dpLWJpbi9tYWlsbWFuL2xpc3RpbmZvL21pcmFnZW9z
LWRldmVsCg==

From mirageos-devel-bounces@lists.xenproject.org Sun Mar 29 15:02:58 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 29 Mar 2015 15:02:58 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcEji-0000Nd-Ko; Sun, 29 Mar 2015 15:02:50 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <daniel.buenzli@erratique.ch>) id 1YcEjh-0000NY-67
	for mirageos-devel@lists.xenproject.org; Sun, 29 Mar 2015 15:02:49 +0000
Received: from [85.158.139.211] by server-6.bemta-5.messagelabs.com id
	02/C2-03284-81418155; Sun, 29 Mar 2015 15:02:48 +0000
X-Env-Sender: daniel.buenzli@erratique.ch
X-Msg-Ref: server-6.tower-206.messagelabs.com!1427641367!12398413!1
X-Originating-IP: [74.55.86.74]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNzQuNTUuODYuNzQgPT4gMzA4NTYz\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 6781 invoked from network); 29 Mar 2015 15:02:47 -0000
Received: from mail6.webfaction.com (HELO smtp.webfaction.com) (74.55.86.74)
	by server-6.tower-206.messagelabs.com with SMTP;
	29 Mar 2015 15:02:47 -0000
Received: from [172.20.10.2]
	(80.226.197.178.dynamic.wless.zhbmb00p-cgnat.res.cust.swisscom.ch
	[178.197.226.80])
	by smtp.webfaction.com (Postfix) with ESMTP id 7CB8B20F8FA7;
	Sun, 29 Mar 2015 15:02:45 +0000 (UTC)
Date: Sun, 29 Mar 2015 17:02:43 +0200
From: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
To: Thomas Leonard <talex5@gmail.com>
Message-ID: <3BA29D13FD4448A88E01C2E2E387EE5E@erratique.ch>
In-Reply-To: <CAG4opy8KMF3=QA1ipHEpFmShcc1rvsRKJ2ByFObWcXOU1E2kmg@mail.gmail.com>
References: <CAG4opy9mf+NEhYAs-tj0JYNocVS0dGU9oxqam+hqFK5ZJq7VLg@mail.gmail.com>
	<20150202.014549.1883720051237442569.Christophe.Troestler@umons.ac.be>
	<CAG4opy9X-rg5qY+Yu0c-OJ8NumJSAPMVLr01xoHt99y9_i==8w@mail.gmail.com>
	<20150204.001614.26478837567139584.Christophe.Troestler@umons.ac.be>
	<CAG4opy8uTBQS4cM75dYEm=Jsa3078wMPNW+BQEHNsu7Mb4OJ8Q@mail.gmail.com>
	<87oap97rvw.fsf@study.localdomain>
	<CAG4opy9e5iq7rMPrSDzqiPbJZeJe8Wctg0trc1CbFZJG8ARNqw@mail.gmail.com>
	<87lhk4csew.fsf@study.localdomain>
	<CAG4opy9AdJwqcPZyP6KDoPR4-25NDqmUiApSX_D9obraQ2y0jg@mail.gmail.com>
	<CF8B685CB30142548F7684212DCB340A@erratique.ch>
	<CAG4opy8KMF3=QA1ipHEpFmShcc1rvsRKJ2ByFObWcXOU1E2kmg@mail.gmail.com>
X-Mailer: sparrow 1.6.4 (build 1178)
MIME-Version: 1.0
Content-Disposition: inline
Cc: Leo White <lpw25@cam.ac.uk>,
	"=?utf-8?Q?mirageos-devel=40lists.xenproject.org?="
	<mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Error handling in Mirage - request for
 comments!
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

TGUgZGltYW5jaGUsIDI5IG1hcnMgMjAxNSDDoCAxMjo1NCwgVGhvbWFzIExlb25hcmQgYSDDqWNy
aXQgOgo+IEhvd2V2ZXIsIGV4Y2VwdGlvbnMgZG8gZXhpc3QgaW4gT0NhbWwuICAKQnV0IHNob3Vs
ZCBvbmx5IGJlIHVzZWQgZm9yIHByb2dyYW1taW5nIGVycm9ycyDigJQgRGl2aXNpb25fYnlfemVy
bywgSW52YWxpZF9hcmd1bWVudCDigJQgYW5kL29yIHVucmVjb3ZlcmFibGUgY29uZGl0aW9ucyDi
gJQgT3V0X29mX21lbW9yeSwgU3RhY2tfb3ZlcmZsb3cuIChBbmQgcG9zc2libHkgbG9jYWwgY29u
dHJvbCBmbG93IGJ1dCB5b3Ugc2hvdWxkIG5ldmVyIHNlZSB0aG9zZSBkZXN0cm95IHlvdXIgc3Rh
Y2spCgo+IEl0IHNlZW1zIHVubGlrZWx5IHRvIG1lIHRoYXQgdGhpcyBpcyB0aGUgZGVzaXJlZCBi
ZWhhdmlvdXIuIElmIGFsbAo+IGVycm9ycyB3ZXJlIGV4Y2VwdGlvbnMgdGhlbiB0aGUgY29kZSB3
b3VsZCBsaWtlbHkgaGFuZGxlIGFsbCB0aGVzZQo+IGNhc2VzLgoKQnkgc2lsZW50bHkgc3dhbGxv
d2luZyB0aGUgZXhjZXB0aW9uIHdoaWNoIGlzIHRoZSBiZXN0IHdheSBvZiBjcmVhdGluZyBvYnNj
dXJlIGJ1Z3MgYW5kIGRpc2Z1bmN0aW9uYWwgc29mdHdhcmUgdGhhdCB0YWtlIGhvdXJzIHRvIGRl
YnVnIGFzIHRoaXMgZXhjZXB0aW9uIHdhcyBlaXRoZXIgYSBwcm9ncmFtbWluZyBlcnJvciBvciBh
biB1bnJlY292ZXJhYmxlIGNvbmRpdGlvbi4gIAoKRGFuaWVsCgoKCl9fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCk1pcmFnZU9TLWRldmVsIG1haWxpbmcgbGlz
dApNaXJhZ2VPUy1kZXZlbEBsaXN0cy54ZW5wcm9qZWN0Lm9yZwpodHRwOi8vbGlzdHMueGVucHJv
amVjdC5vcmcvY2dpLWJpbi9tYWlsbWFuL2xpc3RpbmZvL21pcmFnZW9zLWRldmVsCg==

From mirageos-devel-bounces@lists.xenproject.org Sun Mar 29 15:02:58 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 29 Mar 2015 15:02:58 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcEji-0000Nd-Ko; Sun, 29 Mar 2015 15:02:50 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <daniel.buenzli@erratique.ch>) id 1YcEjh-0000NY-67
	for mirageos-devel@lists.xenproject.org; Sun, 29 Mar 2015 15:02:49 +0000
Received: from [85.158.139.211] by server-6.bemta-5.messagelabs.com id
	02/C2-03284-81418155; Sun, 29 Mar 2015 15:02:48 +0000
X-Env-Sender: daniel.buenzli@erratique.ch
X-Msg-Ref: server-6.tower-206.messagelabs.com!1427641367!12398413!1
X-Originating-IP: [74.55.86.74]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNzQuNTUuODYuNzQgPT4gMzA4NTYz\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 6781 invoked from network); 29 Mar 2015 15:02:47 -0000
Received: from mail6.webfaction.com (HELO smtp.webfaction.com) (74.55.86.74)
	by server-6.tower-206.messagelabs.com with SMTP;
	29 Mar 2015 15:02:47 -0000
Received: from [172.20.10.2]
	(80.226.197.178.dynamic.wless.zhbmb00p-cgnat.res.cust.swisscom.ch
	[178.197.226.80])
	by smtp.webfaction.com (Postfix) with ESMTP id 7CB8B20F8FA7;
	Sun, 29 Mar 2015 15:02:45 +0000 (UTC)
Date: Sun, 29 Mar 2015 17:02:43 +0200
From: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
To: Thomas Leonard <talex5@gmail.com>
Message-ID: <3BA29D13FD4448A88E01C2E2E387EE5E@erratique.ch>
In-Reply-To: <CAG4opy8KMF3=QA1ipHEpFmShcc1rvsRKJ2ByFObWcXOU1E2kmg@mail.gmail.com>
References: <CAG4opy9mf+NEhYAs-tj0JYNocVS0dGU9oxqam+hqFK5ZJq7VLg@mail.gmail.com>
	<20150202.014549.1883720051237442569.Christophe.Troestler@umons.ac.be>
	<CAG4opy9X-rg5qY+Yu0c-OJ8NumJSAPMVLr01xoHt99y9_i==8w@mail.gmail.com>
	<20150204.001614.26478837567139584.Christophe.Troestler@umons.ac.be>
	<CAG4opy8uTBQS4cM75dYEm=Jsa3078wMPNW+BQEHNsu7Mb4OJ8Q@mail.gmail.com>
	<87oap97rvw.fsf@study.localdomain>
	<CAG4opy9e5iq7rMPrSDzqiPbJZeJe8Wctg0trc1CbFZJG8ARNqw@mail.gmail.com>
	<87lhk4csew.fsf@study.localdomain>
	<CAG4opy9AdJwqcPZyP6KDoPR4-25NDqmUiApSX_D9obraQ2y0jg@mail.gmail.com>
	<CF8B685CB30142548F7684212DCB340A@erratique.ch>
	<CAG4opy8KMF3=QA1ipHEpFmShcc1rvsRKJ2ByFObWcXOU1E2kmg@mail.gmail.com>
X-Mailer: sparrow 1.6.4 (build 1178)
MIME-Version: 1.0
Content-Disposition: inline
Cc: Leo White <lpw25@cam.ac.uk>,
	"=?utf-8?Q?mirageos-devel=40lists.xenproject.org?="
	<mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Error handling in Mirage - request for
 comments!
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

TGUgZGltYW5jaGUsIDI5IG1hcnMgMjAxNSDDoCAxMjo1NCwgVGhvbWFzIExlb25hcmQgYSDDqWNy
aXQgOgo+IEhvd2V2ZXIsIGV4Y2VwdGlvbnMgZG8gZXhpc3QgaW4gT0NhbWwuICAKQnV0IHNob3Vs
ZCBvbmx5IGJlIHVzZWQgZm9yIHByb2dyYW1taW5nIGVycm9ycyDigJQgRGl2aXNpb25fYnlfemVy
bywgSW52YWxpZF9hcmd1bWVudCDigJQgYW5kL29yIHVucmVjb3ZlcmFibGUgY29uZGl0aW9ucyDi
gJQgT3V0X29mX21lbW9yeSwgU3RhY2tfb3ZlcmZsb3cuIChBbmQgcG9zc2libHkgbG9jYWwgY29u
dHJvbCBmbG93IGJ1dCB5b3Ugc2hvdWxkIG5ldmVyIHNlZSB0aG9zZSBkZXN0cm95IHlvdXIgc3Rh
Y2spCgo+IEl0IHNlZW1zIHVubGlrZWx5IHRvIG1lIHRoYXQgdGhpcyBpcyB0aGUgZGVzaXJlZCBi
ZWhhdmlvdXIuIElmIGFsbAo+IGVycm9ycyB3ZXJlIGV4Y2VwdGlvbnMgdGhlbiB0aGUgY29kZSB3
b3VsZCBsaWtlbHkgaGFuZGxlIGFsbCB0aGVzZQo+IGNhc2VzLgoKQnkgc2lsZW50bHkgc3dhbGxv
d2luZyB0aGUgZXhjZXB0aW9uIHdoaWNoIGlzIHRoZSBiZXN0IHdheSBvZiBjcmVhdGluZyBvYnNj
dXJlIGJ1Z3MgYW5kIGRpc2Z1bmN0aW9uYWwgc29mdHdhcmUgdGhhdCB0YWtlIGhvdXJzIHRvIGRl
YnVnIGFzIHRoaXMgZXhjZXB0aW9uIHdhcyBlaXRoZXIgYSBwcm9ncmFtbWluZyBlcnJvciBvciBh
biB1bnJlY292ZXJhYmxlIGNvbmRpdGlvbi4gIAoKRGFuaWVsCgoKCl9fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCk1pcmFnZU9TLWRldmVsIG1haWxpbmcgbGlz
dApNaXJhZ2VPUy1kZXZlbEBsaXN0cy54ZW5wcm9qZWN0Lm9yZwpodHRwOi8vbGlzdHMueGVucHJv
amVjdC5vcmcvY2dpLWJpbi9tYWlsbWFuL2xpc3RpbmZvL21pcmFnZW9zLWRldmVsCg==

From mirageos-devel-bounces@lists.xenproject.org Sun Mar 29 15:15:45 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 29 Mar 2015 15:15:45 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcEwA-0001ZF-K1; Sun, 29 Mar 2015 15:15:42 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <daniel.buenzli@erratique.ch>) id 1YcEw9-0001ZA-CF
	for mirageos-devel@lists.xenproject.org; Sun, 29 Mar 2015 15:15:41 +0000
Received: from [85.158.137.68] by server-10.bemta-3.messagelabs.com id
	08/3C-14673-C1718155; Sun, 29 Mar 2015 15:15:40 +0000
X-Env-Sender: daniel.buenzli@erratique.ch
X-Msg-Ref: server-10.tower-31.messagelabs.com!1427642139!12017685!1
X-Originating-IP: [74.55.86.74]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNzQuNTUuODYuNzQgPT4gMzA4NTYz\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 6688 invoked from network); 29 Mar 2015 15:15:39 -0000
Received: from mail6.webfaction.com (HELO smtp.webfaction.com) (74.55.86.74)
	by server-10.tower-31.messagelabs.com with SMTP;
	29 Mar 2015 15:15:39 -0000
Received: from [172.20.10.2]
	(80.226.197.178.dynamic.wless.zhbmb00p-cgnat.res.cust.swisscom.ch
	[178.197.226.80])
	by smtp.webfaction.com (Postfix) with ESMTP id CBD0126EBB4E;
	Sun, 29 Mar 2015 15:15:36 +0000 (UTC)
Date: Sun, 29 Mar 2015 17:15:35 +0200
From: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
To: Anil Madhavapeddy <anil@recoil.org>
Message-ID: <7DD6C7A225564EB585E8C939520A5891@erratique.ch>
In-Reply-To: <FC4D422B-A041-4C6B-AF0C-E4C787969A79@recoil.org>
References: <CAG-KTt98N7vUvLKtuM5m1HWsh-Sqsi=ziTKS6r9Tr6XHtZVovQ@mail.gmail.com>
	<DAB7D242-C922-45D4-B01A-53697855979F@recoil.org>
	<CAPunWhCSKt-G8D7Y8=XUJcKvOn9PhEQfnrPWmXMdObnQT+Gzvw@mail.gmail.com>
	<FC4D422B-A041-4C6B-AF0C-E4C787969A79@recoil.org>
X-Mailer: sparrow 1.6.4 (build 1178)
MIME-Version: 1.0
Content-Disposition: inline
Cc: Nicolas Ojeda Bar <no263@dpmms.cam.ac.uk>,
	Trevor Smith <trevorsummerssmith@gmail.com>,
	"=?utf-8?Q?mirageos-devel=40lists.xenproject.org?="
	<mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Cohttp Design -- LWT, Async, JS,
 Mirage Compatibility
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

TGUgc2FtZWRpLCAyOCBtYXJzIDIwMTUgw6AgMjA6NTQsIEFuaWwgTWFkaGF2YXBlZGR5IGEgw6lj
cml0IDoKPiAtIERlc3BpdGUgYmVpbmcgYSBoZWF2eSB1c2VyIG9mIERhbmllbCdzIGxpYnJhcmll
cywgSSBkb24ndCBmaW5kIHRoZW0gdG8gaGF2ZSB0aGUgbW9zdCB1c2FibGUgaW50ZXJmYWNlcyBm
b3IgcXVpY2sgdXNhZ2UsIGFsdGhvdWdoIHRoZXkgYXJlIHRoZSBiZXN0IGRvY3VtZW50ZWQgYW5k
IHRob3VnaHQgdGhyb3VnaCBmcm9tIHRoZSBsaWJyYXJpZXMgSSBzZWxlY3QgZnJvbSAoaGVuY2Ug
dGhlIGV4aXN0ZW5jZSBvZiBlenhtbG0sIGV6anNvbm0sIGFuZCBzbyBvbiBhcyB3cmFwcGVyIGxp
YnJhcmllcykuIEEgbW9uYWRpYyBpbnRlcmZhY2UgaXMgcXVpdGUgaW50dWl0aXZlIHRvIHBpY2sg
dXAgYW5kIHVzZS4KCkkgdGhpbmsgdGhhdCB0aGUgZmFjdCB0aGV5IGFyZSBoYXJkIHRvIHVzZSBo
YXMgKm5vdGhpbmcqIHRvIGRvIHdpdGggbm9uLWJsb2NraW5nIG1lY2hhbmlzbS4gWG1sbSBhbmQg
SnNvbm0gYXJlIGhhcmQgdG8gdXNlIGJlY2F1c2UgdGhleSBleHBvc2UgYSBzdHJlYW1pbmcgQVBJ
IGZvciB0cmVlcyAoYS5rLmEuIFNBWC1zdHlsZSkgd2hpY2ggaXMgYSBsb3ctbGV2ZWwgYWJzdHJh
Y3Rpb24gKGJ1dCBoYXMgdGhlIGFkdmFudGFnZSBvZiBub3QgcmVxdWlyaW5nIGFsbCB0aGUgaW5w
dXQgdG8gYmUgaW4gbWVtb3J5IHdoaWNoIGlzIGhhbmR5IHdoZW4geW91IG5lZWQgZm9yIGV4YW1w
bGUgdG8gcHJvY2VzcyBHQiBvZiBHZW9KU09OIGRhdGEpLiAgCgpJIGRvbid0IHRoaW5rIHRoYXQg
VXV0ZiBhcyBhIGNoYXJhY3RlciBzdHJlYW0gaXMgaGFyZGVyIHRvIHVzZSB0aGFuIHNheSBpbl9j
aGFubmVsLiAgCgpCZXN0LAoKRGFuaWVsCgoKCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fCk1pcmFnZU9TLWRldmVsIG1haWxpbmcgbGlzdApNaXJhZ2VPUy1k
ZXZlbEBsaXN0cy54ZW5wcm9qZWN0Lm9yZwpodHRwOi8vbGlzdHMueGVucHJvamVjdC5vcmcvY2dp
LWJpbi9tYWlsbWFuL2xpc3RpbmZvL21pcmFnZW9zLWRldmVsCg==

From mirageos-devel-bounces@lists.xenproject.org Sun Mar 29 15:15:45 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 29 Mar 2015 15:15:45 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcEwA-0001ZF-K1; Sun, 29 Mar 2015 15:15:42 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <daniel.buenzli@erratique.ch>) id 1YcEw9-0001ZA-CF
	for mirageos-devel@lists.xenproject.org; Sun, 29 Mar 2015 15:15:41 +0000
Received: from [85.158.137.68] by server-10.bemta-3.messagelabs.com id
	08/3C-14673-C1718155; Sun, 29 Mar 2015 15:15:40 +0000
X-Env-Sender: daniel.buenzli@erratique.ch
X-Msg-Ref: server-10.tower-31.messagelabs.com!1427642139!12017685!1
X-Originating-IP: [74.55.86.74]
X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: 
	VHJ1c3RlZCBJUDogNzQuNTUuODYuNzQgPT4gMzA4NTYz\n
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 6688 invoked from network); 29 Mar 2015 15:15:39 -0000
Received: from mail6.webfaction.com (HELO smtp.webfaction.com) (74.55.86.74)
	by server-10.tower-31.messagelabs.com with SMTP;
	29 Mar 2015 15:15:39 -0000
Received: from [172.20.10.2]
	(80.226.197.178.dynamic.wless.zhbmb00p-cgnat.res.cust.swisscom.ch
	[178.197.226.80])
	by smtp.webfaction.com (Postfix) with ESMTP id CBD0126EBB4E;
	Sun, 29 Mar 2015 15:15:36 +0000 (UTC)
Date: Sun, 29 Mar 2015 17:15:35 +0200
From: =?utf-8?Q?Daniel_B=C3=BCnzli?= <daniel.buenzli@erratique.ch>
To: Anil Madhavapeddy <anil@recoil.org>
Message-ID: <7DD6C7A225564EB585E8C939520A5891@erratique.ch>
In-Reply-To: <FC4D422B-A041-4C6B-AF0C-E4C787969A79@recoil.org>
References: <CAG-KTt98N7vUvLKtuM5m1HWsh-Sqsi=ziTKS6r9Tr6XHtZVovQ@mail.gmail.com>
	<DAB7D242-C922-45D4-B01A-53697855979F@recoil.org>
	<CAPunWhCSKt-G8D7Y8=XUJcKvOn9PhEQfnrPWmXMdObnQT+Gzvw@mail.gmail.com>
	<FC4D422B-A041-4C6B-AF0C-E4C787969A79@recoil.org>
X-Mailer: sparrow 1.6.4 (build 1178)
MIME-Version: 1.0
Content-Disposition: inline
Cc: Nicolas Ojeda Bar <no263@dpmms.cam.ac.uk>,
	Trevor Smith <trevorsummerssmith@gmail.com>,
	"=?utf-8?Q?mirageos-devel=40lists.xenproject.org?="
	<mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Cohttp Design -- LWT, Async, JS,
 Mirage Compatibility
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

TGUgc2FtZWRpLCAyOCBtYXJzIDIwMTUgw6AgMjA6NTQsIEFuaWwgTWFkaGF2YXBlZGR5IGEgw6lj
cml0IDoKPiAtIERlc3BpdGUgYmVpbmcgYSBoZWF2eSB1c2VyIG9mIERhbmllbCdzIGxpYnJhcmll
cywgSSBkb24ndCBmaW5kIHRoZW0gdG8gaGF2ZSB0aGUgbW9zdCB1c2FibGUgaW50ZXJmYWNlcyBm
b3IgcXVpY2sgdXNhZ2UsIGFsdGhvdWdoIHRoZXkgYXJlIHRoZSBiZXN0IGRvY3VtZW50ZWQgYW5k
IHRob3VnaHQgdGhyb3VnaCBmcm9tIHRoZSBsaWJyYXJpZXMgSSBzZWxlY3QgZnJvbSAoaGVuY2Ug
dGhlIGV4aXN0ZW5jZSBvZiBlenhtbG0sIGV6anNvbm0sIGFuZCBzbyBvbiBhcyB3cmFwcGVyIGxp
YnJhcmllcykuIEEgbW9uYWRpYyBpbnRlcmZhY2UgaXMgcXVpdGUgaW50dWl0aXZlIHRvIHBpY2sg
dXAgYW5kIHVzZS4KCkkgdGhpbmsgdGhhdCB0aGUgZmFjdCB0aGV5IGFyZSBoYXJkIHRvIHVzZSBo
YXMgKm5vdGhpbmcqIHRvIGRvIHdpdGggbm9uLWJsb2NraW5nIG1lY2hhbmlzbS4gWG1sbSBhbmQg
SnNvbm0gYXJlIGhhcmQgdG8gdXNlIGJlY2F1c2UgdGhleSBleHBvc2UgYSBzdHJlYW1pbmcgQVBJ
IGZvciB0cmVlcyAoYS5rLmEuIFNBWC1zdHlsZSkgd2hpY2ggaXMgYSBsb3ctbGV2ZWwgYWJzdHJh
Y3Rpb24gKGJ1dCBoYXMgdGhlIGFkdmFudGFnZSBvZiBub3QgcmVxdWlyaW5nIGFsbCB0aGUgaW5w
dXQgdG8gYmUgaW4gbWVtb3J5IHdoaWNoIGlzIGhhbmR5IHdoZW4geW91IG5lZWQgZm9yIGV4YW1w
bGUgdG8gcHJvY2VzcyBHQiBvZiBHZW9KU09OIGRhdGEpLiAgCgpJIGRvbid0IHRoaW5rIHRoYXQg
VXV0ZiBhcyBhIGNoYXJhY3RlciBzdHJlYW0gaXMgaGFyZGVyIHRvIHVzZSB0aGFuIHNheSBpbl9j
aGFubmVsLiAgCgpCZXN0LAoKRGFuaWVsCgoKCl9fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fCk1pcmFnZU9TLWRldmVsIG1haWxpbmcgbGlzdApNaXJhZ2VPUy1k
ZXZlbEBsaXN0cy54ZW5wcm9qZWN0Lm9yZwpodHRwOi8vbGlzdHMueGVucHJvamVjdC5vcmcvY2dp
LWJpbi9tYWlsbWFuL2xpc3RpbmZvL21pcmFnZW9zLWRldmVsCg==

From mirageos-devel-bounces@lists.xenproject.org Sun Mar 29 15:58:03 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 29 Mar 2015 15:58:03 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcFb3-0006Sv-RL; Sun, 29 Mar 2015 15:57:57 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <trevorsummerssmith@gmail.com>) id 1YcFb2-0006Sq-F8
	for mirageos-devel@lists.xenproject.org; Sun, 29 Mar 2015 15:57:56 +0000
Received: from [193.109.254.147] by server-8.bemta-14.messagelabs.com id
	8F/8E-18377-30128155; Sun, 29 Mar 2015 15:57:55 +0000
X-Env-Sender: trevorsummerssmith@gmail.com
X-Msg-Ref: server-14.tower-27.messagelabs.com!1427644672!14045291!1
X-Originating-IP: [209.85.192.54]
X-SpamReason: No, hits=1.7 required=7.0 tests=BODY_RANDOM_LONG,
	HTML_10_20,HTML_MESSAGE,RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 31334 invoked from network); 29 Mar 2015 15:57:53 -0000
Received: from mail-qg0-f54.google.com (HELO mail-qg0-f54.google.com)
	(209.85.192.54)
	by server-14.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	29 Mar 2015 15:57:53 -0000
Received: by qgh3 with SMTP id 3so153886534qgh.2
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 29 Mar 2015 08:57:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=KyyPkmNrNPVA44C/qgHJJAXxXS+Vh2DkPrbpwTdeGMA=;
	b=T24u0k8ek3LGnMHpxcQjrFSzSNWBN7sUN/LrusbuYKxc+rOh+s5ItS6m9huwRDfUtq
	FbBTt41Xo1SbX5Y0YBNW0w0gnDdVc0izhFkXX34TcX7UDkaUsb7Bs6FglpFtrJHjC9fE
	gUu4hsd7R1HhRldskF6rSwCvMs92LmGwdduTl5ZNUDHnLEMdUg/0bRQ4Hh9UkvGKh2Xg
	Nq4UGVQVegn1sYojRyCvZMZdilT0jtgLswzPpz1qtq6jcr5ZkxJOLzkki7YqAN5dmnfU
	lJncRtuPZa/jNjNP5hB9rGnYiH7f/Xy4E4jfuHok6HIcY1BO2NKUkwDrrJZQ1oznEZZb
	E16g==
MIME-Version: 1.0
X-Received: by 10.140.232.68 with SMTP id d65mr33750873qhc.99.1427644672631;
	Sun, 29 Mar 2015 08:57:52 -0700 (PDT)
Received: by 10.229.240.68 with HTTP; Sun, 29 Mar 2015 08:57:52 -0700 (PDT)
In-Reply-To: <DAB7D242-C922-45D4-B01A-53697855979F@recoil.org>
References: <CAG-KTt98N7vUvLKtuM5m1HWsh-Sqsi=ziTKS6r9Tr6XHtZVovQ@mail.gmail.com>
	<DAB7D242-C922-45D4-B01A-53697855979F@recoil.org>
Date: Sun, 29 Mar 2015 11:57:52 -0400
Message-ID: <CAG-KTt_-nigTDPXRwAsqEJkqxKSQzg1uqwBbYc-fYmVA0ncRFQ@mail.gmail.com>
From: Trevor Smith <trevorsummerssmith@gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Cohttp Design -- LWT, Async, JS,
	Mirage Compatibility
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============7335685165667981698=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============7335685165667981698==
Content-Type: multipart/alternative; boundary=001a11c12bcc93ea6d05126f6de9

--001a11c12bcc93ea6d05126f6de9
Content-Type: text/plain; charset=UTF-8

Thanks for the great response Anil, and all! This is very useful.

Three thoughts:

I personally, I don't find the functor-ization that difficult. The onion is
clear from navigating the source, and more clear when you make it explicit.
I am interested in getting unification of the client/server interfaces
though. I am writing a S3 Client for work right now. I would love to open
source this soon. Unfortunately, only Async users will be able to use it
initially, because I am using the Async implementation of Cohttp. If there
were unified interfaces, users of Mirage could also take advantage of this
as soon as it is complete (which, I think would be so cool). My point is --
the lack of those interfaces creates more work for library creators who
build on top of Cohttp, and thereby hurts adoption.

To add to the onion analogy -- there's the idea of maturity (which you
called out). Opposite of how an onion grows, the inner layers of Cohttp are
more mature, stable and unified. It seems correct to me, to call out that
the first stabs at the outer layers are intentionally *not* unified so that
use cases can be gathered and the actual unified interfaces created.

I would love to get a form of your email into the codebase as a design
document. I know it would have helped me (and is helping me) get up to
speed on the codebase. I would be happy to give it a stab and submit a pull
request.

Trevor

On Sat, Mar 28, 2015 at 12:36 PM, Anil Madhavapeddy <anil@recoil.org> wrote:

> On 28 Mar 2015, at 14:24, Trevor Smith <trevorsummerssmith@gmail.com>
> wrote:
>
>
> Hi all,
>
> I was wondering if there is a document somewhere describing why the
> different backends to cohttp don't have a unified client/server interface?
> It seems like it would be such a boon for the user to be able to write
> their code but be able to choose the backends. I realize that this must
> have already received much discussion but am not sure where it is located.
>
>
> Hi Trevor,
>
> There's no design document describing this, mainly because CoHTTP started
> as an informal bet between me and Yaron Minsky that the current design
> would be impossible/a bad idea.  The jury's still out on the verdict, but I
> don't think I've lost yet :-)
>
> I wanted to build an HTTP implementation as an "onion", with the portable
> parsing core progressively introducing I/O, and then higher-level
> abstractions for various HTTP operations.  Here's my description of each
> layer (that eventually ought to go into a design doc in the CoHTTP repo to
> make it more accessible to newcomers to the codebase):
>
> - The very first layer (in `lib/`) is a pure OCaml, non-blocking layer
> that handles simple parts of the HTTP protocol such as parsing requests and
> responses, various header parsers (e.g. cookies) and codes.
>
> - Some layers of HTTP need some notion of I/O, and so there is a set of
> signatures in `lib/s.mli` that defines some common module types that can be
> used to build parameterised modules (also known as functors).  The first
> one used in the `lib/` layer is the IO module type, which defines the
> minimal collection of functions used by cooperative threading libraries.
> The pure HTTP core uses this IO module to capture IO-based operations, such
> as Transfer_IO (for transfer encoding).
>
> - There are three implementations that satisfy the IO module in the tree:
> Lwt, Async and String.  The first two are full cooperative threading
> libraries, and the latter is used by the js_of_ocaml backend to read/write
> between Strings.
>
> - Now that IO has been handled, we can send HTTP requests and responses
> from Lwt or Async.  However, at this point some differences appear in the
> implementations of Async and Lwt, notably in how they handle cancellation
> of threads and also higher-level iterators (e.g. Async has Pipes, and Lwt
> has Lwt_stream -- both quite different).  Therefore, we build
> backend-specific Client and Server modules that use their respective
> threading libraries in as native a style as possible, but still reusing the
> core HTTP library from `lib/`.  These can be found in `Cohttp_lwt` and
> `Cohttp_async` respectively.  Dave Scott also wrote an (as yet not merged)
> POSIX blocking version that they use in the XenAPI daemon.
>
> - Lwt comes with an additional twist -- it is portable to both Unix *and*
> the MirageOS, which has no Unix at all!  Lwt makes it possible to define a
> "Lwt core" that uses the portable Lwt thread abstractions, but doesn't use
> any OS-specific functionality.  Thus we can define an HTTP Client and
> Server in Cohttp_lwt, but still not tie ourself to one particular OS.  This
> Cohttp_lwt is then used by the Cohttp_lwt_unix and Cohttp_mirage backends
> to hook it into the operating system.
>
> - There's no commonality at present between Cohttp_async and Cohttp_lwt,
> but that's the topic of a design discussion at the moment.  It should be
> possible to build a common signature between the two, and Rudi Grinberg
> took a shot at this a while back.  I'm not sure that it's worth the trouble
> right now.
>
> - Andy Ray did something interesting with the Lwt backend: he ported it to
> JavaScript by implementing an IO backend that marshals the requests to and
> from strings.  This allows REST API users built over Cohttp (such as
> ocaml-github) to compile to pure JavaScript as well.
>
> Drawbacks:
>
> - The heavy use of functors does make it hard to navigate the 'end user'
> API, even though those interfaces never expose any functors (for instance,
> you just use Cohttp_lwt_unix directly in most cases). This is a drawback of
> current OCaml tooling, and Merlin (for IDEs) and Codoc (for
> cross-referenced documentation) will fix this soon.
>
> - A bigger problem that needs to be addressed in Cohttp2 is body handling,
> which we basically got wrong in this iteration.  The Body module is not
> idempotent, so to_string does not always return the same value if called
> multiple times.  The caller can currently be careful, but this is just an
> awful part of the API.  There are enough users of Cohttp that we'll leave
> it for 1.0, but hopefully fix it quite rapidly for 2.0.
>
> - Cohttp is not a complete HTTP client, and doesn't implement the full
> logic for redirections, loop detection and so on.  That's the job of a
> library built over it, and there is some nascent code in opam-mirror that
> can do this [1].  Before building this, David Sheets and I want to look at
> some of the more larger API clients built using it (such as Vincent
> Bernardoff's BitStamp API [2]) and take a shot at a portable client API
> that will work with both Lwt and Async.
>
> So was functorising this heavily such a good idea?  I think so -- the
> litmus test is whether or not there is more than one different
> implementation for each parameterised module, and this has worked out
> particularly well for the Cohttp_lwt backend, where there are now 4 (!)
> very different implementations.
>
> Hope this helps,
> Anil
>
> [1]
> https://github.com/avsm/opam-mirror/blob/master/opam_mirror_fetch_urls.ml#L49
> [2] https://github.com/vbmithr/ocaml-bitstamp-api
>

--001a11c12bcc93ea6d05126f6de9
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Thanks for the great response Anil, and all! This is very =
useful.<div><br></div><div>Three thoughts:</div><div><br></div><div>I perso=
nally, I don&#39;t find the functor-ization that difficult. The onion is cl=
ear from navigating the source, and more clear when you make it explicit. I=
 am interested in getting unification of the client/server interfaces thoug=
h. I am writing a S3 Client for work right now. I would love to open source=
 this soon. Unfortunately, only Async users will be able to use it initiall=
y, because I am using the Async implementation of Cohttp. If there were uni=
fied interfaces, users of Mirage could also take advantage of this as soon =
as it is complete (which, I think would be so cool). My point is -- the lac=
k of those interfaces creates more work for library creators who build on t=
op of Cohttp, and thereby hurts adoption.</div><div><br></div><div>To add t=
o the onion analogy -- there&#39;s the idea of maturity (which you called o=
ut). Opposite of how an onion grows, the inner layers of Cohttp are more ma=
ture, stable and unified. It seems correct to me, to call out that the firs=
t stabs at the outer layers are intentionally *not* unified so that use cas=
es can be gathered and the actual unified interfaces created.</div><div><br=
></div><div>I would love to get a form of your email into the codebase as a=
 design document. I know it would have helped me (and is helping me) get up=
 to speed on the codebase. I would be happy to give it a stab and submit a =
pull request.</div><div><br></div><div>Trevor</div></div><div class=3D"gmai=
l_extra"><br><div class=3D"gmail_quote">On Sat, Mar 28, 2015 at 12:36 PM, A=
nil Madhavapeddy <span dir=3D"ltr">&lt;<a href=3D"mailto:anil@recoil.org" t=
arget=3D"_blank">anil@recoil.org</a>&gt;</span> wrote:<br><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex"><div style=3D"word-wrap:break-word"><span class=3D"">On 28 Ma=
r 2015, at 14:24, Trevor Smith &lt;<a href=3D"mailto:trevorsummerssmith@gma=
il.com" target=3D"_blank">trevorsummerssmith@gmail.com</a>&gt; wrote:<br><d=
iv><blockquote type=3D"cite"><br><div><div dir=3D"ltr">Hi all,<div><br></di=
v><div>I was wondering if there is a document somewhere describing why the =
different backends to cohttp don&#39;t have a unified client/server interfa=
ce? It seems like it would be such a boon for the user to be able to write =
their code but be able to choose the backends. I realize that this must hav=
e already received much discussion but am not sure where it is located.</di=
v></div></div></blockquote><br></div></span><div>Hi Trevor,</div><div><br><=
/div><div>There&#39;s no design document describing this, mainly because Co=
HTTP started as an informal bet between me and Yaron Minsky that the curren=
t design would be impossible/a bad idea.=C2=A0 The jury&#39;s still out on =
the verdict, but I don&#39;t think I&#39;ve lost yet :-)</div><div><br></di=
v><div>I wanted to build an HTTP implementation as an &quot;onion&quot;, wi=
th the portable parsing core progressively introducing I/O, and then higher=
-level abstractions for various HTTP operations.=C2=A0 Here&#39;s my descri=
ption of each layer (that eventually ought to go into a design doc in the C=
oHTTP repo to make it more accessible to newcomers to the codebase):</div><=
div><br></div><div>- The very first layer (in `lib/`) is a pure OCaml, non-=
blocking layer that handles simple parts of the HTTP protocol such as parsi=
ng requests and responses, various header parsers (e.g. cookies) and codes.=
</div><div><br></div><div>- Some layers of HTTP need some notion of I/O, an=
d so there is a set of signatures in `lib/s.mli` that defines some common m=
odule types that can be used to build parameterised modules (also known as =
functors).=C2=A0 The first one used in the `lib/` layer is the IO module ty=
pe, which defines the minimal collection of functions used by cooperative t=
hreading libraries.=C2=A0 The pure HTTP core uses this IO module to capture=
 IO-based operations, such as Transfer_IO (for transfer encoding).</div><di=
v><br></div><div>- There are three implementations that satisfy the IO modu=
le in the tree: Lwt, Async and String.=C2=A0 The first two are full coopera=
tive threading libraries, and the latter is used by the js_of_ocaml backend=
 to read/write between Strings.</div><div><br></div><div>- Now that IO has =
been handled, we can send HTTP requests and responses from Lwt or Async.=C2=
=A0 However, at this point some differences appear in the implementations o=
f Async and Lwt, notably in how they handle cancellation of threads and als=
o higher-level iterators (e.g. Async has Pipes, and Lwt has Lwt_stream -- b=
oth quite different).=C2=A0 Therefore, we build backend-specific Client and=
 Server modules that use their respective threading libraries in as native =
a style as possible, but still reusing the core HTTP library from `lib/`.=
=C2=A0 These can be found in `Cohttp_lwt` and `Cohttp_async` respectively.=
=C2=A0 Dave Scott also wrote an (as yet not merged) POSIX blocking version =
that they use in the XenAPI daemon.</div><div><br></div><div>- Lwt comes wi=
th an additional twist -- it is portable to both Unix *and* the MirageOS, w=
hich has no Unix at all!=C2=A0 Lwt makes it possible to define a &quot;Lwt =
core&quot; that uses the portable Lwt thread abstractions, but doesn&#39;t =
use any OS-specific functionality.=C2=A0 Thus we can define an HTTP Client =
and Server in Cohttp_lwt, but still not tie ourself to one particular OS.=
=C2=A0 This Cohttp_lwt is then used by the Cohttp_lwt_unix and Cohttp_mirag=
e backends to hook it into the operating system.</div><div><br></div><div>-=
 There&#39;s no commonality at present between Cohttp_async and Cohttp_lwt,=
 but that&#39;s the topic of a design discussion at the moment.=C2=A0 It sh=
ould be possible to build a common signature between the two, and Rudi Grin=
berg took a shot at this a while back.=C2=A0 I&#39;m not sure that it&#39;s=
 worth the trouble right now.</div><div><br></div><div>- Andy Ray did somet=
hing interesting with the Lwt backend: he ported it to JavaScript by implem=
enting an IO backend that marshals the requests to and from strings.=C2=A0 =
This allows REST API users built over Cohttp (such as ocaml-github) to comp=
ile to pure JavaScript as well.</div><div><br></div><div>Drawbacks:</div><d=
iv><br></div><div>- The heavy use of functors does make it hard to navigate=
 the &#39;end user&#39; API, even though those interfaces never expose any =
functors (for instance, you just use Cohttp_lwt_unix directly in most cases=
). This is a drawback of current OCaml tooling, and Merlin (for IDEs) and C=
odoc (for cross-referenced documentation) will fix this soon.</div><div><br=
></div><div>- A bigger problem that needs to be addressed in Cohttp2 is bod=
y handling, which we basically got wrong in this iteration.=C2=A0 The Body =
module is not idempotent, so to_string does not always return the same valu=
e if called multiple times.=C2=A0 The caller can currently be careful, but =
this is just an awful part of the API.=C2=A0 There are enough users of Coht=
tp that we&#39;ll leave it for 1.0, but hopefully fix it quite rapidly for =
2.0.</div><div><br></div><div>- Cohttp is not a complete HTTP client, and d=
oesn&#39;t implement the full logic for redirections, loop detection and so=
 on.=C2=A0 That&#39;s the job of a library built over it, and there is some=
 nascent code in opam-mirror that can do this [1].=C2=A0 Before building th=
is, David Sheets and I want to look at some of the more larger API clients =
built using it (such as Vincent Bernardoff&#39;s BitStamp API [2]) and take=
 a shot at a portable client API that will work with both Lwt and Async.</d=
iv><div><br></div><div>So was functorising this heavily such a good idea?=
=C2=A0 I think so -- the litmus test is whether or not there is more than o=
ne different implementation for each parameterised module, and this has wor=
ked out particularly well for the Cohttp_lwt backend, where there are now 4=
 (!) very different implementations.</div><div><br></div><div>Hope this hel=
ps,</div><div>Anil</div><div><br></div><div>[1]=C2=A0<a href=3D"https://git=
hub.com/avsm/opam-mirror/blob/master/opam_mirror_fetch_urls.ml#L49" target=
=3D"_blank">https://github.com/avsm/opam-mirror/blob/master/opam_mirror_fet=
ch_urls.ml#L49</a></div><div>[2]=C2=A0<a href=3D"https://github.com/vbmithr=
/ocaml-bitstamp-api" target=3D"_blank">https://github.com/vbmithr/ocaml-bit=
stamp-api</a></div></div></blockquote></div><br></div>

--001a11c12bcc93ea6d05126f6de9--


--===============7335685165667981698==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============7335685165667981698==--


From mirageos-devel-bounces@lists.xenproject.org Sun Mar 29 15:58:03 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 29 Mar 2015 15:58:03 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcFb3-0006Sv-RL; Sun, 29 Mar 2015 15:57:57 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <trevorsummerssmith@gmail.com>) id 1YcFb2-0006Sq-F8
	for mirageos-devel@lists.xenproject.org; Sun, 29 Mar 2015 15:57:56 +0000
Received: from [193.109.254.147] by server-8.bemta-14.messagelabs.com id
	8F/8E-18377-30128155; Sun, 29 Mar 2015 15:57:55 +0000
X-Env-Sender: trevorsummerssmith@gmail.com
X-Msg-Ref: server-14.tower-27.messagelabs.com!1427644672!14045291!1
X-Originating-IP: [209.85.192.54]
X-SpamReason: No, hits=1.7 required=7.0 tests=BODY_RANDOM_LONG,
	HTML_10_20,HTML_MESSAGE,RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 31334 invoked from network); 29 Mar 2015 15:57:53 -0000
Received: from mail-qg0-f54.google.com (HELO mail-qg0-f54.google.com)
	(209.85.192.54)
	by server-14.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	29 Mar 2015 15:57:53 -0000
Received: by qgh3 with SMTP id 3so153886534qgh.2
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 29 Mar 2015 08:57:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=KyyPkmNrNPVA44C/qgHJJAXxXS+Vh2DkPrbpwTdeGMA=;
	b=T24u0k8ek3LGnMHpxcQjrFSzSNWBN7sUN/LrusbuYKxc+rOh+s5ItS6m9huwRDfUtq
	FbBTt41Xo1SbX5Y0YBNW0w0gnDdVc0izhFkXX34TcX7UDkaUsb7Bs6FglpFtrJHjC9fE
	gUu4hsd7R1HhRldskF6rSwCvMs92LmGwdduTl5ZNUDHnLEMdUg/0bRQ4Hh9UkvGKh2Xg
	Nq4UGVQVegn1sYojRyCvZMZdilT0jtgLswzPpz1qtq6jcr5ZkxJOLzkki7YqAN5dmnfU
	lJncRtuPZa/jNjNP5hB9rGnYiH7f/Xy4E4jfuHok6HIcY1BO2NKUkwDrrJZQ1oznEZZb
	E16g==
MIME-Version: 1.0
X-Received: by 10.140.232.68 with SMTP id d65mr33750873qhc.99.1427644672631;
	Sun, 29 Mar 2015 08:57:52 -0700 (PDT)
Received: by 10.229.240.68 with HTTP; Sun, 29 Mar 2015 08:57:52 -0700 (PDT)
In-Reply-To: <DAB7D242-C922-45D4-B01A-53697855979F@recoil.org>
References: <CAG-KTt98N7vUvLKtuM5m1HWsh-Sqsi=ziTKS6r9Tr6XHtZVovQ@mail.gmail.com>
	<DAB7D242-C922-45D4-B01A-53697855979F@recoil.org>
Date: Sun, 29 Mar 2015 11:57:52 -0400
Message-ID: <CAG-KTt_-nigTDPXRwAsqEJkqxKSQzg1uqwBbYc-fYmVA0ncRFQ@mail.gmail.com>
From: Trevor Smith <trevorsummerssmith@gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Cohttp Design -- LWT, Async, JS,
	Mirage Compatibility
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============7335685165667981698=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============7335685165667981698==
Content-Type: multipart/alternative; boundary=001a11c12bcc93ea6d05126f6de9

--001a11c12bcc93ea6d05126f6de9
Content-Type: text/plain; charset=UTF-8

Thanks for the great response Anil, and all! This is very useful.

Three thoughts:

I personally, I don't find the functor-ization that difficult. The onion is
clear from navigating the source, and more clear when you make it explicit.
I am interested in getting unification of the client/server interfaces
though. I am writing a S3 Client for work right now. I would love to open
source this soon. Unfortunately, only Async users will be able to use it
initially, because I am using the Async implementation of Cohttp. If there
were unified interfaces, users of Mirage could also take advantage of this
as soon as it is complete (which, I think would be so cool). My point is --
the lack of those interfaces creates more work for library creators who
build on top of Cohttp, and thereby hurts adoption.

To add to the onion analogy -- there's the idea of maturity (which you
called out). Opposite of how an onion grows, the inner layers of Cohttp are
more mature, stable and unified. It seems correct to me, to call out that
the first stabs at the outer layers are intentionally *not* unified so that
use cases can be gathered and the actual unified interfaces created.

I would love to get a form of your email into the codebase as a design
document. I know it would have helped me (and is helping me) get up to
speed on the codebase. I would be happy to give it a stab and submit a pull
request.

Trevor

On Sat, Mar 28, 2015 at 12:36 PM, Anil Madhavapeddy <anil@recoil.org> wrote:

> On 28 Mar 2015, at 14:24, Trevor Smith <trevorsummerssmith@gmail.com>
> wrote:
>
>
> Hi all,
>
> I was wondering if there is a document somewhere describing why the
> different backends to cohttp don't have a unified client/server interface?
> It seems like it would be such a boon for the user to be able to write
> their code but be able to choose the backends. I realize that this must
> have already received much discussion but am not sure where it is located.
>
>
> Hi Trevor,
>
> There's no design document describing this, mainly because CoHTTP started
> as an informal bet between me and Yaron Minsky that the current design
> would be impossible/a bad idea.  The jury's still out on the verdict, but I
> don't think I've lost yet :-)
>
> I wanted to build an HTTP implementation as an "onion", with the portable
> parsing core progressively introducing I/O, and then higher-level
> abstractions for various HTTP operations.  Here's my description of each
> layer (that eventually ought to go into a design doc in the CoHTTP repo to
> make it more accessible to newcomers to the codebase):
>
> - The very first layer (in `lib/`) is a pure OCaml, non-blocking layer
> that handles simple parts of the HTTP protocol such as parsing requests and
> responses, various header parsers (e.g. cookies) and codes.
>
> - Some layers of HTTP need some notion of I/O, and so there is a set of
> signatures in `lib/s.mli` that defines some common module types that can be
> used to build parameterised modules (also known as functors).  The first
> one used in the `lib/` layer is the IO module type, which defines the
> minimal collection of functions used by cooperative threading libraries.
> The pure HTTP core uses this IO module to capture IO-based operations, such
> as Transfer_IO (for transfer encoding).
>
> - There are three implementations that satisfy the IO module in the tree:
> Lwt, Async and String.  The first two are full cooperative threading
> libraries, and the latter is used by the js_of_ocaml backend to read/write
> between Strings.
>
> - Now that IO has been handled, we can send HTTP requests and responses
> from Lwt or Async.  However, at this point some differences appear in the
> implementations of Async and Lwt, notably in how they handle cancellation
> of threads and also higher-level iterators (e.g. Async has Pipes, and Lwt
> has Lwt_stream -- both quite different).  Therefore, we build
> backend-specific Client and Server modules that use their respective
> threading libraries in as native a style as possible, but still reusing the
> core HTTP library from `lib/`.  These can be found in `Cohttp_lwt` and
> `Cohttp_async` respectively.  Dave Scott also wrote an (as yet not merged)
> POSIX blocking version that they use in the XenAPI daemon.
>
> - Lwt comes with an additional twist -- it is portable to both Unix *and*
> the MirageOS, which has no Unix at all!  Lwt makes it possible to define a
> "Lwt core" that uses the portable Lwt thread abstractions, but doesn't use
> any OS-specific functionality.  Thus we can define an HTTP Client and
> Server in Cohttp_lwt, but still not tie ourself to one particular OS.  This
> Cohttp_lwt is then used by the Cohttp_lwt_unix and Cohttp_mirage backends
> to hook it into the operating system.
>
> - There's no commonality at present between Cohttp_async and Cohttp_lwt,
> but that's the topic of a design discussion at the moment.  It should be
> possible to build a common signature between the two, and Rudi Grinberg
> took a shot at this a while back.  I'm not sure that it's worth the trouble
> right now.
>
> - Andy Ray did something interesting with the Lwt backend: he ported it to
> JavaScript by implementing an IO backend that marshals the requests to and
> from strings.  This allows REST API users built over Cohttp (such as
> ocaml-github) to compile to pure JavaScript as well.
>
> Drawbacks:
>
> - The heavy use of functors does make it hard to navigate the 'end user'
> API, even though those interfaces never expose any functors (for instance,
> you just use Cohttp_lwt_unix directly in most cases). This is a drawback of
> current OCaml tooling, and Merlin (for IDEs) and Codoc (for
> cross-referenced documentation) will fix this soon.
>
> - A bigger problem that needs to be addressed in Cohttp2 is body handling,
> which we basically got wrong in this iteration.  The Body module is not
> idempotent, so to_string does not always return the same value if called
> multiple times.  The caller can currently be careful, but this is just an
> awful part of the API.  There are enough users of Cohttp that we'll leave
> it for 1.0, but hopefully fix it quite rapidly for 2.0.
>
> - Cohttp is not a complete HTTP client, and doesn't implement the full
> logic for redirections, loop detection and so on.  That's the job of a
> library built over it, and there is some nascent code in opam-mirror that
> can do this [1].  Before building this, David Sheets and I want to look at
> some of the more larger API clients built using it (such as Vincent
> Bernardoff's BitStamp API [2]) and take a shot at a portable client API
> that will work with both Lwt and Async.
>
> So was functorising this heavily such a good idea?  I think so -- the
> litmus test is whether or not there is more than one different
> implementation for each parameterised module, and this has worked out
> particularly well for the Cohttp_lwt backend, where there are now 4 (!)
> very different implementations.
>
> Hope this helps,
> Anil
>
> [1]
> https://github.com/avsm/opam-mirror/blob/master/opam_mirror_fetch_urls.ml#L49
> [2] https://github.com/vbmithr/ocaml-bitstamp-api
>

--001a11c12bcc93ea6d05126f6de9
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Thanks for the great response Anil, and all! This is very =
useful.<div><br></div><div>Three thoughts:</div><div><br></div><div>I perso=
nally, I don&#39;t find the functor-ization that difficult. The onion is cl=
ear from navigating the source, and more clear when you make it explicit. I=
 am interested in getting unification of the client/server interfaces thoug=
h. I am writing a S3 Client for work right now. I would love to open source=
 this soon. Unfortunately, only Async users will be able to use it initiall=
y, because I am using the Async implementation of Cohttp. If there were uni=
fied interfaces, users of Mirage could also take advantage of this as soon =
as it is complete (which, I think would be so cool). My point is -- the lac=
k of those interfaces creates more work for library creators who build on t=
op of Cohttp, and thereby hurts adoption.</div><div><br></div><div>To add t=
o the onion analogy -- there&#39;s the idea of maturity (which you called o=
ut). Opposite of how an onion grows, the inner layers of Cohttp are more ma=
ture, stable and unified. It seems correct to me, to call out that the firs=
t stabs at the outer layers are intentionally *not* unified so that use cas=
es can be gathered and the actual unified interfaces created.</div><div><br=
></div><div>I would love to get a form of your email into the codebase as a=
 design document. I know it would have helped me (and is helping me) get up=
 to speed on the codebase. I would be happy to give it a stab and submit a =
pull request.</div><div><br></div><div>Trevor</div></div><div class=3D"gmai=
l_extra"><br><div class=3D"gmail_quote">On Sat, Mar 28, 2015 at 12:36 PM, A=
nil Madhavapeddy <span dir=3D"ltr">&lt;<a href=3D"mailto:anil@recoil.org" t=
arget=3D"_blank">anil@recoil.org</a>&gt;</span> wrote:<br><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex"><div style=3D"word-wrap:break-word"><span class=3D"">On 28 Ma=
r 2015, at 14:24, Trevor Smith &lt;<a href=3D"mailto:trevorsummerssmith@gma=
il.com" target=3D"_blank">trevorsummerssmith@gmail.com</a>&gt; wrote:<br><d=
iv><blockquote type=3D"cite"><br><div><div dir=3D"ltr">Hi all,<div><br></di=
v><div>I was wondering if there is a document somewhere describing why the =
different backends to cohttp don&#39;t have a unified client/server interfa=
ce? It seems like it would be such a boon for the user to be able to write =
their code but be able to choose the backends. I realize that this must hav=
e already received much discussion but am not sure where it is located.</di=
v></div></div></blockquote><br></div></span><div>Hi Trevor,</div><div><br><=
/div><div>There&#39;s no design document describing this, mainly because Co=
HTTP started as an informal bet between me and Yaron Minsky that the curren=
t design would be impossible/a bad idea.=C2=A0 The jury&#39;s still out on =
the verdict, but I don&#39;t think I&#39;ve lost yet :-)</div><div><br></di=
v><div>I wanted to build an HTTP implementation as an &quot;onion&quot;, wi=
th the portable parsing core progressively introducing I/O, and then higher=
-level abstractions for various HTTP operations.=C2=A0 Here&#39;s my descri=
ption of each layer (that eventually ought to go into a design doc in the C=
oHTTP repo to make it more accessible to newcomers to the codebase):</div><=
div><br></div><div>- The very first layer (in `lib/`) is a pure OCaml, non-=
blocking layer that handles simple parts of the HTTP protocol such as parsi=
ng requests and responses, various header parsers (e.g. cookies) and codes.=
</div><div><br></div><div>- Some layers of HTTP need some notion of I/O, an=
d so there is a set of signatures in `lib/s.mli` that defines some common m=
odule types that can be used to build parameterised modules (also known as =
functors).=C2=A0 The first one used in the `lib/` layer is the IO module ty=
pe, which defines the minimal collection of functions used by cooperative t=
hreading libraries.=C2=A0 The pure HTTP core uses this IO module to capture=
 IO-based operations, such as Transfer_IO (for transfer encoding).</div><di=
v><br></div><div>- There are three implementations that satisfy the IO modu=
le in the tree: Lwt, Async and String.=C2=A0 The first two are full coopera=
tive threading libraries, and the latter is used by the js_of_ocaml backend=
 to read/write between Strings.</div><div><br></div><div>- Now that IO has =
been handled, we can send HTTP requests and responses from Lwt or Async.=C2=
=A0 However, at this point some differences appear in the implementations o=
f Async and Lwt, notably in how they handle cancellation of threads and als=
o higher-level iterators (e.g. Async has Pipes, and Lwt has Lwt_stream -- b=
oth quite different).=C2=A0 Therefore, we build backend-specific Client and=
 Server modules that use their respective threading libraries in as native =
a style as possible, but still reusing the core HTTP library from `lib/`.=
=C2=A0 These can be found in `Cohttp_lwt` and `Cohttp_async` respectively.=
=C2=A0 Dave Scott also wrote an (as yet not merged) POSIX blocking version =
that they use in the XenAPI daemon.</div><div><br></div><div>- Lwt comes wi=
th an additional twist -- it is portable to both Unix *and* the MirageOS, w=
hich has no Unix at all!=C2=A0 Lwt makes it possible to define a &quot;Lwt =
core&quot; that uses the portable Lwt thread abstractions, but doesn&#39;t =
use any OS-specific functionality.=C2=A0 Thus we can define an HTTP Client =
and Server in Cohttp_lwt, but still not tie ourself to one particular OS.=
=C2=A0 This Cohttp_lwt is then used by the Cohttp_lwt_unix and Cohttp_mirag=
e backends to hook it into the operating system.</div><div><br></div><div>-=
 There&#39;s no commonality at present between Cohttp_async and Cohttp_lwt,=
 but that&#39;s the topic of a design discussion at the moment.=C2=A0 It sh=
ould be possible to build a common signature between the two, and Rudi Grin=
berg took a shot at this a while back.=C2=A0 I&#39;m not sure that it&#39;s=
 worth the trouble right now.</div><div><br></div><div>- Andy Ray did somet=
hing interesting with the Lwt backend: he ported it to JavaScript by implem=
enting an IO backend that marshals the requests to and from strings.=C2=A0 =
This allows REST API users built over Cohttp (such as ocaml-github) to comp=
ile to pure JavaScript as well.</div><div><br></div><div>Drawbacks:</div><d=
iv><br></div><div>- The heavy use of functors does make it hard to navigate=
 the &#39;end user&#39; API, even though those interfaces never expose any =
functors (for instance, you just use Cohttp_lwt_unix directly in most cases=
). This is a drawback of current OCaml tooling, and Merlin (for IDEs) and C=
odoc (for cross-referenced documentation) will fix this soon.</div><div><br=
></div><div>- A bigger problem that needs to be addressed in Cohttp2 is bod=
y handling, which we basically got wrong in this iteration.=C2=A0 The Body =
module is not idempotent, so to_string does not always return the same valu=
e if called multiple times.=C2=A0 The caller can currently be careful, but =
this is just an awful part of the API.=C2=A0 There are enough users of Coht=
tp that we&#39;ll leave it for 1.0, but hopefully fix it quite rapidly for =
2.0.</div><div><br></div><div>- Cohttp is not a complete HTTP client, and d=
oesn&#39;t implement the full logic for redirections, loop detection and so=
 on.=C2=A0 That&#39;s the job of a library built over it, and there is some=
 nascent code in opam-mirror that can do this [1].=C2=A0 Before building th=
is, David Sheets and I want to look at some of the more larger API clients =
built using it (such as Vincent Bernardoff&#39;s BitStamp API [2]) and take=
 a shot at a portable client API that will work with both Lwt and Async.</d=
iv><div><br></div><div>So was functorising this heavily such a good idea?=
=C2=A0 I think so -- the litmus test is whether or not there is more than o=
ne different implementation for each parameterised module, and this has wor=
ked out particularly well for the Cohttp_lwt backend, where there are now 4=
 (!) very different implementations.</div><div><br></div><div>Hope this hel=
ps,</div><div>Anil</div><div><br></div><div>[1]=C2=A0<a href=3D"https://git=
hub.com/avsm/opam-mirror/blob/master/opam_mirror_fetch_urls.ml#L49" target=
=3D"_blank">https://github.com/avsm/opam-mirror/blob/master/opam_mirror_fet=
ch_urls.ml#L49</a></div><div>[2]=C2=A0<a href=3D"https://github.com/vbmithr=
/ocaml-bitstamp-api" target=3D"_blank">https://github.com/vbmithr/ocaml-bit=
stamp-api</a></div></div></blockquote></div><br></div>

--001a11c12bcc93ea6d05126f6de9--


--===============7335685165667981698==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============7335685165667981698==--


From mirageos-devel-bounces@lists.xenproject.org Sun Mar 29 16:02:54 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 29 Mar 2015 16:02:54 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcFfp-00086p-9L; Sun, 29 Mar 2015 16:02:53 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <magnus@therning.org>) id 1YcFfn-00086f-BY
	for mirageos-devel@lists.xenproject.org; Sun, 29 Mar 2015 16:02:51 +0000
Received: from [193.109.254.147] by server-12.bemta-14.messagelabs.com id
	5C/D9-32563-A2228155; Sun, 29 Mar 2015 16:02:50 +0000
X-Env-Sender: magnus@therning.org
X-Msg-Ref: server-6.tower-27.messagelabs.com!1427644969!14019535!1
X-Originating-IP: [209.85.215.47]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 18146 invoked from network); 29 Mar 2015 16:02:49 -0000
Received: from mail-la0-f47.google.com (HELO mail-la0-f47.google.com)
	(209.85.215.47)
	by server-6.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	29 Mar 2015 16:02:49 -0000
Received: by lahp7 with SMTP id p7so82466949lah.2
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 29 Mar 2015 09:02:48 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:date:from:to:subject:message-id:mime-version
	:content-type:content-disposition:user-agent;
	bh=ofPLzZqb2bL+sPXaOIg4yigO72/9p5+x9v4a4+xz00Q=;
	b=FWUwAAVDxt8yJMu2GxcD448V6PwNKwnGU/+HyFu4beeFhtjzx+S84vSw68s1b2XbkQ
	VwDwk9PG0vA5tqrnQueG/4v0OyIG2PcWhKpjYsg0uKpS1XdRXp1TPqC/xPYT2WiSmT+u
	+N/QHe1D6vfBWqp+dXjamrv1N36rJrEUJsDtBUVqN4RpZokGzXfaEuVrHBrK+9VzB8AI
	cOFY4MaVZu3v5O/V2zVsvZvlVx+ux76afMb/sO+ZwnYhzacGOP45EYhqV09OfLsLMKvG
	sc3FOcaeGnnZaK5cuy+5MB57qPbHw6mczPQOSd42SqG/sLLiWJRHnN8m2oNW0wGK6EFe
	vC6A==
X-Gm-Message-State: ALoCoQlqtgPXbDHZVVh6YelGWI7L5Nj4mQpRcgCi8YEcRqGEYX3j0qoCATQbmNzfbWDdHr8VWRmW
X-Received: by 10.152.4.104 with SMTP id j8mr5782277laj.72.1427644968892;
	Sun, 29 Mar 2015 09:02:48 -0700 (PDT)
Received: from tatooine (c83-248-178-110.bredband.comhem.se. [83.248.178.110])
	by mx.google.com with ESMTPSA id
	s7sm1482626las.44.2015.03.29.09.02.47
	for <mirageos-devel@lists.xenproject.org>
	(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Sun, 29 Mar 2015 09:02:47 -0700 (PDT)
Date: Sun, 29 Mar 2015 18:02:45 +0200
From: Magnus Therning <magnus@therning.org>
To: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Message-ID: <20150329160245.GA5672@tatooine>
MIME-Version: 1.0
User-Agent: Mutt/1.5.23 (2014-03-12)
Subject: [MirageOS-devel] mirage-www on xen and networking (on ARM)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2980537696293651060=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============2980537696293651060==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="PEIAKu/WMn1b1Hv9"
Content-Disposition: inline


--PEIAKu/WMn1b1Hv9
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I've finally managed to set up an ARM system that can compile
successfully (based on the pre-built image with swap added and an NTP
client installed).  Compiling for unix now works perfectly fine,
albeit a bit slow.

The next step was to get mirage-www into a xen image.  I've
succesfully built and started the following two configurations:

    MODE=3Dxen FS=3Dcrunch NET=3Ddirect DHCP=3Dtrue PORT=3D80
    MODE=3Dxen FS=3Dcrunch DEPLOY=3Dtrue ADDR=3D192.168.0.21 MASK=3D255.255=
=2E255.0 GWS=3D192.168.0.1 PORT=3D80

In both cases I've modified www.xl to contain

    vif =3D [ 'bridge=3Dxenbr0' ]

In both cases the VM comes up just fine, when using DCHP it gets an IP
without issues.  Then, when sitting there waiting for a connection I
get this on the console:

    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed

# When using DHCP

The DHCP setup works fine (I think):

    Sending DHCP broadcast (length 552)
    DHCP response:
    input ciaddr 0.0.0.0 yiaddr 192.168.0.21
    siaddr 192.168.0.1 giaddr 0.0.0.0
    chaddr 00163e2f813700000000000000000000 sname  file=20
    DHCP: offer received
                        IPv4: 192.168.0.21
                                          Netmask: 255.255.255.0
                                                                Gateways: [=
192.168.0.1]
     sg:true gso_tcpv4:true rx_copy:true rx_flip:false smart_poll:false
    ARP: sending gratuitous from 192.168.0.21
    DHCP offer received and bound to 192.168.0.21 nm 255.255.255.0 gw [192.=
168.0.1]
    Manager: configuration done
    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed
    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed
    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed
    ARP responding to: who-has 192.168.0.21?
    ARP: transmitting probe -> 192.168.0.11
    ARP: updating 192.168.0.11 -> 00:c2:c6:0f:72:dd

When making a request to 192.168.0.21 I get a bit of a response, but not a =
full
one and the console is filled with stuff like this:

    200 GET /
    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed
    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed
    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed
    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed
    TCP retransmission on timer seq =3D 452908524
    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed
    TCP retransmission on timer seq =3D 452908524
    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed
    TCP retransmission on timer seq =3D 452908524
    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed
    TCP retransmission on timer seq =3D 452908524
    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed
    TCP retransmission on timer seq =3D 452908524
    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed
    ARP responding to: who-has 192.168.0.21?

Clearly I'm doing something wrong here, but what?  Any and all suggestions =
are
welcome.

/M

--=20
Magnus Therning                      OpenPGP: 0xAB4DFBA4=20
email: magnus@therning.org   jabber: magnus@therning.org
twitter: magthe               http://therning.org/magnus

The ultimate goal of all computer science is the program.  The
performance of programs was once the noblest function of computer
science, and computer science was indispensable to great programs.
Today, programming and computer science exist in complacent isolation,
and can be [rescued only] by conscious co=F6peration and collaboration
of all programmers.

--PEIAKu/WMn1b1Hv9
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iEYEABECAAYFAlUYIh8ACgkQiMWTaatN+6T1jwCeMcKNJjy8NHGeWbbDHU8JX5Mz
dOsAnR5MHakQr3gbvFCv4duje4X1xpR/
=lX+n
-----END PGP SIGNATURE-----

--PEIAKu/WMn1b1Hv9--


--===============2980537696293651060==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============2980537696293651060==--


From mirageos-devel-bounces@lists.xenproject.org Sun Mar 29 16:02:54 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 29 Mar 2015 16:02:54 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcFfp-00086p-9L; Sun, 29 Mar 2015 16:02:53 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <magnus@therning.org>) id 1YcFfn-00086f-BY
	for mirageos-devel@lists.xenproject.org; Sun, 29 Mar 2015 16:02:51 +0000
Received: from [193.109.254.147] by server-12.bemta-14.messagelabs.com id
	5C/D9-32563-A2228155; Sun, 29 Mar 2015 16:02:50 +0000
X-Env-Sender: magnus@therning.org
X-Msg-Ref: server-6.tower-27.messagelabs.com!1427644969!14019535!1
X-Originating-IP: [209.85.215.47]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 18146 invoked from network); 29 Mar 2015 16:02:49 -0000
Received: from mail-la0-f47.google.com (HELO mail-la0-f47.google.com)
	(209.85.215.47)
	by server-6.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	29 Mar 2015 16:02:49 -0000
Received: by lahp7 with SMTP id p7so82466949lah.2
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 29 Mar 2015 09:02:48 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:date:from:to:subject:message-id:mime-version
	:content-type:content-disposition:user-agent;
	bh=ofPLzZqb2bL+sPXaOIg4yigO72/9p5+x9v4a4+xz00Q=;
	b=FWUwAAVDxt8yJMu2GxcD448V6PwNKwnGU/+HyFu4beeFhtjzx+S84vSw68s1b2XbkQ
	VwDwk9PG0vA5tqrnQueG/4v0OyIG2PcWhKpjYsg0uKpS1XdRXp1TPqC/xPYT2WiSmT+u
	+N/QHe1D6vfBWqp+dXjamrv1N36rJrEUJsDtBUVqN4RpZokGzXfaEuVrHBrK+9VzB8AI
	cOFY4MaVZu3v5O/V2zVsvZvlVx+ux76afMb/sO+ZwnYhzacGOP45EYhqV09OfLsLMKvG
	sc3FOcaeGnnZaK5cuy+5MB57qPbHw6mczPQOSd42SqG/sLLiWJRHnN8m2oNW0wGK6EFe
	vC6A==
X-Gm-Message-State: ALoCoQlqtgPXbDHZVVh6YelGWI7L5Nj4mQpRcgCi8YEcRqGEYX3j0qoCATQbmNzfbWDdHr8VWRmW
X-Received: by 10.152.4.104 with SMTP id j8mr5782277laj.72.1427644968892;
	Sun, 29 Mar 2015 09:02:48 -0700 (PDT)
Received: from tatooine (c83-248-178-110.bredband.comhem.se. [83.248.178.110])
	by mx.google.com with ESMTPSA id
	s7sm1482626las.44.2015.03.29.09.02.47
	for <mirageos-devel@lists.xenproject.org>
	(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Sun, 29 Mar 2015 09:02:47 -0700 (PDT)
Date: Sun, 29 Mar 2015 18:02:45 +0200
From: Magnus Therning <magnus@therning.org>
To: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Message-ID: <20150329160245.GA5672@tatooine>
MIME-Version: 1.0
User-Agent: Mutt/1.5.23 (2014-03-12)
Subject: [MirageOS-devel] mirage-www on xen and networking (on ARM)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2980537696293651060=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============2980537696293651060==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="PEIAKu/WMn1b1Hv9"
Content-Disposition: inline


--PEIAKu/WMn1b1Hv9
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I've finally managed to set up an ARM system that can compile
successfully (based on the pre-built image with swap added and an NTP
client installed).  Compiling for unix now works perfectly fine,
albeit a bit slow.

The next step was to get mirage-www into a xen image.  I've
succesfully built and started the following two configurations:

    MODE=3Dxen FS=3Dcrunch NET=3Ddirect DHCP=3Dtrue PORT=3D80
    MODE=3Dxen FS=3Dcrunch DEPLOY=3Dtrue ADDR=3D192.168.0.21 MASK=3D255.255=
=2E255.0 GWS=3D192.168.0.1 PORT=3D80

In both cases I've modified www.xl to contain

    vif =3D [ 'bridge=3Dxenbr0' ]

In both cases the VM comes up just fine, when using DCHP it gets an IP
without issues.  Then, when sitting there waiting for a connection I
get this on the console:

    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed

# When using DHCP

The DHCP setup works fine (I think):

    Sending DHCP broadcast (length 552)
    DHCP response:
    input ciaddr 0.0.0.0 yiaddr 192.168.0.21
    siaddr 192.168.0.1 giaddr 0.0.0.0
    chaddr 00163e2f813700000000000000000000 sname  file=20
    DHCP: offer received
                        IPv4: 192.168.0.21
                                          Netmask: 255.255.255.0
                                                                Gateways: [=
192.168.0.1]
     sg:true gso_tcpv4:true rx_copy:true rx_flip:false smart_poll:false
    ARP: sending gratuitous from 192.168.0.21
    DHCP offer received and bound to 192.168.0.21 nm 255.255.255.0 gw [192.=
168.0.1]
    Manager: configuration done
    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed
    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed
    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed
    ARP responding to: who-has 192.168.0.21?
    ARP: transmitting probe -> 192.168.0.11
    ARP: updating 192.168.0.11 -> 00:c2:c6:0f:72:dd

When making a request to 192.168.0.21 I get a bit of a response, but not a =
full
one and the console is filled with stuff like this:

    200 GET /
    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed
    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed
    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed
    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed
    TCP retransmission on timer seq =3D 452908524
    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed
    TCP retransmission on timer seq =3D 452908524
    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed
    TCP retransmission on timer seq =3D 452908524
    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed
    TCP retransmission on timer seq =3D 452908524
    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed
    TCP retransmission on timer seq =3D 452908524
    RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion failed
    ARP responding to: who-has 192.168.0.21?

Clearly I'm doing something wrong here, but what?  Any and all suggestions =
are
welcome.

/M

--=20
Magnus Therning                      OpenPGP: 0xAB4DFBA4=20
email: magnus@therning.org   jabber: magnus@therning.org
twitter: magthe               http://therning.org/magnus

The ultimate goal of all computer science is the program.  The
performance of programs was once the noblest function of computer
science, and computer science was indispensable to great programs.
Today, programming and computer science exist in complacent isolation,
and can be [rescued only] by conscious co=F6peration and collaboration
of all programmers.

--PEIAKu/WMn1b1Hv9
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iEYEABECAAYFAlUYIh8ACgkQiMWTaatN+6T1jwCeMcKNJjy8NHGeWbbDHU8JX5Mz
dOsAnR5MHakQr3gbvFCv4duje4X1xpR/
=lX+n
-----END PGP SIGNATURE-----

--PEIAKu/WMn1b1Hv9--


--===============2980537696293651060==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============2980537696293651060==--


From mirageos-devel-bounces@lists.xenproject.org Sun Mar 29 16:36:41 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 29 Mar 2015 16:36:41 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcGCV-0003Rs-JG; Sun, 29 Mar 2015 16:36:39 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <scott.dj@gmail.com>) id 1YcGCU-0003Rn-Te
	for mirageos-devel@lists.xenproject.org; Sun, 29 Mar 2015 16:36:39 +0000
Received: from [193.109.254.147] by server-12.bemta-14.messagelabs.com id
	6F/35-32563-61A28155; Sun, 29 Mar 2015 16:36:38 +0000
X-Env-Sender: scott.dj@gmail.com
X-Msg-Ref: server-12.tower-27.messagelabs.com!1427646994!14046665!1
X-Originating-IP: [209.85.192.170]
X-SpamReason: No, hits=0.4 required=7.0 tests=HTML_30_40,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 2693 invoked from network); 29 Mar 2015 16:36:35 -0000
Received: from mail-pd0-f170.google.com (HELO mail-pd0-f170.google.com)
	(209.85.192.170)
	by server-12.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	29 Mar 2015 16:36:35 -0000
Received: by pdnc3 with SMTP id c3so150442770pdn.0
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 29 Mar 2015 09:36:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=xQUroi7/79drylmWLgNm+nwDkfknV2QIsuCCRgvcLqM=;
	b=PnPFfqnES8KqWjQOEgjhzDqjRxb3BoLcAjw6iAH3cc7UwDy4eBT+zsDszLWX+H1o2U
	yniBgrvupDy10lQ4elBi/tfBF2XQ7fnWZR4EBMjopQpXsuefg56zZKGuXTX6XddZ35dN
	mqOv74REp21/9fA7oQYs4VHxUEEr2nhBXqoiuqGTPPcUCfc5SLdrlMidMqc62er4t1FM
	djY5xgUDNRMJRFaTE51+2xI7QOM0sksya8F1VeiyRqHlwR4KIcfMT3tau3HNst5cQ6NU
	fslQqs+LXcdfHGu/xYZH3k9sBR+CBePy5xF681KJKADjA2fZxqXXWojCLFA+fCPRFp4L
	CuoA==
MIME-Version: 1.0
X-Received: by 10.70.92.67 with SMTP id ck3mr3094071pdb.165.1427646994042;
	Sun, 29 Mar 2015 09:36:34 -0700 (PDT)
Received: by 10.70.102.205 with HTTP; Sun, 29 Mar 2015 09:36:33 -0700 (PDT)
In-Reply-To: <20150329160245.GA5672@tatooine>
References: <20150329160245.GA5672@tatooine>
Date: Sun, 29 Mar 2015 17:36:33 +0100
Message-ID: <CAG_esB01YmTnyy1NviDhB8f4Pr8T+PaHCV0N-kqrJVyydSZrvg@mail.gmail.com>
From: David Scott <scott.dj@gmail.com>
To: Magnus Therning <magnus@therning.org>
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] mirage-www on xen and networking (on ARM)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============6537719294286544350=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============6537719294286544350==
Content-Type: multipart/alternative; boundary=001a11c233f6f1d74e05126ff742

--001a11c233f6f1d74e05126ff742
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Sun, Mar 29, 2015 at 5:02 PM, Magnus Therning <magnus@therning.org>
wrote:

> I've finally managed to set up an ARM system that can compile
> successfully (based on the pre-built image with swap added and an NTP
> client installed).  Compiling for unix now works perfectly fine,
> albeit a bit slow.
>
> The next step was to get mirage-www into a xen image.  I've
> succesfully built and started the following two configurations:
>
>     MODE=3Dxen FS=3Dcrunch NET=3Ddirect DHCP=3Dtrue PORT=3D80
>     MODE=3Dxen FS=3Dcrunch DEPLOY=3Dtrue ADDR=3D192.168.0.21 MASK=3D255.2=
55.255.0
> GWS=3D192.168.0.1 PORT=3D80
>
> In both cases I've modified www.xl to contain
>
>     vif =3D [ 'bridge=3Dxenbr0' ]
>
> In both cases the VM comes up just fine, when using DCHP it gets an IP
> without issues.  Then, when sitting there waiting for a connection I
> get this on the console:
>
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>

Assuming you're using the v2.3.0 release (IIRC v2.4.0 hasn't been merged
yet), then this is the assert:

  let input t ~tcp ~udp ~default buf =3D
    (* buf pointers to start of IPv4 header here *)
    let ihl =3D (Wire_structs.Ipv4_wire.get_ipv4_hlen_version buf land 0xf)=
 *
4 in
    let src =3D Ipaddr.V4.of_int32 (Wire_structs.Ipv4_wire.get_ipv4_src buf=
)
in
    let dst =3D Ipaddr.V4.of_int32 (Wire_structs.Ipv4_wire.get_ipv4_dst buf=
)
in
    let payload_len =3D Wire_structs.Ipv4_wire.get_ipv4_len buf - ihl in
    (* XXX this will raise exception for 0-length payload *)
    let hdr, data =3D Cstruct.split buf ihl in
    assert (Cstruct.len data =3D payload_len);
    let proto =3D Wire_structs.Ipv4_wire.get_ipv4_proto buf in
    match Wire_structs.Ipv4_wire.int_to_protocol proto with
    | Some `ICMP -> icmp_input t src hdr data
    | Some `TCP  -> tcp ~src ~dst data
    | Some `UDP  -> udp ~src ~dst data
    | None       -> default ~proto ~src ~dst data

So it looks like you're receiving truncated IP frames. It would be helpful
to know what the frames actually are-- could you do something like:

git clone git://github.com/mirage/mirage-tcpip
cd mirage-tcpip
git checkout v2.3.0

perhaps change the assert into something like

if Cstruct.len data <> payload_len then begin
  printf "argh, it's all broken! len =3D %d payload_len =3D %d\n" (Cstruct.=
len
data) payload_len;
  Cstruct.hexdump buf;
end

(quoting the Cstruct manual:
 " when the going gets tough, the tough hexdump their cstructs
    and peer at it until the bug disappears.  This will directly
    prettyprint the contents of the cstruct to the standard output. ")

opam pin add tcpip .

.. and then rebuild your app with the new code.

[ snip ]

>     DHCP: offer received
>                         IPv4: 192.168.0.21
>                                           Netmask: 255.255.255.0
>                                                                 Gateways:
> [192.168.0.1]
>      sg:true gso_tcpv4:true rx_copy:true rx_flip:false smart_poll:false
>     ARP: sending gratuitous from 192.168.0.21
>     DHCP offer received and bound to 192.168.0.21 nm 255.255.255.0 gw
> [192.168.0.1]
>

It's obviously not all bad, since some networking is working!


>     Manager: configuration done
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>     ARP responding to: who-has 192.168.0.21?
>     ARP: transmitting probe -> 192.168.0.11
>     ARP: updating 192.168.0.11 -> 00:c2:c6:0f:72:dd
>
> When making a request to 192.168.0.21 I get a bit of a response, but not =
a
> full
> one and the console is filled with stuff like this:
>
>     200 GET /
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>     TCP retransmission on timer seq =3D 452908524
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>     TCP retransmission on timer seq =3D 452908524
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>     TCP retransmission on timer seq =3D 452908524
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>     TCP retransmission on timer seq =3D 452908524
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>     TCP retransmission on timer seq =3D 452908524
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>     ARP responding to: who-has 192.168.0.21?
>
> Clearly I'm doing something wrong here, but what?  Any and all suggestion=
s
> are
> welcome.
>

I don't think the assert failures are your fault ;-)

Cheers,
Dave


>
> /M
>
> --
> Magnus Therning                      OpenPGP: 0xAB4DFBA4
> email: magnus@therning.org   jabber: magnus@therning.org
> twitter: magthe               http://therning.org/magnus
>
> The ultimate goal of all computer science is the program.  The
> performance of programs was once the noblest function of computer
> science, and computer science was indispensable to great programs.
> Today, programming and computer science exist in complacent isolation,
> and can be [rescued only] by conscious co=C3=B6peration and collaboration
> of all programmers.
>
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>
>

--=20
Dave Scott

--001a11c233f6f1d74e05126ff742
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Sun, Mar 29, 2015 at 5:02 PM, Magnus Therning <span dir=3D"ltr">&lt;=
<a href=3D"mailto:magnus@therning.org" target=3D"_blank">magnus@therning.or=
g</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margi=
n:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204=
);border-left-style:solid;padding-left:1ex">I&#39;ve finally managed to set=
 up an ARM system that can compile<br>
successfully (based on the pre-built image with swap added and an NTP<br>
client installed).=C2=A0 Compiling for unix now works perfectly fine,<br>
albeit a bit slow.<br>
<br>
The next step was to get mirage-www into a xen image.=C2=A0 I&#39;ve<br>
succesfully built and started the following two configurations:<br>
<br>
=C2=A0 =C2=A0 MODE=3Dxen FS=3Dcrunch NET=3Ddirect DHCP=3Dtrue PORT=3D80<br>
=C2=A0 =C2=A0 MODE=3Dxen FS=3Dcrunch DEPLOY=3Dtrue ADDR=3D192.168.0.21 MASK=
=3D255.255.255.0 GWS=3D192.168.0.1 PORT=3D80<br>
<br>
In both cases I&#39;ve modified www.xl to contain<br>
<br>
=C2=A0 =C2=A0 vif =3D [ &#39;bridge=3Dxenbr0&#39; ]<br>
<br>
In both cases the VM comes up just fine, when using DCHP it gets an IP<br>
without issues.=C2=A0 Then, when sitting there waiting for a connection I<b=
r>
get this on the console:<br>
<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br></b=
lockquote><div><br></div><div>Assuming you&#39;re using the v2.3.0 release =
(IIRC v2.4.0 hasn&#39;t been merged yet), then this is the assert:</div><di=
v><br></div><div><div>=C2=A0 let input t ~tcp ~udp ~default buf =3D</div><d=
iv>=C2=A0 =C2=A0 (* buf pointers to start of IPv4 header here *)</div><div>=
=C2=A0 =C2=A0 let ihl =3D (Wire_structs.Ipv4_wire.get_ipv4_hlen_version buf=
 land 0xf) * 4 in</div><div>=C2=A0 =C2=A0 let src =3D Ipaddr.V4.of_int32 (W=
ire_structs.Ipv4_wire.get_ipv4_src buf) in</div><div>=C2=A0 =C2=A0 let dst =
=3D Ipaddr.V4.of_int32 (Wire_structs.Ipv4_wire.get_ipv4_dst buf) in</div><d=
iv>=C2=A0 =C2=A0 let payload_len =3D Wire_structs.Ipv4_wire.get_ipv4_len bu=
f - ihl in</div><div>=C2=A0 =C2=A0 (* XXX this will raise exception for 0-l=
ength payload *)</div><div>=C2=A0 =C2=A0 let hdr, data =3D Cstruct.split bu=
f ihl in</div><div>=C2=A0 =C2=A0 assert (Cstruct.len data =3D payload_len);=
</div><div>=C2=A0 =C2=A0 let proto =3D Wire_structs.Ipv4_wire.get_ipv4_prot=
o buf in</div><div>=C2=A0 =C2=A0 match Wire_structs.Ipv4_wire.int_to_protoc=
ol proto with</div><div>=C2=A0 =C2=A0 | Some `ICMP -&gt; icmp_input t src h=
dr data</div><div>=C2=A0 =C2=A0 | Some `TCP =C2=A0-&gt; tcp ~src ~dst data<=
/div><div>=C2=A0 =C2=A0 | Some `UDP =C2=A0-&gt; udp ~src ~dst data</div><di=
v>=C2=A0 =C2=A0 | None =C2=A0 =C2=A0 =C2=A0 -&gt; default ~proto ~src ~dst =
data</div></div><div><br></div><div>So it looks like you&#39;re receiving t=
runcated IP frames. It would be helpful to know what the frames actually ar=
e-- could you do something like:</div><div><br></div><div>git clone git://<=
a href=3D"http://github.com/mirage/mirage-tcpip">github.com/mirage/mirage-t=
cpip</a></div><div>cd mirage-tcpip</div><div>git checkout v2.3.0</div><div>=
<br></div><div>perhaps change the assert into something like</div><div><br>=
</div><div>if Cstruct.len data &lt;&gt; payload_len then begin</div><div>=
=C2=A0 printf &quot;argh, it&#39;s all broken! len =3D %d payload_len =3D %=
d\n&quot; (Cstruct.len data) payload_len;</div><div>=C2=A0 Cstruct.hexdump =
buf;</div><div>end</div><div><br></div><div>(quoting the Cstruct manual:</d=
iv><div>=C2=A0&quot; when the going gets tough, the tough hexdump their cst=
ructs</div><div>=C2=A0 =C2=A0 and peer at it until the bug disappears.=C2=
=A0 This will directly</div><div>=C2=A0 =C2=A0 prettyprint the contents of =
the cstruct to the standard output. &quot;)</div><div><br></div><div>opam p=
in add tcpip .</div><div><br></div><div>.. and then rebuild your app with t=
he new code.</div><div><br></div><div>[ snip ]=C2=A0</div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;bo=
rder-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
=C2=A0 =C2=A0 DHCP: offer received<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 IPv4: 192.168.0.21<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 N=
etmask: 255.255.255.0<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 Gateways: [192.168.0.1]<br>
=C2=A0 =C2=A0 =C2=A0sg:true gso_tcpv4:true rx_copy:true rx_flip:false smart=
_poll:false<br>
=C2=A0 =C2=A0 ARP: sending gratuitous from 192.168.0.21<br>
=C2=A0 =C2=A0 DHCP offer received and bound to 192.168.0.21 nm 255.255.255.=
0 gw [192.168.0.1]<br></blockquote><div><br></div><div>It&#39;s obviously n=
ot all bad, since some networking is working!</div><div>=C2=A0</div><blockq=
uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-wi=
dth:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-=
left:1ex">
=C2=A0 =C2=A0 Manager: configuration done<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br>
=C2=A0 =C2=A0 ARP responding to: who-has 192.168.0.21?<br>
=C2=A0 =C2=A0 ARP: transmitting probe -&gt; 192.168.0.11<br>
=C2=A0 =C2=A0 ARP: updating 192.168.0.11 -&gt; 00:c2:c6:0f:72:dd<br>
<br>
When making a request to 192.168.0.21 I get a bit of a response, but not a =
full<br>
one and the console is filled with stuff like this:<br>
<br>
=C2=A0 =C2=A0 200 GET /<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br>
=C2=A0 =C2=A0 TCP retransmission on timer seq =3D 452908524<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br>
=C2=A0 =C2=A0 TCP retransmission on timer seq =3D 452908524<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br>
=C2=A0 =C2=A0 TCP retransmission on timer seq =3D 452908524<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br>
=C2=A0 =C2=A0 TCP retransmission on timer seq =3D 452908524<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br>
=C2=A0 =C2=A0 TCP retransmission on timer seq =3D 452908524<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br>
=C2=A0 =C2=A0 ARP responding to: who-has 192.168.0.21?<br>
<br>
Clearly I&#39;m doing something wrong here, but what?=C2=A0 Any and all sug=
gestions are<br>
welcome.<br></blockquote><div><br></div><div>I don&#39;t think the assert f=
ailures are your fault ;-)</div><div><br></div><div>Cheers,</div><div>Dave<=
/div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px=
 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);bor=
der-left-style:solid;padding-left:1ex">
<span class=3D""><font color=3D"#888888"><br>
/M<br>
<br>
--<br>
Magnus Therning=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 OpenPGP: 0xAB4DFBA4<br>
email: <a href=3D"mailto:magnus@therning.org">magnus@therning.org</a>=C2=A0=
 =C2=A0jabber: <a href=3D"mailto:magnus@therning.org">magnus@therning.org</=
a><br>
twitter: magthe=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<a hr=
ef=3D"http://therning.org/magnus" target=3D"_blank">http://therning.org/mag=
nus</a><br>
<br>
The ultimate goal of all computer science is the program.=C2=A0 The<br>
performance of programs was once the noblest function of computer<br>
science, and computer science was indispensable to great programs.<br>
Today, programming and computer science exist in complacent isolation,<br>
and can be [rescued only] by conscious co=C3=B6peration and collaboration<b=
r>
of all programmers.<br>
</font></span><br>_______________________________________________<br>
MirageOS-devel mailing list<br>
<a href=3D"mailto:MirageOS-devel@lists.xenproject.org">MirageOS-devel@lists=
.xenproject.org</a><br>
<a href=3D"http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-de=
vel" target=3D"_blank">http://lists.xenproject.org/cgi-bin/mailman/listinfo=
/mirageos-devel</a><br>
<br></blockquote></div><br clear=3D"all"><div><br></div>-- <br><div class=
=3D"gmail_signature">Dave Scott</div>
</div></div>

--001a11c233f6f1d74e05126ff742--


--===============6537719294286544350==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============6537719294286544350==--


From mirageos-devel-bounces@lists.xenproject.org Sun Mar 29 16:36:41 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 29 Mar 2015 16:36:41 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcGCV-0003Rs-JG; Sun, 29 Mar 2015 16:36:39 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <scott.dj@gmail.com>) id 1YcGCU-0003Rn-Te
	for mirageos-devel@lists.xenproject.org; Sun, 29 Mar 2015 16:36:39 +0000
Received: from [193.109.254.147] by server-12.bemta-14.messagelabs.com id
	6F/35-32563-61A28155; Sun, 29 Mar 2015 16:36:38 +0000
X-Env-Sender: scott.dj@gmail.com
X-Msg-Ref: server-12.tower-27.messagelabs.com!1427646994!14046665!1
X-Originating-IP: [209.85.192.170]
X-SpamReason: No, hits=0.4 required=7.0 tests=HTML_30_40,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 2693 invoked from network); 29 Mar 2015 16:36:35 -0000
Received: from mail-pd0-f170.google.com (HELO mail-pd0-f170.google.com)
	(209.85.192.170)
	by server-12.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	29 Mar 2015 16:36:35 -0000
Received: by pdnc3 with SMTP id c3so150442770pdn.0
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 29 Mar 2015 09:36:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=xQUroi7/79drylmWLgNm+nwDkfknV2QIsuCCRgvcLqM=;
	b=PnPFfqnES8KqWjQOEgjhzDqjRxb3BoLcAjw6iAH3cc7UwDy4eBT+zsDszLWX+H1o2U
	yniBgrvupDy10lQ4elBi/tfBF2XQ7fnWZR4EBMjopQpXsuefg56zZKGuXTX6XddZ35dN
	mqOv74REp21/9fA7oQYs4VHxUEEr2nhBXqoiuqGTPPcUCfc5SLdrlMidMqc62er4t1FM
	djY5xgUDNRMJRFaTE51+2xI7QOM0sksya8F1VeiyRqHlwR4KIcfMT3tau3HNst5cQ6NU
	fslQqs+LXcdfHGu/xYZH3k9sBR+CBePy5xF681KJKADjA2fZxqXXWojCLFA+fCPRFp4L
	CuoA==
MIME-Version: 1.0
X-Received: by 10.70.92.67 with SMTP id ck3mr3094071pdb.165.1427646994042;
	Sun, 29 Mar 2015 09:36:34 -0700 (PDT)
Received: by 10.70.102.205 with HTTP; Sun, 29 Mar 2015 09:36:33 -0700 (PDT)
In-Reply-To: <20150329160245.GA5672@tatooine>
References: <20150329160245.GA5672@tatooine>
Date: Sun, 29 Mar 2015 17:36:33 +0100
Message-ID: <CAG_esB01YmTnyy1NviDhB8f4Pr8T+PaHCV0N-kqrJVyydSZrvg@mail.gmail.com>
From: David Scott <scott.dj@gmail.com>
To: Magnus Therning <magnus@therning.org>
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] mirage-www on xen and networking (on ARM)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============6537719294286544350=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============6537719294286544350==
Content-Type: multipart/alternative; boundary=001a11c233f6f1d74e05126ff742

--001a11c233f6f1d74e05126ff742
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Sun, Mar 29, 2015 at 5:02 PM, Magnus Therning <magnus@therning.org>
wrote:

> I've finally managed to set up an ARM system that can compile
> successfully (based on the pre-built image with swap added and an NTP
> client installed).  Compiling for unix now works perfectly fine,
> albeit a bit slow.
>
> The next step was to get mirage-www into a xen image.  I've
> succesfully built and started the following two configurations:
>
>     MODE=3Dxen FS=3Dcrunch NET=3Ddirect DHCP=3Dtrue PORT=3D80
>     MODE=3Dxen FS=3Dcrunch DEPLOY=3Dtrue ADDR=3D192.168.0.21 MASK=3D255.2=
55.255.0
> GWS=3D192.168.0.1 PORT=3D80
>
> In both cases I've modified www.xl to contain
>
>     vif =3D [ 'bridge=3Dxenbr0' ]
>
> In both cases the VM comes up just fine, when using DCHP it gets an IP
> without issues.  Then, when sitting there waiting for a connection I
> get this on the console:
>
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>

Assuming you're using the v2.3.0 release (IIRC v2.4.0 hasn't been merged
yet), then this is the assert:

  let input t ~tcp ~udp ~default buf =3D
    (* buf pointers to start of IPv4 header here *)
    let ihl =3D (Wire_structs.Ipv4_wire.get_ipv4_hlen_version buf land 0xf)=
 *
4 in
    let src =3D Ipaddr.V4.of_int32 (Wire_structs.Ipv4_wire.get_ipv4_src buf=
)
in
    let dst =3D Ipaddr.V4.of_int32 (Wire_structs.Ipv4_wire.get_ipv4_dst buf=
)
in
    let payload_len =3D Wire_structs.Ipv4_wire.get_ipv4_len buf - ihl in
    (* XXX this will raise exception for 0-length payload *)
    let hdr, data =3D Cstruct.split buf ihl in
    assert (Cstruct.len data =3D payload_len);
    let proto =3D Wire_structs.Ipv4_wire.get_ipv4_proto buf in
    match Wire_structs.Ipv4_wire.int_to_protocol proto with
    | Some `ICMP -> icmp_input t src hdr data
    | Some `TCP  -> tcp ~src ~dst data
    | Some `UDP  -> udp ~src ~dst data
    | None       -> default ~proto ~src ~dst data

So it looks like you're receiving truncated IP frames. It would be helpful
to know what the frames actually are-- could you do something like:

git clone git://github.com/mirage/mirage-tcpip
cd mirage-tcpip
git checkout v2.3.0

perhaps change the assert into something like

if Cstruct.len data <> payload_len then begin
  printf "argh, it's all broken! len =3D %d payload_len =3D %d\n" (Cstruct.=
len
data) payload_len;
  Cstruct.hexdump buf;
end

(quoting the Cstruct manual:
 " when the going gets tough, the tough hexdump their cstructs
    and peer at it until the bug disappears.  This will directly
    prettyprint the contents of the cstruct to the standard output. ")

opam pin add tcpip .

.. and then rebuild your app with the new code.

[ snip ]

>     DHCP: offer received
>                         IPv4: 192.168.0.21
>                                           Netmask: 255.255.255.0
>                                                                 Gateways:
> [192.168.0.1]
>      sg:true gso_tcpv4:true rx_copy:true rx_flip:false smart_poll:false
>     ARP: sending gratuitous from 192.168.0.21
>     DHCP offer received and bound to 192.168.0.21 nm 255.255.255.0 gw
> [192.168.0.1]
>

It's obviously not all bad, since some networking is working!


>     Manager: configuration done
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>     ARP responding to: who-has 192.168.0.21?
>     ARP: transmitting probe -> 192.168.0.11
>     ARP: updating 192.168.0.11 -> 00:c2:c6:0f:72:dd
>
> When making a request to 192.168.0.21 I get a bit of a response, but not =
a
> full
> one and the console is filled with stuff like this:
>
>     200 GET /
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>     TCP retransmission on timer seq =3D 452908524
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>     TCP retransmission on timer seq =3D 452908524
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>     TCP retransmission on timer seq =3D 452908524
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>     TCP retransmission on timer seq =3D 452908524
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>     TCP retransmission on timer seq =3D 452908524
>     RX exn File "lib/ipv4.ml", line 181, characters 4-10: Assertion faile=
d
>     ARP responding to: who-has 192.168.0.21?
>
> Clearly I'm doing something wrong here, but what?  Any and all suggestion=
s
> are
> welcome.
>

I don't think the assert failures are your fault ;-)

Cheers,
Dave


>
> /M
>
> --
> Magnus Therning                      OpenPGP: 0xAB4DFBA4
> email: magnus@therning.org   jabber: magnus@therning.org
> twitter: magthe               http://therning.org/magnus
>
> The ultimate goal of all computer science is the program.  The
> performance of programs was once the noblest function of computer
> science, and computer science was indispensable to great programs.
> Today, programming and computer science exist in complacent isolation,
> and can be [rescued only] by conscious co=C3=B6peration and collaboration
> of all programmers.
>
> _______________________________________________
> MirageOS-devel mailing list
> MirageOS-devel@lists.xenproject.org
> http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel
>
>

--=20
Dave Scott

--001a11c233f6f1d74e05126ff742
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Sun, Mar 29, 2015 at 5:02 PM, Magnus Therning <span dir=3D"ltr">&lt;=
<a href=3D"mailto:magnus@therning.org" target=3D"_blank">magnus@therning.or=
g</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margi=
n:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204=
);border-left-style:solid;padding-left:1ex">I&#39;ve finally managed to set=
 up an ARM system that can compile<br>
successfully (based on the pre-built image with swap added and an NTP<br>
client installed).=C2=A0 Compiling for unix now works perfectly fine,<br>
albeit a bit slow.<br>
<br>
The next step was to get mirage-www into a xen image.=C2=A0 I&#39;ve<br>
succesfully built and started the following two configurations:<br>
<br>
=C2=A0 =C2=A0 MODE=3Dxen FS=3Dcrunch NET=3Ddirect DHCP=3Dtrue PORT=3D80<br>
=C2=A0 =C2=A0 MODE=3Dxen FS=3Dcrunch DEPLOY=3Dtrue ADDR=3D192.168.0.21 MASK=
=3D255.255.255.0 GWS=3D192.168.0.1 PORT=3D80<br>
<br>
In both cases I&#39;ve modified www.xl to contain<br>
<br>
=C2=A0 =C2=A0 vif =3D [ &#39;bridge=3Dxenbr0&#39; ]<br>
<br>
In both cases the VM comes up just fine, when using DCHP it gets an IP<br>
without issues.=C2=A0 Then, when sitting there waiting for a connection I<b=
r>
get this on the console:<br>
<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br></b=
lockquote><div><br></div><div>Assuming you&#39;re using the v2.3.0 release =
(IIRC v2.4.0 hasn&#39;t been merged yet), then this is the assert:</div><di=
v><br></div><div><div>=C2=A0 let input t ~tcp ~udp ~default buf =3D</div><d=
iv>=C2=A0 =C2=A0 (* buf pointers to start of IPv4 header here *)</div><div>=
=C2=A0 =C2=A0 let ihl =3D (Wire_structs.Ipv4_wire.get_ipv4_hlen_version buf=
 land 0xf) * 4 in</div><div>=C2=A0 =C2=A0 let src =3D Ipaddr.V4.of_int32 (W=
ire_structs.Ipv4_wire.get_ipv4_src buf) in</div><div>=C2=A0 =C2=A0 let dst =
=3D Ipaddr.V4.of_int32 (Wire_structs.Ipv4_wire.get_ipv4_dst buf) in</div><d=
iv>=C2=A0 =C2=A0 let payload_len =3D Wire_structs.Ipv4_wire.get_ipv4_len bu=
f - ihl in</div><div>=C2=A0 =C2=A0 (* XXX this will raise exception for 0-l=
ength payload *)</div><div>=C2=A0 =C2=A0 let hdr, data =3D Cstruct.split bu=
f ihl in</div><div>=C2=A0 =C2=A0 assert (Cstruct.len data =3D payload_len);=
</div><div>=C2=A0 =C2=A0 let proto =3D Wire_structs.Ipv4_wire.get_ipv4_prot=
o buf in</div><div>=C2=A0 =C2=A0 match Wire_structs.Ipv4_wire.int_to_protoc=
ol proto with</div><div>=C2=A0 =C2=A0 | Some `ICMP -&gt; icmp_input t src h=
dr data</div><div>=C2=A0 =C2=A0 | Some `TCP =C2=A0-&gt; tcp ~src ~dst data<=
/div><div>=C2=A0 =C2=A0 | Some `UDP =C2=A0-&gt; udp ~src ~dst data</div><di=
v>=C2=A0 =C2=A0 | None =C2=A0 =C2=A0 =C2=A0 -&gt; default ~proto ~src ~dst =
data</div></div><div><br></div><div>So it looks like you&#39;re receiving t=
runcated IP frames. It would be helpful to know what the frames actually ar=
e-- could you do something like:</div><div><br></div><div>git clone git://<=
a href=3D"http://github.com/mirage/mirage-tcpip">github.com/mirage/mirage-t=
cpip</a></div><div>cd mirage-tcpip</div><div>git checkout v2.3.0</div><div>=
<br></div><div>perhaps change the assert into something like</div><div><br>=
</div><div>if Cstruct.len data &lt;&gt; payload_len then begin</div><div>=
=C2=A0 printf &quot;argh, it&#39;s all broken! len =3D %d payload_len =3D %=
d\n&quot; (Cstruct.len data) payload_len;</div><div>=C2=A0 Cstruct.hexdump =
buf;</div><div>end</div><div><br></div><div>(quoting the Cstruct manual:</d=
iv><div>=C2=A0&quot; when the going gets tough, the tough hexdump their cst=
ructs</div><div>=C2=A0 =C2=A0 and peer at it until the bug disappears.=C2=
=A0 This will directly</div><div>=C2=A0 =C2=A0 prettyprint the contents of =
the cstruct to the standard output. &quot;)</div><div><br></div><div>opam p=
in add tcpip .</div><div><br></div><div>.. and then rebuild your app with t=
he new code.</div><div><br></div><div>[ snip ]=C2=A0</div><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;bo=
rder-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
=C2=A0 =C2=A0 DHCP: offer received<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 IPv4: 192.168.0.21<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 N=
etmask: 255.255.255.0<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 Gateways: [192.168.0.1]<br>
=C2=A0 =C2=A0 =C2=A0sg:true gso_tcpv4:true rx_copy:true rx_flip:false smart=
_poll:false<br>
=C2=A0 =C2=A0 ARP: sending gratuitous from 192.168.0.21<br>
=C2=A0 =C2=A0 DHCP offer received and bound to 192.168.0.21 nm 255.255.255.=
0 gw [192.168.0.1]<br></blockquote><div><br></div><div>It&#39;s obviously n=
ot all bad, since some networking is working!</div><div>=C2=A0</div><blockq=
uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-wi=
dth:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-=
left:1ex">
=C2=A0 =C2=A0 Manager: configuration done<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br>
=C2=A0 =C2=A0 ARP responding to: who-has 192.168.0.21?<br>
=C2=A0 =C2=A0 ARP: transmitting probe -&gt; 192.168.0.11<br>
=C2=A0 =C2=A0 ARP: updating 192.168.0.11 -&gt; 00:c2:c6:0f:72:dd<br>
<br>
When making a request to 192.168.0.21 I get a bit of a response, but not a =
full<br>
one and the console is filled with stuff like this:<br>
<br>
=C2=A0 =C2=A0 200 GET /<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br>
=C2=A0 =C2=A0 TCP retransmission on timer seq =3D 452908524<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br>
=C2=A0 =C2=A0 TCP retransmission on timer seq =3D 452908524<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br>
=C2=A0 =C2=A0 TCP retransmission on timer seq =3D 452908524<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br>
=C2=A0 =C2=A0 TCP retransmission on timer seq =3D 452908524<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br>
=C2=A0 =C2=A0 TCP retransmission on timer seq =3D 452908524<br>
=C2=A0 =C2=A0 RX exn File &quot;lib/<a href=3D"http://ipv4.ml" target=3D"_b=
lank">ipv4.ml</a>&quot;, line 181, characters 4-10: Assertion failed<br>
=C2=A0 =C2=A0 ARP responding to: who-has 192.168.0.21?<br>
<br>
Clearly I&#39;m doing something wrong here, but what?=C2=A0 Any and all sug=
gestions are<br>
welcome.<br></blockquote><div><br></div><div>I don&#39;t think the assert f=
ailures are your fault ;-)</div><div><br></div><div>Cheers,</div><div>Dave<=
/div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"margin:0px=
 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);bor=
der-left-style:solid;padding-left:1ex">
<span class=3D""><font color=3D"#888888"><br>
/M<br>
<br>
--<br>
Magnus Therning=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 OpenPGP: 0xAB4DFBA4<br>
email: <a href=3D"mailto:magnus@therning.org">magnus@therning.org</a>=C2=A0=
 =C2=A0jabber: <a href=3D"mailto:magnus@therning.org">magnus@therning.org</=
a><br>
twitter: magthe=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<a hr=
ef=3D"http://therning.org/magnus" target=3D"_blank">http://therning.org/mag=
nus</a><br>
<br>
The ultimate goal of all computer science is the program.=C2=A0 The<br>
performance of programs was once the noblest function of computer<br>
science, and computer science was indispensable to great programs.<br>
Today, programming and computer science exist in complacent isolation,<br>
and can be [rescued only] by conscious co=C3=B6peration and collaboration<b=
r>
of all programmers.<br>
</font></span><br>_______________________________________________<br>
MirageOS-devel mailing list<br>
<a href=3D"mailto:MirageOS-devel@lists.xenproject.org">MirageOS-devel@lists=
.xenproject.org</a><br>
<a href=3D"http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-de=
vel" target=3D"_blank">http://lists.xenproject.org/cgi-bin/mailman/listinfo=
/mirageos-devel</a><br>
<br></blockquote></div><br clear=3D"all"><div><br></div>-- <br><div class=
=3D"gmail_signature">Dave Scott</div>
</div></div>

--001a11c233f6f1d74e05126ff742--


--===============6537719294286544350==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============6537719294286544350==--


From mirageos-devel-bounces@lists.xenproject.org Sun Mar 29 18:52:43 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 29 Mar 2015 18:52:43 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcIK5-0002CP-Il; Sun, 29 Mar 2015 18:52:37 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <magnus@therning.org>) id 1YcIK4-0002CK-Ef
	for mirageos-devel@lists.xenproject.org; Sun, 29 Mar 2015 18:52:36 +0000
Received: from [85.158.139.211] by server-10.bemta-5.messagelabs.com id
	F8/44-21049-3F948155; Sun, 29 Mar 2015 18:52:35 +0000
X-Env-Sender: magnus@therning.org
X-Msg-Ref: server-10.tower-206.messagelabs.com!1427655154!7124778!1
X-Originating-IP: [209.85.217.182]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 9354 invoked from network); 29 Mar 2015 18:52:34 -0000
Received: from mail-lb0-f182.google.com (HELO mail-lb0-f182.google.com)
	(209.85.217.182)
	by server-10.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	29 Mar 2015 18:52:34 -0000
Received: by lboc7 with SMTP id c7so36820347lbo.1
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 29 Mar 2015 11:52:34 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:date:from:to:cc:subject:message-id:references
	:mime-version:content-type:content-disposition:in-reply-to
	:user-agent;
	bh=FCIc535hmc5MiTSmMKryCcarw6YF7fDjM/6FMrWaaAE=;
	b=SkM7YAu4GQYp+xuNSJ6uXV4J5LaWR5mQe7vGUemjuiznreGaeHr5JvedB0gLYxtMwt
	EkKhHLRY/Ax1nWy3V/oagDbEVtL9eWlIMWDvq8n45tKjYTqS5Ij/grtefGoeLS1SVGlU
	o9IBkJGx8UJ3E+4ftj85zWHDkIazZxKIFIvAdyeStrX2xTufXVNEgKAjeTMWbh+Aty6U
	uYUQ0F5xCiWsvxk0zxdboxpjrpdcium/LB3iyqk8juLYdOYhekDgyOhz3xfJNY6ce4VM
	5qGvLWymC+gG8yJFeWAXhALdptgnqYc28In6/lbQjBZcDJhf8m9isBnErVNJxLnoW+pr
	AAWg==
X-Gm-Message-State: ALoCoQl4pZnXF5G3yPEXtjYEy43EisH6Yiob0g171vwH6yRaAlcj7l3qpkCVHAMrL7zqmC+MmlM9
X-Received: by 10.112.118.73 with SMTP id kk9mr1091262lbb.3.1427655154282;
	Sun, 29 Mar 2015 11:52:34 -0700 (PDT)
Received: from tatooine (c83-248-178-110.bredband.comhem.se. [83.248.178.110])
	by mx.google.com with ESMTPSA id
	f7sm1612943lam.17.2015.03.29.11.52.32
	(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Sun, 29 Mar 2015 11:52:32 -0700 (PDT)
Date: Sun, 29 Mar 2015 20:52:30 +0200
From: Magnus Therning <magnus@therning.org>
To: David Scott <scott.dj@gmail.com>
Message-ID: <20150329185230.GA7522@tatooine>
References: <20150329160245.GA5672@tatooine>
	<CAG_esB01YmTnyy1NviDhB8f4Pr8T+PaHCV0N-kqrJVyydSZrvg@mail.gmail.com>
MIME-Version: 1.0
In-Reply-To: <CAG_esB01YmTnyy1NviDhB8f4Pr8T+PaHCV0N-kqrJVyydSZrvg@mail.gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] mirage-www on xen and networking (on ARM)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============3860016379590222036=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============3860016379590222036==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="bp/iNruPH9dso1Pn"
Content-Disposition: inline


--bp/iNruPH9dso1Pn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Mar 29, 2015 at 05:36:33PM +0100, David Scott wrote:
> On Sun, Mar 29, 2015 at 5:02 PM, Magnus Therning <magnus@therning.org>
> wrote:
[..]
> So it looks like you're receiving truncated IP frames. It would be helpful
> to know what the frames actually are-- could you do something like:
>=20
> git clone git://github.com/mirage/mirage-tcpip
> cd mirage-tcpip
> git checkout v2.3.0
>=20
> perhaps change the assert into something like
>=20
> if Cstruct.len data <> payload_len then begin
>   printf "argh, it's all broken! len =3D %d payload_len =3D %d\n" (Cstruc=
t.len
> data) payload_len;
>   Cstruct.hexdump buf;
> end
>=20
> (quoting the Cstruct manual:
>  " when the going gets tough, the tough hexdump their cstructs
>     and peer at it until the bug disappears.  This will directly
>     prettyprint the contents of the cstruct to the standard output. ")
>=20
> opam pin add tcpip .
>=20
> .. and then rebuild your app with the new code.

After doing that, rebuilding and starting the VM again I get this on
the console

    ...
    argh, it's all broken! len =3D 26 payload_len =3D 20

    45 00 00 28 2b af 40 00 40 06 8d af c0 a8 00 0b=20
    c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0=20
    50 11 00 e5 27 e1 00 00 00 00 00 00 00 00=20
    argh, it's all broken! len =3D 26 payload_len =3D 20

    45 00 00 28 2b b0 40 00 40 06 8d ae c0 a8 00 0b=20
    c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0=20
    50 11 00 e5 27 e1 00 00 00 00 00 00 00 00=20
    argh, it's all broken! len =3D 26 payload_len =3D 20

    45 00 00 28 2b b1 40 00 40 06 8d ad c0 a8 00 0b=20
    c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0=20
    50 11 00 e5 27 e1 00 00 00 00 00 00 00 00=20
    argh, it's all broken! len =3D 26 payload_len =3D 20

    45 00 00 28 2b b2 40 00 40 06 8d ac c0 a8 00 0b=20
    c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0=20
    50 11 00 e5 27 e1 00 00 00 00 00 00 00 00=20
    argh, it's all broken! len =3D 26 payload_len =3D 20

    45 00 00 28 2b b3 40 00 40 06 8d ab c0 a8 00 0b=20
    c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0=20
    50 11 00 e5 27 e1 00 00 00 00 00 00 00 00=20
    argh, it's all broken! len =3D 26 payload_len =3D 20

    45 00 00 28 2b b4 40 00 40 06 8d aa c0 a8 00 0b=20
    c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0=20
    50 11 00 e5 27 e1 00 00 00 00 00 00 00 00=20
    ARP responding to: who-has 192.168.0.22?
    argh, it's all broken! len =3D 26 payload_len =3D 8

    45 00 00 1c 00 00 00 00 01 02 19 36 c0 a8 00 01=20
    e0 00 00 01 11 0a ee f5 00 00 00 00 00 00 00 00=20
    00 00 00 00 00 00 00 00 00 00 00 00 00 00=20
    argh, it's all broken! len =3D 26 payload_len =3D 12

    45 00 00 20 00 00 00 00 01 02 19 32 c0 a8 00 01=20
    e0 00 00 01 11 0a ec 78 00 00 00 00 02 7d 00 00=20
    00 00 00 00 00 00 00 00 00 00 00 00 00 00
    ...

This time around I don't get anything in reply to my requests though.

/M

--=20
Magnus Therning                      OpenPGP: 0xAB4DFBA4=20
email: magnus@therning.org   jabber: magnus@therning.org
twitter: magthe               http://therning.org/magnus

As long as there are ill-defined goals, bizarre bugs, and unrealistic
schedules, there will be Real Programmers willing to jump in and Solve The
Problem, saving the documentation for later.  Long live Fortran!
     -- Ed Post

--bp/iNruPH9dso1Pn
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iEYEABECAAYFAlUYSe4ACgkQiMWTaatN+6RJwgCfV7fjOANjy+oVHruJh/tGbq81
1iAAn0SZVBrkNGFICeoVJqFH0Rl3RA4n
=LxJc
-----END PGP SIGNATURE-----

--bp/iNruPH9dso1Pn--


--===============3860016379590222036==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============3860016379590222036==--


From mirageos-devel-bounces@lists.xenproject.org Sun Mar 29 18:52:43 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 29 Mar 2015 18:52:43 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcIK5-0002CP-Il; Sun, 29 Mar 2015 18:52:37 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <magnus@therning.org>) id 1YcIK4-0002CK-Ef
	for mirageos-devel@lists.xenproject.org; Sun, 29 Mar 2015 18:52:36 +0000
Received: from [85.158.139.211] by server-10.bemta-5.messagelabs.com id
	F8/44-21049-3F948155; Sun, 29 Mar 2015 18:52:35 +0000
X-Env-Sender: magnus@therning.org
X-Msg-Ref: server-10.tower-206.messagelabs.com!1427655154!7124778!1
X-Originating-IP: [209.85.217.182]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 9354 invoked from network); 29 Mar 2015 18:52:34 -0000
Received: from mail-lb0-f182.google.com (HELO mail-lb0-f182.google.com)
	(209.85.217.182)
	by server-10.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	29 Mar 2015 18:52:34 -0000
Received: by lboc7 with SMTP id c7so36820347lbo.1
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 29 Mar 2015 11:52:34 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:date:from:to:cc:subject:message-id:references
	:mime-version:content-type:content-disposition:in-reply-to
	:user-agent;
	bh=FCIc535hmc5MiTSmMKryCcarw6YF7fDjM/6FMrWaaAE=;
	b=SkM7YAu4GQYp+xuNSJ6uXV4J5LaWR5mQe7vGUemjuiznreGaeHr5JvedB0gLYxtMwt
	EkKhHLRY/Ax1nWy3V/oagDbEVtL9eWlIMWDvq8n45tKjYTqS5Ij/grtefGoeLS1SVGlU
	o9IBkJGx8UJ3E+4ftj85zWHDkIazZxKIFIvAdyeStrX2xTufXVNEgKAjeTMWbh+Aty6U
	uYUQ0F5xCiWsvxk0zxdboxpjrpdcium/LB3iyqk8juLYdOYhekDgyOhz3xfJNY6ce4VM
	5qGvLWymC+gG8yJFeWAXhALdptgnqYc28In6/lbQjBZcDJhf8m9isBnErVNJxLnoW+pr
	AAWg==
X-Gm-Message-State: ALoCoQl4pZnXF5G3yPEXtjYEy43EisH6Yiob0g171vwH6yRaAlcj7l3qpkCVHAMrL7zqmC+MmlM9
X-Received: by 10.112.118.73 with SMTP id kk9mr1091262lbb.3.1427655154282;
	Sun, 29 Mar 2015 11:52:34 -0700 (PDT)
Received: from tatooine (c83-248-178-110.bredband.comhem.se. [83.248.178.110])
	by mx.google.com with ESMTPSA id
	f7sm1612943lam.17.2015.03.29.11.52.32
	(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Sun, 29 Mar 2015 11:52:32 -0700 (PDT)
Date: Sun, 29 Mar 2015 20:52:30 +0200
From: Magnus Therning <magnus@therning.org>
To: David Scott <scott.dj@gmail.com>
Message-ID: <20150329185230.GA7522@tatooine>
References: <20150329160245.GA5672@tatooine>
	<CAG_esB01YmTnyy1NviDhB8f4Pr8T+PaHCV0N-kqrJVyydSZrvg@mail.gmail.com>
MIME-Version: 1.0
In-Reply-To: <CAG_esB01YmTnyy1NviDhB8f4Pr8T+PaHCV0N-kqrJVyydSZrvg@mail.gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] mirage-www on xen and networking (on ARM)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============3860016379590222036=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============3860016379590222036==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="bp/iNruPH9dso1Pn"
Content-Disposition: inline


--bp/iNruPH9dso1Pn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Mar 29, 2015 at 05:36:33PM +0100, David Scott wrote:
> On Sun, Mar 29, 2015 at 5:02 PM, Magnus Therning <magnus@therning.org>
> wrote:
[..]
> So it looks like you're receiving truncated IP frames. It would be helpful
> to know what the frames actually are-- could you do something like:
>=20
> git clone git://github.com/mirage/mirage-tcpip
> cd mirage-tcpip
> git checkout v2.3.0
>=20
> perhaps change the assert into something like
>=20
> if Cstruct.len data <> payload_len then begin
>   printf "argh, it's all broken! len =3D %d payload_len =3D %d\n" (Cstruc=
t.len
> data) payload_len;
>   Cstruct.hexdump buf;
> end
>=20
> (quoting the Cstruct manual:
>  " when the going gets tough, the tough hexdump their cstructs
>     and peer at it until the bug disappears.  This will directly
>     prettyprint the contents of the cstruct to the standard output. ")
>=20
> opam pin add tcpip .
>=20
> .. and then rebuild your app with the new code.

After doing that, rebuilding and starting the VM again I get this on
the console

    ...
    argh, it's all broken! len =3D 26 payload_len =3D 20

    45 00 00 28 2b af 40 00 40 06 8d af c0 a8 00 0b=20
    c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0=20
    50 11 00 e5 27 e1 00 00 00 00 00 00 00 00=20
    argh, it's all broken! len =3D 26 payload_len =3D 20

    45 00 00 28 2b b0 40 00 40 06 8d ae c0 a8 00 0b=20
    c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0=20
    50 11 00 e5 27 e1 00 00 00 00 00 00 00 00=20
    argh, it's all broken! len =3D 26 payload_len =3D 20

    45 00 00 28 2b b1 40 00 40 06 8d ad c0 a8 00 0b=20
    c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0=20
    50 11 00 e5 27 e1 00 00 00 00 00 00 00 00=20
    argh, it's all broken! len =3D 26 payload_len =3D 20

    45 00 00 28 2b b2 40 00 40 06 8d ac c0 a8 00 0b=20
    c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0=20
    50 11 00 e5 27 e1 00 00 00 00 00 00 00 00=20
    argh, it's all broken! len =3D 26 payload_len =3D 20

    45 00 00 28 2b b3 40 00 40 06 8d ab c0 a8 00 0b=20
    c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0=20
    50 11 00 e5 27 e1 00 00 00 00 00 00 00 00=20
    argh, it's all broken! len =3D 26 payload_len =3D 20

    45 00 00 28 2b b4 40 00 40 06 8d aa c0 a8 00 0b=20
    c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0=20
    50 11 00 e5 27 e1 00 00 00 00 00 00 00 00=20
    ARP responding to: who-has 192.168.0.22?
    argh, it's all broken! len =3D 26 payload_len =3D 8

    45 00 00 1c 00 00 00 00 01 02 19 36 c0 a8 00 01=20
    e0 00 00 01 11 0a ee f5 00 00 00 00 00 00 00 00=20
    00 00 00 00 00 00 00 00 00 00 00 00 00 00=20
    argh, it's all broken! len =3D 26 payload_len =3D 12

    45 00 00 20 00 00 00 00 01 02 19 32 c0 a8 00 01=20
    e0 00 00 01 11 0a ec 78 00 00 00 00 02 7d 00 00=20
    00 00 00 00 00 00 00 00 00 00 00 00 00 00
    ...

This time around I don't get anything in reply to my requests though.

/M

--=20
Magnus Therning                      OpenPGP: 0xAB4DFBA4=20
email: magnus@therning.org   jabber: magnus@therning.org
twitter: magthe               http://therning.org/magnus

As long as there are ill-defined goals, bizarre bugs, and unrealistic
schedules, there will be Real Programmers willing to jump in and Solve The
Problem, saving the documentation for later.  Long live Fortran!
     -- Ed Post

--bp/iNruPH9dso1Pn
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iEYEABECAAYFAlUYSe4ACgkQiMWTaatN+6RJwgCfV7fjOANjy+oVHruJh/tGbq81
1iAAn0SZVBrkNGFICeoVJqFH0Rl3RA4n
=LxJc
-----END PGP SIGNATURE-----

--bp/iNruPH9dso1Pn--


--===============3860016379590222036==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============3860016379590222036==--


From mirageos-devel-bounces@lists.xenproject.org Sun Mar 29 20:00:40 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 29 Mar 2015 20:00:40 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcJNp-0001Mr-Dj; Sun, 29 Mar 2015 20:00:33 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <scott.dj@gmail.com>) id 1YcJNn-0001Mm-JA
	for mirageos-devel@lists.xenproject.org; Sun, 29 Mar 2015 20:00:31 +0000
Received: from [85.158.137.68] by server-1.bemta-3.messagelabs.com id
	8B/8E-13265-ED958155; Sun, 29 Mar 2015 20:00:30 +0000
X-Env-Sender: scott.dj@gmail.com
X-Msg-Ref: server-7.tower-31.messagelabs.com!1427659227!12069954!1
X-Originating-IP: [209.85.220.50]
X-SpamReason: No, hits=0.4 required=7.0 tests=HTML_30_40,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 7210 invoked from network); 29 Mar 2015 20:00:28 -0000
Received: from mail-pa0-f50.google.com (HELO mail-pa0-f50.google.com)
	(209.85.220.50)
	by server-7.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	29 Mar 2015 20:00:28 -0000
Received: by padcy3 with SMTP id cy3so146688860pad.3
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 29 Mar 2015 13:00:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=wLKRyOXdZRs2oReoGiszstrvwp61wpZ4ue6K0lBjk8E=;
	b=i/hXRgGS95oNS+XM7krQ7OTqz5Bne6RQ/zafwqZi55ZKNdXJUAbx8Dk2DzN0pcjZSw
	S/wWBaY3LGfWLEtVzjJHmNSr/wqeNj2T+30XniR8H9z+M99nqIf5JuY4ej3SamPv+5tQ
	VJdVyNNO9+j3ncpzbjbFlnwWlNDqkcUZYNEaPALtfqtj4YfEb/irUCsiKzD6SBc3F0BS
	VzCjQ5xZ8FPT6LvUobZXH5pCrMqvUjCK6JXfXiNAI831+Aqe/+OYehaWDVv73hTP7K3J
	/2Mvn7rqs3ucr2/Wkh7y14UsvSRsgrTWxEkkED/6zHrMG8Ob/7PBV9nskAzpURd4oEBr
	GPVg==
MIME-Version: 1.0
X-Received: by 10.70.92.67 with SMTP id ck3mr4092951pdb.165.1427659227151;
	Sun, 29 Mar 2015 13:00:27 -0700 (PDT)
Received: by 10.70.102.205 with HTTP; Sun, 29 Mar 2015 13:00:27 -0700 (PDT)
In-Reply-To: <20150329185230.GA7522@tatooine>
References: <20150329160245.GA5672@tatooine>
	<CAG_esB01YmTnyy1NviDhB8f4Pr8T+PaHCV0N-kqrJVyydSZrvg@mail.gmail.com>
	<20150329185230.GA7522@tatooine>
Date: Sun, 29 Mar 2015 21:00:27 +0100
Message-ID: <CAG_esB09iWEoh83RF+HuHpu-qmzF7O7RR0YctLXFkaDdC9PcQg@mail.gmail.com>
From: David Scott <scott.dj@gmail.com>
To: Magnus Therning <magnus@therning.org>
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] mirage-www on xen and networking (on ARM)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============8018110046399651639=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============8018110046399651639==
Content-Type: multipart/alternative; boundary=001a11c233f6184439051272d1fa

--001a11c233f6184439051272d1fa
Content-Type: text/plain; charset=UTF-8

On Sun, Mar 29, 2015 at 7:52 PM, Magnus Therning <magnus@therning.org>
wrote:

> On Sun, Mar 29, 2015 at 05:36:33PM +0100, David Scott wrote:
> > On Sun, Mar 29, 2015 at 5:02 PM, Magnus Therning <magnus@therning.org>
> > wrote:
> [..]
> > So it looks like you're receiving truncated IP frames. It would be
> helpful
> > to know what the frames actually are-- could you do something like:
> >
> > git clone git://github.com/mirage/mirage-tcpip
> > cd mirage-tcpip
> > git checkout v2.3.0
> >
> > perhaps change the assert into something like
> >
> > if Cstruct.len data <> payload_len then begin
> >   printf "argh, it's all broken! len = %d payload_len = %d\n"
> (Cstruct.len
> > data) payload_len;
> >   Cstruct.hexdump buf;
> > end
> >
> > (quoting the Cstruct manual:
> >  " when the going gets tough, the tough hexdump their cstructs
> >     and peer at it until the bug disappears.  This will directly
> >     prettyprint the contents of the cstruct to the standard output. ")
> >
> > opam pin add tcpip .
> >
> > .. and then rebuild your app with the new code.
>
> After doing that, rebuilding and starting the VM again I get this on
> the console
>
>     ...
>     argh, it's all broken! len = 26 payload_len = 20
>
>     45 00 00 28 2b af 40 00 40 06 8d af c0 a8 00 0b
>     c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0
>     50 11 00 e5 27 e1 00 00 00 00 00 00 00 00
>     argh, it's all broken! len = 26 payload_len = 20
>

(peering at the hex dump, with wikipedia in another window)

IP version = 4
Protocol = 6 = TCP
IHL = 5 words (ie no options)
Total length = 0x28

payload_len = 0x28 - 5 * 4 = 20 (looks ok)

It looks like the mirage-net-xen driver is supplying an extra 6 bytes for
some reason.


>
>     45 00 00 28 2b b0 40 00 40 06 8d ae c0 a8 00 0b
>     c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0
>     50 11 00 e5 27 e1 00 00 00 00 00 00 00 00
>     argh, it's all broken! len = 26 payload_len = 20
>
>     45 00 00 28 2b b1 40 00 40 06 8d ad c0 a8 00 0b
>     c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0
>     50 11 00 e5 27 e1 00 00 00 00 00 00 00 00
>     argh, it's all broken! len = 26 payload_len = 20
>
>     45 00 00 28 2b b2 40 00 40 06 8d ac c0 a8 00 0b
>     c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0
>     50 11 00 e5 27 e1 00 00 00 00 00 00 00 00
>     argh, it's all broken! len = 26 payload_len = 20
>
>     45 00 00 28 2b b3 40 00 40 06 8d ab c0 a8 00 0b
>     c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0
>     50 11 00 e5 27 e1 00 00 00 00 00 00 00 00
>     argh, it's all broken! len = 26 payload_len = 20
>
>     45 00 00 28 2b b4 40 00 40 06 8d aa c0 a8 00 0b
>     c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0
>     50 11 00 e5 27 e1 00 00 00 00 00 00 00 00
>     ARP responding to: who-has 192.168.0.22?
>     argh, it's all broken! len = 26 payload_len = 8
>
>     45 00 00 1c 00 00 00 00 01 02 19 36 c0 a8 00 01
>     e0 00 00 01 11 0a ee f5 00 00 00 00 00 00 00 00
>     00 00 00 00 00 00 00 00 00 00 00 00 00 00
>     argh, it's all broken! len = 26 payload_len = 12
>

Even though this packet has a shorter total length (0x1c), the frame has
the same length as the previous ones.

    45 00 00 20 00 00 00 00 01 02 19 32 c0 a8 00 01
>     e0 00 00 01 11 0a ec 78 00 00 00 00 02 7d 00 00
>     00 00 00 00 00 00 00 00 00 00 00 00 00 00

    ...
>
> This time around I don't get anything in reply to my requests though.
>

This is probably because my debug suggestion removed the assert and
probably confused the higher layers.

Unless I'm misreading this, I think it must be a bug in mirage-net-xen (the
ethernet driver) misreading the ethernet frames somehow? Or perhaps the
peer host is sending extra junk on the end of its IP packets but within the
ethernet frames?

What kind of network are you using?

I've filed this issue for now:

https://github.com/mirage/mirage-net-xen/issues/24


Cheers,
Dave

>
> /M
>
> --
> Magnus Therning                      OpenPGP: 0xAB4DFBA4
> email: magnus@therning.org   jabber: magnus@therning.org
> twitter: magthe               http://therning.org/magnus
>
> As long as there are ill-defined goals, bizarre bugs, and unrealistic
> schedules, there will be Real Programmers willing to jump in and Solve The
> Problem, saving the documentation for later.  Long live Fortran!
>      -- Ed Post
>



-- 
Dave Scott

--001a11c233f6184439051272d1fa
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Sun, Mar 29, 2015 at 7:52 PM, Magnus Therning <span dir=3D"ltr">&lt;=
<a href=3D"mailto:magnus@therning.org" target=3D"_blank">magnus@therning.or=
g</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margi=
n:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204=
);border-left-style:solid;padding-left:1ex"><span class=3D"">On Sun, Mar 29=
, 2015 at 05:36:33PM +0100, David Scott wrote:<br>
&gt; On Sun, Mar 29, 2015 at 5:02 PM, Magnus Therning &lt;<a href=3D"mailto=
:magnus@therning.org">magnus@therning.org</a>&gt;<br>
&gt; wrote:<br>
</span>[..]<br>
<span class=3D"">&gt; So it looks like you&#39;re receiving truncated IP fr=
ames. It would be helpful<br>
&gt; to know what the frames actually are-- could you do something like:<br=
>
&gt;<br>
&gt; git clone git://<a href=3D"http://github.com/mirage/mirage-tcpip" targ=
et=3D"_blank">github.com/mirage/mirage-tcpip</a><br>
&gt; cd mirage-tcpip<br>
&gt; git checkout v2.3.0<br>
&gt;<br>
&gt; perhaps change the assert into something like<br>
&gt;<br>
&gt; if Cstruct.len data &lt;&gt; payload_len then begin<br>
&gt;=C2=A0 =C2=A0printf &quot;argh, it&#39;s all broken! len =3D %d payload=
_len =3D %d\n&quot; (Cstruct.len<br>
&gt; data) payload_len;<br>
&gt;=C2=A0 =C2=A0Cstruct.hexdump buf;<br>
&gt; end<br>
&gt;<br>
&gt; (quoting the Cstruct manual:<br>
&gt;=C2=A0 &quot; when the going gets tough, the tough hexdump their cstruc=
ts<br>
&gt;=C2=A0 =C2=A0 =C2=A0and peer at it until the bug disappears.=C2=A0 This=
 will directly<br>
&gt;=C2=A0 =C2=A0 =C2=A0prettyprint the contents of the cstruct to the stan=
dard output. &quot;)<br>
&gt;<br>
&gt; opam pin add tcpip .<br>
&gt;<br>
&gt; .. and then rebuild your app with the new code.<br>
<br>
</span>After doing that, rebuilding and starting the VM again I get this on=
<br>
the console<br>
<br>
=C2=A0 =C2=A0 ...<br>
=C2=A0 =C2=A0 argh, it&#39;s all broken! len =3D 26 payload_len =3D 20<br>
<br>
=C2=A0 =C2=A0 45 00 00 28 2b af 40 00 40 06 8d af c0 a8 00 0b<br>
=C2=A0 =C2=A0 c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0<br>
=C2=A0 =C2=A0 50 11 00 e5 27 e1 00 00 00 00 00 00 00 00<br>
=C2=A0 =C2=A0 argh, it&#39;s all broken! len =3D 26 payload_len =3D 20<br><=
/blockquote><div><br></div><div>(peering at the hex dump, with wikipedia in=
 another window)</div><div><br></div><div>IP version =3D 4</div><div><div>P=
rotocol =3D 6 =3D TCP</div></div><div>IHL =3D 5 words (ie no options)</div>=
<div>Total length =3D 0x28</div><div><br></div><div>payload_len =3D 0x28 - =
5 * 4 =3D 20 (looks ok)</div><div><br></div><div>It looks like the mirage-n=
et-xen driver is supplying an extra 6 bytes for some reason.</div><div>=C2=
=A0<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px =
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-=
style:solid;padding-left:1ex">
<br>
=C2=A0 =C2=A0 45 00 00 28 2b b0 40 00 40 06 8d ae c0 a8 00 0b<br>
=C2=A0 =C2=A0 c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0<br>
=C2=A0 =C2=A0 50 11 00 e5 27 e1 00 00 00 00 00 00 00 00<br>
=C2=A0 =C2=A0 argh, it&#39;s all broken! len =3D 26 payload_len =3D 20<br>
<br>
=C2=A0 =C2=A0 45 00 00 28 2b b1 40 00 40 06 8d ad c0 a8 00 0b<br>
=C2=A0 =C2=A0 c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0<br>
=C2=A0 =C2=A0 50 11 00 e5 27 e1 00 00 00 00 00 00 00 00<br>
=C2=A0 =C2=A0 argh, it&#39;s all broken! len =3D 26 payload_len =3D 20<br>
<br>
=C2=A0 =C2=A0 45 00 00 28 2b b2 40 00 40 06 8d ac c0 a8 00 0b<br>
=C2=A0 =C2=A0 c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0<br>
=C2=A0 =C2=A0 50 11 00 e5 27 e1 00 00 00 00 00 00 00 00<br>
=C2=A0 =C2=A0 argh, it&#39;s all broken! len =3D 26 payload_len =3D 20<br>
<br>
=C2=A0 =C2=A0 45 00 00 28 2b b3 40 00 40 06 8d ab c0 a8 00 0b<br>
=C2=A0 =C2=A0 c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0<br>
=C2=A0 =C2=A0 50 11 00 e5 27 e1 00 00 00 00 00 00 00 00<br>
=C2=A0 =C2=A0 argh, it&#39;s all broken! len =3D 26 payload_len =3D 20<br>
<br>
=C2=A0 =C2=A0 45 00 00 28 2b b4 40 00 40 06 8d aa c0 a8 00 0b<br>
=C2=A0 =C2=A0 c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0<br>
=C2=A0 =C2=A0 50 11 00 e5 27 e1 00 00 00 00 00 00 00 00<br>
=C2=A0 =C2=A0 ARP responding to: who-has 192.168.0.22?<br>
=C2=A0 =C2=A0 argh, it&#39;s all broken! len =3D 26 payload_len =3D 8<br>
<br>
=C2=A0 =C2=A0 45 00 00 1c 00 00 00 00 01 02 19 36 c0 a8 00 01<br>
=C2=A0 =C2=A0 e0 00 00 01 11 0a ee f5 00 00 00 00 00 00 00 00<br>
=C2=A0 =C2=A0 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
=C2=A0 =C2=A0 argh, it&#39;s all broken! len =3D 26 payload_len =3D 12<br><=
/blockquote><div><br></div><div>Even though this packet has a shorter total=
 length (0x1c), the frame has the same length as the previous ones.</div><d=
iv><br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px =
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-=
style:solid;padding-left:1ex">
=C2=A0 =C2=A0 45 00 00 20 00 00 00 00 01 02 19 32 c0 a8 00 01<br>
=C2=A0 =C2=A0 e0 00 00 01 11 0a ec 78 00 00 00 00 02 7d 00 00<br>
=C2=A0 =C2=A0 00 00 00 00 00 00 00 00 00 00 00 00 00 00=C2=A0</blockquote><=
blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l=
eft-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;pa=
dding-left:1ex">
=C2=A0 =C2=A0 ...<br>
<br>
This time around I don&#39;t get anything in reply to my requests though.<b=
r></blockquote><div><br></div><div>This is probably because my debug sugges=
tion removed the assert and probably confused the higher layers.</div><div>=
<br></div><div>Unless I&#39;m misreading this, I think it must be a bug in =
mirage-net-xen (the ethernet driver) misreading the ethernet frames somehow=
? Or perhaps the peer host is sending extra junk on the end of its IP packe=
ts but within the ethernet frames?</div><div><br></div><div>What kind of ne=
twork are you using?</div><div><br></div><div>I&#39;ve filed this issue for=
 now:</div><div><br></div><div><a href=3D"https://github.com/mirage/mirage-=
net-xen/issues/24">https://github.com/mirage/mirage-net-xen/issues/24</a><b=
r></div><div><br></div><div><br></div><div>Cheers,</div><div>Dave</div><blo=
ckquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left=
-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;paddi=
ng-left:1ex">
<span class=3D""><br>
/M<br>
<br>
--<br>
Magnus Therning=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 OpenPGP: 0xAB4DFBA4<br>
email: <a href=3D"mailto:magnus@therning.org">magnus@therning.org</a>=C2=A0=
 =C2=A0jabber: <a href=3D"mailto:magnus@therning.org">magnus@therning.org</=
a><br>
twitter: magthe=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<a hr=
ef=3D"http://therning.org/magnus" target=3D"_blank">http://therning.org/mag=
nus</a><br>
<br>
</span>As long as there are ill-defined goals, bizarre bugs, and unrealisti=
c<br>
schedules, there will be Real Programmers willing to jump in and Solve The<=
br>
Problem, saving the documentation for later.=C2=A0 Long live Fortran!<br>
=C2=A0 =C2=A0 =C2=A0-- Ed Post<br>
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div class=
=3D"gmail_signature">Dave Scott</div>
</div></div>

--001a11c233f6184439051272d1fa--


--===============8018110046399651639==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============8018110046399651639==--


From mirageos-devel-bounces@lists.xenproject.org Sun Mar 29 20:00:40 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Sun, 29 Mar 2015 20:00:40 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcJNp-0001Mr-Dj; Sun, 29 Mar 2015 20:00:33 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <scott.dj@gmail.com>) id 1YcJNn-0001Mm-JA
	for mirageos-devel@lists.xenproject.org; Sun, 29 Mar 2015 20:00:31 +0000
Received: from [85.158.137.68] by server-1.bemta-3.messagelabs.com id
	8B/8E-13265-ED958155; Sun, 29 Mar 2015 20:00:30 +0000
X-Env-Sender: scott.dj@gmail.com
X-Msg-Ref: server-7.tower-31.messagelabs.com!1427659227!12069954!1
X-Originating-IP: [209.85.220.50]
X-SpamReason: No, hits=0.4 required=7.0 tests=HTML_30_40,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 7210 invoked from network); 29 Mar 2015 20:00:28 -0000
Received: from mail-pa0-f50.google.com (HELO mail-pa0-f50.google.com)
	(209.85.220.50)
	by server-7.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	29 Mar 2015 20:00:28 -0000
Received: by padcy3 with SMTP id cy3so146688860pad.3
	for <mirageos-devel@lists.xenproject.org>;
	Sun, 29 Mar 2015 13:00:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=wLKRyOXdZRs2oReoGiszstrvwp61wpZ4ue6K0lBjk8E=;
	b=i/hXRgGS95oNS+XM7krQ7OTqz5Bne6RQ/zafwqZi55ZKNdXJUAbx8Dk2DzN0pcjZSw
	S/wWBaY3LGfWLEtVzjJHmNSr/wqeNj2T+30XniR8H9z+M99nqIf5JuY4ej3SamPv+5tQ
	VJdVyNNO9+j3ncpzbjbFlnwWlNDqkcUZYNEaPALtfqtj4YfEb/irUCsiKzD6SBc3F0BS
	VzCjQ5xZ8FPT6LvUobZXH5pCrMqvUjCK6JXfXiNAI831+Aqe/+OYehaWDVv73hTP7K3J
	/2Mvn7rqs3ucr2/Wkh7y14UsvSRsgrTWxEkkED/6zHrMG8Ob/7PBV9nskAzpURd4oEBr
	GPVg==
MIME-Version: 1.0
X-Received: by 10.70.92.67 with SMTP id ck3mr4092951pdb.165.1427659227151;
	Sun, 29 Mar 2015 13:00:27 -0700 (PDT)
Received: by 10.70.102.205 with HTTP; Sun, 29 Mar 2015 13:00:27 -0700 (PDT)
In-Reply-To: <20150329185230.GA7522@tatooine>
References: <20150329160245.GA5672@tatooine>
	<CAG_esB01YmTnyy1NviDhB8f4Pr8T+PaHCV0N-kqrJVyydSZrvg@mail.gmail.com>
	<20150329185230.GA7522@tatooine>
Date: Sun, 29 Mar 2015 21:00:27 +0100
Message-ID: <CAG_esB09iWEoh83RF+HuHpu-qmzF7O7RR0YctLXFkaDdC9PcQg@mail.gmail.com>
From: David Scott <scott.dj@gmail.com>
To: Magnus Therning <magnus@therning.org>
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] mirage-www on xen and networking (on ARM)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============8018110046399651639=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============8018110046399651639==
Content-Type: multipart/alternative; boundary=001a11c233f6184439051272d1fa

--001a11c233f6184439051272d1fa
Content-Type: text/plain; charset=UTF-8

On Sun, Mar 29, 2015 at 7:52 PM, Magnus Therning <magnus@therning.org>
wrote:

> On Sun, Mar 29, 2015 at 05:36:33PM +0100, David Scott wrote:
> > On Sun, Mar 29, 2015 at 5:02 PM, Magnus Therning <magnus@therning.org>
> > wrote:
> [..]
> > So it looks like you're receiving truncated IP frames. It would be
> helpful
> > to know what the frames actually are-- could you do something like:
> >
> > git clone git://github.com/mirage/mirage-tcpip
> > cd mirage-tcpip
> > git checkout v2.3.0
> >
> > perhaps change the assert into something like
> >
> > if Cstruct.len data <> payload_len then begin
> >   printf "argh, it's all broken! len = %d payload_len = %d\n"
> (Cstruct.len
> > data) payload_len;
> >   Cstruct.hexdump buf;
> > end
> >
> > (quoting the Cstruct manual:
> >  " when the going gets tough, the tough hexdump their cstructs
> >     and peer at it until the bug disappears.  This will directly
> >     prettyprint the contents of the cstruct to the standard output. ")
> >
> > opam pin add tcpip .
> >
> > .. and then rebuild your app with the new code.
>
> After doing that, rebuilding and starting the VM again I get this on
> the console
>
>     ...
>     argh, it's all broken! len = 26 payload_len = 20
>
>     45 00 00 28 2b af 40 00 40 06 8d af c0 a8 00 0b
>     c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0
>     50 11 00 e5 27 e1 00 00 00 00 00 00 00 00
>     argh, it's all broken! len = 26 payload_len = 20
>

(peering at the hex dump, with wikipedia in another window)

IP version = 4
Protocol = 6 = TCP
IHL = 5 words (ie no options)
Total length = 0x28

payload_len = 0x28 - 5 * 4 = 20 (looks ok)

It looks like the mirage-net-xen driver is supplying an extra 6 bytes for
some reason.


>
>     45 00 00 28 2b b0 40 00 40 06 8d ae c0 a8 00 0b
>     c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0
>     50 11 00 e5 27 e1 00 00 00 00 00 00 00 00
>     argh, it's all broken! len = 26 payload_len = 20
>
>     45 00 00 28 2b b1 40 00 40 06 8d ad c0 a8 00 0b
>     c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0
>     50 11 00 e5 27 e1 00 00 00 00 00 00 00 00
>     argh, it's all broken! len = 26 payload_len = 20
>
>     45 00 00 28 2b b2 40 00 40 06 8d ac c0 a8 00 0b
>     c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0
>     50 11 00 e5 27 e1 00 00 00 00 00 00 00 00
>     argh, it's all broken! len = 26 payload_len = 20
>
>     45 00 00 28 2b b3 40 00 40 06 8d ab c0 a8 00 0b
>     c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0
>     50 11 00 e5 27 e1 00 00 00 00 00 00 00 00
>     argh, it's all broken! len = 26 payload_len = 20
>
>     45 00 00 28 2b b4 40 00 40 06 8d aa c0 a8 00 0b
>     c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0
>     50 11 00 e5 27 e1 00 00 00 00 00 00 00 00
>     ARP responding to: who-has 192.168.0.22?
>     argh, it's all broken! len = 26 payload_len = 8
>
>     45 00 00 1c 00 00 00 00 01 02 19 36 c0 a8 00 01
>     e0 00 00 01 11 0a ee f5 00 00 00 00 00 00 00 00
>     00 00 00 00 00 00 00 00 00 00 00 00 00 00
>     argh, it's all broken! len = 26 payload_len = 12
>

Even though this packet has a shorter total length (0x1c), the frame has
the same length as the previous ones.

    45 00 00 20 00 00 00 00 01 02 19 32 c0 a8 00 01
>     e0 00 00 01 11 0a ec 78 00 00 00 00 02 7d 00 00
>     00 00 00 00 00 00 00 00 00 00 00 00 00 00

    ...
>
> This time around I don't get anything in reply to my requests though.
>

This is probably because my debug suggestion removed the assert and
probably confused the higher layers.

Unless I'm misreading this, I think it must be a bug in mirage-net-xen (the
ethernet driver) misreading the ethernet frames somehow? Or perhaps the
peer host is sending extra junk on the end of its IP packets but within the
ethernet frames?

What kind of network are you using?

I've filed this issue for now:

https://github.com/mirage/mirage-net-xen/issues/24


Cheers,
Dave

>
> /M
>
> --
> Magnus Therning                      OpenPGP: 0xAB4DFBA4
> email: magnus@therning.org   jabber: magnus@therning.org
> twitter: magthe               http://therning.org/magnus
>
> As long as there are ill-defined goals, bizarre bugs, and unrealistic
> schedules, there will be Real Programmers willing to jump in and Solve The
> Problem, saving the documentation for later.  Long live Fortran!
>      -- Ed Post
>



-- 
Dave Scott

--001a11c233f6184439051272d1fa
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Sun, Mar 29, 2015 at 7:52 PM, Magnus Therning <span dir=3D"ltr">&lt;=
<a href=3D"mailto:magnus@therning.org" target=3D"_blank">magnus@therning.or=
g</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margi=
n:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204=
);border-left-style:solid;padding-left:1ex"><span class=3D"">On Sun, Mar 29=
, 2015 at 05:36:33PM +0100, David Scott wrote:<br>
&gt; On Sun, Mar 29, 2015 at 5:02 PM, Magnus Therning &lt;<a href=3D"mailto=
:magnus@therning.org">magnus@therning.org</a>&gt;<br>
&gt; wrote:<br>
</span>[..]<br>
<span class=3D"">&gt; So it looks like you&#39;re receiving truncated IP fr=
ames. It would be helpful<br>
&gt; to know what the frames actually are-- could you do something like:<br=
>
&gt;<br>
&gt; git clone git://<a href=3D"http://github.com/mirage/mirage-tcpip" targ=
et=3D"_blank">github.com/mirage/mirage-tcpip</a><br>
&gt; cd mirage-tcpip<br>
&gt; git checkout v2.3.0<br>
&gt;<br>
&gt; perhaps change the assert into something like<br>
&gt;<br>
&gt; if Cstruct.len data &lt;&gt; payload_len then begin<br>
&gt;=C2=A0 =C2=A0printf &quot;argh, it&#39;s all broken! len =3D %d payload=
_len =3D %d\n&quot; (Cstruct.len<br>
&gt; data) payload_len;<br>
&gt;=C2=A0 =C2=A0Cstruct.hexdump buf;<br>
&gt; end<br>
&gt;<br>
&gt; (quoting the Cstruct manual:<br>
&gt;=C2=A0 &quot; when the going gets tough, the tough hexdump their cstruc=
ts<br>
&gt;=C2=A0 =C2=A0 =C2=A0and peer at it until the bug disappears.=C2=A0 This=
 will directly<br>
&gt;=C2=A0 =C2=A0 =C2=A0prettyprint the contents of the cstruct to the stan=
dard output. &quot;)<br>
&gt;<br>
&gt; opam pin add tcpip .<br>
&gt;<br>
&gt; .. and then rebuild your app with the new code.<br>
<br>
</span>After doing that, rebuilding and starting the VM again I get this on=
<br>
the console<br>
<br>
=C2=A0 =C2=A0 ...<br>
=C2=A0 =C2=A0 argh, it&#39;s all broken! len =3D 26 payload_len =3D 20<br>
<br>
=C2=A0 =C2=A0 45 00 00 28 2b af 40 00 40 06 8d af c0 a8 00 0b<br>
=C2=A0 =C2=A0 c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0<br>
=C2=A0 =C2=A0 50 11 00 e5 27 e1 00 00 00 00 00 00 00 00<br>
=C2=A0 =C2=A0 argh, it&#39;s all broken! len =3D 26 payload_len =3D 20<br><=
/blockquote><div><br></div><div>(peering at the hex dump, with wikipedia in=
 another window)</div><div><br></div><div>IP version =3D 4</div><div><div>P=
rotocol =3D 6 =3D TCP</div></div><div>IHL =3D 5 words (ie no options)</div>=
<div>Total length =3D 0x28</div><div><br></div><div>payload_len =3D 0x28 - =
5 * 4 =3D 20 (looks ok)</div><div><br></div><div>It looks like the mirage-n=
et-xen driver is supplying an extra 6 bytes for some reason.</div><div>=C2=
=A0<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px =
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-=
style:solid;padding-left:1ex">
<br>
=C2=A0 =C2=A0 45 00 00 28 2b b0 40 00 40 06 8d ae c0 a8 00 0b<br>
=C2=A0 =C2=A0 c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0<br>
=C2=A0 =C2=A0 50 11 00 e5 27 e1 00 00 00 00 00 00 00 00<br>
=C2=A0 =C2=A0 argh, it&#39;s all broken! len =3D 26 payload_len =3D 20<br>
<br>
=C2=A0 =C2=A0 45 00 00 28 2b b1 40 00 40 06 8d ad c0 a8 00 0b<br>
=C2=A0 =C2=A0 c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0<br>
=C2=A0 =C2=A0 50 11 00 e5 27 e1 00 00 00 00 00 00 00 00<br>
=C2=A0 =C2=A0 argh, it&#39;s all broken! len =3D 26 payload_len =3D 20<br>
<br>
=C2=A0 =C2=A0 45 00 00 28 2b b2 40 00 40 06 8d ac c0 a8 00 0b<br>
=C2=A0 =C2=A0 c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0<br>
=C2=A0 =C2=A0 50 11 00 e5 27 e1 00 00 00 00 00 00 00 00<br>
=C2=A0 =C2=A0 argh, it&#39;s all broken! len =3D 26 payload_len =3D 20<br>
<br>
=C2=A0 =C2=A0 45 00 00 28 2b b3 40 00 40 06 8d ab c0 a8 00 0b<br>
=C2=A0 =C2=A0 c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0<br>
=C2=A0 =C2=A0 50 11 00 e5 27 e1 00 00 00 00 00 00 00 00<br>
=C2=A0 =C2=A0 argh, it&#39;s all broken! len =3D 26 payload_len =3D 20<br>
<br>
=C2=A0 =C2=A0 45 00 00 28 2b b4 40 00 40 06 8d aa c0 a8 00 0b<br>
=C2=A0 =C2=A0 c0 a8 00 16 ea 30 00 50 d0 90 08 dc 1a fe 26 b0<br>
=C2=A0 =C2=A0 50 11 00 e5 27 e1 00 00 00 00 00 00 00 00<br>
=C2=A0 =C2=A0 ARP responding to: who-has 192.168.0.22?<br>
=C2=A0 =C2=A0 argh, it&#39;s all broken! len =3D 26 payload_len =3D 8<br>
<br>
=C2=A0 =C2=A0 45 00 00 1c 00 00 00 00 01 02 19 36 c0 a8 00 01<br>
=C2=A0 =C2=A0 e0 00 00 01 11 0a ee f5 00 00 00 00 00 00 00 00<br>
=C2=A0 =C2=A0 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br>
=C2=A0 =C2=A0 argh, it&#39;s all broken! len =3D 26 payload_len =3D 12<br><=
/blockquote><div><br></div><div>Even though this packet has a shorter total=
 length (0x1c), the frame has the same length as the previous ones.</div><d=
iv><br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px =
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-=
style:solid;padding-left:1ex">
=C2=A0 =C2=A0 45 00 00 20 00 00 00 00 01 02 19 32 c0 a8 00 01<br>
=C2=A0 =C2=A0 e0 00 00 01 11 0a ec 78 00 00 00 00 02 7d 00 00<br>
=C2=A0 =C2=A0 00 00 00 00 00 00 00 00 00 00 00 00 00 00=C2=A0</blockquote><=
blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l=
eft-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;pa=
dding-left:1ex">
=C2=A0 =C2=A0 ...<br>
<br>
This time around I don&#39;t get anything in reply to my requests though.<b=
r></blockquote><div><br></div><div>This is probably because my debug sugges=
tion removed the assert and probably confused the higher layers.</div><div>=
<br></div><div>Unless I&#39;m misreading this, I think it must be a bug in =
mirage-net-xen (the ethernet driver) misreading the ethernet frames somehow=
? Or perhaps the peer host is sending extra junk on the end of its IP packe=
ts but within the ethernet frames?</div><div><br></div><div>What kind of ne=
twork are you using?</div><div><br></div><div>I&#39;ve filed this issue for=
 now:</div><div><br></div><div><a href=3D"https://github.com/mirage/mirage-=
net-xen/issues/24">https://github.com/mirage/mirage-net-xen/issues/24</a><b=
r></div><div><br></div><div><br></div><div>Cheers,</div><div>Dave</div><blo=
ckquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left=
-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;paddi=
ng-left:1ex">
<span class=3D""><br>
/M<br>
<br>
--<br>
Magnus Therning=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 OpenPGP: 0xAB4DFBA4<br>
email: <a href=3D"mailto:magnus@therning.org">magnus@therning.org</a>=C2=A0=
 =C2=A0jabber: <a href=3D"mailto:magnus@therning.org">magnus@therning.org</=
a><br>
twitter: magthe=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<a hr=
ef=3D"http://therning.org/magnus" target=3D"_blank">http://therning.org/mag=
nus</a><br>
<br>
</span>As long as there are ill-defined goals, bizarre bugs, and unrealisti=
c<br>
schedules, there will be Real Programmers willing to jump in and Solve The<=
br>
Problem, saving the documentation for later.=C2=A0 Long live Fortran!<br>
=C2=A0 =C2=A0 =C2=A0-- Ed Post<br>
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div class=
=3D"gmail_signature">Dave Scott</div>
</div></div>

--001a11c233f6184439051272d1fa--


--===============8018110046399651639==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============8018110046399651639==--


From mirageos-devel-bounces@lists.xenproject.org Mon Mar 30 10:21:04 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 30 Mar 2015 10:21:04 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcWoT-0000aW-Q8; Mon, 30 Mar 2015 10:20:57 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <martindemello@gmail.com>) id 1YcWoS-0000Ze-8x
	for mirageos-devel@lists.xenproject.org; Mon, 30 Mar 2015 10:20:56 +0000
Received: from [85.158.139.211] by server-2.bemta-5.messagelabs.com id
	E9/B7-12190-78329155; Mon, 30 Mar 2015 10:20:55 +0000
X-Env-Sender: martindemello@gmail.com
X-Msg-Ref: server-13.tower-206.messagelabs.com!1427710851!12566668!1
X-Originating-IP: [209.85.216.175]
X-SpamReason: No, hits=0.9 required=7.0 tests=HTML_40_50,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 5892 invoked from network); 30 Mar 2015 10:20:52 -0000
Received: from mail-qc0-f175.google.com (HELO mail-qc0-f175.google.com)
	(209.85.216.175)
	by server-13.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	30 Mar 2015 10:20:52 -0000
Received: by qcfy6 with SMTP id y6so46666274qcf.2
	for <mirageos-devel@lists.xenproject.org>;
	Mon, 30 Mar 2015 03:20:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=cVTGWh2rTq29XJ9Pd51m2SGrgVo5yPWbCVtmIwMrgjg=;
	b=nf/mp1RNDTFf/Ro1AUxy/ng04Ke4Ank+iQ+Cv6ZIAHLnu01hI5aGQqjjqgqUszLr+1
	wDPKPNeH1gdfKSMeBlfqVGHXWku1lUX6h4V8m1l5NoiPBvknJ3ZPcIaR22bbBwHDvCDH
	TDLGBRqBKncYe3v3/nLCZUUsjCilDLoEHoa2l+gDKSFx+593TjSDSPQdTEZz3+S4Ms1u
	LIZWSZrMEOtkzjFOuuhyVJ7AxHemaK5yMP0a8sy9WN58s07Bl4g0xLSYIfclvjuQYNb3
	cPZPXv1nlZn3UvrRslODQRdXNT0D9WY1Rxrm02t0cIWDvh1RW5nCB4suToJ7RZQCO3lF
	rlVw==
MIME-Version: 1.0
X-Received: by 10.55.52.77 with SMTP id b74mr8386287qka.78.1427710851459; Mon,
	30 Mar 2015 03:20:51 -0700 (PDT)
Received: by 10.140.47.55 with HTTP; Mon, 30 Mar 2015 03:20:51 -0700 (PDT)
Date: Mon, 30 Mar 2015 03:20:51 -0700
Message-ID: <CAFrFfuFsXOGt=F+ajnmo-dBoPc6=8DnUw4NkmxoapB9TM4R6AA@mail.gmail.com>
From: Martin DeMello <martindemello@gmail.com>
To: mirageos-devel@lists.xenproject.org
Subject: [MirageOS-devel] problem with sqlite constraints and orm
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============7418095303688905383=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============7418095303688905383==
Content-Type: multipart/alternative; boundary=001a11490e4224b89505127ed608

--001a11490e4224b89505127ed608
Content-Type: text/plain; charset=UTF-8

Problem demonstrated below: violating a unique constraint in sqlite3 seems
to leave things in an inconsistent state.

Also, tangentially, I discovered this while trying to maintain my own id on
a table because my app is serving json objects over a rest api, and I need
some sort of unique id for clients to be able to send updates to existing
objects. If there were a way to have the autogenerated sql __id__ column be
a record field, that would be extremely useful.

martin

$ cat db.ml
type item = {
  id: int;
} with orm (
  unique: item<id>
)

let db_name = "test.db"

$ cat init_db.ml
open Db

let _ =
  let db = item_init Db.db_name in
  let item = {
    id = 1;
  } in
  item_save db item


$ ./init_db.native
$ ./init_db.native
Fatal error: exception Sqlite3.Error("CONSTRAINT")

$ sqlite3 test.db
sqlite> select * from item;
__id__      id
----------  ----------
1           1
2
sqlite> delete from item;
Error: no such function: SYNC_CACHE_item

--001a11490e4224b89505127ed608
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><font face=3D"arial, helvetica, sans-serif">Problem d=
emonstrated below: violating a unique constraint in sqlite3 seems to leave =
things in an inconsistent state.</font></div><div><font face=3D"arial, helv=
etica, sans-serif"><br></font></div><div><font face=3D"arial, helvetica, sa=
ns-serif">Also, tangentially, I discovered this while trying to maintain my=
 own id on a table because my app is serving json objects over a rest api, =
and I need some sort of unique id for clients to be able to send updates to=
 existing objects. If there were a way to have the autogenerated sql __id__=
 column be a record field, that would be extremely useful.</font></div><div=
><font face=3D"arial, helvetica, sans-serif"><br></font></div><div><font fa=
ce=3D"arial, helvetica, sans-serif">martin</font></div><div><font face=3D"a=
rial, helvetica, sans-serif"><br></font></div><font face=3D"monospace, mono=
space">$ cat <a href=3D"http://db.ml">db.ml</a><br>type item =3D {<br>=C2=
=A0 id: int;<br>} with orm (<br>=C2=A0 unique: item&lt;id&gt;<br>)<br><br>l=
et db_name =3D &quot;test.db&quot;<br><br>$ cat <a href=3D"http://init_db.m=
l">init_db.ml</a><br>open Db<br><br>let _ =3D<br>=C2=A0 let db =3D item_ini=
t Db.db_name in<br>=C2=A0 let item =3D {<br>=C2=A0 =C2=A0 id =3D 1;<br>=C2=
=A0 } in<br>=C2=A0 item_save db item<br><br><br>$ ./init_db.native <br>$ ./=
init_db.native <br>Fatal error: exception Sqlite3.Error(&quot;CONSTRAINT&qu=
ot;)<br><br>$ sqlite3 test.db <br>sqlite&gt; select * from item;<br>__id__ =
=C2=A0 =C2=A0 =C2=A0id =C2=A0 =C2=A0 =C2=A0 =C2=A0<br>---------- =C2=A0----=
------<br>1 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 1 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 <br>2 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 <br>sqlite&gt; delete from item;<br>Error: no such function: SYNC_CA=
CHE_item<br></font><div><font face=3D"monospace, monospace"><br></font></di=
v></div>

--001a11490e4224b89505127ed608--


--===============7418095303688905383==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============7418095303688905383==--


From mirageos-devel-bounces@lists.xenproject.org Mon Mar 30 10:21:04 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 30 Mar 2015 10:21:04 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcWoT-0000aW-Q8; Mon, 30 Mar 2015 10:20:57 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <martindemello@gmail.com>) id 1YcWoS-0000Ze-8x
	for mirageos-devel@lists.xenproject.org; Mon, 30 Mar 2015 10:20:56 +0000
Received: from [85.158.139.211] by server-2.bemta-5.messagelabs.com id
	E9/B7-12190-78329155; Mon, 30 Mar 2015 10:20:55 +0000
X-Env-Sender: martindemello@gmail.com
X-Msg-Ref: server-13.tower-206.messagelabs.com!1427710851!12566668!1
X-Originating-IP: [209.85.216.175]
X-SpamReason: No, hits=0.9 required=7.0 tests=HTML_40_50,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 5892 invoked from network); 30 Mar 2015 10:20:52 -0000
Received: from mail-qc0-f175.google.com (HELO mail-qc0-f175.google.com)
	(209.85.216.175)
	by server-13.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	30 Mar 2015 10:20:52 -0000
Received: by qcfy6 with SMTP id y6so46666274qcf.2
	for <mirageos-devel@lists.xenproject.org>;
	Mon, 30 Mar 2015 03:20:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:content-type;
	bh=cVTGWh2rTq29XJ9Pd51m2SGrgVo5yPWbCVtmIwMrgjg=;
	b=nf/mp1RNDTFf/Ro1AUxy/ng04Ke4Ank+iQ+Cv6ZIAHLnu01hI5aGQqjjqgqUszLr+1
	wDPKPNeH1gdfKSMeBlfqVGHXWku1lUX6h4V8m1l5NoiPBvknJ3ZPcIaR22bbBwHDvCDH
	TDLGBRqBKncYe3v3/nLCZUUsjCilDLoEHoa2l+gDKSFx+593TjSDSPQdTEZz3+S4Ms1u
	LIZWSZrMEOtkzjFOuuhyVJ7AxHemaK5yMP0a8sy9WN58s07Bl4g0xLSYIfclvjuQYNb3
	cPZPXv1nlZn3UvrRslODQRdXNT0D9WY1Rxrm02t0cIWDvh1RW5nCB4suToJ7RZQCO3lF
	rlVw==
MIME-Version: 1.0
X-Received: by 10.55.52.77 with SMTP id b74mr8386287qka.78.1427710851459; Mon,
	30 Mar 2015 03:20:51 -0700 (PDT)
Received: by 10.140.47.55 with HTTP; Mon, 30 Mar 2015 03:20:51 -0700 (PDT)
Date: Mon, 30 Mar 2015 03:20:51 -0700
Message-ID: <CAFrFfuFsXOGt=F+ajnmo-dBoPc6=8DnUw4NkmxoapB9TM4R6AA@mail.gmail.com>
From: Martin DeMello <martindemello@gmail.com>
To: mirageos-devel@lists.xenproject.org
Subject: [MirageOS-devel] problem with sqlite constraints and orm
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============7418095303688905383=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============7418095303688905383==
Content-Type: multipart/alternative; boundary=001a11490e4224b89505127ed608

--001a11490e4224b89505127ed608
Content-Type: text/plain; charset=UTF-8

Problem demonstrated below: violating a unique constraint in sqlite3 seems
to leave things in an inconsistent state.

Also, tangentially, I discovered this while trying to maintain my own id on
a table because my app is serving json objects over a rest api, and I need
some sort of unique id for clients to be able to send updates to existing
objects. If there were a way to have the autogenerated sql __id__ column be
a record field, that would be extremely useful.

martin

$ cat db.ml
type item = {
  id: int;
} with orm (
  unique: item<id>
)

let db_name = "test.db"

$ cat init_db.ml
open Db

let _ =
  let db = item_init Db.db_name in
  let item = {
    id = 1;
  } in
  item_save db item


$ ./init_db.native
$ ./init_db.native
Fatal error: exception Sqlite3.Error("CONSTRAINT")

$ sqlite3 test.db
sqlite> select * from item;
__id__      id
----------  ----------
1           1
2
sqlite> delete from item;
Error: no such function: SYNC_CACHE_item

--001a11490e4224b89505127ed608
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><font face=3D"arial, helvetica, sans-serif">Problem d=
emonstrated below: violating a unique constraint in sqlite3 seems to leave =
things in an inconsistent state.</font></div><div><font face=3D"arial, helv=
etica, sans-serif"><br></font></div><div><font face=3D"arial, helvetica, sa=
ns-serif">Also, tangentially, I discovered this while trying to maintain my=
 own id on a table because my app is serving json objects over a rest api, =
and I need some sort of unique id for clients to be able to send updates to=
 existing objects. If there were a way to have the autogenerated sql __id__=
 column be a record field, that would be extremely useful.</font></div><div=
><font face=3D"arial, helvetica, sans-serif"><br></font></div><div><font fa=
ce=3D"arial, helvetica, sans-serif">martin</font></div><div><font face=3D"a=
rial, helvetica, sans-serif"><br></font></div><font face=3D"monospace, mono=
space">$ cat <a href=3D"http://db.ml">db.ml</a><br>type item =3D {<br>=C2=
=A0 id: int;<br>} with orm (<br>=C2=A0 unique: item&lt;id&gt;<br>)<br><br>l=
et db_name =3D &quot;test.db&quot;<br><br>$ cat <a href=3D"http://init_db.m=
l">init_db.ml</a><br>open Db<br><br>let _ =3D<br>=C2=A0 let db =3D item_ini=
t Db.db_name in<br>=C2=A0 let item =3D {<br>=C2=A0 =C2=A0 id =3D 1;<br>=C2=
=A0 } in<br>=C2=A0 item_save db item<br><br><br>$ ./init_db.native <br>$ ./=
init_db.native <br>Fatal error: exception Sqlite3.Error(&quot;CONSTRAINT&qu=
ot;)<br><br>$ sqlite3 test.db <br>sqlite&gt; select * from item;<br>__id__ =
=C2=A0 =C2=A0 =C2=A0id =C2=A0 =C2=A0 =C2=A0 =C2=A0<br>---------- =C2=A0----=
------<br>1 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 1 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 <br>2 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 <br>sqlite&gt; delete from item;<br>Error: no such function: SYNC_CA=
CHE_item<br></font><div><font face=3D"monospace, monospace"><br></font></di=
v></div>

--001a11490e4224b89505127ed608--


--===============7418095303688905383==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============7418095303688905383==--


From mirageos-devel-bounces@lists.xenproject.org Mon Mar 30 16:49:40 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 30 Mar 2015 16:49:40 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YccsZ-0005eG-2b; Mon, 30 Mar 2015 16:49:35 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YccsY-0005cp-E5
	for mirageos-devel@lists.xenproject.org; Mon, 30 Mar 2015 16:49:34 +0000
Received: from [85.158.139.211] by server-9.bemta-5.messagelabs.com id
	B4/1B-19899-D9E79155; Mon, 30 Mar 2015 16:49:33 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-8.tower-206.messagelabs.com!1427734173!12650691!1
X-Originating-IP: [209.85.212.175]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 31430 invoked from network); 30 Mar 2015 16:49:33 -0000
Received: from mail-wi0-f175.google.com (HELO mail-wi0-f175.google.com)
	(209.85.212.175)
	by server-8.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	30 Mar 2015 16:49:33 -0000
Received: by wibg7 with SMTP id g7so96371762wib.1
	for <mirageos-devel@lists.xenproject.org>;
	Mon, 30 Mar 2015 09:49:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=zJZtz3HwL1MpEDjU5jYifwroFmkoIhIeTqxTi69HQK0=;
	b=SrmIEGPD78tY42ytvt4Ai9mH86FmCrP4QLvjaIjQdyDA8RKSxBNlzk9kCfcsu3AiJU
	JIpzCH7B3sc5mFMmrCyoimNxR8Vl3j6BDCCo0Gk/taLM0Lm98pJEFhyq+pqDJajhWPY8
	1lYdETbTUYZmJfDQooRSfwuYdFEMmrxMwhqF4RnUg1I4zVcZXKvuVrJpJcDDweKq5/W8
	jDdR0jy1mqTlmKM/1pcgO5TTPjHNy1WZ/zKlo6WIC2odQv4Z0+TGZHLm7Zg2CshhHadT
	dQKBUUCdelDmQ59y5zVnTdpBDUx5Avs5u4BJHwnUlDRvX5iagoIGrlzT3vi5gANkk5C7
	LWMw==
X-Received: by 10.195.13.168 with SMTP id ez8mr64742873wjd.30.1427734172667;
	Mon, 30 Mar 2015 09:49:32 -0700 (PDT)
Received: from [192.168.1.44] (car06-8-83-155-104-81.fbx.proxad.net.
	[83.155.104.81])
	by mx.google.com with ESMTPSA id k1sm16529500wjn.9.2015.03.30.09.49.31
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Mon, 30 Mar 2015 09:49:31 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <CAG4opy_dzp-WgvE1YQM_ux37hsPv3+f_VccMd5-ifjUQ70W9rg@mail.gmail.com>
Date: Mon, 30 Mar 2015 18:49:34 +0200
Message-Id: <FD4AF87D-B87F-4C2B-A719-BF62D4E02DAE@gazagnaire.org>
References: <CAG4opy97Pr0ATq_FV7LtVbM1EmxUOf7oDb+DV=QPAP2ocTm95w@mail.gmail.com>
	<53DA75E3-EE46-4107-8CDC-EEBFE5D51F45@gazagnaire.org>
	<400A4287-9E91-4587-990C-2E00335162CF@gazagnaire.org>
	<CAG4opy_dzp-WgvE1YQM_ux37hsPv3+f_VccMd5-ifjUQ70W9rg@mail.gmail.com>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Merging in Irmin
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

>>> Not sure how to expose that nicely to the user though... maybe allowing to specify a "parent" optional argument to merge/update/rebase.
> 
> That would be useful. I've been avoiding the "Private" API so far, but
> maybe I should start using it.

I've just open a new PR to fix that: https://github.com/mirage/irmin/pull/178

I've exposed `View.parents` and `View.set_parents` to do that. I'm not very happy with that API: on one hand, it would be much better to have immutable views (and have `with_parents` to modify the parents), but on the other hand, the current APIs is nice because it is a subset of Irmin.S so I kept exposing the side-effects...

>> You can only create a view from one store and apply it in the other: the history of commit will be kept as expected. See:
>> 
>> https://github.com/samoht/dog/blob/master/lib/dog.ml#L247
>> 
>> You can try to use that to merge views from different branches, not sure how practical this is though.
> 
> The basic logic I have is roughly:
> 
> 1. git checkout base
> 2. (apply modification)
> 3. UPDATE=$(git commit-tree -p base)
> 4. git checkout master
> 5. git-merge -s custom $UPDATE
> 
> Where "custom" should be my app-specific merge logic that works on
> whole trees rather than individual files.

So now you should be able to create a view, do some stuff on it, give it the parents you need and save it.

> Currently, I merge to create a new commit, test it, and then do a
> fast-forward to update the branch to include the merge if the test
> passes. But if I can use custom merge code, then it would be OK to
> merge directly to the branch when my merge code returns, since it will
> already have had a chance to test it.

In the PR, I've also added `Irmin.fast_forward_head` (maybe it should be `fast_forward_to_head`?) to to that. It returns "false" (and does nothing) it the new head is not strictly in the future of the current head.

Let me know if you need something else (I'm still working on the right way to fix the watch API).

Best,
Thomas


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Mon Mar 30 16:49:40 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 30 Mar 2015 16:49:40 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YccsZ-0005eG-2b; Mon, 30 Mar 2015 16:49:35 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <thomas.gazagnaire@gmail.com>) id 1YccsY-0005cp-E5
	for mirageos-devel@lists.xenproject.org; Mon, 30 Mar 2015 16:49:34 +0000
Received: from [85.158.139.211] by server-9.bemta-5.messagelabs.com id
	B4/1B-19899-D9E79155; Mon, 30 Mar 2015 16:49:33 +0000
X-Env-Sender: thomas.gazagnaire@gmail.com
X-Msg-Ref: server-8.tower-206.messagelabs.com!1427734173!12650691!1
X-Originating-IP: [209.85.212.175]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 31430 invoked from network); 30 Mar 2015 16:49:33 -0000
Received: from mail-wi0-f175.google.com (HELO mail-wi0-f175.google.com)
	(209.85.212.175)
	by server-8.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	30 Mar 2015 16:49:33 -0000
Received: by wibg7 with SMTP id g7so96371762wib.1
	for <mirageos-devel@lists.xenproject.org>;
	Mon, 30 Mar 2015 09:49:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=sender:content-type:mime-version:subject:from:in-reply-to:date:cc
	:content-transfer-encoding:message-id:references:to;
	bh=zJZtz3HwL1MpEDjU5jYifwroFmkoIhIeTqxTi69HQK0=;
	b=SrmIEGPD78tY42ytvt4Ai9mH86FmCrP4QLvjaIjQdyDA8RKSxBNlzk9kCfcsu3AiJU
	JIpzCH7B3sc5mFMmrCyoimNxR8Vl3j6BDCCo0Gk/taLM0Lm98pJEFhyq+pqDJajhWPY8
	1lYdETbTUYZmJfDQooRSfwuYdFEMmrxMwhqF4RnUg1I4zVcZXKvuVrJpJcDDweKq5/W8
	jDdR0jy1mqTlmKM/1pcgO5TTPjHNy1WZ/zKlo6WIC2odQv4Z0+TGZHLm7Zg2CshhHadT
	dQKBUUCdelDmQ59y5zVnTdpBDUx5Avs5u4BJHwnUlDRvX5iagoIGrlzT3vi5gANkk5C7
	LWMw==
X-Received: by 10.195.13.168 with SMTP id ez8mr64742873wjd.30.1427734172667;
	Mon, 30 Mar 2015 09:49:32 -0700 (PDT)
Received: from [192.168.1.44] (car06-8-83-155-104-81.fbx.proxad.net.
	[83.155.104.81])
	by mx.google.com with ESMTPSA id k1sm16529500wjn.9.2015.03.30.09.49.31
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Mon, 30 Mar 2015 09:49:31 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Thomas Gazagnaire <thomas@gazagnaire.org>
In-Reply-To: <CAG4opy_dzp-WgvE1YQM_ux37hsPv3+f_VccMd5-ifjUQ70W9rg@mail.gmail.com>
Date: Mon, 30 Mar 2015 18:49:34 +0200
Message-Id: <FD4AF87D-B87F-4C2B-A719-BF62D4E02DAE@gazagnaire.org>
References: <CAG4opy97Pr0ATq_FV7LtVbM1EmxUOf7oDb+DV=QPAP2ocTm95w@mail.gmail.com>
	<53DA75E3-EE46-4107-8CDC-EEBFE5D51F45@gazagnaire.org>
	<400A4287-9E91-4587-990C-2E00335162CF@gazagnaire.org>
	<CAG4opy_dzp-WgvE1YQM_ux37hsPv3+f_VccMd5-ifjUQ70W9rg@mail.gmail.com>
To: Thomas Leonard <talex5@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: "mirageos-devel@lists.xenproject.org" <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] Merging in Irmin
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

>>> Not sure how to expose that nicely to the user though... maybe allowing to specify a "parent" optional argument to merge/update/rebase.
> 
> That would be useful. I've been avoiding the "Private" API so far, but
> maybe I should start using it.

I've just open a new PR to fix that: https://github.com/mirage/irmin/pull/178

I've exposed `View.parents` and `View.set_parents` to do that. I'm not very happy with that API: on one hand, it would be much better to have immutable views (and have `with_parents` to modify the parents), but on the other hand, the current APIs is nice because it is a subset of Irmin.S so I kept exposing the side-effects...

>> You can only create a view from one store and apply it in the other: the history of commit will be kept as expected. See:
>> 
>> https://github.com/samoht/dog/blob/master/lib/dog.ml#L247
>> 
>> You can try to use that to merge views from different branches, not sure how practical this is though.
> 
> The basic logic I have is roughly:
> 
> 1. git checkout base
> 2. (apply modification)
> 3. UPDATE=$(git commit-tree -p base)
> 4. git checkout master
> 5. git-merge -s custom $UPDATE
> 
> Where "custom" should be my app-specific merge logic that works on
> whole trees rather than individual files.

So now you should be able to create a view, do some stuff on it, give it the parents you need and save it.

> Currently, I merge to create a new commit, test it, and then do a
> fast-forward to update the branch to include the merge if the test
> passes. But if I can use custom merge code, then it would be OK to
> merge directly to the branch when my merge code returns, since it will
> already have had a chance to test it.

In the PR, I've also added `Irmin.fast_forward_head` (maybe it should be `fast_forward_to_head`?) to to that. It returns "false" (and does nothing) it the new head is not strictly in the future of the current head.

Let me know if you need something else (I'm still working on the right way to fix the watch API).

Best,
Thomas


_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Mon Mar 30 21:11:51 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 30 Mar 2015 21:11:51 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcgyH-0003W5-DP; Mon, 30 Mar 2015 21:11:45 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <magnus@therning.org>) id 1YcgyF-0003Vr-R0
	for mirageos-devel@lists.xenproject.org; Mon, 30 Mar 2015 21:11:43 +0000
Received: from [85.158.139.211] by server-11.bemta-5.messagelabs.com id
	17/C5-30672-E0CB9155; Mon, 30 Mar 2015 21:11:42 +0000
X-Env-Sender: magnus@therning.org
X-Msg-Ref: server-5.tower-206.messagelabs.com!1427749901!12685726!1
X-Originating-IP: [209.85.215.45]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 3130 invoked from network); 30 Mar 2015 21:11:42 -0000
Received: from mail-la0-f45.google.com (HELO mail-la0-f45.google.com)
	(209.85.215.45)
	by server-5.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	30 Mar 2015 21:11:42 -0000
Received: by labe2 with SMTP id e2so113741762lab.3
	for <mirageos-devel@lists.xenproject.org>;
	Mon, 30 Mar 2015 14:11:41 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:date:from:to:cc:subject:message-id:references
	:mime-version:content-type:content-disposition:in-reply-to
	:user-agent;
	bh=zdCfLgHNxuXae2+Gl+1QqSbtyPTVHZY/a6t5h3FJqVs=;
	b=HLrAjy9SvNs/E3mfLOqdtdA6g1V02ix3ftT4S2D93zXBckhX8CKoqKwaNt/R0tVLxT
	P0oZcjaoBRm3D1p1rQNe2qH8oVuCxmzeGrt3xdHCVMy0E0+z3xqsy8Kh8l0OskxGUUQQ
	C54186GweV00kW82gregnv6ay+f6JuPc5Z2HiClgFmIMxlZSrS2DlwsIsoGUbEFsoXSU
	YaqsSynU7lt/OlDjDbVDXQA+fWTNAK4Dh0soeWgmD5mJQ2HMcNne5iSkDY9RecDHZiLY
	PtDTIZG9scpPA7bAjKVYCE/L/KzIlSEOpcomiCIN1LL8zaCMWM2O6qKe7Cpg2z5TBlbs
	7jeA==
X-Gm-Message-State: ALoCoQlKWh0upvh9lZ+LCBzs/NGxfmj0H/q0h4/356gkt4OW/xsaBUB3A0Wh8woZQ0qOQ6EL5CYD
X-Received: by 10.152.179.139 with SMTP id dg11mr28267633lac.28.1427749901699; 
	Mon, 30 Mar 2015 14:11:41 -0700 (PDT)
Received: from tatooine (c83-248-178-110.bredband.comhem.se. [83.248.178.110])
	by mx.google.com with ESMTPSA id
	ps2sm2255950lbb.20.2015.03.30.14.11.39
	(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Mon, 30 Mar 2015 14:11:40 -0700 (PDT)
Date: Mon, 30 Mar 2015 23:11:37 +0200
From: Magnus Therning <magnus@therning.org>
To: David Scott <scott.dj@gmail.com>
Message-ID: <20150330211137.GA2701@tatooine>
References: <20150329160245.GA5672@tatooine>
	<CAG_esB01YmTnyy1NviDhB8f4Pr8T+PaHCV0N-kqrJVyydSZrvg@mail.gmail.com>
	<20150329185230.GA7522@tatooine>
	<CAG_esB09iWEoh83RF+HuHpu-qmzF7O7RR0YctLXFkaDdC9PcQg@mail.gmail.com>
MIME-Version: 1.0
In-Reply-To: <CAG_esB09iWEoh83RF+HuHpu-qmzF7O7RR0YctLXFkaDdC9PcQg@mail.gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] mirage-www on xen and networking (on ARM)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2386667672118297409=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============2386667672118297409==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua"
Content-Disposition: inline


--SUOF0GtieIMvvwua
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Mar 29, 2015 at 09:00:27PM +0100, David Scott wrote:
> On Sun, Mar 29, 2015 at 7:52 PM, Magnus Therning <magnus@therning.org>
> wrote:
[...]
>> This time around I don't get anything in reply to my requests
>> though.
>=20
> This is probably because my debug suggestion removed the assert and
> probably confused the higher layers.

Indeed, I put back the assert statement, after the if, and started
getting the partial reply again.

> Unless I'm misreading this, I think it must be a bug in
> mirage-net-xen (the ethernet driver) misreading the ethernet frames
> somehow? Or perhaps the peer host is sending extra junk on the end
> of its IP packets but within the ethernet frames?
>=20
> What kind of network are you using?

It's a standard cable modem & router (Netgear).  The cubietruck is
connected directly to the modem.  I'm issuing the HTTP from a laptop,
and both a wireless and wired connection gives the same behaviour.

> I've filed this issue for now:
>=20
> https://github.com/mirage/mirage-net-xen/issues/24

Excellent.  Let me know if there's something else I should try.

I was planning on capturing some traffic from a third system to see
what's actually on the network, but I don't think I'll find the time
to do that until towards the end of the week.

/M

--=20
Magnus Therning                      OpenPGP: 0xAB4DFBA4=20
email: magnus@therning.org   jabber: magnus@therning.org
twitter: magthe               http://therning.org/magnus

Time is a great teacher, but unfortunately it kills all its pupils.
     -- Hector Louis Berlioz

--SUOF0GtieIMvvwua
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iEYEABECAAYFAlUZvAQACgkQiMWTaatN+6S4IQCgq7/seNDiifXvPDg2i0ZfaK3D
aC0AoI/zylh9/hihOfw89ufmYxvAc1vp
=GKjs
-----END PGP SIGNATURE-----

--SUOF0GtieIMvvwua--


--===============2386667672118297409==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============2386667672118297409==--


From mirageos-devel-bounces@lists.xenproject.org Mon Mar 30 21:11:51 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 30 Mar 2015 21:11:51 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcgyH-0003W5-DP; Mon, 30 Mar 2015 21:11:45 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <magnus@therning.org>) id 1YcgyF-0003Vr-R0
	for mirageos-devel@lists.xenproject.org; Mon, 30 Mar 2015 21:11:43 +0000
Received: from [85.158.139.211] by server-11.bemta-5.messagelabs.com id
	17/C5-30672-E0CB9155; Mon, 30 Mar 2015 21:11:42 +0000
X-Env-Sender: magnus@therning.org
X-Msg-Ref: server-5.tower-206.messagelabs.com!1427749901!12685726!1
X-Originating-IP: [209.85.215.45]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 3130 invoked from network); 30 Mar 2015 21:11:42 -0000
Received: from mail-la0-f45.google.com (HELO mail-la0-f45.google.com)
	(209.85.215.45)
	by server-5.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	30 Mar 2015 21:11:42 -0000
Received: by labe2 with SMTP id e2so113741762lab.3
	for <mirageos-devel@lists.xenproject.org>;
	Mon, 30 Mar 2015 14:11:41 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:date:from:to:cc:subject:message-id:references
	:mime-version:content-type:content-disposition:in-reply-to
	:user-agent;
	bh=zdCfLgHNxuXae2+Gl+1QqSbtyPTVHZY/a6t5h3FJqVs=;
	b=HLrAjy9SvNs/E3mfLOqdtdA6g1V02ix3ftT4S2D93zXBckhX8CKoqKwaNt/R0tVLxT
	P0oZcjaoBRm3D1p1rQNe2qH8oVuCxmzeGrt3xdHCVMy0E0+z3xqsy8Kh8l0OskxGUUQQ
	C54186GweV00kW82gregnv6ay+f6JuPc5Z2HiClgFmIMxlZSrS2DlwsIsoGUbEFsoXSU
	YaqsSynU7lt/OlDjDbVDXQA+fWTNAK4Dh0soeWgmD5mJQ2HMcNne5iSkDY9RecDHZiLY
	PtDTIZG9scpPA7bAjKVYCE/L/KzIlSEOpcomiCIN1LL8zaCMWM2O6qKe7Cpg2z5TBlbs
	7jeA==
X-Gm-Message-State: ALoCoQlKWh0upvh9lZ+LCBzs/NGxfmj0H/q0h4/356gkt4OW/xsaBUB3A0Wh8woZQ0qOQ6EL5CYD
X-Received: by 10.152.179.139 with SMTP id dg11mr28267633lac.28.1427749901699; 
	Mon, 30 Mar 2015 14:11:41 -0700 (PDT)
Received: from tatooine (c83-248-178-110.bredband.comhem.se. [83.248.178.110])
	by mx.google.com with ESMTPSA id
	ps2sm2255950lbb.20.2015.03.30.14.11.39
	(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
	Mon, 30 Mar 2015 14:11:40 -0700 (PDT)
Date: Mon, 30 Mar 2015 23:11:37 +0200
From: Magnus Therning <magnus@therning.org>
To: David Scott <scott.dj@gmail.com>
Message-ID: <20150330211137.GA2701@tatooine>
References: <20150329160245.GA5672@tatooine>
	<CAG_esB01YmTnyy1NviDhB8f4Pr8T+PaHCV0N-kqrJVyydSZrvg@mail.gmail.com>
	<20150329185230.GA7522@tatooine>
	<CAG_esB09iWEoh83RF+HuHpu-qmzF7O7RR0YctLXFkaDdC9PcQg@mail.gmail.com>
MIME-Version: 1.0
In-Reply-To: <CAG_esB09iWEoh83RF+HuHpu-qmzF7O7RR0YctLXFkaDdC9PcQg@mail.gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] mirage-www on xen and networking (on ARM)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2386667672118297409=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============2386667672118297409==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua"
Content-Disposition: inline


--SUOF0GtieIMvvwua
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Mar 29, 2015 at 09:00:27PM +0100, David Scott wrote:
> On Sun, Mar 29, 2015 at 7:52 PM, Magnus Therning <magnus@therning.org>
> wrote:
[...]
>> This time around I don't get anything in reply to my requests
>> though.
>=20
> This is probably because my debug suggestion removed the assert and
> probably confused the higher layers.

Indeed, I put back the assert statement, after the if, and started
getting the partial reply again.

> Unless I'm misreading this, I think it must be a bug in
> mirage-net-xen (the ethernet driver) misreading the ethernet frames
> somehow? Or perhaps the peer host is sending extra junk on the end
> of its IP packets but within the ethernet frames?
>=20
> What kind of network are you using?

It's a standard cable modem & router (Netgear).  The cubietruck is
connected directly to the modem.  I'm issuing the HTTP from a laptop,
and both a wireless and wired connection gives the same behaviour.

> I've filed this issue for now:
>=20
> https://github.com/mirage/mirage-net-xen/issues/24

Excellent.  Let me know if there's something else I should try.

I was planning on capturing some traffic from a third system to see
what's actually on the network, but I don't think I'll find the time
to do that until towards the end of the week.

/M

--=20
Magnus Therning                      OpenPGP: 0xAB4DFBA4=20
email: magnus@therning.org   jabber: magnus@therning.org
twitter: magthe               http://therning.org/magnus

Time is a great teacher, but unfortunately it kills all its pupils.
     -- Hector Louis Berlioz

--SUOF0GtieIMvvwua
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----

iEYEABECAAYFAlUZvAQACgkQiMWTaatN+6S4IQCgq7/seNDiifXvPDg2i0ZfaK3D
aC0AoI/zylh9/hihOfw89ufmYxvAc1vp
=GKjs
-----END PGP SIGNATURE-----

--SUOF0GtieIMvvwua--


--===============2386667672118297409==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============2386667672118297409==--


From mirageos-devel-bounces@lists.xenproject.org Mon Mar 30 22:05:24 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 30 Mar 2015 22:05:24 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Ycho6-0001hX-J9; Mon, 30 Mar 2015 22:05:18 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <scott.dj@gmail.com>) id 1Ycho5-0001hS-7z
	for mirageos-devel@lists.xenproject.org; Mon, 30 Mar 2015 22:05:17 +0000
Received: from [85.158.137.68] by server-1.bemta-3.messagelabs.com id
	2E/E0-13265-C98C9155; Mon, 30 Mar 2015 22:05:16 +0000
X-Env-Sender: scott.dj@gmail.com
X-Msg-Ref: server-5.tower-31.messagelabs.com!1427753113!12467881!1
X-Originating-IP: [209.85.192.180]
X-SpamReason: No, hits=0.9 required=7.0 tests=HTML_40_50,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 29623 invoked from network); 30 Mar 2015 22:05:14 -0000
Received: from mail-pd0-f180.google.com (HELO mail-pd0-f180.google.com)
	(209.85.192.180)
	by server-5.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	30 Mar 2015 22:05:14 -0000
Received: by pdcp1 with SMTP id p1so96969026pdc.3
	for <mirageos-devel@lists.xenproject.org>;
	Mon, 30 Mar 2015 15:05:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=eOx2d0m8geYeh0VPE+Ugu09W/xM7CQLUsBKASYD2xE0=;
	b=k3EDQavPxEG1b5npDf7o/BPFgZfz77m7Lka2nkqLLPJHsCWuKSjvSyUPSwGD3Xq76T
	xTBX8iyC4hLgVNpEEdecNwbZkpLjkWJVf+H1ZJzOseYBAxXva/QE5yIR6iGEXr71OSZd
	uKLjZnc+Av0dSeAvrKJzCkQDJExS1HjyI6v1TMRJg1PILu9oFIvW5kdSLAx2K6OJ9YjY
	+qnTMOHv9PgZLh2iV4UZfEgpWSZKVgQQn3On7NWoppNRhcSytcFE1a8dNHED9iQ8x2hH
	TN/r9F+0HlCXKfXK8c6/wh2rL3v/lDoC6BGWgcu099m9t5/mOMbrmIhrekb270pcuKkQ
	DlOw==
MIME-Version: 1.0
X-Received: by 10.70.43.134 with SMTP id w6mr62126336pdl.169.1427753113205;
	Mon, 30 Mar 2015 15:05:13 -0700 (PDT)
Received: by 10.70.102.205 with HTTP; Mon, 30 Mar 2015 15:05:13 -0700 (PDT)
In-Reply-To: <20150330211137.GA2701@tatooine>
References: <20150329160245.GA5672@tatooine>
	<CAG_esB01YmTnyy1NviDhB8f4Pr8T+PaHCV0N-kqrJVyydSZrvg@mail.gmail.com>
	<20150329185230.GA7522@tatooine>
	<CAG_esB09iWEoh83RF+HuHpu-qmzF7O7RR0YctLXFkaDdC9PcQg@mail.gmail.com>
	<20150330211137.GA2701@tatooine>
Date: Mon, 30 Mar 2015 23:05:13 +0100
Message-ID: <CAG_esB3TDT0mdAAAM6B0My9NG2f0rmvnQvDQXnhmWNKXpdKtfQ@mail.gmail.com>
From: David Scott <scott.dj@gmail.com>
To: Magnus Therning <magnus@therning.org>
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] mirage-www on xen and networking (on ARM)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0919032851890420952=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============0919032851890420952==
Content-Type: multipart/alternative; boundary=047d7bfe952423c1c8051288adf4

--047d7bfe952423c1c8051288adf4
Content-Type: text/plain; charset=UTF-8

On Mon, Mar 30, 2015 at 10:11 PM, Magnus Therning <magnus@therning.org>
wrote:

> On Sun, Mar 29, 2015 at 09:00:27PM +0100, David Scott wrote:
> > On Sun, Mar 29, 2015 at 7:52 PM, Magnus Therning <magnus@therning.org>
> > wrote:
> [...]
> >> This time around I don't get anything in reply to my requests
> >> though.
> >
> > This is probably because my debug suggestion removed the assert and
> > probably confused the higher layers.
>
> Indeed, I put back the assert statement, after the if, and started
> getting the partial reply again.
>
> > Unless I'm misreading this, I think it must be a bug in
> > mirage-net-xen (the ethernet driver) misreading the ethernet frames
> > somehow? Or perhaps the peer host is sending extra junk on the end
> > of its IP packets but within the ethernet frames?
> >
> > What kind of network are you using?
>
> It's a standard cable modem & router (Netgear).  The cubietruck is
> connected directly to the modem.  I'm issuing the HTTP from a laptop,
> and both a wireless and wired connection gives the same behaviour.
>
> > I've filed this issue for now:
> >
> > https://github.com/mirage/mirage-net-xen/issues/24
>
> Excellent.  Let me know if there's something else I should try.
>
> I was planning on capturing some traffic from a third system to see
> what's actually on the network, but I don't think I'll find the time
> to do that until towards the end of the week.
>

After a clean rebuild on my cubieboard, I'm getting the assertion failures
too, which is good. I notice the assert that's failing was added relatively
recently[1] in tcpip v2.2.3 so it's possible that it's simply highlighting
an old bug in mirage-net-xen. The hunt continues...

Cheers,
Dave

[1]
https://github.com/mirage/mirage-tcpip/commit/00ca58327682dd1363459ee570964aade0704b7c


>
> /M
>
> --
> Magnus Therning                      OpenPGP: 0xAB4DFBA4
> email: magnus@therning.org   jabber: magnus@therning.org
> twitter: magthe               http://therning.org/magnus
>
> Time is a great teacher, but unfortunately it kills all its pupils.
>      -- Hector Louis Berlioz
>



-- 
Dave Scott

--047d7bfe952423c1c8051288adf4
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Mon, Mar 30, 2015 at 10:11 PM, Magnus Therning <span dir=3D"ltr">&lt=
;<a href=3D"mailto:magnus@therning.org" target=3D"_blank">magnus@therning.o=
rg</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"marg=
in:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,20=
4);border-left-style:solid;padding-left:1ex"><span class=3D"">On Sun, Mar 2=
9, 2015 at 09:00:27PM +0100, David Scott wrote:<br>
&gt; On Sun, Mar 29, 2015 at 7:52 PM, Magnus Therning &lt;<a href=3D"mailto=
:magnus@therning.org">magnus@therning.org</a>&gt;<br>
&gt; wrote:<br>
</span>[...]<br>
<span class=3D"">&gt;&gt; This time around I don&#39;t get anything in repl=
y to my requests<br>
&gt;&gt; though.<br>
&gt;<br>
&gt; This is probably because my debug suggestion removed the assert and<br=
>
&gt; probably confused the higher layers.<br>
<br>
</span>Indeed, I put back the assert statement, after the if, and started<b=
r>
getting the partial reply again.<br>
<span class=3D""><br>
&gt; Unless I&#39;m misreading this, I think it must be a bug in<br>
&gt; mirage-net-xen (the ethernet driver) misreading the ethernet frames<br=
>
&gt; somehow? Or perhaps the peer host is sending extra junk on the end<br>
&gt; of its IP packets but within the ethernet frames?<br>
&gt;<br>
&gt; What kind of network are you using?<br>
<br>
</span>It&#39;s a standard cable modem &amp; router (Netgear).=C2=A0 The cu=
bietruck is<br>
connected directly to the modem.=C2=A0 I&#39;m issuing the HTTP from a lapt=
op,<br>
and both a wireless and wired connection gives the same behaviour.<br>
<span class=3D""><br>
&gt; I&#39;ve filed this issue for now:<br>
&gt;<br>
&gt; <a href=3D"https://github.com/mirage/mirage-net-xen/issues/24" target=
=3D"_blank">https://github.com/mirage/mirage-net-xen/issues/24</a><br>
<br>
</span>Excellent.=C2=A0 Let me know if there&#39;s something else I should =
try.<br>
<br>
I was planning on capturing some traffic from a third system to see<br>
what&#39;s actually on the network, but I don&#39;t think I&#39;ll find the=
 time<br>
to do that until towards the end of the week.<br></blockquote><div><br></di=
v><div>After a clean rebuild on my cubieboard, I&#39;m getting the assertio=
n failures too, which is good. I notice the assert that&#39;s failing was a=
dded relatively recently[1] in tcpip v2.2.3 so it&#39;s possible that it&#3=
9;s simply highlighting an old bug in mirage-net-xen. The hunt continues...=
</div><div><br></div><div>Cheers,</div><div>Dave</div><div><br></div><div>[=
1]=C2=A0<a href=3D"https://github.com/mirage/mirage-tcpip/commit/00ca583276=
82dd1363459ee570964aade0704b7c">https://github.com/mirage/mirage-tcpip/comm=
it/00ca58327682dd1363459ee570964aade0704b7c</a></div><div>=C2=A0</div><bloc=
kquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-=
width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;paddin=
g-left:1ex">
<span class=3D""><br>
/M<br>
<br>
--<br>
Magnus Therning=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 OpenPGP: 0xAB4DFBA4<br>
email: <a href=3D"mailto:magnus@therning.org">magnus@therning.org</a>=C2=A0=
 =C2=A0jabber: <a href=3D"mailto:magnus@therning.org">magnus@therning.org</=
a><br>
twitter: magthe=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<a hr=
ef=3D"http://therning.org/magnus" target=3D"_blank">http://therning.org/mag=
nus</a><br>
<br>
</span>Time is a great teacher, but unfortunately it kills all its pupils.<=
br>
=C2=A0 =C2=A0 =C2=A0-- Hector Louis Berlioz<br>
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div class=
=3D"gmail_signature">Dave Scott</div>
</div></div>

--047d7bfe952423c1c8051288adf4--


--===============0919032851890420952==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============0919032851890420952==--


From mirageos-devel-bounces@lists.xenproject.org Mon Mar 30 22:05:24 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Mon, 30 Mar 2015 22:05:24 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Ycho6-0001hX-J9; Mon, 30 Mar 2015 22:05:18 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <scott.dj@gmail.com>) id 1Ycho5-0001hS-7z
	for mirageos-devel@lists.xenproject.org; Mon, 30 Mar 2015 22:05:17 +0000
Received: from [85.158.137.68] by server-1.bemta-3.messagelabs.com id
	2E/E0-13265-C98C9155; Mon, 30 Mar 2015 22:05:16 +0000
X-Env-Sender: scott.dj@gmail.com
X-Msg-Ref: server-5.tower-31.messagelabs.com!1427753113!12467881!1
X-Originating-IP: [209.85.192.180]
X-SpamReason: No, hits=0.9 required=7.0 tests=HTML_40_50,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 29623 invoked from network); 30 Mar 2015 22:05:14 -0000
Received: from mail-pd0-f180.google.com (HELO mail-pd0-f180.google.com)
	(209.85.192.180)
	by server-5.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	30 Mar 2015 22:05:14 -0000
Received: by pdcp1 with SMTP id p1so96969026pdc.3
	for <mirageos-devel@lists.xenproject.org>;
	Mon, 30 Mar 2015 15:05:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=eOx2d0m8geYeh0VPE+Ugu09W/xM7CQLUsBKASYD2xE0=;
	b=k3EDQavPxEG1b5npDf7o/BPFgZfz77m7Lka2nkqLLPJHsCWuKSjvSyUPSwGD3Xq76T
	xTBX8iyC4hLgVNpEEdecNwbZkpLjkWJVf+H1ZJzOseYBAxXva/QE5yIR6iGEXr71OSZd
	uKLjZnc+Av0dSeAvrKJzCkQDJExS1HjyI6v1TMRJg1PILu9oFIvW5kdSLAx2K6OJ9YjY
	+qnTMOHv9PgZLh2iV4UZfEgpWSZKVgQQn3On7NWoppNRhcSytcFE1a8dNHED9iQ8x2hH
	TN/r9F+0HlCXKfXK8c6/wh2rL3v/lDoC6BGWgcu099m9t5/mOMbrmIhrekb270pcuKkQ
	DlOw==
MIME-Version: 1.0
X-Received: by 10.70.43.134 with SMTP id w6mr62126336pdl.169.1427753113205;
	Mon, 30 Mar 2015 15:05:13 -0700 (PDT)
Received: by 10.70.102.205 with HTTP; Mon, 30 Mar 2015 15:05:13 -0700 (PDT)
In-Reply-To: <20150330211137.GA2701@tatooine>
References: <20150329160245.GA5672@tatooine>
	<CAG_esB01YmTnyy1NviDhB8f4Pr8T+PaHCV0N-kqrJVyydSZrvg@mail.gmail.com>
	<20150329185230.GA7522@tatooine>
	<CAG_esB09iWEoh83RF+HuHpu-qmzF7O7RR0YctLXFkaDdC9PcQg@mail.gmail.com>
	<20150330211137.GA2701@tatooine>
Date: Mon, 30 Mar 2015 23:05:13 +0100
Message-ID: <CAG_esB3TDT0mdAAAM6B0My9NG2f0rmvnQvDQXnhmWNKXpdKtfQ@mail.gmail.com>
From: David Scott <scott.dj@gmail.com>
To: Magnus Therning <magnus@therning.org>
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] mirage-www on xen and networking (on ARM)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0919032851890420952=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============0919032851890420952==
Content-Type: multipart/alternative; boundary=047d7bfe952423c1c8051288adf4

--047d7bfe952423c1c8051288adf4
Content-Type: text/plain; charset=UTF-8

On Mon, Mar 30, 2015 at 10:11 PM, Magnus Therning <magnus@therning.org>
wrote:

> On Sun, Mar 29, 2015 at 09:00:27PM +0100, David Scott wrote:
> > On Sun, Mar 29, 2015 at 7:52 PM, Magnus Therning <magnus@therning.org>
> > wrote:
> [...]
> >> This time around I don't get anything in reply to my requests
> >> though.
> >
> > This is probably because my debug suggestion removed the assert and
> > probably confused the higher layers.
>
> Indeed, I put back the assert statement, after the if, and started
> getting the partial reply again.
>
> > Unless I'm misreading this, I think it must be a bug in
> > mirage-net-xen (the ethernet driver) misreading the ethernet frames
> > somehow? Or perhaps the peer host is sending extra junk on the end
> > of its IP packets but within the ethernet frames?
> >
> > What kind of network are you using?
>
> It's a standard cable modem & router (Netgear).  The cubietruck is
> connected directly to the modem.  I'm issuing the HTTP from a laptop,
> and both a wireless and wired connection gives the same behaviour.
>
> > I've filed this issue for now:
> >
> > https://github.com/mirage/mirage-net-xen/issues/24
>
> Excellent.  Let me know if there's something else I should try.
>
> I was planning on capturing some traffic from a third system to see
> what's actually on the network, but I don't think I'll find the time
> to do that until towards the end of the week.
>

After a clean rebuild on my cubieboard, I'm getting the assertion failures
too, which is good. I notice the assert that's failing was added relatively
recently[1] in tcpip v2.2.3 so it's possible that it's simply highlighting
an old bug in mirage-net-xen. The hunt continues...

Cheers,
Dave

[1]
https://github.com/mirage/mirage-tcpip/commit/00ca58327682dd1363459ee570964aade0704b7c


>
> /M
>
> --
> Magnus Therning                      OpenPGP: 0xAB4DFBA4
> email: magnus@therning.org   jabber: magnus@therning.org
> twitter: magthe               http://therning.org/magnus
>
> Time is a great teacher, but unfortunately it kills all its pupils.
>      -- Hector Louis Berlioz
>



-- 
Dave Scott

--047d7bfe952423c1c8051288adf4
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Mon, Mar 30, 2015 at 10:11 PM, Magnus Therning <span dir=3D"ltr">&lt=
;<a href=3D"mailto:magnus@therning.org" target=3D"_blank">magnus@therning.o=
rg</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"marg=
in:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,20=
4);border-left-style:solid;padding-left:1ex"><span class=3D"">On Sun, Mar 2=
9, 2015 at 09:00:27PM +0100, David Scott wrote:<br>
&gt; On Sun, Mar 29, 2015 at 7:52 PM, Magnus Therning &lt;<a href=3D"mailto=
:magnus@therning.org">magnus@therning.org</a>&gt;<br>
&gt; wrote:<br>
</span>[...]<br>
<span class=3D"">&gt;&gt; This time around I don&#39;t get anything in repl=
y to my requests<br>
&gt;&gt; though.<br>
&gt;<br>
&gt; This is probably because my debug suggestion removed the assert and<br=
>
&gt; probably confused the higher layers.<br>
<br>
</span>Indeed, I put back the assert statement, after the if, and started<b=
r>
getting the partial reply again.<br>
<span class=3D""><br>
&gt; Unless I&#39;m misreading this, I think it must be a bug in<br>
&gt; mirage-net-xen (the ethernet driver) misreading the ethernet frames<br=
>
&gt; somehow? Or perhaps the peer host is sending extra junk on the end<br>
&gt; of its IP packets but within the ethernet frames?<br>
&gt;<br>
&gt; What kind of network are you using?<br>
<br>
</span>It&#39;s a standard cable modem &amp; router (Netgear).=C2=A0 The cu=
bietruck is<br>
connected directly to the modem.=C2=A0 I&#39;m issuing the HTTP from a lapt=
op,<br>
and both a wireless and wired connection gives the same behaviour.<br>
<span class=3D""><br>
&gt; I&#39;ve filed this issue for now:<br>
&gt;<br>
&gt; <a href=3D"https://github.com/mirage/mirage-net-xen/issues/24" target=
=3D"_blank">https://github.com/mirage/mirage-net-xen/issues/24</a><br>
<br>
</span>Excellent.=C2=A0 Let me know if there&#39;s something else I should =
try.<br>
<br>
I was planning on capturing some traffic from a third system to see<br>
what&#39;s actually on the network, but I don&#39;t think I&#39;ll find the=
 time<br>
to do that until towards the end of the week.<br></blockquote><div><br></di=
v><div>After a clean rebuild on my cubieboard, I&#39;m getting the assertio=
n failures too, which is good. I notice the assert that&#39;s failing was a=
dded relatively recently[1] in tcpip v2.2.3 so it&#39;s possible that it&#3=
9;s simply highlighting an old bug in mirage-net-xen. The hunt continues...=
</div><div><br></div><div>Cheers,</div><div>Dave</div><div><br></div><div>[=
1]=C2=A0<a href=3D"https://github.com/mirage/mirage-tcpip/commit/00ca583276=
82dd1363459ee570964aade0704b7c">https://github.com/mirage/mirage-tcpip/comm=
it/00ca58327682dd1363459ee570964aade0704b7c</a></div><div>=C2=A0</div><bloc=
kquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left-=
width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;paddin=
g-left:1ex">
<span class=3D""><br>
/M<br>
<br>
--<br>
Magnus Therning=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 OpenPGP: 0xAB4DFBA4<br>
email: <a href=3D"mailto:magnus@therning.org">magnus@therning.org</a>=C2=A0=
 =C2=A0jabber: <a href=3D"mailto:magnus@therning.org">magnus@therning.org</=
a><br>
twitter: magthe=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0<a hr=
ef=3D"http://therning.org/magnus" target=3D"_blank">http://therning.org/mag=
nus</a><br>
<br>
</span>Time is a great teacher, but unfortunately it kills all its pupils.<=
br>
=C2=A0 =C2=A0 =C2=A0-- Hector Louis Berlioz<br>
</blockquote></div><br><br clear=3D"all"><div><br></div>-- <br><div class=
=3D"gmail_signature">Dave Scott</div>
</div></div>

--047d7bfe952423c1c8051288adf4--


--===============0919032851890420952==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============0919032851890420952==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 31 06:37:38 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 31 Mar 2015 06:37:38 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Ycpnn-00070o-6l; Tue, 31 Mar 2015 06:37:31 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <magnus@therning.org>) id 1Ycpnm-00070j-21
	for mirageos-devel@lists.xenproject.org; Tue, 31 Mar 2015 06:37:30 +0000
Received: from [193.109.254.147] by server-1.bemta-14.messagelabs.com id
	5E/67-09816-9A04A155; Tue, 31 Mar 2015 06:37:29 +0000
X-Env-Sender: magnus@therning.org
X-Msg-Ref: server-16.tower-27.messagelabs.com!1427783847!9024341!1
X-Originating-IP: [209.85.223.177]
X-SpamReason: No, hits=1.2 required=7.0 tests=HTML_20_30,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 31678 invoked from network); 31 Mar 2015 06:37:28 -0000
Received: from mail-ie0-f177.google.com (HELO mail-ie0-f177.google.com)
	(209.85.223.177)
	by server-16.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	31 Mar 2015 06:37:28 -0000
Received: by iedfl3 with SMTP id fl3so9382676ied.1
	for <mirageos-devel@lists.xenproject.org>;
	Mon, 30 Mar 2015 23:37:26 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:cc:content-type;
	bh=8aKXxz88DeGRBQHfyo7BqfASWVHfOJ9xogmnia2fPv0=;
	b=gnict4q51Hr4x0dLnJUF9NVx5h7gB3VP8s++S6NxrTWmT9NDL/00QdJSthNWOix4r4
	tT0WHF84S/m229Uvxx5hRk6sNNIKQpLCTjZCtlmuE81y156u3eeuRHfKHCiCm7QagUHn
	SWRBiIbmz6qf4013XHXSPTH+/YvO/BBX0uKOU8pANgiCHQyEk82P1Wg9hJAlaEQU5Jxw
	jWOaKPUxzEkjyYGrE1nWOlAZ5v86Hk7LTJUo3L+QL4wUg9gs/7YbTHJV/yUGHILUby+d
	FsR7PXh07pbYFxBKAaMRWHiJby5ztRuHsez+C2EFm3ijV322YhMu/6lZl9WpvRXyyn3u
	jVIw==
X-Gm-Message-State: ALoCoQlY/m2r+iYMnqDNDfoFhcTzZLfJD5cctkNfASy43zBcBVgfclciSpvWzxBPlZTGvfXyKmK+
MIME-Version: 1.0
X-Received: by 10.50.109.228 with SMTP id hv4mr1973648igb.45.1427783846689;
	Mon, 30 Mar 2015 23:37:26 -0700 (PDT)
Received: by 10.36.54.67 with HTTP; Mon, 30 Mar 2015 23:37:26 -0700 (PDT)
Received: by 10.36.54.67 with HTTP; Mon, 30 Mar 2015 23:37:26 -0700 (PDT)
In-Reply-To: <CAG_esB3TDT0mdAAAM6B0My9NG2f0rmvnQvDQXnhmWNKXpdKtfQ@mail.gmail.com>
References: <20150329160245.GA5672@tatooine>
	<CAG_esB01YmTnyy1NviDhB8f4Pr8T+PaHCV0N-kqrJVyydSZrvg@mail.gmail.com>
	<20150329185230.GA7522@tatooine>
	<CAG_esB09iWEoh83RF+HuHpu-qmzF7O7RR0YctLXFkaDdC9PcQg@mail.gmail.com>
	<20150330211137.GA2701@tatooine>
	<CAG_esB3TDT0mdAAAM6B0My9NG2f0rmvnQvDQXnhmWNKXpdKtfQ@mail.gmail.com>
Date: Tue, 31 Mar 2015 08:37:26 +0200
Message-ID: <CAAExw5sM__74gmJnk+QQe3vWB_3=9UHcvQWaF0TnW4088NU36w@mail.gmail.com>
From: Magnus Therning <magnus@therning.org>
To: David Scott <scott.dj@gmail.com>
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] mirage-www on xen and networking (on ARM)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============6888785858751405640=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============6888785858751405640==
Content-Type: multipart/alternative; boundary=089e013a214eff9a0f05128fd4e1

--089e013a214eff9a0f05128fd4e1
Content-Type: text/plain; charset=UTF-8

On 31 Mar 2015 00:05, "David Scott" <scott.dj@gmail.com> wrote:
>
>
>
> On Mon, Mar 30, 2015 at 10:11 PM, Magnus Therning <magnus@therning.org>
wrote:
>>
>> On Sun, Mar 29, 2015 at 09:00:27PM +0100, David Scott wrote:
>> > On Sun, Mar 29, 2015 at 7:52 PM, Magnus Therning <magnus@therning.org>
>> > wrote:
>> [...]
>> >> This time around I don't get anything in reply to my requests
>> >> though.
>> >
>> > This is probably because my debug suggestion removed the assert and
>> > probably confused the higher layers.
>>
>> Indeed, I put back the assert statement, after the if, and started
>> getting the partial reply again.
>>
>> > Unless I'm misreading this, I think it must be a bug in
>> > mirage-net-xen (the ethernet driver) misreading the ethernet frames
>> > somehow? Or perhaps the peer host is sending extra junk on the end
>> > of its IP packets but within the ethernet frames?
>> >
>> > What kind of network are you using?
>>
>> It's a standard cable modem & router (Netgear).  The cubietruck is
>> connected directly to the modem.  I'm issuing the HTTP from a laptop,
>> and both a wireless and wired connection gives the same behaviour.
>>
>> > I've filed this issue for now:
>> >
>> > https://github.com/mirage/mirage-net-xen/issues/24
>>
>> Excellent.  Let me know if there's something else I should try.
>>
>> I was planning on capturing some traffic from a third system to see
>> what's actually on the network, but I don't think I'll find the time
>> to do that until towards the end of the week.
>
>
> After a clean rebuild on my cubieboard, I'm getting the assertion
failures too, which is good. I notice the assert that's failing was added
relatively recently[1] in tcpip v2.2.3 so it's possible that it's simply
highlighting an old bug in mirage-net-xen. The hunt continues...

Ah, that's "good" news indeed. I'll try, but won't make any promises, to
look a bit at it too. More as a learning exercise then with an aim to
actually find and fix the issue :)

/M

--089e013a214eff9a0f05128fd4e1
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p dir=3D"ltr">On 31 Mar 2015 00:05, &quot;David Scott&quot; &lt;<a href=3D=
"mailto:scott.dj@gmail.com">scott.dj@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Mar 30, 2015 at 10:11 PM, Magnus Therning &lt;<a href=3D"mailt=
o:magnus@therning.org">magnus@therning.org</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Sun, Mar 29, 2015 at 09:00:27PM +0100, David Scott wrote:<br>
&gt;&gt; &gt; On Sun, Mar 29, 2015 at 7:52 PM, Magnus Therning &lt;<a href=
=3D"mailto:magnus@therning.org">magnus@therning.org</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; [...]<br>
&gt;&gt; &gt;&gt; This time around I don&#39;t get anything in reply to my =
requests<br>
&gt;&gt; &gt;&gt; though.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; This is probably because my debug suggestion removed the asse=
rt and<br>
&gt;&gt; &gt; probably confused the higher layers.<br>
&gt;&gt;<br>
&gt;&gt; Indeed, I put back the assert statement, after the if, and started=
<br>
&gt;&gt; getting the partial reply again.<br>
&gt;&gt;<br>
&gt;&gt; &gt; Unless I&#39;m misreading this, I think it must be a bug in<b=
r>
&gt;&gt; &gt; mirage-net-xen (the ethernet driver) misreading the ethernet =
frames<br>
&gt;&gt; &gt; somehow? Or perhaps the peer host is sending extra junk on th=
e end<br>
&gt;&gt; &gt; of its IP packets but within the ethernet frames?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; What kind of network are you using?<br>
&gt;&gt;<br>
&gt;&gt; It&#39;s a standard cable modem &amp; router (Netgear).=C2=A0 The =
cubietruck is<br>
&gt;&gt; connected directly to the modem.=C2=A0 I&#39;m issuing the HTTP fr=
om a laptop,<br>
&gt;&gt; and both a wireless and wired connection gives the same behaviour.=
<br>
&gt;&gt;<br>
&gt;&gt; &gt; I&#39;ve filed this issue for now:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; <a href=3D"https://github.com/mirage/mirage-net-xen/issues/24=
">https://github.com/mirage/mirage-net-xen/issues/24</a><br>
&gt;&gt;<br>
&gt;&gt; Excellent.=C2=A0 Let me know if there&#39;s something else I shoul=
d try.<br>
&gt;&gt;<br>
&gt;&gt; I was planning on capturing some traffic from a third system to se=
e<br>
&gt;&gt; what&#39;s actually on the network, but I don&#39;t think I&#39;ll=
 find the time<br>
&gt;&gt; to do that until towards the end of the week.<br>
&gt;<br>
&gt;<br>
&gt; After a clean rebuild on my cubieboard, I&#39;m getting the assertion =
failures too, which is good. I notice the assert that&#39;s failing was add=
ed relatively recently[1] in tcpip v2.2.3 so it&#39;s possible that it&#39;=
s simply highlighting an old bug in mirage-net-xen. The hunt continues...</=
p>
<p dir=3D"ltr">Ah, that&#39;s &quot;good&quot; news indeed. I&#39;ll try, b=
ut won&#39;t make any promises, to look a bit at it too. More as a learning=
 exercise then with an aim to actually find and fix the issue :)</p>
<p dir=3D"ltr">/M</p>

--089e013a214eff9a0f05128fd4e1--


--===============6888785858751405640==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============6888785858751405640==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 31 06:37:38 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 31 Mar 2015 06:37:38 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Ycpnn-00070o-6l; Tue, 31 Mar 2015 06:37:31 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <magnus@therning.org>) id 1Ycpnm-00070j-21
	for mirageos-devel@lists.xenproject.org; Tue, 31 Mar 2015 06:37:30 +0000
Received: from [193.109.254.147] by server-1.bemta-14.messagelabs.com id
	5E/67-09816-9A04A155; Tue, 31 Mar 2015 06:37:29 +0000
X-Env-Sender: magnus@therning.org
X-Msg-Ref: server-16.tower-27.messagelabs.com!1427783847!9024341!1
X-Originating-IP: [209.85.223.177]
X-SpamReason: No, hits=1.2 required=7.0 tests=HTML_20_30,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 31678 invoked from network); 31 Mar 2015 06:37:28 -0000
Received: from mail-ie0-f177.google.com (HELO mail-ie0-f177.google.com)
	(209.85.223.177)
	by server-16.tower-27.messagelabs.com with RC4-SHA encrypted SMTP;
	31 Mar 2015 06:37:28 -0000
Received: by iedfl3 with SMTP id fl3so9382676ied.1
	for <mirageos-devel@lists.xenproject.org>;
	Mon, 30 Mar 2015 23:37:26 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:mime-version:in-reply-to:references:date
	:message-id:subject:from:to:cc:content-type;
	bh=8aKXxz88DeGRBQHfyo7BqfASWVHfOJ9xogmnia2fPv0=;
	b=gnict4q51Hr4x0dLnJUF9NVx5h7gB3VP8s++S6NxrTWmT9NDL/00QdJSthNWOix4r4
	tT0WHF84S/m229Uvxx5hRk6sNNIKQpLCTjZCtlmuE81y156u3eeuRHfKHCiCm7QagUHn
	SWRBiIbmz6qf4013XHXSPTH+/YvO/BBX0uKOU8pANgiCHQyEk82P1Wg9hJAlaEQU5Jxw
	jWOaKPUxzEkjyYGrE1nWOlAZ5v86Hk7LTJUo3L+QL4wUg9gs/7YbTHJV/yUGHILUby+d
	FsR7PXh07pbYFxBKAaMRWHiJby5ztRuHsez+C2EFm3ijV322YhMu/6lZl9WpvRXyyn3u
	jVIw==
X-Gm-Message-State: ALoCoQlY/m2r+iYMnqDNDfoFhcTzZLfJD5cctkNfASy43zBcBVgfclciSpvWzxBPlZTGvfXyKmK+
MIME-Version: 1.0
X-Received: by 10.50.109.228 with SMTP id hv4mr1973648igb.45.1427783846689;
	Mon, 30 Mar 2015 23:37:26 -0700 (PDT)
Received: by 10.36.54.67 with HTTP; Mon, 30 Mar 2015 23:37:26 -0700 (PDT)
Received: by 10.36.54.67 with HTTP; Mon, 30 Mar 2015 23:37:26 -0700 (PDT)
In-Reply-To: <CAG_esB3TDT0mdAAAM6B0My9NG2f0rmvnQvDQXnhmWNKXpdKtfQ@mail.gmail.com>
References: <20150329160245.GA5672@tatooine>
	<CAG_esB01YmTnyy1NviDhB8f4Pr8T+PaHCV0N-kqrJVyydSZrvg@mail.gmail.com>
	<20150329185230.GA7522@tatooine>
	<CAG_esB09iWEoh83RF+HuHpu-qmzF7O7RR0YctLXFkaDdC9PcQg@mail.gmail.com>
	<20150330211137.GA2701@tatooine>
	<CAG_esB3TDT0mdAAAM6B0My9NG2f0rmvnQvDQXnhmWNKXpdKtfQ@mail.gmail.com>
Date: Tue, 31 Mar 2015 08:37:26 +0200
Message-ID: <CAAExw5sM__74gmJnk+QQe3vWB_3=9UHcvQWaF0TnW4088NU36w@mail.gmail.com>
From: Magnus Therning <magnus@therning.org>
To: David Scott <scott.dj@gmail.com>
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] mirage-www on xen and networking (on ARM)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============6888785858751405640=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============6888785858751405640==
Content-Type: multipart/alternative; boundary=089e013a214eff9a0f05128fd4e1

--089e013a214eff9a0f05128fd4e1
Content-Type: text/plain; charset=UTF-8

On 31 Mar 2015 00:05, "David Scott" <scott.dj@gmail.com> wrote:
>
>
>
> On Mon, Mar 30, 2015 at 10:11 PM, Magnus Therning <magnus@therning.org>
wrote:
>>
>> On Sun, Mar 29, 2015 at 09:00:27PM +0100, David Scott wrote:
>> > On Sun, Mar 29, 2015 at 7:52 PM, Magnus Therning <magnus@therning.org>
>> > wrote:
>> [...]
>> >> This time around I don't get anything in reply to my requests
>> >> though.
>> >
>> > This is probably because my debug suggestion removed the assert and
>> > probably confused the higher layers.
>>
>> Indeed, I put back the assert statement, after the if, and started
>> getting the partial reply again.
>>
>> > Unless I'm misreading this, I think it must be a bug in
>> > mirage-net-xen (the ethernet driver) misreading the ethernet frames
>> > somehow? Or perhaps the peer host is sending extra junk on the end
>> > of its IP packets but within the ethernet frames?
>> >
>> > What kind of network are you using?
>>
>> It's a standard cable modem & router (Netgear).  The cubietruck is
>> connected directly to the modem.  I'm issuing the HTTP from a laptop,
>> and both a wireless and wired connection gives the same behaviour.
>>
>> > I've filed this issue for now:
>> >
>> > https://github.com/mirage/mirage-net-xen/issues/24
>>
>> Excellent.  Let me know if there's something else I should try.
>>
>> I was planning on capturing some traffic from a third system to see
>> what's actually on the network, but I don't think I'll find the time
>> to do that until towards the end of the week.
>
>
> After a clean rebuild on my cubieboard, I'm getting the assertion
failures too, which is good. I notice the assert that's failing was added
relatively recently[1] in tcpip v2.2.3 so it's possible that it's simply
highlighting an old bug in mirage-net-xen. The hunt continues...

Ah, that's "good" news indeed. I'll try, but won't make any promises, to
look a bit at it too. More as a learning exercise then with an aim to
actually find and fix the issue :)

/M

--089e013a214eff9a0f05128fd4e1
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p dir=3D"ltr">On 31 Mar 2015 00:05, &quot;David Scott&quot; &lt;<a href=3D=
"mailto:scott.dj@gmail.com">scott.dj@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Mar 30, 2015 at 10:11 PM, Magnus Therning &lt;<a href=3D"mailt=
o:magnus@therning.org">magnus@therning.org</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On Sun, Mar 29, 2015 at 09:00:27PM +0100, David Scott wrote:<br>
&gt;&gt; &gt; On Sun, Mar 29, 2015 at 7:52 PM, Magnus Therning &lt;<a href=
=3D"mailto:magnus@therning.org">magnus@therning.org</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; [...]<br>
&gt;&gt; &gt;&gt; This time around I don&#39;t get anything in reply to my =
requests<br>
&gt;&gt; &gt;&gt; though.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; This is probably because my debug suggestion removed the asse=
rt and<br>
&gt;&gt; &gt; probably confused the higher layers.<br>
&gt;&gt;<br>
&gt;&gt; Indeed, I put back the assert statement, after the if, and started=
<br>
&gt;&gt; getting the partial reply again.<br>
&gt;&gt;<br>
&gt;&gt; &gt; Unless I&#39;m misreading this, I think it must be a bug in<b=
r>
&gt;&gt; &gt; mirage-net-xen (the ethernet driver) misreading the ethernet =
frames<br>
&gt;&gt; &gt; somehow? Or perhaps the peer host is sending extra junk on th=
e end<br>
&gt;&gt; &gt; of its IP packets but within the ethernet frames?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; What kind of network are you using?<br>
&gt;&gt;<br>
&gt;&gt; It&#39;s a standard cable modem &amp; router (Netgear).=C2=A0 The =
cubietruck is<br>
&gt;&gt; connected directly to the modem.=C2=A0 I&#39;m issuing the HTTP fr=
om a laptop,<br>
&gt;&gt; and both a wireless and wired connection gives the same behaviour.=
<br>
&gt;&gt;<br>
&gt;&gt; &gt; I&#39;ve filed this issue for now:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; <a href=3D"https://github.com/mirage/mirage-net-xen/issues/24=
">https://github.com/mirage/mirage-net-xen/issues/24</a><br>
&gt;&gt;<br>
&gt;&gt; Excellent.=C2=A0 Let me know if there&#39;s something else I shoul=
d try.<br>
&gt;&gt;<br>
&gt;&gt; I was planning on capturing some traffic from a third system to se=
e<br>
&gt;&gt; what&#39;s actually on the network, but I don&#39;t think I&#39;ll=
 find the time<br>
&gt;&gt; to do that until towards the end of the week.<br>
&gt;<br>
&gt;<br>
&gt; After a clean rebuild on my cubieboard, I&#39;m getting the assertion =
failures too, which is good. I notice the assert that&#39;s failing was add=
ed relatively recently[1] in tcpip v2.2.3 so it&#39;s possible that it&#39;=
s simply highlighting an old bug in mirage-net-xen. The hunt continues...</=
p>
<p dir=3D"ltr">Ah, that&#39;s &quot;good&quot; news indeed. I&#39;ll try, b=
ut won&#39;t make any promises, to look a bit at it too. More as a learning=
 exercise then with an aim to actually find and fix the issue :)</p>
<p dir=3D"ltr">/M</p>

--089e013a214eff9a0f05128fd4e1--


--===============6888785858751405640==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============6888785858751405640==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 31 15:11:37 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 31 Mar 2015 15:11:37 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcxpD-0006E9-SL; Tue, 31 Mar 2015 15:11:31 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <amc79@cam.ac.uk>) id 1YcxpD-0006Dp-1O
	for mirageos-devel@lists.xenproject.org; Tue, 31 Mar 2015 15:11:31 +0000
Received: from [193.109.254.147] by server-3.bemta-14.messagelabs.com id
	A4/19-23827-229BA155; Tue, 31 Mar 2015 15:11:30 +0000
X-Env-Sender: amc79@cam.ac.uk
X-Msg-Ref: server-9.tower-27.messagelabs.com!1427814689!14612175!1
X-Originating-IP: [131.111.8.143]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 24603 invoked from network); 31 Mar 2015 15:11:29 -0000
Received: from ppsw-43.csi.cam.ac.uk (HELO ppsw-43.csi.cam.ac.uk)
	(131.111.8.143)
	by server-9.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 31 Mar 2015 15:11:29 -0000
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from host81-149-102-120.in-addr.btopenworld.com
	([81.149.102.120]:57790 helo=[10.0.0.151])
	by ppsw-43.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.159]:587)
	with esmtpsa (PLAIN:amc79) (TLSv1:AES128-SHA:128)
	id 1YcxpA-00089V-pG (Exim 4.82_3-c0e5623) for
	mirageos-devel@lists.xenproject.org
	(return-path <amc79@cam.ac.uk>); Tue, 31 Mar 2015 16:11:29 +0100
From: Amir Chaudhry <amc79@cam.ac.uk>
Message-Id: <0D4916D8-8B16-404B-AD07-17473BE64D6E@cam.ac.uk>
Date: Tue, 31 Mar 2015 16:11:37 +0100
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
X-Mailer: Apple Mail (2.1510)
Subject: [MirageOS-devel] End-to-end deployments of unikernels
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi folks,

I've published a post that describes the automated, end-to-end workflow that we've used on our website repos.  I use the specific example of mirage-decks, which builds the unikernel serving http://decks.openmirage.org.

You might find some of these scripts useful for your own projects.  The post is about a 10min read but if you're already familiar with how the new Travis scripts work, then you can skip ahead to "deployment scripts" (which is about halfway through).

http://amirchaudhry.com/heroku-for-unikernels-pt1/

Best wishes,
Amir
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 31 15:11:37 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 31 Mar 2015 15:11:37 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcxpD-0006E9-SL; Tue, 31 Mar 2015 15:11:31 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <amc79@cam.ac.uk>) id 1YcxpD-0006Dp-1O
	for mirageos-devel@lists.xenproject.org; Tue, 31 Mar 2015 15:11:31 +0000
Received: from [193.109.254.147] by server-3.bemta-14.messagelabs.com id
	A4/19-23827-229BA155; Tue, 31 Mar 2015 15:11:30 +0000
X-Env-Sender: amc79@cam.ac.uk
X-Msg-Ref: server-9.tower-27.messagelabs.com!1427814689!14612175!1
X-Originating-IP: [131.111.8.143]
X-SpamReason: No, hits=0.0 required=7.0 tests=
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 24603 invoked from network); 31 Mar 2015 15:11:29 -0000
Received: from ppsw-43.csi.cam.ac.uk (HELO ppsw-43.csi.cam.ac.uk)
	(131.111.8.143)
	by server-9.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 31 Mar 2015 15:11:29 -0000
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from host81-149-102-120.in-addr.btopenworld.com
	([81.149.102.120]:57790 helo=[10.0.0.151])
	by ppsw-43.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.159]:587)
	with esmtpsa (PLAIN:amc79) (TLSv1:AES128-SHA:128)
	id 1YcxpA-00089V-pG (Exim 4.82_3-c0e5623) for
	mirageos-devel@lists.xenproject.org
	(return-path <amc79@cam.ac.uk>); Tue, 31 Mar 2015 16:11:29 +0100
From: Amir Chaudhry <amc79@cam.ac.uk>
Message-Id: <0D4916D8-8B16-404B-AD07-17473BE64D6E@cam.ac.uk>
Date: Tue, 31 Mar 2015 16:11:37 +0100
To: mirageos-devel <mirageos-devel@lists.xenproject.org>
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
X-Mailer: Apple Mail (2.1510)
Subject: [MirageOS-devel] End-to-end deployments of unikernels
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

Hi folks,

I've published a post that describes the automated, end-to-end workflow that we've used on our website repos.  I use the specific example of mirage-decks, which builds the unikernel serving http://decks.openmirage.org.

You might find some of these scripts useful for your own projects.  The post is about a 10min read but if you're already familiar with how the new Travis scripts work, then you can skip ahead to "deployment scripts" (which is about halfway through).

http://amirchaudhry.com/heroku-for-unikernels-pt1/

Best wishes,
Amir
_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 31 15:42:28 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 31 Mar 2015 15:42:28 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcyJ9-0001iA-AX; Tue, 31 Mar 2015 15:42:27 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <hannes@mehnert.org>) id 1YcyJ7-0001i5-No
	for mirageos-devel@lists.xenproject.org; Tue, 31 Mar 2015 15:42:25 +0000
Received: from [85.158.139.211] by server-13.bemta-5.messagelabs.com id
	7A/96-08090-160CA155; Tue, 31 Mar 2015 15:42:25 +0000
X-Env-Sender: hannes@mehnert.org
X-Msg-Ref: server-3.tower-206.messagelabs.com!1427816544!5373497!1
X-Originating-IP: [213.73.89.200]
X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 8154 invoked from network); 31 Mar 2015 15:42:24 -0000
Received: from mail.mehnert.org (HELO mail.mehnert.org) (213.73.89.200)
	by server-3.tower-206.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 31 Mar 2015 15:42:24 -0000
Received: from [192.168.1.100] (i5E86D416.versanet.de [94.134.212.22])
	(using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
	(Client CN "hannes@mehnert.org",
	Issuer "mehnert root CA" (not verified))
	by mail.mehnert.org (Postfix) with ESMTPS id DD5D51E87
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 31 Mar 2015 17:42:22 +0200 (CEST)
Message-ID: <551AC046.9070006@mehnert.org>
Date: Tue, 31 Mar 2015 17:41:58 +0200
From: Hannes Mehnert <hannes@mehnert.org>
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: mirageos-devel@lists.xenproject.org
References: <CAAhS_v_0FJYStm60S=D4RO4B1t2of6wSCvg_4WXVRegqUv5WwA@mail.gmail.com>
In-Reply-To: <CAAhS_v_0FJYStm60S=D4RO4B1t2of6wSCvg_4WXVRegqUv5WwA@mail.gmail.com>
OpenPGP: id=DF7C28EE
Subject: Re: [MirageOS-devel] Update on entropy
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA384

Hi,

I do like the proposed changes.  My intuition is that the mirage tool
knows whether nocrypto is used or not (and thus, emits a call to
rng_init before calling main -- it should as well call self_init on
the Random-based RANDOM device, thus the TCP/IP stack doesn't have to
https://github.com/mirage/mirage-tcpip/blob/78124d5eb3095a7cf516d54ca4929ff69a2ce89b/tcp/pcb.ml#L574).
 Based on the same check, the TCP stack could also use the Nocrypto
RANDOM device.

What is crucial here, is that we have a good entropy story on all of
the possible deployment scenarios (and furthermore a way to find out
which entropy sources are mixed in):
- - Xen + ARM: xentropyd (for now), soon cycle counters
- - Xen + X86 (control over dom0): RDSEED/RTDSCP / xentropyd
- - Xen + X86 (ec2): RDSEED/RTDSCP
- - Unix: /dev/urandom

Viewed in a different angle: for each deployment scenario we need a
good story for continuous entropy sources.

The RANDOM device should include a
`entropy_source : entropy_source list`
with
`type entropy_source = [ `RDSEED | `RDRAND | `Xentropyd | `Urandom ]`

Thus, a unikernel could exit early if its favorite (or expected)
entropy source(s) is(are) not present.

Developers should not have to decide which entropy sources to mix in,
but a paranoidic user might want to compile their entropy source
package without rdseed support:  Entropy sources are selected at
runtime from the compiled-in ones (you can manually patch/configure
your entropy source package)!

Which opens the question where to keep the entropy source
implementations and which interface do they need to fulfill?  I
suspect mirage-entropy is a good place to keep them, and do the
runtime detection and mixing logic in there.  Certainly for use cases
without mirage, the direct /dev/urandom feeder should life somewhere
else, maybe in nocrypto.lwt (currently both mirage-entropy-unix and
tls.lwt contain those bits, but certainly I'd like to use Fortuna
without TLS!)?


These changes will also simplify the Tls_mirage interface, which does
not need to be functorized over a ENTROPY device.  (Also, TLS won't be
able to use the abstract RANDOM device because it needs a much richer
API.  I don't think there's much value in extracting this richer API
into mirage-types, which would then need to depend on e.g. Z(arith).)


hannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCQAGBQJVGsBGAAoJELyJZYjffCjupHUP/0UlyTHcMxNzHo3jQdAEvh1Z
MayhrDomQHmOJMteLLROQ/v3b7tM2xJS2+yiqJIE793aYcfEqWGzxheePW3hwLVV
9OPCzQ19WSYEJg5MRAoEa/Q/umUrEoroDOoGWLj1lpiSkE8Y/N6pXuaE+SisYXjn
8+Gx/HrCj8CL3zp4XWJfA+QRjvX6jKVvmUgeuqaVemdsXYWTn7eTPZ3vCUtm9t0U
SPSB92B5sF+YWA0abSJq4CQzWOlQEuBTVm6I7i8m5UMWYxgiu/9ZkDktUkKhnkao
vD47WpzRasHaKtk2xn1nwE6+BH37zLvJc6wtCqTnu1UB/2FQwk4uuFqlbKeKEKNd
c1CKSuwcAxvIW69rhvyDEwJnudQwy8y8x5560FBWqG6bkBb0wt0qspljDmERB5Vi
oEsupfH8FVl2aLQWI/HCfAc7Jp+O5OFYykAxR3sFUpC4AWle808SsUbACtUEzhzN
gSV8lBoDN11NWxlgOvv2eeqsyJGqzD+koOhVxPqjooejRsGbOTA7Bgu/kA/ZMQE9
uShEN1QK8mJXvEeOzr/4UF+QVq9curfJP969YBxeww5dw4MgV1GhoovcDU5il+7g
FsacQO546tEevk9tOFYBYsGhi7hwYkjzl0sVYuBO5gPvVD2hQkkXMpErYYRCZPlq
3JcAXvo57Nt44aUadHT7
=2E3I
-----END PGP SIGNATURE-----

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 31 15:42:28 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 31 Mar 2015 15:42:28 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1YcyJ9-0001iA-AX; Tue, 31 Mar 2015 15:42:27 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <hannes@mehnert.org>) id 1YcyJ7-0001i5-No
	for mirageos-devel@lists.xenproject.org; Tue, 31 Mar 2015 15:42:25 +0000
Received: from [85.158.139.211] by server-13.bemta-5.messagelabs.com id
	7A/96-08090-160CA155; Tue, 31 Mar 2015 15:42:25 +0000
X-Env-Sender: hannes@mehnert.org
X-Msg-Ref: server-3.tower-206.messagelabs.com!1427816544!5373497!1
X-Originating-IP: [213.73.89.200]
X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 8154 invoked from network); 31 Mar 2015 15:42:24 -0000
Received: from mail.mehnert.org (HELO mail.mehnert.org) (213.73.89.200)
	by server-3.tower-206.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 31 Mar 2015 15:42:24 -0000
Received: from [192.168.1.100] (i5E86D416.versanet.de [94.134.212.22])
	(using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
	(Client CN "hannes@mehnert.org",
	Issuer "mehnert root CA" (not verified))
	by mail.mehnert.org (Postfix) with ESMTPS id DD5D51E87
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 31 Mar 2015 17:42:22 +0200 (CEST)
Message-ID: <551AC046.9070006@mehnert.org>
Date: Tue, 31 Mar 2015 17:41:58 +0200
From: Hannes Mehnert <hannes@mehnert.org>
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64;
	rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: mirageos-devel@lists.xenproject.org
References: <CAAhS_v_0FJYStm60S=D4RO4B1t2of6wSCvg_4WXVRegqUv5WwA@mail.gmail.com>
In-Reply-To: <CAAhS_v_0FJYStm60S=D4RO4B1t2of6wSCvg_4WXVRegqUv5WwA@mail.gmail.com>
OpenPGP: id=DF7C28EE
Subject: Re: [MirageOS-devel] Update on entropy
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA384

Hi,

I do like the proposed changes.  My intuition is that the mirage tool
knows whether nocrypto is used or not (and thus, emits a call to
rng_init before calling main -- it should as well call self_init on
the Random-based RANDOM device, thus the TCP/IP stack doesn't have to
https://github.com/mirage/mirage-tcpip/blob/78124d5eb3095a7cf516d54ca4929ff69a2ce89b/tcp/pcb.ml#L574).
 Based on the same check, the TCP stack could also use the Nocrypto
RANDOM device.

What is crucial here, is that we have a good entropy story on all of
the possible deployment scenarios (and furthermore a way to find out
which entropy sources are mixed in):
- - Xen + ARM: xentropyd (for now), soon cycle counters
- - Xen + X86 (control over dom0): RDSEED/RTDSCP / xentropyd
- - Xen + X86 (ec2): RDSEED/RTDSCP
- - Unix: /dev/urandom

Viewed in a different angle: for each deployment scenario we need a
good story for continuous entropy sources.

The RANDOM device should include a
`entropy_source : entropy_source list`
with
`type entropy_source = [ `RDSEED | `RDRAND | `Xentropyd | `Urandom ]`

Thus, a unikernel could exit early if its favorite (or expected)
entropy source(s) is(are) not present.

Developers should not have to decide which entropy sources to mix in,
but a paranoidic user might want to compile their entropy source
package without rdseed support:  Entropy sources are selected at
runtime from the compiled-in ones (you can manually patch/configure
your entropy source package)!

Which opens the question where to keep the entropy source
implementations and which interface do they need to fulfill?  I
suspect mirage-entropy is a good place to keep them, and do the
runtime detection and mixing logic in there.  Certainly for use cases
without mirage, the direct /dev/urandom feeder should life somewhere
else, maybe in nocrypto.lwt (currently both mirage-entropy-unix and
tls.lwt contain those bits, but certainly I'd like to use Fortuna
without TLS!)?


These changes will also simplify the Tls_mirage interface, which does
not need to be functorized over a ENTROPY device.  (Also, TLS won't be
able to use the abstract RANDOM device because it needs a much richer
API.  I don't think there's much value in extracting this richer API
into mirage-types, which would then need to depend on e.g. Z(arith).)


hannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCQAGBQJVGsBGAAoJELyJZYjffCjupHUP/0UlyTHcMxNzHo3jQdAEvh1Z
MayhrDomQHmOJMteLLROQ/v3b7tM2xJS2+yiqJIE793aYcfEqWGzxheePW3hwLVV
9OPCzQ19WSYEJg5MRAoEa/Q/umUrEoroDOoGWLj1lpiSkE8Y/N6pXuaE+SisYXjn
8+Gx/HrCj8CL3zp4XWJfA+QRjvX6jKVvmUgeuqaVemdsXYWTn7eTPZ3vCUtm9t0U
SPSB92B5sF+YWA0abSJq4CQzWOlQEuBTVm6I7i8m5UMWYxgiu/9ZkDktUkKhnkao
vD47WpzRasHaKtk2xn1nwE6+BH37zLvJc6wtCqTnu1UB/2FQwk4uuFqlbKeKEKNd
c1CKSuwcAxvIW69rhvyDEwJnudQwy8y8x5560FBWqG6bkBb0wt0qspljDmERB5Vi
oEsupfH8FVl2aLQWI/HCfAc7Jp+O5OFYykAxR3sFUpC4AWle808SsUbACtUEzhzN
gSV8lBoDN11NWxlgOvv2eeqsyJGqzD+koOhVxPqjooejRsGbOTA7Bgu/kA/ZMQE9
uShEN1QK8mJXvEeOzr/4UF+QVq9curfJP969YBxeww5dw4MgV1GhoovcDU5il+7g
FsacQO546tEevk9tOFYBYsGhi7hwYkjzl0sVYuBO5gPvVD2hQkkXMpErYYRCZPlq
3JcAXvo57Nt44aUadHT7
=2E3I
-----END PGP SIGNATURE-----

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

From mirageos-devel-bounces@lists.xenproject.org Tue Mar 31 17:43:46 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 31 Mar 2015 17:43:46 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Yd0CR-0003Y7-Br; Tue, 31 Mar 2015 17:43:39 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1Yd0CP-0003Xs-V2
	for mirageos-devel@lists.xenproject.org; Tue, 31 Mar 2015 17:43:38 +0000
Received: from [85.158.137.68] by server-16.bemta-3.messagelabs.com id
	75/3F-11242-9CCDA155; Tue, 31 Mar 2015 17:43:37 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-11.tower-31.messagelabs.com!1427823814!12787123!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.3 required=7.0 tests=HTML_50_60,HTML_MESSAGE,
	RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 31578 invoked from network); 31 Mar 2015 17:43:34 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-11.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 31 Mar 2015 17:43:34 -0000
Received: from [10.0.1.7] (cpc11-belf9-2-0-cust355.2-1.cable.virginm.net
	[86.24.61.100]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 3567533b;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Tue, 31 Mar 2015 18:43:32 +0100 (BST)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAAExw5sM__74gmJnk+QQe3vWB_3=9UHcvQWaF0TnW4088NU36w@mail.gmail.com>
Date: Tue, 31 Mar 2015 18:43:32 +0100
Message-Id: <6F46F15C-1100-482E-B74E-16C177E88F31@recoil.org>
References: <20150329160245.GA5672@tatooine>
	<CAG_esB01YmTnyy1NviDhB8f4Pr8T+PaHCV0N-kqrJVyydSZrvg@mail.gmail.com>
	<20150329185230.GA7522@tatooine>
	<CAG_esB09iWEoh83RF+HuHpu-qmzF7O7RR0YctLXFkaDdC9PcQg@mail.gmail.com>
	<20150330211137.GA2701@tatooine>
	<CAG_esB3TDT0mdAAAM6B0My9NG2f0rmvnQvDQXnhmWNKXpdKtfQ@mail.gmail.com>
	<CAAExw5sM__74gmJnk+QQe3vWB_3=9UHcvQWaF0TnW4088NU36w@mail.gmail.com>
To: Magnus Therning <magnus@therning.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] mirage-www on xen and networking (on ARM)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============7996552604670986961=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============7996552604670986961==
Content-Type: multipart/alternative; boundary="Apple-Mail=_3A9B08CF-3453-4148-8527-AE2609BA91D8"


--Apple-Mail=_3A9B08CF-3453-4148-8527-AE2609BA91D8
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 31 Mar 2015, at 07:37, Magnus Therning <magnus@therning.org> wrote:
>=20
> > After a clean rebuild on my cubieboard, I'm getting the assertion =
failures too, which is good. I notice the assert that's failing was =
added relatively recently[1] in tcpip v2.2.3 so it's possible that it's =
simply highlighting an old bug in mirage-net-xen. The hunt continues...
>=20
> Ah, that's "good" news indeed. I'll try, but won't make any promises, =
to look a bit at it too. More as a learning exercise then with an aim to =
actually find and fix the issue :)
>=20
Excellent bug report Magnus!  We didn't catch this due to the lack of =
regular automated testing on ARM.  We would catch this on x86 due to =
deploying our sites regularly, but we don't currently run ARM in =
production.  I'll rectify this when back in Cambridge with a version of =
www.openmirage.org <http://www.openmirage.org/> that runs on a =
Cubieboard2.

In the meanwhile, would you be able to test if my point release of =
tcpip.2.3.1 fixes your issue? Do

    opam pin add tcpip git://github.com/mirage/mirage-tcpip#v2.3.1 =
<git://github.com/mirage/mirage-tcpip#v2.3.1>

Once someone with a Cubie2 confirms that the regression has gone, I'll =
push this to OPAM.

Hannes: no need to revert anything on the mirage master branch.  Let's =
keep marching forward on the SSL work...

cheers,
Anil


--Apple-Mail=_3A9B08CF-3453-4148-8527-AE2609BA91D8
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">On 31 Mar 2015, at 07:37, Magnus Therning &lt;<a =
href=3D"mailto:magnus@therning.org" class=3D"">magnus@therning.org</a>&gt;=
 wrote:<br class=3D""><div><blockquote type=3D"cite" class=3D""><br =
class=3D"Apple-interchange-newline"><div class=3D""><p dir=3D"ltr" =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant: normal; font-weight: normal; letter-spacing: normal; =
line-height: normal; orphans: auto; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; widows: auto; word-spacing: =
0px; -webkit-text-stroke-width: 0px;" class=3D"">&gt; After a clean =
rebuild on my cubieboard, I'm getting the assertion failures too, which =
is good. I notice the assert that's failing was added relatively =
recently[1] in tcpip v2.2.3 so it's possible that it's simply =
highlighting an old bug in mirage-net-xen. The hunt continues...</p><p =
dir=3D"ltr" style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant: normal; font-weight: normal; =
letter-spacing: normal; line-height: normal; orphans: auto; text-align: =
start; text-indent: 0px; text-transform: none; white-space: normal; =
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" =
class=3D"">Ah, that's "good" news indeed. I'll try, but won't make any =
promises, to look a bit at it too. More as a learning exercise then with =
an aim to actually find and fix the issue =
:)</p></div></blockquote>Excellent bug report Magnus! &nbsp;We didn't =
catch this due to the lack of regular automated testing on ARM. &nbsp;We =
would catch this on x86 due to deploying our sites regularly, but we =
don't currently run ARM in production. &nbsp;I'll rectify this when back =
in Cambridge with a version of <a href=3D"http://www.openmirage.org" =
class=3D"">www.openmirage.org</a>&nbsp;that runs on a =
Cubieboard2.</div><div><br class=3D""></div><div>In the meanwhile, would =
you be able to test if my point release of tcpip.2.3.1 fixes your issue? =
Do</div><div><br class=3D""></div><div>&nbsp; &nbsp; opam pin add tcpip =
<a href=3D"git://github.com/mirage/mirage-tcpip#v2.3.1" =
class=3D"">git://github.com/mirage/mirage-tcpip#v2.3.1</a></div><div><br =
class=3D""></div><div>Once someone with a Cubie2 confirms that the =
regression has gone, I'll push this to OPAM.</div><div><br =
class=3D""></div><div>Hannes: no need to revert anything on the mirage =
master branch. &nbsp;Let's keep marching forward on the SSL =
work...</div><div><br =
class=3D""></div><div>cheers,</div><div>Anil</div><br =
class=3D""></body></html>=

--Apple-Mail=_3A9B08CF-3453-4148-8527-AE2609BA91D8--


--===============7996552604670986961==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============7996552604670986961==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 31 17:43:46 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 31 Mar 2015 17:43:46 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Yd0CR-0003Y7-Br; Tue, 31 Mar 2015 17:43:39 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1Yd0CP-0003Xs-V2
	for mirageos-devel@lists.xenproject.org; Tue, 31 Mar 2015 17:43:38 +0000
Received: from [85.158.137.68] by server-16.bemta-3.messagelabs.com id
	75/3F-11242-9CCDA155; Tue, 31 Mar 2015 17:43:37 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-11.tower-31.messagelabs.com!1427823814!12787123!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.3 required=7.0 tests=HTML_50_60,HTML_MESSAGE,
	RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 31578 invoked from network); 31 Mar 2015 17:43:34 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-11.tower-31.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 31 Mar 2015 17:43:34 -0000
Received: from [10.0.1.7] (cpc11-belf9-2-0-cust355.2-1.cable.virginm.net
	[86.24.61.100]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 3567533b;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Tue, 31 Mar 2015 18:43:32 +0100 (BST)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAAExw5sM__74gmJnk+QQe3vWB_3=9UHcvQWaF0TnW4088NU36w@mail.gmail.com>
Date: Tue, 31 Mar 2015 18:43:32 +0100
Message-Id: <6F46F15C-1100-482E-B74E-16C177E88F31@recoil.org>
References: <20150329160245.GA5672@tatooine>
	<CAG_esB01YmTnyy1NviDhB8f4Pr8T+PaHCV0N-kqrJVyydSZrvg@mail.gmail.com>
	<20150329185230.GA7522@tatooine>
	<CAG_esB09iWEoh83RF+HuHpu-qmzF7O7RR0YctLXFkaDdC9PcQg@mail.gmail.com>
	<20150330211137.GA2701@tatooine>
	<CAG_esB3TDT0mdAAAM6B0My9NG2f0rmvnQvDQXnhmWNKXpdKtfQ@mail.gmail.com>
	<CAAExw5sM__74gmJnk+QQe3vWB_3=9UHcvQWaF0TnW4088NU36w@mail.gmail.com>
To: Magnus Therning <magnus@therning.org>
X-Mailer: Apple Mail (2.2070.6)
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] mirage-www on xen and networking (on ARM)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============7996552604670986961=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============7996552604670986961==
Content-Type: multipart/alternative; boundary="Apple-Mail=_3A9B08CF-3453-4148-8527-AE2609BA91D8"


--Apple-Mail=_3A9B08CF-3453-4148-8527-AE2609BA91D8
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 31 Mar 2015, at 07:37, Magnus Therning <magnus@therning.org> wrote:
>=20
> > After a clean rebuild on my cubieboard, I'm getting the assertion =
failures too, which is good. I notice the assert that's failing was =
added relatively recently[1] in tcpip v2.2.3 so it's possible that it's =
simply highlighting an old bug in mirage-net-xen. The hunt continues...
>=20
> Ah, that's "good" news indeed. I'll try, but won't make any promises, =
to look a bit at it too. More as a learning exercise then with an aim to =
actually find and fix the issue :)
>=20
Excellent bug report Magnus!  We didn't catch this due to the lack of =
regular automated testing on ARM.  We would catch this on x86 due to =
deploying our sites regularly, but we don't currently run ARM in =
production.  I'll rectify this when back in Cambridge with a version of =
www.openmirage.org <http://www.openmirage.org/> that runs on a =
Cubieboard2.

In the meanwhile, would you be able to test if my point release of =
tcpip.2.3.1 fixes your issue? Do

    opam pin add tcpip git://github.com/mirage/mirage-tcpip#v2.3.1 =
<git://github.com/mirage/mirage-tcpip#v2.3.1>

Once someone with a Cubie2 confirms that the regression has gone, I'll =
push this to OPAM.

Hannes: no need to revert anything on the mirage master branch.  Let's =
keep marching forward on the SSL work...

cheers,
Anil


--Apple-Mail=_3A9B08CF-3453-4148-8527-AE2609BA91D8
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">On 31 Mar 2015, at 07:37, Magnus Therning &lt;<a =
href=3D"mailto:magnus@therning.org" class=3D"">magnus@therning.org</a>&gt;=
 wrote:<br class=3D""><div><blockquote type=3D"cite" class=3D""><br =
class=3D"Apple-interchange-newline"><div class=3D""><p dir=3D"ltr" =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant: normal; font-weight: normal; letter-spacing: normal; =
line-height: normal; orphans: auto; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; widows: auto; word-spacing: =
0px; -webkit-text-stroke-width: 0px;" class=3D"">&gt; After a clean =
rebuild on my cubieboard, I'm getting the assertion failures too, which =
is good. I notice the assert that's failing was added relatively =
recently[1] in tcpip v2.2.3 so it's possible that it's simply =
highlighting an old bug in mirage-net-xen. The hunt continues...</p><p =
dir=3D"ltr" style=3D"font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant: normal; font-weight: normal; =
letter-spacing: normal; line-height: normal; orphans: auto; text-align: =
start; text-indent: 0px; text-transform: none; white-space: normal; =
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" =
class=3D"">Ah, that's "good" news indeed. I'll try, but won't make any =
promises, to look a bit at it too. More as a learning exercise then with =
an aim to actually find and fix the issue =
:)</p></div></blockquote>Excellent bug report Magnus! &nbsp;We didn't =
catch this due to the lack of regular automated testing on ARM. &nbsp;We =
would catch this on x86 due to deploying our sites regularly, but we =
don't currently run ARM in production. &nbsp;I'll rectify this when back =
in Cambridge with a version of <a href=3D"http://www.openmirage.org" =
class=3D"">www.openmirage.org</a>&nbsp;that runs on a =
Cubieboard2.</div><div><br class=3D""></div><div>In the meanwhile, would =
you be able to test if my point release of tcpip.2.3.1 fixes your issue? =
Do</div><div><br class=3D""></div><div>&nbsp; &nbsp; opam pin add tcpip =
<a href=3D"git://github.com/mirage/mirage-tcpip#v2.3.1" =
class=3D"">git://github.com/mirage/mirage-tcpip#v2.3.1</a></div><div><br =
class=3D""></div><div>Once someone with a Cubie2 confirms that the =
regression has gone, I'll push this to OPAM.</div><div><br =
class=3D""></div><div>Hannes: no need to revert anything on the mirage =
master branch. &nbsp;Let's keep marching forward on the SSL =
work...</div><div><br =
class=3D""></div><div>cheers,</div><div>Anil</div><br =
class=3D""></body></html>=

--Apple-Mail=_3A9B08CF-3453-4148-8527-AE2609BA91D8--


--===============7996552604670986961==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============7996552604670986961==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 31 20:09:46 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 31 Mar 2015 20:09:46 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Yd2Tl-0002tT-1g; Tue, 31 Mar 2015 20:09:41 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <scott.dj@gmail.com>) id 1Yd2Tk-0002tC-9O
	for mirageos-devel@lists.xenproject.org; Tue, 31 Mar 2015 20:09:40 +0000
Received: from [85.158.139.211] by server-5.bemta-5.messagelabs.com id
	08/B5-02119-30FFA155; Tue, 31 Mar 2015 20:09:39 +0000
X-Env-Sender: scott.dj@gmail.com
X-Msg-Ref: server-15.tower-206.messagelabs.com!1427832577!9651407!1
X-Originating-IP: [209.85.192.173]
X-SpamReason: No, hits=0.4 required=7.0 tests=HTML_50_60,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 12256 invoked from network); 31 Mar 2015 20:09:38 -0000
Received: from mail-pd0-f173.google.com (HELO mail-pd0-f173.google.com)
	(209.85.192.173)
	by server-15.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	31 Mar 2015 20:09:38 -0000
Received: by pdmh5 with SMTP id h5so18746777pdm.3
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 31 Mar 2015 13:09:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=xwz0s9Ottv0RtfprARZAj1xfJZBnPB5oSJaF6SXJDOw=;
	b=GyqYryancCJR/v2AY4lWwusLBD3OMKKJh+IbryErWJ2gtYrB+MBlNRBRlhsk+Sz9WH
	LCxf90He8AQHRaJ0mHgd4owsqLRIyZynpn3vfsFpEiZGk9g67xbI64Exxy2xj/S4aE9T
	mavRCjK+DxPgpYZYG81coCu/98FZuRZW0PNQRrfIu3AGKAI1rhBUNROxg9fpwDpIPb9l
	Z4D50U+7N3PTNloWksGpvQDZn+sM7zguYv9pw9Ejwj6q9l5/oHdmciyHhS1sQzAmVCTY
	PR7ek+0/awN2hHxSY6YF4QFCob7XcdCk5gAIW2JsB+hybwtmRHbxpthBCKMudq7+YSxA
	uS9Q==
MIME-Version: 1.0
X-Received: by 10.70.35.130 with SMTP id h2mr71410699pdj.28.1427832577349;
	Tue, 31 Mar 2015 13:09:37 -0700 (PDT)
Received: by 10.70.102.205 with HTTP; Tue, 31 Mar 2015 13:09:37 -0700 (PDT)
In-Reply-To: <6F46F15C-1100-482E-B74E-16C177E88F31@recoil.org>
References: <20150329160245.GA5672@tatooine>
	<CAG_esB01YmTnyy1NviDhB8f4Pr8T+PaHCV0N-kqrJVyydSZrvg@mail.gmail.com>
	<20150329185230.GA7522@tatooine>
	<CAG_esB09iWEoh83RF+HuHpu-qmzF7O7RR0YctLXFkaDdC9PcQg@mail.gmail.com>
	<20150330211137.GA2701@tatooine>
	<CAG_esB3TDT0mdAAAM6B0My9NG2f0rmvnQvDQXnhmWNKXpdKtfQ@mail.gmail.com>
	<CAAExw5sM__74gmJnk+QQe3vWB_3=9UHcvQWaF0TnW4088NU36w@mail.gmail.com>
	<6F46F15C-1100-482E-B74E-16C177E88F31@recoil.org>
Date: Tue, 31 Mar 2015 21:09:37 +0100
Message-ID: <CAG_esB2popaQ2jSgXKpBsEtnWXYmzxosu4gSBjBQuxZA=ZHJ1g@mail.gmail.com>
From: David Scott <scott.dj@gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] mirage-www on xen and networking (on ARM)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============5765571787737964395=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============5765571787737964395==
Content-Type: multipart/alternative; boundary=047d7bd91738925e8f05129b2dcf

--047d7bd91738925e8f05129b2dcf
Content-Type: text/plain; charset=UTF-8

On Tue, Mar 31, 2015 at 6:43 PM, Anil Madhavapeddy <anil@recoil.org> wrote:

> On 31 Mar 2015, at 07:37, Magnus Therning <magnus@therning.org> wrote:
>
>
> > After a clean rebuild on my cubieboard, I'm getting the assertion
> failures too, which is good. I notice the assert that's failing was added
> relatively recently[1] in tcpip v2.2.3 so it's possible that it's simply
> highlighting an old bug in mirage-net-xen. The hunt continues...
>
> Ah, that's "good" news indeed. I'll try, but won't make any promises, to
> look a bit at it too. More as a learning exercise then with an aim to
> actually find and fix the issue :)
>
> Excellent bug report Magnus!  We didn't catch this due to the lack of
> regular automated testing on ARM.  We would catch this on x86 due to
> deploying our sites regularly, but we don't currently run ARM in
> production.  I'll rectify this when back in Cambridge with a version of
> www.openmirage.org that runs on a Cubieboard2.
>
> In the meanwhile, would you be able to test if my point release of
> tcpip.2.3.1 fixes your issue? Do
>
>     opam pin add tcpip git://github.com/mirage/mirage-tcpip#v2.3.1
>
> Once someone with a Cubie2 confirms that the regression has gone, I'll
> push this to OPAM.
>

The mirage-skeleton/static_website works fine for me with that change.

Cheers,
Dave


>
> Hannes: no need to revert anything on the mirage master branch.  Let's
> keep marching forward on the SSL work...
>
> cheers,
> Anil
>
>


-- 
Dave Scott

--047d7bd91738925e8f05129b2dcf
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Tue, Mar 31, 2015 at 6:43 PM, Anil Madhavapeddy <span dir=3D"ltr">&l=
t;<a href=3D"mailto:anil@recoil.org" target=3D"_blank">anil@recoil.org</a>&=
gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 =
0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style=3D"word-wrap=
:break-word"><span class=3D"">On 31 Mar 2015, at 07:37, Magnus Therning &lt=
;<a href=3D"mailto:magnus@therning.org" target=3D"_blank">magnus@therning.o=
rg</a>&gt; wrote:<br></span><div><span class=3D""><blockquote type=3D"cite"=
><br><div><p dir=3D"ltr" style=3D"font-family:Helvetica;font-size:12px;font=
-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;=
line-height:normal;text-align:start;text-indent:0px;text-transform:none;whi=
te-space:normal;word-spacing:0px">&gt; After a clean rebuild on my cubieboa=
rd, I&#39;m getting the assertion failures too, which is good. I notice the=
 assert that&#39;s failing was added relatively recently[1] in tcpip v2.2.3=
 so it&#39;s possible that it&#39;s simply highlighting an old bug in mirag=
e-net-xen. The hunt continues...</p><p dir=3D"ltr" style=3D"font-family:Hel=
vetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:nor=
mal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0=
px;text-transform:none;white-space:normal;word-spacing:0px">Ah, that&#39;s =
&quot;good&quot; news indeed. I&#39;ll try, but won&#39;t make any promises=
, to look a bit at it too. More as a learning exercise then with an aim to =
actually find and fix the issue :)</p></div></blockquote></span>Excellent b=
ug report Magnus!=C2=A0 We didn&#39;t catch this due to the lack of regular=
 automated testing on ARM.=C2=A0 We would catch this on x86 due to deployin=
g our sites regularly, but we don&#39;t currently run ARM in production.=C2=
=A0 I&#39;ll rectify this when back in Cambridge with a version of <a href=
=3D"http://www.openmirage.org" target=3D"_blank">www.openmirage.org</a>=C2=
=A0that runs on a Cubieboard2.</div><div><br></div><div>In the meanwhile, w=
ould you be able to test if my point release of tcpip.2.3.1 fixes your issu=
e? Do</div><div><br></div><div>=C2=A0 =C2=A0 opam pin add tcpip <a>git://gi=
thub.com/mirage/mirage-tcpip#v2.3.1</a></div><div><br></div><div>Once someo=
ne with a Cubie2 confirms that the regression has gone, I&#39;ll push this =
to OPAM.</div></div></blockquote><div><br></div><div>The mirage-skeleton/st=
atic_website works fine for me with that change.</div><div><br></div><div>C=
heers,</div><div>Dave</div><div>=C2=A0</div><blockquote class=3D"gmail_quot=
e" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">=
<div style=3D"word-wrap:break-word"><div><br></div><div>Hannes: no need to =
revert anything on the mirage master branch.=C2=A0 Let&#39;s keep marching =
forward on the SSL work...</div><div><br></div><div>cheers,</div><div>Anil<=
/div><br></div></blockquote></div><br><br clear=3D"all"><div><br></div>-- <=
br><div class=3D"gmail_signature">Dave Scott</div>
</div></div>

--047d7bd91738925e8f05129b2dcf--


--===============5765571787737964395==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============5765571787737964395==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 31 20:09:46 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 31 Mar 2015 20:09:46 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Yd2Tl-0002tT-1g; Tue, 31 Mar 2015 20:09:41 +0000
Received: from mail6.bemta5.messagelabs.com ([195.245.231.135])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <scott.dj@gmail.com>) id 1Yd2Tk-0002tC-9O
	for mirageos-devel@lists.xenproject.org; Tue, 31 Mar 2015 20:09:40 +0000
Received: from [85.158.139.211] by server-5.bemta-5.messagelabs.com id
	08/B5-02119-30FFA155; Tue, 31 Mar 2015 20:09:39 +0000
X-Env-Sender: scott.dj@gmail.com
X-Msg-Ref: server-15.tower-206.messagelabs.com!1427832577!9651407!1
X-Originating-IP: [209.85.192.173]
X-SpamReason: No, hits=0.4 required=7.0 tests=HTML_50_60,HTML_MESSAGE,
	RCVD_BY_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 12256 invoked from network); 31 Mar 2015 20:09:38 -0000
Received: from mail-pd0-f173.google.com (HELO mail-pd0-f173.google.com)
	(209.85.192.173)
	by server-15.tower-206.messagelabs.com with RC4-SHA encrypted SMTP;
	31 Mar 2015 20:09:38 -0000
Received: by pdmh5 with SMTP id h5so18746777pdm.3
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 31 Mar 2015 13:09:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	bh=xwz0s9Ottv0RtfprARZAj1xfJZBnPB5oSJaF6SXJDOw=;
	b=GyqYryancCJR/v2AY4lWwusLBD3OMKKJh+IbryErWJ2gtYrB+MBlNRBRlhsk+Sz9WH
	LCxf90He8AQHRaJ0mHgd4owsqLRIyZynpn3vfsFpEiZGk9g67xbI64Exxy2xj/S4aE9T
	mavRCjK+DxPgpYZYG81coCu/98FZuRZW0PNQRrfIu3AGKAI1rhBUNROxg9fpwDpIPb9l
	Z4D50U+7N3PTNloWksGpvQDZn+sM7zguYv9pw9Ejwj6q9l5/oHdmciyHhS1sQzAmVCTY
	PR7ek+0/awN2hHxSY6YF4QFCob7XcdCk5gAIW2JsB+hybwtmRHbxpthBCKMudq7+YSxA
	uS9Q==
MIME-Version: 1.0
X-Received: by 10.70.35.130 with SMTP id h2mr71410699pdj.28.1427832577349;
	Tue, 31 Mar 2015 13:09:37 -0700 (PDT)
Received: by 10.70.102.205 with HTTP; Tue, 31 Mar 2015 13:09:37 -0700 (PDT)
In-Reply-To: <6F46F15C-1100-482E-B74E-16C177E88F31@recoil.org>
References: <20150329160245.GA5672@tatooine>
	<CAG_esB01YmTnyy1NviDhB8f4Pr8T+PaHCV0N-kqrJVyydSZrvg@mail.gmail.com>
	<20150329185230.GA7522@tatooine>
	<CAG_esB09iWEoh83RF+HuHpu-qmzF7O7RR0YctLXFkaDdC9PcQg@mail.gmail.com>
	<20150330211137.GA2701@tatooine>
	<CAG_esB3TDT0mdAAAM6B0My9NG2f0rmvnQvDQXnhmWNKXpdKtfQ@mail.gmail.com>
	<CAAExw5sM__74gmJnk+QQe3vWB_3=9UHcvQWaF0TnW4088NU36w@mail.gmail.com>
	<6F46F15C-1100-482E-B74E-16C177E88F31@recoil.org>
Date: Tue, 31 Mar 2015 21:09:37 +0100
Message-ID: <CAG_esB2popaQ2jSgXKpBsEtnWXYmzxosu4gSBjBQuxZA=ZHJ1g@mail.gmail.com>
From: David Scott <scott.dj@gmail.com>
To: Anil Madhavapeddy <anil@recoil.org>
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] mirage-www on xen and networking (on ARM)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============5765571787737964395=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============5765571787737964395==
Content-Type: multipart/alternative; boundary=047d7bd91738925e8f05129b2dcf

--047d7bd91738925e8f05129b2dcf
Content-Type: text/plain; charset=UTF-8

On Tue, Mar 31, 2015 at 6:43 PM, Anil Madhavapeddy <anil@recoil.org> wrote:

> On 31 Mar 2015, at 07:37, Magnus Therning <magnus@therning.org> wrote:
>
>
> > After a clean rebuild on my cubieboard, I'm getting the assertion
> failures too, which is good. I notice the assert that's failing was added
> relatively recently[1] in tcpip v2.2.3 so it's possible that it's simply
> highlighting an old bug in mirage-net-xen. The hunt continues...
>
> Ah, that's "good" news indeed. I'll try, but won't make any promises, to
> look a bit at it too. More as a learning exercise then with an aim to
> actually find and fix the issue :)
>
> Excellent bug report Magnus!  We didn't catch this due to the lack of
> regular automated testing on ARM.  We would catch this on x86 due to
> deploying our sites regularly, but we don't currently run ARM in
> production.  I'll rectify this when back in Cambridge with a version of
> www.openmirage.org that runs on a Cubieboard2.
>
> In the meanwhile, would you be able to test if my point release of
> tcpip.2.3.1 fixes your issue? Do
>
>     opam pin add tcpip git://github.com/mirage/mirage-tcpip#v2.3.1
>
> Once someone with a Cubie2 confirms that the regression has gone, I'll
> push this to OPAM.
>

The mirage-skeleton/static_website works fine for me with that change.

Cheers,
Dave


>
> Hannes: no need to revert anything on the mirage master branch.  Let's
> keep marching forward on the SSL work...
>
> cheers,
> Anil
>
>


-- 
Dave Scott

--047d7bd91738925e8f05129b2dcf
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><div class=3D"gmail_extra"><br><div class=3D"gmail_quo=
te">On Tue, Mar 31, 2015 at 6:43 PM, Anil Madhavapeddy <span dir=3D"ltr">&l=
t;<a href=3D"mailto:anil@recoil.org" target=3D"_blank">anil@recoil.org</a>&=
gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 =
0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style=3D"word-wrap=
:break-word"><span class=3D"">On 31 Mar 2015, at 07:37, Magnus Therning &lt=
;<a href=3D"mailto:magnus@therning.org" target=3D"_blank">magnus@therning.o=
rg</a>&gt; wrote:<br></span><div><span class=3D""><blockquote type=3D"cite"=
><br><div><p dir=3D"ltr" style=3D"font-family:Helvetica;font-size:12px;font=
-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;=
line-height:normal;text-align:start;text-indent:0px;text-transform:none;whi=
te-space:normal;word-spacing:0px">&gt; After a clean rebuild on my cubieboa=
rd, I&#39;m getting the assertion failures too, which is good. I notice the=
 assert that&#39;s failing was added relatively recently[1] in tcpip v2.2.3=
 so it&#39;s possible that it&#39;s simply highlighting an old bug in mirag=
e-net-xen. The hunt continues...</p><p dir=3D"ltr" style=3D"font-family:Hel=
vetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:nor=
mal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0=
px;text-transform:none;white-space:normal;word-spacing:0px">Ah, that&#39;s =
&quot;good&quot; news indeed. I&#39;ll try, but won&#39;t make any promises=
, to look a bit at it too. More as a learning exercise then with an aim to =
actually find and fix the issue :)</p></div></blockquote></span>Excellent b=
ug report Magnus!=C2=A0 We didn&#39;t catch this due to the lack of regular=
 automated testing on ARM.=C2=A0 We would catch this on x86 due to deployin=
g our sites regularly, but we don&#39;t currently run ARM in production.=C2=
=A0 I&#39;ll rectify this when back in Cambridge with a version of <a href=
=3D"http://www.openmirage.org" target=3D"_blank">www.openmirage.org</a>=C2=
=A0that runs on a Cubieboard2.</div><div><br></div><div>In the meanwhile, w=
ould you be able to test if my point release of tcpip.2.3.1 fixes your issu=
e? Do</div><div><br></div><div>=C2=A0 =C2=A0 opam pin add tcpip <a>git://gi=
thub.com/mirage/mirage-tcpip#v2.3.1</a></div><div><br></div><div>Once someo=
ne with a Cubie2 confirms that the regression has gone, I&#39;ll push this =
to OPAM.</div></div></blockquote><div><br></div><div>The mirage-skeleton/st=
atic_website works fine for me with that change.</div><div><br></div><div>C=
heers,</div><div>Dave</div><div>=C2=A0</div><blockquote class=3D"gmail_quot=
e" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">=
<div style=3D"word-wrap:break-word"><div><br></div><div>Hannes: no need to =
revert anything on the mirage master branch.=C2=A0 Let&#39;s keep marching =
forward on the SSL work...</div><div><br></div><div>cheers,</div><div>Anil<=
/div><br></div></blockquote></div><br><br clear=3D"all"><div><br></div>-- <=
br><div class=3D"gmail_signature">Dave Scott</div>
</div></div>

--047d7bd91738925e8f05129b2dcf--


--===============5765571787737964395==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============5765571787737964395==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 31 20:49:32 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 31 Mar 2015 20:49:32 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Yd36K-0007WG-Fn; Tue, 31 Mar 2015 20:49:32 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1Yd36I-0007Vk-Ul
	for mirageos-devel@lists.xenproject.org; Tue, 31 Mar 2015 20:49:31 +0000
Received: from [193.109.254.147] by server-16.bemta-14.messagelabs.com id
	86/B5-06072-A580B155; Tue, 31 Mar 2015 20:49:30 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-11.tower-27.messagelabs.com!1427834969!11366053!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.3 required=7.0 tests=HTML_50_60,HTML_MESSAGE,
	RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 13903 invoked from network); 31 Mar 2015 20:49:29 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-11.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 31 Mar 2015 20:49:29 -0000
Received: from [10.0.1.7] (cpc11-belf9-2-0-cust355.2-1.cable.virginm.net
	[86.24.61.100]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 3c0444b4;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Tue, 31 Mar 2015 21:49:28 +0100 (BST)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAG_esB2popaQ2jSgXKpBsEtnWXYmzxosu4gSBjBQuxZA=ZHJ1g@mail.gmail.com>
Date: Tue, 31 Mar 2015 21:49:28 +0100
Message-Id: <166C00D9-5A83-4FBC-B0C0-BCB13A37B3A5@recoil.org>
References: <20150329160245.GA5672@tatooine>
	<CAG_esB01YmTnyy1NviDhB8f4Pr8T+PaHCV0N-kqrJVyydSZrvg@mail.gmail.com>
	<20150329185230.GA7522@tatooine>
	<CAG_esB09iWEoh83RF+HuHpu-qmzF7O7RR0YctLXFkaDdC9PcQg@mail.gmail.com>
	<20150330211137.GA2701@tatooine>
	<CAG_esB3TDT0mdAAAM6B0My9NG2f0rmvnQvDQXnhmWNKXpdKtfQ@mail.gmail.com>
	<CAAExw5sM__74gmJnk+QQe3vWB_3=9UHcvQWaF0TnW4088NU36w@mail.gmail.com>
	<6F46F15C-1100-482E-B74E-16C177E88F31@recoil.org>
	<CAG_esB2popaQ2jSgXKpBsEtnWXYmzxosu4gSBjBQuxZA=ZHJ1g@mail.gmail.com>
To: David Scott <scott.dj@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] mirage-www on xen and networking (on ARM)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============5836909760850875903=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============5836909760850875903==
Content-Type: multipart/alternative; boundary="Apple-Mail=_F8822C87-247C-453A-AA38-92CBA9DCD659"


--Apple-Mail=_F8822C87-247C-453A-AA38-92CBA9DCD659
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 31 Mar 2015, at 21:09, David Scott <scott.dj@gmail.com> wrote:
>=20
>=20
>=20
> On Tue, Mar 31, 2015 at 6:43 PM, Anil Madhavapeddy <anil@recoil.org =
<mailto:anil@recoil.org>> wrote:
> On 31 Mar 2015, at 07:37, Magnus Therning <magnus@therning.org =
<mailto:magnus@therning.org>> wrote:
>>=20
>> > After a clean rebuild on my cubieboard, I'm getting the assertion =
failures too, which is good. I notice the assert that's failing was =
added relatively recently[1] in tcpip v2.2.3 so it's possible that it's =
simply highlighting an old bug in mirage-net-xen. The hunt continues...
>>=20
>> Ah, that's "good" news indeed. I'll try, but won't make any promises, =
to look a bit at it too. More as a learning exercise then with an aim to =
actually find and fix the issue :)
>>=20
> Excellent bug report Magnus!  We didn't catch this due to the lack of =
regular automated testing on ARM.  We would catch this on x86 due to =
deploying our sites regularly, but we don't currently run ARM in =
production.  I'll rectify this when back in Cambridge with a version of =
www.openmirage.org <http://www.openmirage.org/> that runs on a =
Cubieboard2.
>=20
> In the meanwhile, would you be able to test if my point release of =
tcpip.2.3.1 fixes your issue? Do
>=20
>     opam pin add tcpip git://github.com/mirage/mirage-tcpip#v2.3.1 <>
>=20
> Once someone with a Cubie2 confirms that the regression has gone, I'll =
push this to OPAM.
>=20
> The mirage-skeleton/static_website works fine for me with that change.

Thanks for confirming!  Tcpip.2.3.1 has now been released to OPAM with =
the fix.

-anil=

--Apple-Mail=_F8822C87-247C-453A-AA38-92CBA9DCD659
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">On 31 Mar 2015, at 21:09, David Scott &lt;<a =
href=3D"mailto:scott.dj@gmail.com" class=3D"">scott.dj@gmail.com</a>&gt; =
wrote:<br class=3D""><div><blockquote type=3D"cite" class=3D""><br =
class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" =
class=3D""><br class=3D""><div class=3D"gmail_extra"><br class=3D""><div =
class=3D"gmail_quote">On Tue, Mar 31, 2015 at 6:43 PM, Anil Madhavapeddy =
<span dir=3D"ltr" class=3D"">&lt;<a href=3D"mailto:anil@recoil.org" =
target=3D"_blank" class=3D"">anil@recoil.org</a>&gt;</span> wrote:<br =
class=3D""><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div =
style=3D"word-wrap:break-word" class=3D""><span class=3D"">On 31 Mar =
2015, at 07:37, Magnus Therning &lt;<a href=3D"mailto:magnus@therning.org"=
 target=3D"_blank" class=3D"">magnus@therning.org</a>&gt; wrote:<br =
class=3D""></span><div class=3D""><span class=3D""><blockquote =
type=3D"cite" class=3D""><br class=3D""><div class=3D""><p dir=3D"ltr" =
style=3D"font-family:Helvetica;font-size:12px;font-style:normal;font-varia=
nt:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text=
-align:start;text-indent:0px;text-transform:none;white-space:normal;word-s=
pacing:0px" class=3D"">&gt; After a clean rebuild on my cubieboard, I'm =
getting the assertion failures too, which is good. I notice the assert =
that's failing was added relatively recently[1] in tcpip v2.2.3 so it's =
possible that it's simply highlighting an old bug in mirage-net-xen. The =
hunt continues...</p><p dir=3D"ltr" =
style=3D"font-family:Helvetica;font-size:12px;font-style:normal;font-varia=
nt:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text=
-align:start;text-indent:0px;text-transform:none;white-space:normal;word-s=
pacing:0px" class=3D"">Ah, that's "good" news indeed. I'll try, but =
won't make any promises, to look a bit at it too. More as a learning =
exercise then with an aim to actually find and fix the issue =
:)</p></div></blockquote></span>Excellent bug report Magnus!&nbsp; We =
didn't catch this due to the lack of regular automated testing on =
ARM.&nbsp; We would catch this on x86 due to deploying our sites =
regularly, but we don't currently run ARM in production.&nbsp; I'll =
rectify this when back in Cambridge with a version of <a =
href=3D"http://www.openmirage.org/" target=3D"_blank" =
class=3D"">www.openmirage.org</a>&nbsp;that runs on a =
Cubieboard2.</div><div class=3D""><br class=3D""></div><div class=3D"">In =
the meanwhile, would you be able to test if my point release of =
tcpip.2.3.1 fixes your issue? Do</div><div class=3D""><br =
class=3D""></div><div class=3D"">&nbsp; &nbsp; opam pin add tcpip <a =
class=3D"">git://github.com/mirage/mirage-tcpip#v2.3.1</a></div><div =
class=3D""><br class=3D""></div><div class=3D"">Once someone with a =
Cubie2 confirms that the regression has gone, I'll push this to =
OPAM.</div></div></blockquote><div class=3D""><br class=3D""></div><div =
class=3D"">The mirage-skeleton/static_website works fine for me with =
that change.</div></div></div></div></div></blockquote><div><br =
class=3D""></div>Thanks for confirming! &nbsp;Tcpip.2.3.1 has now been =
released to OPAM with the fix.</div><div><br =
class=3D""></div><div>-anil</div></body></html>=

--Apple-Mail=_F8822C87-247C-453A-AA38-92CBA9DCD659--


--===============5836909760850875903==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============5836909760850875903==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 31 20:49:32 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 31 Mar 2015 20:49:32 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Yd36K-0007WG-Fn; Tue, 31 Mar 2015 20:49:32 +0000
Received: from mail6.bemta14.messagelabs.com ([193.109.254.103])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <anil@recoil.org>) id 1Yd36I-0007Vk-Ul
	for mirageos-devel@lists.xenproject.org; Tue, 31 Mar 2015 20:49:31 +0000
Received: from [193.109.254.147] by server-16.bemta-14.messagelabs.com id
	86/B5-06072-A580B155; Tue, 31 Mar 2015 20:49:30 +0000
X-Env-Sender: anil@recoil.org
X-Msg-Ref: server-11.tower-27.messagelabs.com!1427834969!11366053!1
X-Originating-IP: [5.153.225.51]
X-SpamReason: No, hits=0.3 required=7.0 tests=HTML_50_60,HTML_MESSAGE,
	RCVD_ILLEGAL_IP
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 13903 invoked from network); 31 Mar 2015 20:49:29 -0000
Received: from bark.recoil.org (HELO bark.recoil.org) (5.153.225.51)
	by server-11.tower-27.messagelabs.com with DHE-RSA-AES256-SHA encrypted
	SMTP; 31 Mar 2015 20:49:29 -0000
Received: from [10.0.1.7] (cpc11-belf9-2-0-cust355.2-1.cable.virginm.net
	[86.24.61.100]); 
	by bark.recoil.org (OpenSMTPD) with ESMTPSA id 3c0444b4;
	TLS version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NO; 
	Tue, 31 Mar 2015 21:49:28 +0100 (BST)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Anil Madhavapeddy <anil@recoil.org>
In-Reply-To: <CAG_esB2popaQ2jSgXKpBsEtnWXYmzxosu4gSBjBQuxZA=ZHJ1g@mail.gmail.com>
Date: Tue, 31 Mar 2015 21:49:28 +0100
Message-Id: <166C00D9-5A83-4FBC-B0C0-BCB13A37B3A5@recoil.org>
References: <20150329160245.GA5672@tatooine>
	<CAG_esB01YmTnyy1NviDhB8f4Pr8T+PaHCV0N-kqrJVyydSZrvg@mail.gmail.com>
	<20150329185230.GA7522@tatooine>
	<CAG_esB09iWEoh83RF+HuHpu-qmzF7O7RR0YctLXFkaDdC9PcQg@mail.gmail.com>
	<20150330211137.GA2701@tatooine>
	<CAG_esB3TDT0mdAAAM6B0My9NG2f0rmvnQvDQXnhmWNKXpdKtfQ@mail.gmail.com>
	<CAAExw5sM__74gmJnk+QQe3vWB_3=9UHcvQWaF0TnW4088NU36w@mail.gmail.com>
	<6F46F15C-1100-482E-B74E-16C177E88F31@recoil.org>
	<CAG_esB2popaQ2jSgXKpBsEtnWXYmzxosu4gSBjBQuxZA=ZHJ1g@mail.gmail.com>
To: David Scott <scott.dj@gmail.com>
X-Mailer: Apple Mail (2.2070.6)
Cc: MirageOS Devel <mirageos-devel@lists.xenproject.org>
Subject: Re: [MirageOS-devel] mirage-www on xen and networking (on ARM)
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============5836909760850875903=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org


--===============5836909760850875903==
Content-Type: multipart/alternative; boundary="Apple-Mail=_F8822C87-247C-453A-AA38-92CBA9DCD659"


--Apple-Mail=_F8822C87-247C-453A-AA38-92CBA9DCD659
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 31 Mar 2015, at 21:09, David Scott <scott.dj@gmail.com> wrote:
>=20
>=20
>=20
> On Tue, Mar 31, 2015 at 6:43 PM, Anil Madhavapeddy <anil@recoil.org =
<mailto:anil@recoil.org>> wrote:
> On 31 Mar 2015, at 07:37, Magnus Therning <magnus@therning.org =
<mailto:magnus@therning.org>> wrote:
>>=20
>> > After a clean rebuild on my cubieboard, I'm getting the assertion =
failures too, which is good. I notice the assert that's failing was =
added relatively recently[1] in tcpip v2.2.3 so it's possible that it's =
simply highlighting an old bug in mirage-net-xen. The hunt continues...
>>=20
>> Ah, that's "good" news indeed. I'll try, but won't make any promises, =
to look a bit at it too. More as a learning exercise then with an aim to =
actually find and fix the issue :)
>>=20
> Excellent bug report Magnus!  We didn't catch this due to the lack of =
regular automated testing on ARM.  We would catch this on x86 due to =
deploying our sites regularly, but we don't currently run ARM in =
production.  I'll rectify this when back in Cambridge with a version of =
www.openmirage.org <http://www.openmirage.org/> that runs on a =
Cubieboard2.
>=20
> In the meanwhile, would you be able to test if my point release of =
tcpip.2.3.1 fixes your issue? Do
>=20
>     opam pin add tcpip git://github.com/mirage/mirage-tcpip#v2.3.1 <>
>=20
> Once someone with a Cubie2 confirms that the regression has gone, I'll =
push this to OPAM.
>=20
> The mirage-skeleton/static_website works fine for me with that change.

Thanks for confirming!  Tcpip.2.3.1 has now been released to OPAM with =
the fix.

-anil=

--Apple-Mail=_F8822C87-247C-453A-AA38-92CBA9DCD659
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">On 31 Mar 2015, at 21:09, David Scott &lt;<a =
href=3D"mailto:scott.dj@gmail.com" class=3D"">scott.dj@gmail.com</a>&gt; =
wrote:<br class=3D""><div><blockquote type=3D"cite" class=3D""><br =
class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"ltr" =
class=3D""><br class=3D""><div class=3D"gmail_extra"><br class=3D""><div =
class=3D"gmail_quote">On Tue, Mar 31, 2015 at 6:43 PM, Anil Madhavapeddy =
<span dir=3D"ltr" class=3D"">&lt;<a href=3D"mailto:anil@recoil.org" =
target=3D"_blank" class=3D"">anil@recoil.org</a>&gt;</span> wrote:<br =
class=3D""><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div =
style=3D"word-wrap:break-word" class=3D""><span class=3D"">On 31 Mar =
2015, at 07:37, Magnus Therning &lt;<a href=3D"mailto:magnus@therning.org"=
 target=3D"_blank" class=3D"">magnus@therning.org</a>&gt; wrote:<br =
class=3D""></span><div class=3D""><span class=3D""><blockquote =
type=3D"cite" class=3D""><br class=3D""><div class=3D""><p dir=3D"ltr" =
style=3D"font-family:Helvetica;font-size:12px;font-style:normal;font-varia=
nt:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text=
-align:start;text-indent:0px;text-transform:none;white-space:normal;word-s=
pacing:0px" class=3D"">&gt; After a clean rebuild on my cubieboard, I'm =
getting the assertion failures too, which is good. I notice the assert =
that's failing was added relatively recently[1] in tcpip v2.2.3 so it's =
possible that it's simply highlighting an old bug in mirage-net-xen. The =
hunt continues...</p><p dir=3D"ltr" =
style=3D"font-family:Helvetica;font-size:12px;font-style:normal;font-varia=
nt:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text=
-align:start;text-indent:0px;text-transform:none;white-space:normal;word-s=
pacing:0px" class=3D"">Ah, that's "good" news indeed. I'll try, but =
won't make any promises, to look a bit at it too. More as a learning =
exercise then with an aim to actually find and fix the issue =
:)</p></div></blockquote></span>Excellent bug report Magnus!&nbsp; We =
didn't catch this due to the lack of regular automated testing on =
ARM.&nbsp; We would catch this on x86 due to deploying our sites =
regularly, but we don't currently run ARM in production.&nbsp; I'll =
rectify this when back in Cambridge with a version of <a =
href=3D"http://www.openmirage.org/" target=3D"_blank" =
class=3D"">www.openmirage.org</a>&nbsp;that runs on a =
Cubieboard2.</div><div class=3D""><br class=3D""></div><div class=3D"">In =
the meanwhile, would you be able to test if my point release of =
tcpip.2.3.1 fixes your issue? Do</div><div class=3D""><br =
class=3D""></div><div class=3D"">&nbsp; &nbsp; opam pin add tcpip <a =
class=3D"">git://github.com/mirage/mirage-tcpip#v2.3.1</a></div><div =
class=3D""><br class=3D""></div><div class=3D"">Once someone with a =
Cubie2 confirms that the regression has gone, I'll push this to =
OPAM.</div></div></blockquote><div class=3D""><br class=3D""></div><div =
class=3D"">The mirage-skeleton/static_website works fine for me with =
that change.</div></div></div></div></div></blockquote><div><br =
class=3D""></div>Thanks for confirming! &nbsp;Tcpip.2.3.1 has now been =
released to OPAM with the fix.</div><div><br =
class=3D""></div><div>-anil</div></body></html>=

--Apple-Mail=_F8822C87-247C-453A-AA38-92CBA9DCD659--


--===============5836909760850875903==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============5836909760850875903==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 31 23:25:36 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 31 Mar 2015 23:25:36 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Yd5XG-0003RG-33; Tue, 31 Mar 2015 23:25:30 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <joseph@reifyhealth.com>) id 1Yd5XE-0003Qy-MX
	for mirageos-devel@lists.xenproject.org; Tue, 31 Mar 2015 23:25:28 +0000
Received: from [85.158.137.68] by server-17.bemta-3.messagelabs.com id
	12/D9-14975-7EC2B155; Tue, 31 Mar 2015 23:25:27 +0000
X-Env-Sender: joseph@reifyhealth.com
X-Msg-Ref: server-14.tower-31.messagelabs.com!1427844325!10385212!1
X-Originating-IP: [209.85.216.177]
X-SpamReason: No, hits=0.9 required=7.0 tests=HTML_20_30,HTML_MESSAGE
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 14995 invoked from network); 31 Mar 2015 23:25:26 -0000
Received: from mail-qc0-f177.google.com (HELO mail-qc0-f177.google.com)
	(209.85.216.177)
	by server-14.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	31 Mar 2015 23:25:26 -0000
Received: by qcbii10 with SMTP id ii10so5087139qcb.2
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 31 Mar 2015 16:25:25 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:date:mime-version:message-id:from:to:subject
	:content-type;
	bh=Kb09h8RDZFOQF83tU9D0/HJUcqfc+sIfayg7imPWNfQ=;
	b=JIDW+D3kHCdNFloh5ylnDrx5JnAyTe1kPOnWYd/5WZnpE7/1axQaaQj2qAmJAUMl1U
	r5j/dSJl4j4+JXD5Yyogs/XOB44u56Hg5EpY8hq6fhcutoK4CaY8M3UOfjRGBVFxvMw9
	TWzd5fvYIB4UjyPuMdmygEt8xU9vr6qAxZstgvKJrpHQwxG24RKPEG3v9QgViioXXPIK
	ox9RDLAUs3uPfMEMdspMk2im2RZusMzEaYzvrC2FRH2QY9qHjsw3iP/Ofz6p5/sbGPGa
	9RstI+NN1ihxXiOC7sDwVE0n0p4045ZaibIsu9V8cSDJq//WcpJvzT/ZmBhIpBTZIuhf
	u7uA==
X-Gm-Message-State: ALoCoQkpSoWs7MwntCH+wwR2QiewQ8OVvTirAiQUXF1nGG5fmRDeYbvPVLnsm3XA7qCvMu+PKwS8
X-Received: by 10.55.27.198 with SMTP id m67mr81666884qkh.11.1427844325590;
	Tue, 31 Mar 2015 16:25:25 -0700 (PDT)
Received: from hedwig-11.prd.orcali.com
	(ec2-54-85-253-232.compute-1.amazonaws.com. [54.85.253.232])
	by mx.google.com with ESMTPSA id z67sm89019qge.7.2015.03.31.16.25.23
	for <mirageos-devel@lists.xenproject.org>
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 31 Mar 2015 16:25:24 -0700 (PDT)
Date: Tue, 31 Mar 2015 16:25:24 -0700 (PDT)
X-Google-Original-Date: Tue, 31 Mar 2015 23:25:23 GMT
MIME-Version: 1.0
X-Mailer: Nodemailer (0.5.0; +http://www.nodemailer.com/)
Message-Id: <1427844323458.7f2e394e@Nodemailer>
X-Orchestra-Oid: 7193BD3C-3A54-40CF-BFF2-E826851573D2
X-Orchestra-Sig: f5fce34f8a18f6658b89ba030e5ce102389802ea
X-Orchestra-Thrid: 66DE0901-A93D-4E73-95F1-65D807616B45
X-Orchestra-Thrid-Sig: ffc48b2c0ff3532a07d1d17a4ea760bcaf42acb6
X-Orchestra-Account: 99ad82f1b9d29b4a05252c4b6df24d2378c51b3c
From: "Joseph Abrahamson" <joseph@reifyhealth.com>
To: mirageos-devel@lists.xenproject.org
Subject: [MirageOS-devel] Interested in Pioneer Projects
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============4467347971797043398=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============4467347971797043398==
Content-Type: multipart/alternative;
 boundary="----Nodemailer-0.5.0-?=_1-1427844324471"

------Nodemailer-0.5.0-?=_1-1427844324471
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hello MirageOS-devel,


I=E2=80=99m interested in learning more about contributing to some pioneer =
projects. In particular, there are several projects which I =
wouldn=E2=80=99t mind taking a deeper look at:


* deflate: I=E2=80=99m interested in streaming algorithms in OCaml =
generally.
* WebIDL: I=E2=80=99m very interested in doing front-end work in =
js=5Fof=5Focaml, though I have no familiarity with WebIDL and am a little =
unsure of the purpose here.
* Syslogd: This seems like a simple enough project just to get my feet wet =
with unikernel development


In addition the =E2=80=9Csemantics of mergeable data-structures=E2=80=9D is=
 interesting, though the description was brief.


Anyway, I don=E2=80=99t claim to have an enormous amount of free time and =
am certainly more interested in just getting my feet wet a bit, but =
I=E2=80=99d love to hear from some of the mentors related to each project =
and see if anything seems like it might be a reasonable fit for me. Perhaps=
 the best option would be something with simple and fast payout that is of =
high value to the community. I=E2=80=99m more than happy to do a little =
grunt work to learn from the best on how to do OCaml development.


Cheers,
Joseph Abrahamson


=E2=80=94
Sent from Mailbox
------Nodemailer-0.5.0-?=_1-1427844324471
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html PUBLIC =22-//W3C//DTD HTML 4.0 Transitional//EN=22 =
=22http://www.w3.org/TR/REC-html40/loose.dtd=22>
<html><body>
<span id=3D=22mailbox-conversation=22><div>
<div>Hello MirageOS-devel,</div>
<div><br></div>
<div>I&rsquo;m interested in learning more about contributing to some =
pioneer projects. In particular, there are several projects which I =
wouldn&rsquo;t mind taking a deeper look at:</div>
<div><br></div>
<div>* deflate: I&rsquo;m interested in streaming algorithms in OCaml =
generally.</div>
<div>* WebIDL: I&rsquo;m very interested in doing front-end work in =
js=5Fof=5Focaml, though I have no familiarity with WebIDL and am a little =
unsure of the purpose here.</div>
<div>* Syslogd: This seems like a simple enough project just to get my feet=
 wet with unikernel development</div>
<div><br></div>
<div>In addition the &ldquo;semantics of mergeable data-structures&rdquo; =
is interesting, though the description was brief.</div>
<div><br></div>
<div>Anyway, I don&rsquo;t claim to have an enormous amount of free time =
and am certainly more interested in just getting my feet wet a bit, but =
I&rsquo;d love to hear from some of the mentors related to each project and=
 see if anything seems like it might be a reasonable fit for me. Perhaps =
the best option would be something with simple and fast payout that is of =
high value to the community. I&rsquo;m more than happy to do a little grunt=
 work to learn from the best on how to do OCaml development.</div>
<div><br></div>
<div>Cheers,</div>
<div>Joseph Abrahamson</div>
</div></span><div class=3D=22mailbox=5Fsignature=22>
<br>&mdash;<br>Sent from <a href=3D=22https://www.dropbox.=
com/mailbox=22>Mailbox</a>
</div>
</body></html>

------Nodemailer-0.5.0-?=_1-1427844324471--


--===============4467347971797043398==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============4467347971797043398==--


From mirageos-devel-bounces@lists.xenproject.org Tue Mar 31 23:25:36 2015
Return-path: <mirageos-devel-bounces@lists.xenproject.org>
Envelope-to: archives@lists.xenproject.org
Delivery-date: Tue, 31 Mar 2015 23:25:36 +0000
Received: from localhost ([127.0.0.1] helo=lists.xen.org)
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <mirageos-devel-bounces@lists.xenproject.org>)
	id 1Yd5XG-0003RG-33; Tue, 31 Mar 2015 23:25:30 +0000
Received: from mail6.bemta3.messagelabs.com ([195.245.230.39])
	by lists.xen.org with esmtp (Exim 4.72)
	(envelope-from <joseph@reifyhealth.com>) id 1Yd5XE-0003Qy-MX
	for mirageos-devel@lists.xenproject.org; Tue, 31 Mar 2015 23:25:28 +0000
Received: from [85.158.137.68] by server-17.bemta-3.messagelabs.com id
	12/D9-14975-7EC2B155; Tue, 31 Mar 2015 23:25:27 +0000
X-Env-Sender: joseph@reifyhealth.com
X-Msg-Ref: server-14.tower-31.messagelabs.com!1427844325!10385212!1
X-Originating-IP: [209.85.216.177]
X-SpamReason: No, hits=0.9 required=7.0 tests=HTML_20_30,HTML_MESSAGE
X-StarScan-Received: 
X-StarScan-Version: 6.13.6; banners=-,-,-
X-VirusChecked: Checked
Received: (qmail 14995 invoked from network); 31 Mar 2015 23:25:26 -0000
Received: from mail-qc0-f177.google.com (HELO mail-qc0-f177.google.com)
	(209.85.216.177)
	by server-14.tower-31.messagelabs.com with RC4-SHA encrypted SMTP;
	31 Mar 2015 23:25:26 -0000
Received: by qcbii10 with SMTP id ii10so5087139qcb.2
	for <mirageos-devel@lists.xenproject.org>;
	Tue, 31 Mar 2015 16:25:25 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=1e100.net; s=20130820;
	h=x-gm-message-state:date:mime-version:message-id:from:to:subject
	:content-type;
	bh=Kb09h8RDZFOQF83tU9D0/HJUcqfc+sIfayg7imPWNfQ=;
	b=JIDW+D3kHCdNFloh5ylnDrx5JnAyTe1kPOnWYd/5WZnpE7/1axQaaQj2qAmJAUMl1U
	r5j/dSJl4j4+JXD5Yyogs/XOB44u56Hg5EpY8hq6fhcutoK4CaY8M3UOfjRGBVFxvMw9
	TWzd5fvYIB4UjyPuMdmygEt8xU9vr6qAxZstgvKJrpHQwxG24RKPEG3v9QgViioXXPIK
	ox9RDLAUs3uPfMEMdspMk2im2RZusMzEaYzvrC2FRH2QY9qHjsw3iP/Ofz6p5/sbGPGa
	9RstI+NN1ihxXiOC7sDwVE0n0p4045ZaibIsu9V8cSDJq//WcpJvzT/ZmBhIpBTZIuhf
	u7uA==
X-Gm-Message-State: ALoCoQkpSoWs7MwntCH+wwR2QiewQ8OVvTirAiQUXF1nGG5fmRDeYbvPVLnsm3XA7qCvMu+PKwS8
X-Received: by 10.55.27.198 with SMTP id m67mr81666884qkh.11.1427844325590;
	Tue, 31 Mar 2015 16:25:25 -0700 (PDT)
Received: from hedwig-11.prd.orcali.com
	(ec2-54-85-253-232.compute-1.amazonaws.com. [54.85.253.232])
	by mx.google.com with ESMTPSA id z67sm89019qge.7.2015.03.31.16.25.23
	for <mirageos-devel@lists.xenproject.org>
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Tue, 31 Mar 2015 16:25:24 -0700 (PDT)
Date: Tue, 31 Mar 2015 16:25:24 -0700 (PDT)
X-Google-Original-Date: Tue, 31 Mar 2015 23:25:23 GMT
MIME-Version: 1.0
X-Mailer: Nodemailer (0.5.0; +http://www.nodemailer.com/)
Message-Id: <1427844323458.7f2e394e@Nodemailer>
X-Orchestra-Oid: 7193BD3C-3A54-40CF-BFF2-E826851573D2
X-Orchestra-Sig: f5fce34f8a18f6658b89ba030e5ce102389802ea
X-Orchestra-Thrid: 66DE0901-A93D-4E73-95F1-65D807616B45
X-Orchestra-Thrid-Sig: ffc48b2c0ff3532a07d1d17a4ea760bcaf42acb6
X-Orchestra-Account: 99ad82f1b9d29b4a05252c4b6df24d2378c51b3c
From: "Joseph Abrahamson" <joseph@reifyhealth.com>
To: mirageos-devel@lists.xenproject.org
Subject: [MirageOS-devel] Interested in Pioneer Projects
X-BeenThere: mirageos-devel@lists.xenproject.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: Developer list for MirageOS <mirageos-devel.lists.xenproject.org>
List-Unsubscribe: <http://lists.xenproject.org/cgi-bin/mailman/options/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=unsubscribe>
List-Post: <mailto:mirageos-devel@lists.xenproject.org>
List-Help: <mailto:mirageos-devel-request@lists.xenproject.org?subject=help>
List-Subscribe: <http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel>,
	<mailto:mirageos-devel-request@lists.xenproject.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============4467347971797043398=="
Sender: mirageos-devel-bounces@lists.xenproject.org
Errors-To: mirageos-devel-bounces@lists.xenproject.org

--===============4467347971797043398==
Content-Type: multipart/alternative;
 boundary="----Nodemailer-0.5.0-?=_1-1427844324471"

------Nodemailer-0.5.0-?=_1-1427844324471
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hello MirageOS-devel,


I=E2=80=99m interested in learning more about contributing to some pioneer =
projects. In particular, there are several projects which I =
wouldn=E2=80=99t mind taking a deeper look at:


* deflate: I=E2=80=99m interested in streaming algorithms in OCaml =
generally.
* WebIDL: I=E2=80=99m very interested in doing front-end work in =
js=5Fof=5Focaml, though I have no familiarity with WebIDL and am a little =
unsure of the purpose here.
* Syslogd: This seems like a simple enough project just to get my feet wet =
with unikernel development


In addition the =E2=80=9Csemantics of mergeable data-structures=E2=80=9D is=
 interesting, though the description was brief.


Anyway, I don=E2=80=99t claim to have an enormous amount of free time and =
am certainly more interested in just getting my feet wet a bit, but =
I=E2=80=99d love to hear from some of the mentors related to each project =
and see if anything seems like it might be a reasonable fit for me. Perhaps=
 the best option would be something with simple and fast payout that is of =
high value to the community. I=E2=80=99m more than happy to do a little =
grunt work to learn from the best on how to do OCaml development.


Cheers,
Joseph Abrahamson


=E2=80=94
Sent from Mailbox
------Nodemailer-0.5.0-?=_1-1427844324471
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html PUBLIC =22-//W3C//DTD HTML 4.0 Transitional//EN=22 =
=22http://www.w3.org/TR/REC-html40/loose.dtd=22>
<html><body>
<span id=3D=22mailbox-conversation=22><div>
<div>Hello MirageOS-devel,</div>
<div><br></div>
<div>I&rsquo;m interested in learning more about contributing to some =
pioneer projects. In particular, there are several projects which I =
wouldn&rsquo;t mind taking a deeper look at:</div>
<div><br></div>
<div>* deflate: I&rsquo;m interested in streaming algorithms in OCaml =
generally.</div>
<div>* WebIDL: I&rsquo;m very interested in doing front-end work in =
js=5Fof=5Focaml, though I have no familiarity with WebIDL and am a little =
unsure of the purpose here.</div>
<div>* Syslogd: This seems like a simple enough project just to get my feet=
 wet with unikernel development</div>
<div><br></div>
<div>In addition the &ldquo;semantics of mergeable data-structures&rdquo; =
is interesting, though the description was brief.</div>
<div><br></div>
<div>Anyway, I don&rsquo;t claim to have an enormous amount of free time =
and am certainly more interested in just getting my feet wet a bit, but =
I&rsquo;d love to hear from some of the mentors related to each project and=
 see if anything seems like it might be a reasonable fit for me. Perhaps =
the best option would be something with simple and fast payout that is of =
high value to the community. I&rsquo;m more than happy to do a little grunt=
 work to learn from the best on how to do OCaml development.</div>
<div><br></div>
<div>Cheers,</div>
<div>Joseph Abrahamson</div>
</div></span><div class=3D=22mailbox=5Fsignature=22>
<br>&mdash;<br>Sent from <a href=3D=22https://www.dropbox.=
com/mailbox=22>Mailbox</a>
</div>
</body></html>

------Nodemailer-0.5.0-?=_1-1427844324471--


--===============4467347971797043398==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
MirageOS-devel mailing list
MirageOS-devel@lists.xenproject.org
http://lists.xenproject.org/cgi-bin/mailman/listinfo/mirageos-devel

--===============4467347971797043398==--


