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 C862A10F3F for ; Wed, 14 Aug 2013 19:51:08 +0000 (UTC) Received: (qmail 93402 invoked by uid 500); 14 Aug 2013 19:51:07 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 93040 invoked by uid 500); 14 Aug 2013 19:51:02 -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 93027 invoked by uid 99); 14 Aug 2013 19:51:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Aug 2013 19:51:01 +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.31 as permitted sender) Received: from [206.225.164.31] (HELO EXHUB020-4.exch020.serverdata.net) (206.225.164.31) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Aug 2013 19:50:56 +0000 Received: from EXVMBX020-1.exch020.serverdata.net ([169.254.4.108]) by EXHUB020-4.exch020.serverdata.net ([206.225.164.31]) with mapi; Wed, 14 Aug 2013 12:50:34 -0700 From: Jens Alfke To: "user@couchdb.apache.org" Date: Wed, 14 Aug 2013 12:50:33 -0700 Subject: Re: Erlang vs JavaScript Thread-Topic: Erlang vs JavaScript Thread-Index: Ac6ZJ4nAlL/o/8j6RHmdzDTz5ydlPA== Message-ID: <6767FF32-687B-4000-8F65-D7E976BC90AB@couchbase.com> 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="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org On Aug 14, 2013, at 10:02 AM, Alexander Shorin wrote: > Erlang server bypassed stdio interface communication and addtional > JSON decode/encode roundtrip, so it is faster than JS at some point. Yeah =97 the ironic thing is that state-of-the-art JS runtimes are probably= faster than Erlang* these days, but JS views are still going to be slower = because (a) they run in a separate process, and (b) the docs have to be tra= nslated from Erlang terms into JS objects. My experience from working inter= -language bridges is that parameter marshaling is generally a performance k= iller. FWIW, Couchbase Server 2.0 uses V8 instead of SpiderMonkey and runs it in-p= rocess; both those changes really help performance. =97Jens * Not intending to start a language-performance flame war! But Erlang=92s i= nterpreter is quite primitive by today=92s standards: it doesn=92t even hav= e a JIT.=