Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8DDA26CB6 for ; Sun, 5 Jun 2011 13:17:57 +0000 (UTC) Received: (qmail 35554 invoked by uid 500); 5 Jun 2011 13:17:55 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 35503 invoked by uid 500); 5 Jun 2011 13:17:55 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 35495 invoked by uid 99); 5 Jun 2011 13:17:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Jun 2011 13:17:54 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [64.202.165.29] (HELO smtpauth17.prod.mesa1.secureserver.net) (64.202.165.29) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 05 Jun 2011 13:17:47 +0000 Received: (qmail 13437 invoked from network); 5 Jun 2011 12:47:08 -0000 Received: from unknown (184.146.169.181) by smtpauth17.prod.mesa1.secureserver.net (64.202.165.29) with ESMTP; 05 Jun 2011 12:47:08 -0000 Date: Sun, 5 Jun 2011 09:17:33 -0400 From: MK To: user@couchdb.apache.org Subject: Re: Updates Message-Id: <20110605091733.d18bf622.mk@cognitivedissonance.ca> In-Reply-To: References: <20110602082348.1d0b6ed2.mk@cognitivedissonance.ca> <20110603075541.fbe3f2ec.mk@cognitivedissonance.ca> <20110604124653.8ba3b3b6.mk@cognitivedissonance.ca> X-Mailer: Sylpheed 3.1.1 (GTK+ 2.22.0; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Sat, 4 Jun 2011 11:25:37 -0700 Mark Hahn wrote: > > I don't want to duplicate/rewrite them for couch. > > I'm using nodejs and I created a nodejs version of jquery.couch.js so > I can run my couchdb access code on either the server or the client > with zero changes. Sounds like a great idea; I'm using node as well, and haven't looked at jquery.couch.js (thanks for the tip). Since they both use commonjs, presuming the couchdb request object available in shows is the same as the request object in node (for getting cookies and ip's), I guess they could share some module code, and, at least for the shows, I could then query couch direct from the client. I probably won't bother with that, but it'd be a nice option (where it works). It would be great would be to see the commonjs/server side js realm get worked out to provide standard module classes for stuff like requests (a la perl's CPAN), et. al., esp. if those modules could be compiled XS style (from C/C++). MK -- "Enthusiasm is not the enemy of the intellect." (said of Irving Howe) "The angel of history[...]is turned toward the past." (Walter Benjamin)