XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
RE: [xml-dev] Percentage of web services supporting XML versus JSON

> http://erlang.org/pipermail/erlang-questions/2014-March/078228.html

Loic says that JSON is "a terrible format" because:

	It's text-based, meaning it's incredibly 
	slow to parse.

Shall I conclude, then, that all text-based formats are bad? 

XML is a text-based format.

Parsing is one of the most mature Computer Science subjects. Although I don't have performance metrics, I am skeptical that text-based formats are "incredibly slow to parse."

	It has to be valid UTF-8, meaning it's 
	incredibly slow to validate.

XML is by default UTF-8.

	Its numbers representation is double-precision 
	floating-point, meaning it's incredibly imprecise 
	and limited.

Here's what the JSON specification says about numbers:

	JSON is agnostic about numbers. In any programming 
	language, there can be a variety of number types of
	various capacities and complements, fixed or floating, 
	binary or decimal. That can make interchange between
	different programming languages difficult.
	JSON instead offers only the representation of numbers 
	that humans use: a sequence of digits. All programming 
	languages know how to make sense of digit sequences
	even if they disagree on internal representations. That is 
	enough to allow interchange.

/Roger

-----Original Message-----
From: Simon St.Laurent [mailto:simonstl@simonstl.com] 
Sent: Monday, June 09, 2014 9:18 AM
To: xml-dev@lists.xml.org
Subject: Re: [xml-dev] Percentage of web services supporting XML versus JSON

On 06/09/2014 09:12 AM, Ihe Onwuka wrote:
> Further discussion here.
>
> http://erlang.org/pipermail/erlang-questions/2014-March/078228.html

Perfect - thank you!  The piece of that I keep finding in these kinds of 
conversations is:

"I do not have a magical format to propose to replace it (I tend to go
with msgpack, but it also has its issues, though not as many as JSON)
but perhaps I should work on it soon in preparation for my EUC talk."

Messaging formats are hard.  I'll be curious what Loic's come up with at 
this point.  Despite the Erlang community's fondness for ASN.1, I'm 
guessing it's not that.

Thanks,
Simon


> On Mon, Jun 9, 2014 at 1:52 PM, Simon St.Laurent <simonstl@simonstl.com
> <mailto:simonstl@simonstl.com>> wrote:
>
>     On 06/09/2014 07:55 AM, Costello, Roger L. wrote:
>
>         See slide 67 in this presentation:
>
>         http://www.slideshare.net/__jmusser/ten-reasons-__developershateyourapi
>         <http://www.slideshare.net/jmusser/ten-reasons-developershateyourapi>
>
>
>     JSON's leveled off a bit, but XML is certainly still declining.  For
>     private APIs - APIs just inside a site or app - I'm pretty sure it's
>     more like JSON 80% XML 20%.
>
>     However, this came across my Twitter feed this morning:
>
>     https://twitter.com/ronnylt/__status/475943416250241024
>     <https://twitter.com/ronnylt/status/475943416250241024>
>
>     "Stop using JSON, save the planet :)"
>
>     The slide is about the costs of JSON, but I'm not entirely sure what
>     direction Loic is proposing people take.  I should have gone to
>     Stockholm, I guess.
>
>     Thanks,
>     Simon
>
>     ___________________________________________________________________________
>
>     XML-DEV is a publicly archived, unmoderated list hosted by OASIS
>     to support XML implementation and development. To minimize
>     spam in the archives, you must subscribe before posting.
>
>     [Un]Subscribe/change address: http://www.oasis-open.org/__mlmanage/
>     <http://www.oasis-open.org/mlmanage/>
>     Or unsubscribe: xml-dev-unsubscribe@lists.xml.__org
>     <mailto:xml-dev-unsubscribe@lists.xml.org>
>     subscribe: xml-dev-subscribe@lists.xml.__org
>     <mailto:xml-dev-subscribe@lists.xml.org>
>     List archive: http://lists.xml.org/archives/__xml-dev/
>     <http://lists.xml.org/archives/xml-dev/>
>     List Guidelines:
>     http://www.oasis-open.org/__maillists/guidelines.php
>     <http://www.oasis-open.org/maillists/guidelines.php>
>
>

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS