From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 0615BBC0A for ; Fri, 18 May 2007 01:47:44 +0200 (CEST) Received: from ptb-relay02.plus.net (ptb-relay02.plus.net [212.159.14.213]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l4HNlhco024882 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 18 May 2007 01:47:43 +0200 Received: from [80.229.56.224] (helo=beast.local) by ptb-relay02.plus.net with esmtp (Exim) id 1Hoph9-0002H4-2a for caml-list@yquem.inria.fr; Fri, 18 May 2007 00:47:43 +0100 From: Jon Harrop Organization: Flying Frog Consultancy Ltd. To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] DSL for handling parsing binary memory structures? Date: Fri, 18 May 2007 00:42:27 +0100 User-Agent: KMail/1.9.6 References: <20070517212157.GA20085@furbychan.cocan.org> In-Reply-To: <20070517212157.GA20085@furbychan.cocan.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705180042.27693.jon@ffconsultancy.com> X-Miltered: at concorde with ID 464CE99F.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; parsing:01 alignment:01 bitfields:01 accessors:01 ocaml:01 fsharp:01 frog:98 wrote:01 caml-list:01 binary:01 binary:01 structures:02 structures:02 sell:96 size:95 On Thursday 17 May 2007 22:21:57 Richard Jones wrote: > I was thinking of writing something to make system calls into the Xen > hypervisor. The main problem is that the hypervisor takes & returns > binary structures which have very precise size / alignment > requirements, bitfields, etc. (and the requirements change with > versions of the hypervisor). It sounds like the ideal use for a DSL > to describe the binary structure of each version of each call and > automatically build accessors. I think XenSource sell a toolstack for Xen that is written in OCaml. So you might start there. -- Dr Jon D Harrop, Flying Frog Consultancy Ltd. The F#.NET Journal http://www.ffconsultancy.com/products/fsharp_journal/?e