<br><br><div class="gmail_quote">On Mon, Feb 23, 2009 at 4:11 AM, David van der Spoel <span dir="ltr">&lt;<a href="mailto:spoel@xray.bmc.uu.se">spoel@xray.bmc.uu.se</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
Over the last years we have discussed moving away from the current structure of gromacs, possibly using C++, or at least by using abstract data types in C, which are appearing in the code more and more now (see src/kernel/gmxcpp.h for an example). Abstract data types allow for a more clear separation of code and data, which is crucial for error checking and maintainability.</blockquote>
<div><br>I very much agree with this. And I would add that, in my opinion, this could also help new people (like me) to understand the code.<br></div><div>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Although Mark has a point that xml files can be complex, this does not need to be a problem if we provide an API (in different languages, but at least C, Perl) for editing the files that provides complete coverage of all the options. Think something like:</blockquote>
<div><br>I think XML is great when read/written from a script. Because there a good libraries for all languages. So speical routines might not even be neccassary. If we provide a library to write the mdp file, the scripts are independent of the file format.<br>
<br>Thus only editing by hand is influced by the format and my concern is that XML makes it more difficult to edit by hand. Very few people use XML editors for XML - most still use text editors. And I don&#39;t see what XML would add as a benefit to the user. What does the user gain to have the abstract data types in the code represented in the mdp file structure? I think the current comments written in the mdout file structure the file for humans as well as XML could do. In case we really think we need some markup language - I would vote for something like YAML to make it best human readable/editable.<br>
<br>Roland<br></div></div><br><br clear="all"><br>-- <br>ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov">cmb.ornl.gov</a><br>865-241-1537, ORNL PO BOX 2008 MS6309<br>