Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 92764 invoked from network); 9 Apr 2009 02:53:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Apr 2009 02:53:54 -0000 Received: (qmail 96269 invoked by uid 500); 9 Apr 2009 02:53:53 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 96181 invoked by uid 500); 9 Apr 2009 02:53:53 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 96171 invoked by uid 99); 9 Apr 2009 02:53:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Apr 2009 02:53:53 +0000 X-ASF-Spam-Status: No, hits=3.4 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.217.162] (HELO mail-gx0-f162.google.com) (209.85.217.162) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Apr 2009 02:53:44 +0000 Received: by gxk6 with SMTP id 6so1007077gxk.11 for ; Wed, 08 Apr 2009 19:53:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.101.20 with SMTP id d20mr3713827ybm.35.1239245602529; Wed, 08 Apr 2009 19:53:22 -0700 (PDT) In-Reply-To: <15ec700a0904081918j4dc53af7mab831a6fed475ad8@mail.gmail.com> References: <20090408080746.GA7710@uk.tiscali.com> <15ec700a0904081918j4dc53af7mab831a6fed475ad8@mail.gmail.com> Date: Wed, 8 Apr 2009 22:53:22 -0400 Message-ID: <64a10fff0904081953s51a476eekb40ade9d03165ad7@mail.gmail.com> Subject: Re: Erlang vs Scala From: Dean Landolt To: dev@couchdb.apache.org Content-Type: multipart/alternative; boundary=00151750eebaeda55404671659b5 X-Virus-Checked: Checked by ClamAV on apache.org --00151750eebaeda55404671659b5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Wed, Apr 8, 2009 at 10:18 PM, Wout Mertens wrote: > Hi Daniel, > > Interesting, what hierarchy can you express in Sedna (XML) that you > can't express in CouchDB (JSON)? Let me start by saying I think json has already won the utility vs. usability tradeoff war. That said, there is nothing you can express in json that you can't express with xml+xsd (unweildy as this may be). But there are things baked into xml that aren't easy (or even possible) with json -- namespaces come to mind. Things like XPath and XQuery can be bridged (or bested) with a few client libraries (e.g. JSONPath and JSONQuery). But json will always live in a flat namespace -- and that's part of the charm. And let's not forget that (perhaps due largely to momentum) there's a metric shitton of good structured data locked up in xml, xhtml, even tidyable html. So to answer your question...*the web*. That's tough to express purely in json -- but luckily couch is flexible enough to allow external indexing and querying against all this tagsoup crap using something like sedna, monetdb, etc. And will no doubt be even more so in the future. I know you were kidding...just wanted to get across the * we-can't-discount-xml-and-the-others* point. --00151750eebaeda55404671659b5--