Re: [Lager] Next Steps for LAGER

Asmus Freytag <asmusf@ix.netcom.com> Fri, 26 February 2016 10:24 UTC

Return-Path: <asmusf@ix.netcom.com>
X-Original-To: lager@ietfa.amsl.com
Delivered-To: lager@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7079B1A874F for <lager@ietfa.amsl.com>; Fri, 26 Feb 2016 02:24:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level:
X-Spam-Status: No, score=-2.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, J_CHICKENPOX_35=0.6, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PyeFfEAEE6nA for <lager@ietfa.amsl.com>; Fri, 26 Feb 2016 02:24:05 -0800 (PST)
Received: from elasmtp-masked.atl.sa.earthlink.net (elasmtp-masked.atl.sa.earthlink.net [209.86.89.68]) by ietfa.amsl.com (Postfix) with ESMTP id 8BE351A8748 for <lager@ietf.org>; Fri, 26 Feb 2016 02:24:05 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=ix.netcom.com; b=HpQhj1Muk5H08YP/1AOzTkhBQquZaYEWKDQ4J7Pdeu/bo2kLB3m3uF+1s82J+Uve; h=Received:From:Subject:To:References:Message-ID:Date:User-Agent:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-ELNK-Trace:X-Originating-IP;
Received: from [71.35.126.161] (helo=[192.168.1.104]) by elasmtp-masked.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from <asmusf@ix.netcom.com>) id 1aZFYw-0005Zy-Mk for lager@ietf.org; Fri, 26 Feb 2016 05:23:54 -0500
From: Asmus Freytag <asmusf@ix.netcom.com>
To: lager@ietf.org
References: <831693C2CDA2E849A7D7A712B24E257F4A36F1A0@BRN1WNEXMBX02.vcorp.ad.vrsn.com> <66C5B5E0-7806-46D9-B7BF-E6BD908179A2@viagenie.ca> <20160226143517.c653e74de165522e5dd90ce0@jprs.co.jp> <56D01A62.9090401@it.aoyama.ac.jp>
Message-ID: <56D027BE.7010606@ix.netcom.com>
Date: Fri, 26 Feb 2016 02:23:58 -0800
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0
MIME-Version: 1.0
In-Reply-To: <56D01A62.9090401@it.aoyama.ac.jp>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
X-ELNK-Trace: 464f085de979d7246f36dc87813833b2857e9f10d2205ddc41a8ebf1d277ecd26ede73a951e50e7f350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c
X-Originating-IP: 71.35.126.161
Archived-At: <http://mailarchive.ietf.org/arch/msg/lager/gDHdNlyALhadLvzwcUBpwFmquBk>
Subject: Re: [Lager] Next Steps for LAGER
X-BeenThere: lager@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Label Generation Rules <lager.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lager>, <mailto:lager-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lager/>
List-Post: <mailto:lager@ietf.org>
List-Help: <mailto:lager-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lager>, <mailto:lager-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Feb 2016 10:24:07 -0000

On 2/26/2016 1:26 AM, Martin J. Dürst wrote:
> On 2016/02/26 14:35, Yoshiro YONEYA wrote:
>>> <no hat>Given that almost everything is now developed using JSON
>>> instead
>>> of XML, it would be much better to have a clear specification on how to
>>> implement the XML-JSON-XML mapping, instead of everyone having his own
>>> interpretation of the mapping. Vcard-xcard-jcard was done similarly.
>>
>> +1
>
> I agree that we want a single JSON mapping, not many. And I agree that
> a lot of stuff these days is done using JSON, not XML. But my guess is
> that LAGER data won't be as widely used as Vcard-xcard-jcard. And
> there must have been some reason for why it was started with XML
> (which I don't know, but would like to know).
>
> So if there are already people looking around how to do this in JSON,
> then it makes sense to nail it down. But starting this work just based
> on the hunch that somebody is eventually going to use some JSON for it
> would be the wrong thing to do in my opinion.

I tend to agree on not doing work that isn't immediately going to 
benefit critical implementations.

As for the original choice of serialization for the LGR data, I'm not 
sure that there's anything useful to be learned. The work had already 
been started based on XML. I'm not sure that working in any other 
framework would have had any concrete advantages for me.

In my implementation, the internal data structures look quite different 
from the serialized ones, because they are centered on the operations 
that need to be performed, and not primarily focused on providing a 
clear and unambiguous description of the data as such. The XML format 
and RelaxNG schema seemed well suited to providing that description, so 
no reason for me to push the project into any different direction.

In the meantime, I've developed an HTML representation of the LGR which 
by now has become my preferred format to view and review LGR data and 
rules. Again, it departs from the way the XML tables are laid out to a 
large degree, because transforming the data like that makes it easier to 
process for a human reader. (It's different yet again from the internal 
data structures, so, again, the serialization isn't simplistic).

A./