Re: [ogpx] (Not) serializing LLSD default values
"Hurliman, John" <john.hurliman@intel.com> Fri, 04 December 2009 02:32 UTC
Return-Path: <john.hurliman@intel.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 617E03A6403 for <ogpx@core3.amsl.com>;
Thu, 3 Dec 2009 18:32:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level:
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5
tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 zTecmjhMExcn for
<ogpx@core3.amsl.com>; Thu, 3 Dec 2009 18:32:13 -0800 (PST)
Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by
core3.amsl.com (Postfix) with ESMTP id 955B03A68AF for <ogpx@ietf.org>;
Thu, 3 Dec 2009 18:32:10 -0800 (PST)
Received: from orsmga002.jf.intel.com ([10.7.209.21]) by
orsmga102.jf.intel.com with ESMTP; 03 Dec 2009 18:31:29 -0800
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="4.47,339,1257148800"; d="scan'208";a="472743638"
Received: from rrsmsx603.amr.corp.intel.com ([10.31.0.57]) by
orsmga002.jf.intel.com with ESMTP; 03 Dec 2009 18:31:57 -0800
Received: from rrsmsx506.amr.corp.intel.com ([10.31.0.39]) by
rrsmsx603.amr.corp.intel.com ([10.31.0.57]) with mapi;
Thu, 3 Dec 2009 19:32:00 -0700
From: "Hurliman, John" <john.hurliman@intel.com>
To: "ogpx@ietf.org" <ogpx@ietf.org>
Date: Thu, 3 Dec 2009 19:31:53 -0700
Thread-Topic: [ogpx] (Not) serializing LLSD default values
Thread-Index: Acpz2q6WgNrRa0/BRMCQ6Vu2E8SZtQArq2dw
Message-ID: <62BFE5680C037E4DA0B0A08946C0933D9C22D970@rrsmsx506.amr.corp.intel.com>
References: <62BFE5680C037E4DA0B0A08946C0933D99B9116B@rrsmsx506.amr.corp.intel.com>
<3a880e2c0912021303q2601313gc72db2758d65343c@mail.gmail.com>
<4B174E8D.9060306@cox.net>
In-Reply-To: <4B174E8D.9060306@cox.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
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: Fri, 04 Dec 2009 02:32:14 -0000
I don't think so, because the sending side and receiving side don't necessarily share any context. John -----Original Message----- From: Lawson English [mailto:lenglish5@cox.net] Sent: Wednesday, December 02, 2009 9:37 PM To: Infinity Linden (Meadhbh Hamrick) Cc: Hurliman, John; ogpx@ietf.org Subject: Re: [ogpx] (Not) serializing LLSD default values 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 >
- [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