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 87D771083F for ; Sun, 18 Aug 2013 07:11:48 +0000 (UTC) Received: (qmail 88515 invoked by uid 500); 18 Aug 2013 07:11:46 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 88484 invoked by uid 500); 18 Aug 2013 07:11:46 -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 88476 invoked by uid 99); 18 Aug 2013 07:11:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Aug 2013 07:11:45 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [128.18.89.23] (HELO brightmail-internal3.sri.com) (128.18.89.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Aug 2013 07:11:38 +0000 X-AuditID: 80125917-b7f0c6d00000638c-18-52107393c061 Received: from exchange-hub01.SRI.COM (Unknown_Domain [128.18.87.18]) (using TLS with cipher AES128-SHA (AES128-SHA/128 bits)) (Client did not present a certificate) by brightmail-internal3.sri.com (SRI Internal SMTP Gateway) with SMTP id C7.B5.25484.39370125; Sun, 18 Aug 2013 00:11:15 -0700 (PDT) Received: from EXCHANGE-DB08.SRI.COM ([fe80::a11e:7c21:6886:9a20]) by exchange-hub01.SRI.COM ([fe80::5dff:8262:1901:d433%15]) with mapi id 14.02.0298.004; Sun, 18 Aug 2013 00:11:07 -0700 From: Jim Klo To: "" Subject: Re: Erlang vs JavaScript Thread-Topic: Erlang vs JavaScript Thread-Index: AQHOmQ8LoYoxFh/w1EKHLQ3pMgHon5mWCMSAgAABDYCAAAK0gIAAAcqAgAADBICAAAe8AIAADGeAgADTsQCAAXFNAIAAAh8AgAAIiACAAmtkgIAAG2mAgAAFyQD//5BoHg== Date: Sun, 18 Aug 2013 07:11:14 +0000 Message-ID: References: <33DF91AF-94FF-4205-A6A9-B99030A489DA@couchbase.com> <47F84BCE-BBA0-490B-AE1D-DC70382A1320@couchbase.com> <5FD58AC4-DC89-492C-9FC6-A4A101954022@apache.org> <605C317E-C7A4-4AE6-9CD0-B042E0F57473@gmail.com> , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrLLMWRmVeSWpSXmKPExsXSIBQupDu5WCDI4O5Da4vOPXvZHBg9Nn44 zhjAGMVlk5Kak1mWWqRvl8CVsfjtZbaCqVwVTcftGxgbOboYOTkkBEwkvi9fzgphi0lcuLee DcQWEtjAJNF7qraLkQvI3scosfflbLAiNgF5icPbHzCD2CIClhK3FnxkAbGFBRQlbk1+wQYR V5J49f8CK0iziMAkRon2V0fYuxg5OFgEVCWu/vAHqeEVsJLY93YDE8SCl+wSM7btYgJJcAoE Sqy81Qm2gBHoou+n1oDFmQXEJW49mc8EcamAxJI955khbFGJl4//sULU6Egs2P2JDcLWlli2 8DUzxDJBiZMzn7BMYBSZhWTULCQts5C0zELSsoCRZRWjTFJRZnpGSW5iZo4uLOiN9YqLMvWS 83M3MYIjIVJ8B2PfMttDjAIcjEo8vJvf8gcJsSaWFVfmHmKU4GBWEuG9/hsoxJuSWFmVWpQf X1Sak1p8iFGag0VJnPcnw6tAIYH0xJLU7NTUgtQimCwTB6dUA+OOG69Y3r5fZxt1NvCcyGd2 /slBkWrc9vPX/TyvoC3jbB+8S419w/btJ6V97qh/OOVd9eOf7rddP/SMzSLC17LH3Xgz+cCH v1mvvtVujqnZtpytbGdml0C4cDP7wsPsXUEVVx6Knlm71VToapLzmept2r3posE35abem7CB 56d6ql6B9PRtL22UWIozEg21mIuKEwEyC1tHgAIAAA== X-Virus-Checked: Checked by ClamAV on apache.org FWIW: this thread has been the best holy war I've read in a long time.=20 :-) On Aug 17, 2013, at 11:51 PM, "Alexander Shorin" wrote: > On Sun, Aug 18, 2013 at 10:29 AM, Benoit Chesneau w= rote: >> On Sun, Aug 18, 2013 at 6:51 AM, Thanos Vassilakis wr= ote: >>=20 >>> Build views performance gains: >>> Python 4-6 times faster + less memory >>=20 >>=20 >> Whatever the results of this benchmark are, this not the first time, I >> heard that the python engine is faster than the Javascript one. I wonder >> what could make it faster than the javascript engine. Since the protocol >> and encode/decode steps are the same, this is likely an issue in the >> couchjs program. That would be interesting to see where the JS engine lo= st >> times and eventually fix it. >=20 > As for my experience, Python is not faster than JS until you don't > have to use stdlib or other packages actively. Lack of stdlib power > forces you write/ship a lot of routine code, that mostly not so fast > and effective as some C-extension on disk "that does magic" for > Python. For simple cases like >=20 > def map(doc): > if 'foo' in doc: > yield doc['foo'], 1 >=20 > you will not see the profit. >=20 > -- > ,,,^..^,,,