WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] add xl ocaml bindings

To: Vincent Hanquez <vincent.hanquez@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] add xl ocaml bindings
From: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Date: Mon, 28 Jun 2010 10:59:09 +0100
Cc: Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 28 Jun 2010 03:00:34 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1277707643-788-1-git-send-email-vincent.hanquez@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Citrix Systems, Inc.
References: <1277707643-788-1-git-send-email-vincent.hanquez@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Not really a comment on this patch as such but more a related thought...
How many language bindings do we think there are going to be and how
much effort do we expect it would be keeping them all (or even just the
interesting subset) up to date?

Is it worth investing the time up front to define a (simple) IDL and to
generate the C header and language bindings from that?

Are there any existing IDLs which would meet our needs?

Another thought is that an IDL would partially isolate people changing
the libxl interface from needing to know enough about each language to
fixup the bindings (or else they may break the build). At least in the
normal case where the change does not require a change to the IDL then a
simple regeneration should be enough to update the bindings for the
change.

On the other hand sometimes maintaining the auto code generator can be
more work than just maintaining bindings by hand...

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel