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

Re: Mirari template

I've just landed in California, so I will look at the code later. High level 
point though: in the long term, the main.ml will be replaced by some sort of 
structured configuration module (eg the Froc approach if that comes together).

So in the short term, any Mirari hacks required to generate the main.ml are 
acceptable :) If a template makes it easier to maintain, go right ahead!


On 31 Mar 2013, at 06:14, Vincent Bernardoff <vb@xxxxxxxxxxxxxx> wrote:

> Hello,
> Today I tried to use templates to generate the main.ml with Mirari instead of 
> putting the source code as strings in the program.
> You can checkout git://github.com/vbmithr/mirari branch template.
> Basically, I added a template/main.ml file which is an OCaml file (the former 
> generated main.ml) with optcomp directives in it.
> Mirari has been modified to output a settings.ml file instead, that is 
> included by the templated main.ml.
> I don't know if it is useful or not, I just started that because I didnât 
> like very much the idea to have the generated code embedded in mirari.ml, and 
> that I needed to modify it to experiment a bit with the UNIX backend.
> What do you think about it, if anything ?
> Cheers,
> Vincent



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