Joan and Martin, I don't think AvanceDB would sit well inside CouchDB - I think 
the technology stacks and product goals are just too different. For example 
Avance is a resource hog (by design) while Couch is very light (admirably so).

However the core JS piece that Avance uses is MIT licensed and most likely 
could be integrated in-process into an Erlang VM. I'm not an Erlang guy but 
AFAIK this would be feasible.

I separated libjsapi into a separate project specifically to allow the FOSS 
community to get value from it in other projects.

Check out: https://github.com/RipcordSoftware/libjsapi

There are a bunch of examples in the README and in the wiki, all in C++ but 
they are so simple most folks could pick them up quickly. I made a Mandelbrot 
example running under GTK+ to show how the SpiderMonkey GC and the GTK memory 
models could co-exist. This type of approach would be needed to get BEAM and 
SpiderMonkey to interact harmoniously.

In the most trivial implementation you could pass it JSON and receive JSON back 
similar to the current JS 1.8.5 query server in Couch. Since this could be done 
in process it should improve basic MR performance significantly.

I'd gladly help out in any R&D effort on behalf of Couch to get this thing 
rolling.

Cheers,
Craig

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
Martin Broerse
Sent: 12 November 2015 21:28
To: [email protected]; Joan Touzet <[email protected]>
Subject: Re: MapReduce in CouchDB

Hi Craig,

I agree with Joan and would not use it in a commercial project under a GPL 
licence. Next to Apache I also like MIT: https://opensource.org/licenses/MIT

- Martin

On Thu, Nov 12, 2015 at 8:38 PM, Joan Touzet <[email protected]> wrote:

> Hi Craig,
>
> Neat work, however:
>
> ----- Original Message -----
> > From: "Alexander Shorin" <[email protected]> IIRC we already have 
> > sort of plug-able index engine. If AvanceDB is able to provide own 
> > as a library under non-GPL license,
>
> This is critical. Would you consider relicensing AvanceDB under the 
> Apache license? As it stands, with you licensing it as GPL, there is 
> no chance of this project/code ever being included with CouchDB 
> proper. Licensing will even make it impossible for us to ship a shim 
> library against which you could link as a NIF (since you didn't pick LGPL 
> either).
>
> Please reconsider your licensing terms.
>
> Thanks,
> Joan Touzet
>

Reply via email to