Re: [mmox] XML serialization
Jon Watte <jwatte@gmail.com> Tue, 24 February 2009 01:21 UTC
Return-Path: <jwatte@gmail.com>
X-Original-To: mmox@core3.amsl.com
Delivered-To: mmox@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id B95F128C1C6 for <mmox@core3.amsl.com>; Mon, 23 Feb 2009 17:21:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.517
X-Spam-Level:
X-Spam-Status: No, score=-2.517 tagged_above=-999 required=5 tests=[AWL=0.082, 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 fkbe0U2vmo0h for <mmox@core3.amsl.com>; Mon, 23 Feb 2009 17:21:22 -0800 (PST)
Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.241]) by core3.amsl.com (Postfix) with ESMTP id C8D0128C0DF for <mmox@ietf.org>; Mon, 23 Feb 2009 17:21:21 -0800 (PST)
Received: by an-out-0708.google.com with SMTP id b2so1223644ana.4 for <mmox@ietf.org>; Mon, 23 Feb 2009 17:21:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=ItENfNv59NiHqP/qnjH+PFylnj1vF1ltvkk1OE90vmc=; b=LapcCAIU1kRl4sGADr0mI2abRe8b8v8Cbg6oKMnA8SoWA4GreqsyPY5tX9PVFe45vA z3UoaJRkpI3n4JV75VtlgoZNhGyx3YmdCuF97UI0KEX2n52m9hTVkkTaSjHD3sti4mhx ZepD65igqNsKTh4mSyOflP/OL+3xFsl25uV9I=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=jgBt3Ah6V5cYEeqI/h4FpI3pBZzvSdnArM0QPZzLL2sc/JBhrthum3zCR9/4G0FWer lpMg8Gw4MEUarpv44QkOhO1E4Z0dtKekmzf/MY3kRNkS0bjee+oj4kdbb/LGFxfpDWLT q+VAK6FRuU2hAm87DbY8VR0DvWYbfIPT0x/vM=
Received: by 10.100.133.1 with SMTP id g1mr4548757and.106.1235438493005; Mon, 23 Feb 2009 17:21:33 -0800 (PST)
Received: from ?192.168.168.111? (smtp.forterrainc.com [208.64.184.34]) by mx.google.com with ESMTPS id b29sm6043918ana.11.2009.02.23.17.21.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 23 Feb 2009 17:21:32 -0800 (PST)
Message-ID: <49A34B9A.5060704@gmail.com>
Date: Mon, 23 Feb 2009 17:21:30 -0800
From: Jon Watte <jwatte@gmail.com>
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
MIME-Version: 1.0
To: "Hurliman, John" <john.hurliman@intel.com>
References: <ebe4d1860902230239q207d4c0ar5b0582ad7ca855bf@mail.gmail.com> <49A30D7A.3040003@gmail.com> <2F80CC37-A5BD-4EAD-8E12-D31A21912A8B@lindenlab.com> <62BFE5680C037E4DA0B0A08946C0933D502639CF@rrsmsx506.amr.corp.intel.com> <E687852F-8091-43BF-961F-215036069846@lindenlab.com> <49A33830.1060509@gmail.com> <62BFE5680C037E4DA0B0A08946C0933D50263B34@rrsmsx506.amr.corp.intel.com>
In-Reply-To: <62BFE5680C037E4DA0B0A08946C0933D50263B34@rrsmsx506.amr.corp.intel.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: "mmox@ietf.org" <mmox@ietf.org>
Subject: Re: [mmox] XML serialization
X-BeenThere: mmox@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Massively Multi-participant Online Games and Applications <mmox.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/mmox>, <mailto:mmox-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/mmox>
List-Post: <mailto:mmox@ietf.org>
List-Help: <mailto:mmox-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mmox>, <mailto:mmox-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 24 Feb 2009 01:21:22 -0000
Hurliman, John wrote: > length integer encoding (such as the base-128 varints used in Google Protocol Buffers: http://code.google.com/apis/protocolbuffers/docs/encoding.html) would be a nice fix for the binary encoding. > > That needs a fix for signed-ness, though. My proposal is to encode the sign bit in the 6th bit of the first byte IF the value is less than 0 or greater than 127 (keeping the encoding of small positive integers to a single byte). For negative numbers, encode the one's complement and the sign bit, and negate when done. This nicely sidesteps problems you'd get when trying to encode two's complement in a variable-width container. But that might be a slightly premature technical detail ;-) > -1 on this. The LLIDL syntax is very easy to parse, and I posted a simple grammar file to generate a lexer/parser. Introducing a new XML schema creates just as much implementation My point is that XML for a schema language is even easier to parse: xd = new System.Xml.XmlDocument(); xd.LoadXml(...); Done. And this allows various code bases to easily adopt various levels of knowledge of the serialized data using existing tools, instead of having to add yet another kind of language parser with yet another set of mutually ambiguous or buggy implementations. Sincerely, jw
- [mmox] XML serialization Catherine Pfeffer
- Re: [mmox] XML serialization Jon Watte
- Re: [mmox] XML serialization Hurliman, John
- Re: [mmox] XML serialization Meadhbh Hamrick (Infinity)
- Re: [mmox] XML serialization Hurliman, John
- Re: [mmox] XML serialization Jon Watte
- Re: [mmox] XML serialization Mark Lentczner
- Re: [mmox] XML serialization Meadhbh Hamrick (Infinity)
- Re: [mmox] XML serialization Jon Watte
- Re: [mmox] XML serialization Jon Watte
- Re: [mmox] XML serialization Hurliman, John
- Re: [mmox] XML serialization Jon Watte
- [mmox] XML serialization Catherine Pfeffer
- Re: [mmox] XML serialization Meadhbh Hamrick (Infinity)
- Re: [mmox] XML serialization Jon Watte
- Re: [mmox] XML serialization Lawson English
- Re: [mmox] XML serialization Jon Watte
- Re: [mmox] XML serialization Lawson English
- Re: [mmox] XML serialization Jon Watte
- Re: [mmox] XML serialization Meadhbh Hamrick (Infinity)
- Re: [mmox] XML serialization Jon Watte