Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 76314 invoked from network); 26 Feb 2009 17:47:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Feb 2009 17:47:33 -0000 Received: (qmail 60051 invoked by uid 500); 26 Feb 2009 17:47:30 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 60018 invoked by uid 500); 26 Feb 2009 17:47:29 -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 60007 invoked by uid 99); 26 Feb 2009 17:47:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2009 09:47:29 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [83.97.50.139] (HELO jan.prima.de) (83.97.50.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2009 17:47:20 +0000 Received: from dahlia.lan (f053004162.adsl.alicedsl.de [::ffff:78.53.4.162]) (AUTH: LOGIN jan, TLS: TLSv1/SSLv3,128bits,AES128-SHA) by jan.prima.de with esmtp; Thu, 26 Feb 2009 17:46:59 +0000 Message-Id: <48F93317-FF73-4BBA-9DBF-AC286EC506BB@apache.org> From: Jan Lehnardt To: user@couchdb.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: Is it possible to replace SpiderMonkey? Date: Thu, 26 Feb 2009 18:46:27 +0100 References: X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org Hi Jens, On 26 Feb 2009, at 18:34, Jens Alfke wrote: > How hard would it be to plug a different JavaScript engine into > CouchDB? Nothing against SpiderMonkey, but the new generation of JS > engines are a whole lot faster. I've got Google's V8 built as a > command-line tool; would it be possible to use it in CouchDB? I tried TraceMonkey when it came out and it was not too hard to swap out. > (I'm not even sure whether CouchDB runs any JS in-process or > outsources it all to an external process.) It's all external. See your default.ini file: [query_servers] javascript = /path/to/couchjs /path/to/couchdb/server/main.js You need a binary that can run main.js and place it into the above directive. That's it. Let us know what you find out! :) Cheers Jan --