Re: Registration of media type application/calendar+xml

Keith Moore <moore@cs.utk.edu> Fri, 10 September 2010 12:23 UTC

Return-Path: <moore@cs.utk.edu>
X-Original-To: ietf@core3.amsl.com
Delivered-To: ietf@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 22AE43A685A for <ietf@core3.amsl.com>; Fri, 10 Sep 2010 05:23:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.353
X-Spam-Level:
X-Spam-Status: No, score=-6.353 tagged_above=-999 required=5 tests=[AWL=0.246, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uKhlR73hsyS7 for <ietf@core3.amsl.com>; Fri, 10 Sep 2010 05:23:40 -0700 (PDT)
Received: from ib.eecs.utk.edu (ib.eecs.utk.edu [160.36.56.152]) by core3.amsl.com (Postfix) with ESMTP id 7A7DE3A6825 for <IETF@ietf.org>; Fri, 10 Sep 2010 05:23:40 -0700 (PDT)
Received: from localhost (localhost.localdomain [127.0.0.1]) by ib.eecs.utk.edu (Postfix) with ESMTP id 1F9DC1C007F; Fri, 10 Sep 2010 08:24:07 -0400 (EDT)
X-Virus-Scanned: by amavisd-new with ClamAV and SpamAssasin at eecs.utk.edu
Received: from ib.eecs.utk.edu ([127.0.0.1]) by localhost (ib.eecs.utk.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ck-L4V9Aiky3; Fri, 10 Sep 2010 08:24:06 -0400 (EDT)
Received: from 173-137-249-197.pools.spcsdns.net (173-137-249-197.pools.spcsdns.net [173.137.249.197]) by ib.eecs.utk.edu (Postfix) with ESMTP id AC46D1C005E; Fri, 10 Sep 2010 08:24:01 -0400 (EDT)
Subject: Re: Registration of media type application/calendar+xml
Mime-Version: 1.0 (Apple Message framework v1081)
Content-Type: text/plain; charset="us-ascii"
From: Keith Moore <moore@cs.utk.edu>
In-Reply-To: <4C8A044F.1040603@gmx.de>
Date: Fri, 10 Sep 2010 08:23:59 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <D2E23FDF-A9F9-43C9-9290-95BB304F3C73@cs.utk.edu>
References: <F842A373EE7E9C439CA07CCB01BBD1D0564C4899@TK5EX14MBXC138.redmond.corp.microsoft.com> <341B449F-7DFE-4A40-84B0-D008658A08DF@cs.utk.edu> <B0EA09C87A5701A94419DB8F@socrates.local> <673F57D3-B2EC-4ABF-B450-EEEA3A4C185A@cs.utk.edu> <AANLkTinon97N3njcAV=FUj7-_ZJugazVCuaVbySbXr_L@mail.gmail.com> <193EC4D4-1B6C-4B14-ACD7-3237517566F5@cs.utk.edu> <4C8A044F.1040603@gmx.de>
To: Julian Reschke <julian.reschke@gmx.de>
X-Mailer: Apple Mail (2.1081)
Cc: Douglass Mike <douglm@rpi.edu>, Phillip Hallam-Baker <hallam@gmail.com>, Cyrus Daboo <cyrus@daboo.name>, Alexey Melnikov <Alexey.Melnikov@isode.com>, ietf-types@iana.org, Steven Lees <Steven.Lees@microsoft.com>, IETF@ietf.org
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ietf>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 10 Sep 2010 12:23:42 -0000

On Sep 10, 2010, at 6:11 AM, Julian Reschke wrote:

> On 10.09.2010 07:09, Keith Moore wrote:
>> On Sep 10, 2010, at 12:34 AM, Phillip Hallam-Baker wrote:
>> ...
>>> If you want to have a system in which 95% of your data structures are
>>> in XML you probably don't want to have to introduce a separate syntax
>>> and you most certainly do not want to deal with a separate data model
>>> for dealing with calendaring.
>> 
>> It's not at all clear that trying to coerce 95% of the data models in
>> your system to be compatible with XML is a worthwhile goal. The XML data
>> model is tortured. Trying to impose it on network protocols should be
>> regarded as an act of violence.
>> ...
> 
> That's *far* from clear. Could you elaborate in the context of calendaring?

Sigh.  Do I have to write the code to parse the XML and do something with it to show that it's tortured?

> As far as I can tell, the torture is more about having to parse what we have today.

Granted, iCalender is ugly.  But you still have to parse it if you want to interoperate with the installed base. 

> Yes, WS-* sucks. Big news.

I mention it because it's a good example of the "everything should be XML" disease, and a "2010s style" approach to the problem.  Things were better in the 1990s.

>> In principle, it would make sense for things to have a uniform syntax.
>> But XML gets this wrong in several different ways. The most obvious is
>> that XML data structures don't map well onto data structures supported
>> by programming languages. That's probably because SGML wasn't designed
>> to do that - it was designed to mark up text. Another problem is that
>> XML confuses typing and naming. Another problem (especially when mapping
>> other structures to/from XML) is that the distinction between parameters
>> and sub-elements is pretty much arbitrary.
> 
> That may all be true. But strangely enough, there doesn't seem to be much energy to come up with something better *and* get people to agree on that.

Give it time.  Of course, now that there is all of this XML to displace, it's hard for something new to get traction.

> Turning a type registration request into an to-XML-or-not-to thread doesn't appear to be productive to me.

Fortunately, we don't need to.  iCalendar already exists, and is not XML.  There's no demonstrated need for a new type, whether in XML or any other syntax.

> Can iCalendar be parsed reliably with regexps? (just asking).

WIthout actually doing the exercise, yes I think so.  I don't recall much (if any) recursion in iCalendar.  Of course the real question is how easy it is to translate ABNF into code that uses regexps.  

(I do think it's ironic that we went to all of this trouble way back in the DRUMS WG to produce a new version of ABNF that would allow the syntax of something to be completely specified - without resorting to comments - and machine parseable.   And then we went to the trouble to rewrite a number of protocols using the new ABNF, accepting the pain and the possibility to introduce errors.   And now that we have it, we're not using it to generate parsers, and people are claiming that they need to use XML instead.  I suppose the one thing that XML adds here is that you don't have to design an internal data structure.  You can use the one that generates naturally from the XML even though it's likely to be very awkward to use.)

>> Another of the big problems with the XML religion is that its adherents
>> have the mistaken impression that defining the syntax is most of the
>> work of defining a protocol - so that once you decide to use XML, most
>> of the work is done. Apparently, semantics don't matter much.
> 
> Another big problem with the anti-XML religion is that its adherents like to over-generalize, such as deducing badness of XML from WS-deathstar encounters.

Fair enough - but I do think it's a good example of what happens when people insist that everything be XML.

> Yes, there's lots of bad use of XML. The same can be said about other formats as well.

And I'm not arguing that iCalendar is a well-designed syntax.   If we were building it today, I'd be okay with using XML (not because I like XML, but because it would be politically expedient, and the chances are good than an ad hoc format designed by a WG today would be no better).   My objection is to having two calendar formats.

> The benefit is that the XML parser already has taken care of many things people get wrong all the time; character encodings, escaping, line endings etc.

Yes, but you can get some of those things wrong (e.g. character encodings, and other differences between internal/external representation) internally to your program.

>> You're essentially arguing the syntax by which data is represented on
>> the wire - the presentation layer - should constrain how data is
>> represented internally in a system. And then you're arguing that the
>> particular constraints imposed by XML are appropriate constraints.
>> That's brain damage.
> 
> I don't think anybody argued that.

That's a consequence of the argument that 95% of formats should be XML.  Which was the justification for having an XML version of iCalendar.

Here's the argument in a nutshell: XML or no XML, a new iCalendar format should require substantial technical justification because of the harm it will do to interoperability.

Keith