[librecat-dev] collaborate with Catmandu ?

Marc Chantreux mc at unistra.fr
Wed Jan 23 12:15:39 CET 2019

hello Patrick,

thanks for that and the hour we took monday to exchange ideas.

> use Catmandu;
> my $importer = Catmandu->importer('Null');
> my $fixer    = Catmandu->fixer(['add_field(hello,world)']);
> my $output   = '';
> my $exporter = Catmandu->exporter('YAML', file => \$output);
> $exporter->add_many($fixer->fix($importer));
> print "$output”;

which made me remember a very old discution we had: the idea was
that the flow is controled by the exporter and i wanted to bet on
perlude for that. i actually still do ... which means "a lot of
redundant logic".

can you explain the benefit of catmandu exporter over a simple stream?

anyway, i'll take the workflow part aside for the moment: i'll focus on

* see how to use a catmandu filter and importer as a part of a perlude
* try to get the result of the parsing of the fix langage to see how it
  is possible to use it in combination with the DataVM.

i'll do that on my spare time for the moment so don't expect a fast pace
progress :)


More information about the librecat-dev mailing list