[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MirageOS-devel] command line arguments for unikernels

On 28 Nov 2014, at 16:32, Anil Madhavapeddy <anil@xxxxxxxxxx> wrote:
> On 28 Nov 2014, at 16:15, Nicolas Ojeda Bar <no263@xxxxxxxxxxxxxxx> wrote:
>>>>>>>> There is a new type, 'a Mirage.Param.t, which represents a parameter
>>>>>>>> (given at compile-time, run-time or hard-coded) of type 'a. There is
>>>>>>>> no way to retrieve the contents of a value of this type because the
>>>>>>>> contents may not be available until run-time.  What this type does is
>>>>>>>> to generate code in `main.ml` representing values given at
>>>>>>>> compile-time or generate code to extract the values from the kernel
>>>>>>>> parameters passed at run-time (in the 'extra' field of .xl file for
>>>>>>>> xen, in the command line for unix).

Another way to think about this aspect is as a MetaOCaml stage, where the 
eventual value will not be known until a certain number of program stages have 
been evaluated.

I wonder if we're going about this in reverse.  It may be better to code the 
configuration structure in Metacaml as a prototype, and then work backwards to 
see how this should be implemented in a more portable OCaml without full 
support for staging.

This could also influence how we make this work in (e.g.) Assemblage...

MirageOS-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.