Re: [ogpx] (Not) serializing LLSD default values
"Infinity Linden (Meadhbh Hamrick)" <infinity@lindenlab.com> Wed, 02 December 2009 21:03 UTC
Return-Path: <infinity@lindenlab.com>
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 A305A3A6849 for <ogpx@core3.amsl.com>;
Wed, 2 Dec 2009 13:03:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.976
X-Spam-Level:
X-Spam-Status: No, score=-1.976 tagged_above=-999 required=5
tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001]
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 YknaL8eFBfuA for
<ogpx@core3.amsl.com>; Wed, 2 Dec 2009 13:03:50 -0800 (PST)
Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155])
by core3.amsl.com (Postfix) with ESMTP id DADFE3A657C for <ogpx@ietf.org>;
Wed, 2 Dec 2009 13:03:49 -0800 (PST)
Received: by fg-out-1718.google.com with SMTP id e21so436329fga.13 for
<ogpx@ietf.org>; Wed, 02 Dec 2009 13:03:38 -0800 (PST)
MIME-Version: 1.0
Received: by 10.239.145.11 with SMTP id q11mr67302hba.98.1259787817195;
Wed, 02 Dec 2009 13:03:37 -0800 (PST)
In-Reply-To: <62BFE5680C037E4DA0B0A08946C0933D99B9116B@rrsmsx506.amr.corp.intel.com>
References: <62BFE5680C037E4DA0B0A08946C0933D99B9116B@rrsmsx506.amr.corp.intel.com>
From: "Infinity Linden (Meadhbh Hamrick)" <infinity@lindenlab.com>
Date: Wed, 2 Dec 2009 13:03:17 -0800
Message-ID: <3a880e2c0912021303q2601313gc72db2758d65343c@mail.gmail.com>
To: "Hurliman, John" <john.hurliman@intel.com>
Content-Type: multipart/alternative; boundary=001485f6cff8561b470479c53585
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
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: Wed, 02 Dec 2009 21:03:51 -0000
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.
-cheers
-meadhbh
--
infinity linden (aka meadhbh hamrick) * it's pronounced "maeve"
http://wiki.secondlife.com/wiki/User:Infinity_Linden
On Wed, Dec 2, 2009 at 12:19, Hurliman, John <john.hurliman@intel.com>wrote;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
> https://www.ietf.org/mailman/listinfo/ogpx
>
>
- [ogpx] (Not) serializing LLSD default values Hurliman, John
- Re: [ogpx] (Not) serializing LLSD default values Infinity Linden (Meadhbh Hamrick)
- Re: [ogpx] (Not) serializing LLSD default values Lawson English
- Re: [ogpx] (Not) serializing LLSD default values Hurliman, John