Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 94976 invoked from network); 22 Jan 2011 10:28:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Jan 2011 10:28:17 -0000 Received: (qmail 11557 invoked by uid 500); 22 Jan 2011 10:28:16 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 11170 invoked by uid 500); 22 Jan 2011 10:28:15 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 11152 invoked by uid 99); 22 Jan 2011 10:28:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Jan 2011 10:28:14 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bchesneau@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-iw0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 Jan 2011 10:28:06 +0000 Received: by iwn37 with SMTP id 37so2591918iwn.11 for ; Sat, 22 Jan 2011 02:27:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=ukzh1eOqT4IplfT8A8wkK5s5b1Di36ce4eS0R7TcNl8=; b=mguYSYEQlhXHt68ZnX7s1HsJWW6ogj0NL2yVipso4E043EgY5+H4LGJj3KnCUk1iYk usp/BACgVXz83KqcivMACx7TEGzNBuObHVin4ifozEJdM0lgM+e7vOm4qQ9jrlVem+lW WiK7eN0RdBXWBgJUv1AizqcT73aQeqTp80eLo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=rwMHK8MZDRXAsTijgpU1eedQIRr2MCgJV2Uc5OfoEA2m+7Ly18e4A6TEBXVlvD/ZVd HV25oKo0HoCWyqi7KcVdBWyKsBmeN6x2ZaDp2KO5P3ZyxxbQaixpHknB962KnY377h87 YtsFCDaU5gaiGFV831bj8n7erv/Ta8PPR5PMM= MIME-Version: 1.0 Received: by 10.231.36.199 with SMTP id u7mr2078689ibd.16.1295692065405; Sat, 22 Jan 2011 02:27:45 -0800 (PST) Received: by 10.231.36.67 with HTTP; Sat, 22 Jan 2011 02:27:45 -0800 (PST) In-Reply-To: References: <85867503-84A2-4EB3-9AB4-46CA6652A7B4@apache.org> <41DCB3BF-BDC6-48C3-A435-3DBD10804B8F@apache.org> Date: Sat, 22 Jan 2011 11:27:45 +0100 Message-ID: Subject: Re: code style From: Benoit Chesneau To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Jan 20, 2011 at 4:16 PM, Paul Davis w= rote: >> I would like to see, before getting started on any of this, an RFC-style= document / wiki page that defines what a CouchDB plugins system looks like= that we agree on implementing. >> > > If this were any/most other languages I would totally agree. Except > Erlang is kinda laissez-faire when it comes to calling bits of code. > > Regardless of what the "plugin" system ends up looking like, it'll > basically be the same API that's used all over couchdb internals. > It'll be self-automatically stable once we make it not suck. > > *After* there's a system in place that allows plugins to exist without > a carnal knowledge of the code base I think it would be good to > explicitly formalize what we support as a plugin but until then we > just don't make any claim of supporting anything as we start adding > and organizing in preparation. > Imo the thing we could have in view, except this plugin "support", is a simple api to call any part of couchdb we need. Something as simple as the HTTP api but for erlang. I'm thinking to have a couchbeam pure erlang api for example just for that. It would also help us to make new HTTP layer using webmachine for example or anything. fabric an hovercraft are also good inspiration. I'm pretty ready to do such thing. Does it worth a thread to discuss about it? - beno=EEt