[Oisf-wg-configuration_language] Configuration Structure

Victor Julien victor at inliniac.net
Wed Aug 5 13:20:22 UTC 2009


Nick Rogness wrote:
> On Thu, Jul 30, 2009 at 8:39 AM, Victor Julien <victor at inliniac.net> wrote:
>>> In other words, no configuration language exists in our codebase at this
>>> point.
>>>
>>> Since our schedule is pretty tight, this probably means we should go for
>>> existing code for this part of the engine. So suggestions for libraries
>>> are very much appreciated.
> 
>> [SNIP]
>> No one going to speak up about XML?
> 
> This is a no brainer, config should be in XML. Maybe the better
> question should be why NOT use XML for the config syntax?
> 
> As I mentioned on the rules list, using XML gives the engine the
> flexibility to make parsing, integration, and versioning a breeze.
> Using a well known library like libXML2 makes parsing in C fairly
> straight forward.  Additionally, every other language worth a mention
> already have XML libraries so building GUIs and integrating with other
> party's software could be straight forward.

Many ppl hand edit their configuration files in editors like vim or
emacs, XML really isn't ideal there. The idea of YAML is growing on me:
many many language bindings for machine parsing and still good for hand
editing as well.

Does anyone have experiences to share about YAML?

-- 
---------------------------------------------
Victor Julien
http://www.inliniac.net/
PGP: http://www.inliniac.net/victorjulien.asc
---------------------------------------------




More information about the Oisf-wg-configuration_language mailing list