Re: [apps-discuss] Last Call: <draft-ietf-appsawg-json-pointer-07.txt> (JSON Pointer) to Proposed Standard

James M Snell <jasnell@gmail.com> Tue, 08 January 2013 04:47 UTC

Return-Path: <jasnell@gmail.com>
X-Original-To: ietf@ietfa.amsl.com
Delivered-To: ietf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6435511E8097; Mon, 7 Jan 2013 20:47:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.098
X-Spam-Level:
X-Spam-Status: No, score=-4.098 tagged_above=-999 required=5 tests=[AWL=-0.500, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2iR0x5evJ-wp; Mon, 7 Jan 2013 20:47:38 -0800 (PST)
Received: from mail-ia0-f175.google.com (mail-ia0-f175.google.com [209.85.210.175]) by ietfa.amsl.com (Postfix) with ESMTP id 3D7E921F84E8; Mon, 7 Jan 2013 20:47:38 -0800 (PST)
Received: by mail-ia0-f175.google.com with SMTP id z3so17286336iad.34 for <multiple recipients>; Mon, 07 Jan 2013 20:47:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=0xVLh/hK31Z61PfEmjR1JybJiQ0ghfzc1B1IwJLAG40=; b=x8DwHnM4Zv9eP2DOw1dUXl0O314Dr5rHH+kkppusBlhqT46QSQR9ll8cppy9dxy1tT sNy3nDvw7uIDHJeA9pxkiwBdPS0xwnf9E4cEvHX40O0mMZFssjJh1KwFAddpbgpbNIC9 8HJCXkDj3eJgl2foVxiKvJ05ly5lJdTnUvUHxxcvRKap7ePH7fYSEVKBUjt6SyAL1XJa zWJ3CRJyGM2cZ3BMeSIO2Fl6dm9ZQG3XviQvxuUYKFoyip209dV+C0slKM65YKvNDYRT cT5mafocYie96D3bE4Dxt087P9/DWZ3w4fvqw2ngGUYHONOp2x1Vv5hHy0T52z8RFff4 kDjw==
X-Received: by 10.50.219.233 with SMTP id pr9mr7607426igc.19.1357620457722; Mon, 07 Jan 2013 20:47:37 -0800 (PST)
MIME-Version: 1.0
Received: by 10.64.7.19 with HTTP; Mon, 7 Jan 2013 20:47:17 -0800 (PST)
In-Reply-To: <CAL0qLwY5VjYrGsh-=r3B6aS3ggAjMfPYg0_pc_StEcOoL=+Ttw@mail.gmail.com>
References: <20121211150057.28223.93310.idtracker@ietfa.amsl.com> <50cb04b9.86df440a.72fe.1e20SMTPIN_ADDED_BROKEN@mx.google.com> <CABP7RbeNsZ_rBWRjou=VG+hBhUKaOz+y1a0sSChwWiHte9znnQ@mail.gmail.com> <50cb5f3c.694c420a.38fb.39afSMTPIN_ADDED_BROKEN@mx.google.com> <CAChr6SxZRc3B_HCbw76kLe2dsRSr43r-gLpfMVnCUfJTrZdTLA@mail.gmail.com> <CABP7RbfA33huBFadMeXTTEt=MkjW8-d4DFH7+GLXGurnm9sSRw@mail.gmail.com> <CAOXDeqpPE4eNy_qJpDPdPHbCQakG9-hDcNZ3Sj9r4kWedByVzQ@mail.gmail.com> <CAChr6SwtS_=iS-k4mJm1vHjEvvGVzay5jDYeGheqsPZqO-89CQ@mail.gmail.com> <EABB8F51-C3B4-49F5-8672-5C2ABAC7043A@mnot.net> <CAChr6Sx7JdKM91EwJaSZ0Ra_F4FSqkuc3vzTY1LM=F_8sWho+Q@mail.gmail.com> <1357515310.6827.23.camel@polyglot> <CAChr6SyAq=7aQdZn54ihYK+0hDhL--2Oaq0RvehoNFbwKNNShA@mail.gmail.com> <1357608790.27936.223.camel@pbryan-wsl.internal.salesforce.com> <CAL0qLwY5VjYrGsh-=r3B6aS3ggAjMfPYg0_pc_StEcOoL=+Ttw@mail.gmail.com>
From: James M Snell <jasnell@gmail.com>
Date: Mon, 07 Jan 2013 20:47:17 -0800
Message-ID: <CABP7RbcEZ6sBHV6ot_JPbTPsx4psmBMrie-DiV5Ro=gPzhyMUg@mail.gmail.com>
Subject: Re: [apps-discuss] Last Call: <draft-ietf-appsawg-json-pointer-07.txt> (JSON Pointer) to Proposed Standard
To: "Murray S. Kucherawy" <superuser@gmail.com>
Content-Type: multipart/alternative; boundary="14dae934120f1f514304d2bfa505"
Cc: IETF Apps Discuss <apps-discuss@ietf.org>, Mark Nottingham <mnot@mnot.net>, IETF Discussion <ietf@ietf.org>, "Paul C. Bryan" <pbryan@anode.ca>
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/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: Tue, 08 Jan 2013 04:47:39 -0000

If I may, I would follow this up with a suggestion that a separate I-D that
provides a more complete treatment of fully-concurrent patch operations
would be helpful. JSON-Patch is largely designed around atomic and
sequential modification operations and is not, necessarily a great match
for the kind of OT-style mechanisms Robert was referencing. I don't
personally have any use cases that would require the level of concurrency
Robert is suggesting but it would be an interesting pursuit nonetheless.


On Mon, Jan 7, 2013 at 8:40 PM, Murray S. Kucherawy <superuser@gmail.com>wrote:

> I apologize for being absent for this thread until now.  Vacation and
> medical matters interfered with me keeping current.
>
> First, with my participant hat on:
>
> I've been occasionally comparing this work to conventional UNIX "patch" to
> try to maintain a point of reference as these works developed.  As such,
> I'm swayed by the argument (which, as I recall, was part of working group
> deliberations prior to WGLC) that we have the "test" operations, so people
> generating patch documents should use them to ensure proper context before
> applying any of the operations that alter the target.  UNIX "patch"
> accomplishes this by default by surrounding the lines to be changed in the
> target with context lines that aren't changed, and so must exist precisely
> as-is before the change can be made or the change is rejected.  Consider a
> target file comprising 26 lines, each containing the next character of the
> upper-case English alphabet and a newline, but the M and the N lines are
> swapped.  A typical patch to fix this would look like so:
>
> --- x   Mon Jan  7 20:27:36 2013
> +++ y   Mon Jan  7 20:27:40 2013
> @@ -10,8 +10,8 @@
>  J
>  K
>  L
> -N
>  M
> +N
>  O
>  P
>  Q
>
> The default for UNIX "diff" is to produce three lines of context above and
> below the change to be made to ensure the change is being made in the right
> place.  One could also request no lines of context, yielding:
>
> --- x   Mon Jan  7 20:27:36 2013
> +++ y   Mon Jan  7 20:27:40 2013
> @@ -13 +12,0 @@
> -N
> @@ -14,0 +14 @@
> +N
>
> But this doesn't bother to check any context, except of course to ensure
> that the target file is at least 14 lines long.  Although the top one is
> clearly safer, both are actually legal patches.
>
> In my view, these two JSON documents present a language for referencing
> and object and changing it, and also for querying for context, just like
> the conventional UNIX diff/patch format does.  But in neither the UNIX case
> nor the proposed JSON case is the context part mandatory to use (though one
> could certainly argue it's foolish to skip doing so).  That seems fine to
> me.
>
> Then, with my co-chair hat on:
>
> Although I hear and understand Robert's position that this is an important
> thing that needs to be addressed, it is not my view after reviewing this
> thread that there's rough consensus to reopen the question.  Please note
> that this is not an "it's too late in the process to change this" position,
> but rather one that notes that the burden of supporting a change to
> something that already has rough consensus is on the person proposing the
> change, and I don't believe Robert has succeeded here.
>
> That said, I would ask the document editors to consider adding a paragraph
> or an appendix indicating this issue was considered during development of
> the work and the current format was deliberately selected, preferably with
> some supporting text.  This will ensure future readers will not interpret
> the chosen design as a bug, but rather an intentional design choice.
>
> -MSK, APPSAWG co-chair
>
> On Mon, Jan 7, 2013 at 5:33 PM, Paul C. Bryan <pbryan@anode.ca> wrote:
>
>> **
>> On Sun, 2013-01-06 at 16:01 -0800, Robert Sayre wrote:
>>
>>  This last assertion really isn't qualified very well.
>>
>>
>> It would have been better for me to state this is my opinion, based on
>> discussions that were animated from similar objections raised in the past.
>>
>> Paul
>>
>> _______________________________________________
>> apps-discuss mailing list
>> apps-discuss@ietf.org
>> https://www.ietf.org/mailman/listinfo/apps-discuss
>>
>>
>
> _______________________________________________
> apps-discuss mailing list
> apps-discuss@ietf.org
> https://www.ietf.org/mailman/listinfo/apps-discuss
>
>