Print

Print


Thanks - I’ve never looked at the things that come with anaconda, so completely missed that. Coming at it mainly from the perspective of mapping yaml into some C++ objects without involving python: libyaml seems to be a low level C library. Its parser emits a stream of events as it is processing the document rather than handing over some sort of DOM object, so I think it’s likely to be significantly more painful to use than yaml-cpp. The latter has a pretty nice looking API (judging by a quick skim of https://code.google.com/p/yaml-cpp/wiki/Tutorial).

But it sounds like the better thing would be to put a python driver and/or interface around the partitioning code to avoid introducing yet another dependency that may behave slightly differently to something we already have.

Daniel - besides the partitioner, is there any other C++ that reads config files?

On Dec 16, 2014, at 1:42 PM, Kian-Tat Lim <[log in to unmask]> wrote:

> Serge,
> 
>> Could you please specify which version of YAML has been approved for use, and which python/C++ libraries to use for reading/writing YAML formatted data? I don’t see any relevant third party packages at sw.lsstcorp.org yet.
> 
> Anaconda comes with PyYaml 3.10, which in turn wraps libyaml.  I'd start
> with that (although I guess there might be a problem having two copies
> [or, worse, versions] of libyaml running around).  You could use
> yaml-cpp if you think it's better.  YAML 1.1 and 1.2 are supposed to be
> practically compatible.  Don't use YAML 1.0.
> 
> -- 
> Kian-Tat Lim, LSST Data Management, [log in to unmask]


########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the QSERV-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1