From user-return-18094-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Wed Sep 28 16:36:22 2011 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 3CAD77F67 for ; Wed, 28 Sep 2011 16:36:22 +0000 (UTC) Received: (qmail 37294 invoked by uid 500); 28 Sep 2011 16:36:20 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 37250 invoked by uid 500); 28 Sep 2011 16:36:20 -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 37241 invoked by uid 99); 28 Sep 2011 16:36:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2011 16:36:20 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jens@couchbase.com designates 206.225.164.28 as permitted sender) Received: from [206.225.164.28] (HELO EXHUB020-1.exch020.serverdata.net) (206.225.164.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2011 16:36:16 +0000 Received: from EXVMBX020-1.exch020.serverdata.net ([169.254.4.169]) by EXHUB020-1.exch020.serverdata.net ([206.225.164.28]) with mapi; Wed, 28 Sep 2011 09:35:54 -0700 From: Jens Alfke To: "user@couchdb.apache.org" CC: user Date: Wed, 28 Sep 2011 09:35:52 -0700 Subject: Re: Suggestion: CoffeeScript -> Erlang Thread-Topic: Suggestion: CoffeeScript -> Erlang Thread-Index: Acx9/LDiX+jYN5DQRcqucn6g42+vyA== Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 I think a JS-to-Erlang translator would be a pretty complex task; ditto for= any alternative syntax like CS.=20 Why not use emonk instead? It moves the JS interpreter into the db process,= so there's no IPC or serialization overhead. This is already used on iOS, = where we aren't allowed to run subprocesses. --Jens On Sep 28, 2011, at 9:07 AM, "kowsik" wrote: > Was thinking about this last night. This translator would be awesome > to keep the views people-like-me-readable, at the same time getting > the maximum possible view indexing performance since there's no cost > of JSON serialization out to the external process. For a write-heavy > database with lots of design docs, could be huge. >=20 > Anyways, a side project for someone! :) >=20 > K. > --- > http://blog.mudynamics.com > http://blitz.io > @pcapr