Re: [ogpx] (Not) serializing LLSD default values

Lawson English <lenglish5@cox.net> Thu, 03 December 2009 05:37 UTC

Return-Path: <lenglish5@cox.net>
X-Original-To: ogpx@core3.amsl.com
Delivered-To: ogpx@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 9D25F3A67D2 for <ogpx@core3.amsl.com>; Wed, 2 Dec 2009 21:37:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
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 RUAJcIKo2j7w for <ogpx@core3.amsl.com>; Wed, 2 Dec 2009 21:37:29 -0800 (PST)
Received: from fed1rmmtao101.cox.net (fed1rmmtao101.cox.net [68.230.241.45]) by core3.amsl.com (Postfix) with ESMTP id 967B13A67AE for <ogpx@ietf.org>; Wed, 2 Dec 2009 21:37:26 -0800 (PST)
Received: from fed1rmimpo02.cox.net ([70.169.32.72]) by fed1rmmtao101.cox.net (InterMail vM.8.00.01.00 201-2244-105-20090324) with ESMTP id <20091203053718.UBYY16492.fed1rmmtao101.cox.net@fed1rmimpo02.cox.net>; Thu, 3 Dec 2009 00:37:18 -0500
Received: from ip72-200-121-127.tc.ph.cox.net ([72.200.121.127]) by fed1rmimpo02.cox.net with bizsmtp id CVdJ1d0012l1Ksg04VdJKX; Thu, 03 Dec 2009 00:37:18 -0500
X-VR-Score: -200.00
X-Authority-Analysis: v=1.1 cv=hBBxVKrpT8NIO1i2+E6jIs4z/JDusIBXnpwMe9ND0ls= c=1 sm=1 a=8GY0_Vv1CH0A:10 a=Wajolswj7cQA:10 a=lHHFyFaL52RzbKbxZIYZqA==:17 a=QyXUC8HyAAAA:8 a=48vgC7mUAAAA:8 a=pD2KqRnHSLzkJ_yizp0A:9 a=V0pFv12u1L_6q2GZ5wEA:7 a=T08U2qt3X6ZfPtScJRKvSOQNFxwA:4 a=dGJ0OcVc7YAA:10 a=lZB815dzVvQA:10 a=lHHFyFaL52RzbKbxZIYZqA==:117
X-CM-Score: 0.00
Message-ID: <4B174E8D.9060306@cox.net>
Date: Wed, 02 Dec 2009 22:37:17 -0700
From: Lawson English <lenglish5@cox.net>
User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812)
MIME-Version: 1.0
To: "Infinity Linden (Meadhbh Hamrick)" <infinity@lindenlab.com>
References: <62BFE5680C037E4DA0B0A08946C0933D99B9116B@rrsmsx506.amr.corp.intel.com> <3a880e2c0912021303q2601313gc72db2758d65343c@mail.gmail.com>
In-Reply-To: <3a880e2c0912021303q2601313gc72db2758d65343c@mail.gmail.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
Cc: "ogpx@ietf.org" <ogpx@ietf.org>
Subject: Re: [ogpx] (Not) serializing LLSD default values
X-BeenThere: ogpx@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: lenglish5@cox.net
List-Id: Virtual Worlds and the Open Grid Protocol <ogpx.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ogpx>, <mailto:ogpx-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ogpx>
List-Post: <mailto:ogpx@ietf.org>
List-Help: <mailto:ogpx-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ogpx>, <mailto:ogpx-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 03 Dec 2009 05:37:30 -0000

Infinity Linden (Meadhbh Hamrick) wrote:
> i'm not absolutely sure all our legacy SL interfaces do this right 
> now, but i do know that we want them too. future VWRAP work will 
> definitely have those semantics.
>
> it may be advantageous to have that behavior be a configurable 
> parameter, then fire it up, and see what breaks. we could then use the 
> failure logs to track down interfaces that don't follow the "you get 
> the default if it's not there" semantics.
>
>

this might over-complicate things, but could it be possible to have 
contextual defaults?

Lawson

>
> On Wed, Dec 2, 2009 at 12:19, Hurliman, John <john.hurliman@intel.com 
> <mailto:john.hurliman@intel.com>> wrote:
>
>     I’m considering a change in the C# LLSD implementation
>     (OpenMetaverse.StructuredData) to skip serialization of default
>     values inside maps. For example, the following structure:
>
>      
>
>     {
>
>         “zero”:0,
>
>         “one”:1,
>
>         “empty_string”:””,
>
>         “hello_string”:”hello world”
>
>     }
>
>      
>
>     Would become:
>
>      
>
>     {
>
>         “one”:1,
>
>         “hello_string”,”hello world”
>
>     }
>
>      
>
>     From my reading of the draft (and our current implementation),
>     those two serializations should be equivalent. Do the current
>     Linden Lab implementations handle that correctly? The only problem
>     I see with the C# implementation is that it would make some
>     incompatible typecasts work when they shouldn’t. For example, the
>     receiving end could then read key “zero” as an LLSD array and it
>     would work, where the value “0” usually shouldn’t be convertible
>     to an array. So it assumes some level of coherence between the
>     sender and receiver, which I think is acceptable.
>
>      
>
>     I would look at the source of the other implementations myself,
>     but the last time I checked the PHP implementation was sorely out
>     of date and the C++ implementation was not under a liberal license.
>
>      
>
>     John
>
>
>     _______________________________________________
>     ogpx mailing list
>     ogpx@ietf.org <mailto:ogpx@ietf.org>
>     https://www.ietf.org/mailman/listinfo/ogpx
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ogpx mailing list
> ogpx@ietf.org
> https://www.ietf.org/mailman/listinfo/ogpx
>