Re: [Json] I-D Action: draft-ietf-json-i-json-01.txt

Tim Bray <tbray@textuality.com> Wed, 18 June 2014 15:13 UTC

Return-Path: <tbray@textuality.com>
X-Original-To: json@ietfa.amsl.com
Delivered-To: json@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4C9C11A0293 for <json@ietfa.amsl.com>; Wed, 18 Jun 2014 08:13:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level:
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, 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 pGGkuSJXe3p6 for <json@ietfa.amsl.com>; Wed, 18 Jun 2014 08:13:10 -0700 (PDT)
Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3237C1A005B for <json@ietf.org>; Wed, 18 Jun 2014 08:13:10 -0700 (PDT)
Received: by mail-vc0-f179.google.com with SMTP id id10so924741vcb.24 for <json@ietf.org>; Wed, 18 Jun 2014 08:13:09 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=CLsjJM2GOv6oyrPkn1kEzJ+XM73fnH8XhhyEwfWX9ts=; b=gB5FQ6ft0EOPmnZZL21rGZrSknOrzA5leHHb/tEac9UdzXmTZo8/zAeDUUEX8MRct3 U+BYRhXPT1zIBYIIPT2O6b1YDYUdrZo8o+LiM3Eb+rcPGvjVRZNo7yEoqU0mwMhFK4j2 3mQR5JUxmGxgM6ALGOkL9Hxn5A/jQSSxxRrxRW8CEESwOVYlpaQ3WW7SYgv71Bz9m6nR IjkWZExtSbk19cCWXRy07lfc18FcX43P8uYbts3j2EdrsXvE/woEpEWVW+PgPyNYZ1Q4 cplFSv1ZmgJH8kzWmumfT7AmXlUxKnjjzZVo0GAi5hmdSY7Nq/RAa1SMvEjxamAnLtio IBWQ==
X-Gm-Message-State: ALoCoQnjQl3+0PVYWpaGrmyoI2eoJxxBEfjQ8KFgAxkj/hq1I77QUrWi6X5N3uimKBitmNk5Sxlq
X-Received: by 10.58.152.194 with SMTP id va2mr924866veb.54.1403104389371; Wed, 18 Jun 2014 08:13:09 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.220.98.73 with HTTP; Wed, 18 Jun 2014 08:12:48 -0700 (PDT)
X-Originating-IP: [24.84.235.32]
In-Reply-To: <CAHBU6itGdvd=UCjoTDtNuA6MRoiqRX7Wpw0fT+wRYBOY3uwNCQ@mail.gmail.com>
References: <20140613195805.1386.5992.idtracker@ietfa.amsl.com> <CAHBU6ivy-aVuSZPQ1gMp0bXW0yMYq9Vhi1Bydb809rfBR_ag=g@mail.gmail.com> <CFC1BCB7.4FE64%jhildebr@cisco.com> <CAHBU6isENp-JVJ6FVuhrKNsoWqq94dpzYBos0zGGrh9b6UwW2w@mail.gmail.com> <20140617193013.GD29802@mercury.ccil.org> <CAO1wJ5Rz2uDQ3-w=QESDmAo-tRAJdWSCasWkQx9n5NB8dS-+OQ@mail.gmail.com> <CAHBU6itGdvd=UCjoTDtNuA6MRoiqRX7Wpw0fT+wRYBOY3uwNCQ@mail.gmail.com>
From: Tim Bray <tbray@textuality.com>
Date: Wed, 18 Jun 2014 08:12:48 -0700
Message-ID: <CAHBU6iuKWdUon+fB765nOVCMS2CQ1wZGRPSQQb9B6gmhGbq8ug@mail.gmail.com>
To: Jacob Davies <jacob@well.com>
Content-Type: multipart/alternative; boundary="089e013cbcd2b62b6504fc1db254"
Archived-At: http://mailarchive.ietf.org/arch/msg/json/9iigSvu60U0jnMuCUDz10Vj0Kb0
Cc: John Cowan <cowan@mercury.ccil.org>, "Joe Hildebrand (jhildebr)" <jhildebr@cisco.com>, "json@ietf.org" <json@ietf.org>
Subject: Re: [Json] I-D Action: draft-ietf-json-i-json-01.txt
X-BeenThere: json@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "JavaScript Object Notation \(JSON\) WG mailing list" <json.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/json>, <mailto:json-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/json/>
List-Post: <mailto:json@ietf.org>
List-Help: <mailto:json-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/json>, <mailto:json-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Jun 2014 15:13:19 -0000

Refreshed the -02 pre-drafts per Jacob Davies’s suggestions, see
http://www.tbray.org/tmp/draft-ietf-json-i-json-02.html or
http://tools.ietf.org/tools/rfcdiff/rfcdiff.pyht?url1=http://www.tbray.org/tmp/draft-ietf-json-i-json-01.txt&url2=http://www.tbray.org/tmp/draft-ietf-json-i-json-02.txt


On Wed, Jun 18, 2014 at 8:07 AM, Tim Bray <tbray@textuality.com> wrote:

> On Tue, Jun 17, 2014 at 3:48 PM, Jacob Davies <jacob@well.com> wrote:
>
>> "For applications such as cryptography, where exact interchange of
>> much larger numbers is required, it is RECOMMENDED to encode them in
>> JSON string values."
>>
>> The phrasing of "it is recommended to encode them" seems awkward to
>> me. Maybe "it is recommended that such values be encoded as"?
>>
>> "encoded" also seems off. Maybe "written", "stored", "represented"?
>>
>
> ​The recommend/encode terminology has been around for a while and ​this is
> the first gripe I’ve heard. Anyone want to pile on?
> ​​​
>
>> ​​
>> I am not sure that cryptography is the right example. The most common
>> ​​
>> surprising case will be people trying to store arbitrary 64-bit
>> ​​
>> integers
>> ​​
>>
> ​
> ​I confess to having cryptography on the brain.  I think he’s right, the
> simplest example is just a 64-bit integer, might as well say that; will
> change unless someone screams.
>
>
>
>
>
>> from commonplace types like Java longs and finding that most
>> of the value range can't be read & correctly represented in
>> Javascript. Those numbers might come from 64-bit hashes or storage
>> systems that assign evenly-distributed 64-bit IDs.
>>
>> Cryptographic applications deal with much larger numbers, and are
>> already accustomed to exchanging them as binary, hex, or base64. I
>> doubt anyone would really even think of trying to send a 2048-bit key
>> as a JSON number.
>>
>> On Tue, Jun 17, 2014 at 12:30 PM, John Cowan <cowan@mercury.ccil.org>
>> wrote:
>> > Tim Bray scripsit:
>> >
>> >> > s2.2, "For applications such as cryptography, where exact
>> interchange of
>> >> > much larger numbers is required, it is RECOMMENDED to encode them in
>> JSON
>> >> > string values", I suggest adding some guidance on encoding if we
>> have a
>> >> > quick consensus on decimal|hex|base64url|etc.  Otherwise leaving it
>> as-is
>> >> > works.  Note that JOSE chose base64url for good reason.
>> >>
>> >> Not sure I get this... for big numbers, it’s just digits, right?
>> >
>> > Yes, but digits of what base?  Decimal, ça va sans dire; but it goes
>> > even better when it is said.
>> >
>> > --
>> > John Cowan          http://www.ccil.org/~cowan        cowan@ccil.org
>> > You cannot enter here.  Go back to the abyss prepared for you!  Go back!
>> > Fall into the nothingness that awaits you and your Master.  Go!
>> --Gandalf
>> >
>> > _______________________________________________
>> > json mailing list
>> > json@ietf.org
>> > https://www.ietf.org/mailman/listinfo/json
>>
>
>
>
> --
> - Tim Bray (If you’d like to send me a private message, see
> https://keybase.io/timbray)
>



-- 
- Tim Bray (If you’d like to send me a private message, see
https://keybase.io/timbray)