Re: [Slim] Collapse attribute syntax to one line in draft-ietf-slim-negotiating-human-language

Adam Roach <adam@nostrum.com> Wed, 07 June 2017 22:47 UTC

Return-Path: <adam@nostrum.com>
X-Original-To: slim@ietfa.amsl.com
Delivered-To: slim@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 588101270B4 for <slim@ietfa.amsl.com>; Wed, 7 Jun 2017 15:47:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.881
X-Spam-Level:
X-Spam-Status: No, score=-1.881 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.001, T_SPF_HELO_PERMERROR=0.01, T_SPF_PERMERROR=0.01] autolearn=ham autolearn_force=no
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 80ijJnXV9l8b for <slim@ietfa.amsl.com>; Wed, 7 Jun 2017 15:47:56 -0700 (PDT)
Received: from nostrum.com (raven-v6.nostrum.com [IPv6:2001:470:d:1130::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E49081270A7 for <slim@ietf.org>; Wed, 7 Jun 2017 15:47:56 -0700 (PDT)
Received: from Svantevit.roach.at (cpe-70-122-154-80.tx.res.rr.com [70.122.154.80]) (authenticated bits=0) by nostrum.com (8.15.2/8.15.2) with ESMTPSA id v57MlsaS011582 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 7 Jun 2017 17:47:55 -0500 (CDT) (envelope-from adam@nostrum.com)
X-Authentication-Warning: raven.nostrum.com: Host cpe-70-122-154-80.tx.res.rr.com [70.122.154.80] claimed to be Svantevit.roach.at
To: Gunnar Hellström <gunnar.hellstrom@omnitor.se>, slim@ietf.org
References: <p06240602d550f5367daa@[99.111.97.136]> <p06240602d55258b37fa7@[99.111.97.136]> <B8657F32-BB22-40FE-8D09-6EB3EC4408D9@gsma.com> <dce40ab8-e4d7-c36a-7731-934f3291c643@omnitor.se>
From: Adam Roach <adam@nostrum.com>
Message-ID: <7b4df8c5-4249-7799-79d3-0dd954b82dd3@nostrum.com>
Date: Wed, 07 Jun 2017 17:47:54 -0500
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:52.0) Gecko/20100101 Thunderbird/52.1.1
MIME-Version: 1.0
In-Reply-To: <dce40ab8-e4d7-c36a-7731-934f3291c643@omnitor.se>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/slim/F3V-IWrIHlcVNqNFxdfMKei37F4>
Subject: Re: [Slim] Collapse attribute syntax to one line in draft-ietf-slim-negotiating-human-language
X-BeenThere: slim@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Selection of Language for Internet Media <slim.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/slim>, <mailto:slim-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/slim/>
List-Post: <mailto:slim@ietf.org>
List-Help: <mailto:slim-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/slim>, <mailto:slim-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 07 Jun 2017 22:47:58 -0000

On 6/1/17 9:33 AM, Gunnar Hellström wrote:
> Maybe the main question is: Will our own one-line syntax really be 
> less complex to parse than the Accept-Language syntax that we might be 
> able to find ready library routines for?
> Adam Roach had views on complexity to parse different solutions. Maybe 
> you, Adam can have a view on this?


As long as it is a space-delimited list of tokens, it should be trivial. 
That's a pretty common SDP pattern.

The prospect of bolting a parser from some other protocol (e.g. 
Accept-Language) onto an SDP parsing library seems like it would be 
quite complex. The libraries I've worked with would almost certainly 
find it easier to write such a parser from scratch.

/a