You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucy.apache.org by Marvin Humphrey <ma...@rectangular.com> on 2011/08/11 02:51:15 UTC

[lucy-dev] Lemon-based JSON parser

Greets,

A patch has been uploaded to JIRA that eliminates our dependency on the CPAN
module JSON::XS, replacing it with a new parser coded to the JSON RFC and
powered by the Lemon parser generator.

  https://issues.apache.org/jira/browse/LUCY-133

I plan to commit in a day or so.

Marvin Humphrey


Re: [lucy-dev] Lemon-based JSON parser

Posted by Marvin Humphrey <ma...@rectangular.com>.
On Wed, Aug 10, 2011 at 09:30:36PM -0700, David E. Wheeler wrote:
> > A patch has been uploaded to JIRA that eliminates our dependency on the CPAN
> > module JSON::XS, replacing it with a new parser coded to the JSON RFC and
> > powered by the Lemon parser generator.
> > 
> >  https://issues.apache.org/jira/browse/LUCY-133
> > 
> > I plan to commit in a day or so.
> 
> Interesting. Might that be something useful to release as a standalone library?

Yes, that could be done.  I'm not sure exactly how we would market it or what
Apache PMC would publish it, but it ought to be possible.

For our purposes, the strength of this custom parser is that it reads data
directly into Clownfish data structures.  It think we can use abstract macros
to generalize the library, though, so that e.g. ARRAY_STORE(array, tick,
element) is user-defined, allowing alternative object hierarchies to be used:
APR, Perl, etc.

It would be fun to really tighten things up and do a great job implementing
the JSON spec -- maxing out performance, beefing up the test suite, and so on.

Marvin Humphrey


Re: [lucy-dev] Lemon-based JSON parser

Posted by "David E. Wheeler" <da...@kineticode.com>.
On Aug 10, 2011, at 5:51 PM, Marvin Humphrey wrote:

> Greets,
> 
> A patch has been uploaded to JIRA that eliminates our dependency on the CPAN
> module JSON::XS, replacing it with a new parser coded to the JSON RFC and
> powered by the Lemon parser generator.
> 
>  https://issues.apache.org/jira/browse/LUCY-133
> 
> I plan to commit in a day or so.

Interesting. Might that be something useful to release as a standalone library?

Best,

David