Re: [mmox] Field names as numbers?

Jon Watte <jwatte@gmail.com> Thu, 26 February 2009 18:58 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 082A83A6818 for <mmox@core3.amsl.com>; Thu, 26 Feb 2009 10:58:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.514
X-Spam-Level:
X-Spam-Status: No, score=-2.514 tagged_above=-999 required=5 tests=[AWL=0.085, 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 jYo+GpEaOSMl for <mmox@core3.amsl.com>; Thu, 26 Feb 2009 10:58:36 -0800 (PST)
Received: from mail-gx0-f174.google.com (mail-gx0-f174.google.com [209.85.217.174]) by core3.amsl.com (Postfix) with ESMTP id 016C63A68D2 for <mmox@ietf.org>; Thu, 26 Feb 2009 10:58:35 -0800 (PST)
Received: by gxk22 with SMTP id 22so1645324gxk.13 for <mmox@ietf.org>; Thu, 26 Feb 2009 10:58:57 -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=nRaAC27gylq0Y+An1623N1kEdDtoI3zFICjkVZayCu4=; b=NGe8thB4+62nu12cBMgDMsaTPbWkz5Rz9/objm4N3EPeH5jo/mVlZU1p047rb8Qlws EIPK+/Ed9Te5PGT94jgWjdMJe9jVDX4GwNBIEWQPtmY3h5zmU8VBLciK3p7S3Un2RzXd MVypEom/gIxqlqDzfC4ORe3AfchdRtZqwwa6E=
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=O9MuVV9DU3N3d0WFf8PwxROeWwh8jcCd8VEM7eb35+aMcFq1oYv5J4/F8a5HhjT+5Z YRbR2bu9YVsIEDK0cDMkMlJ2jrYBBguvuAMW3lgCgcskjkkiKcFHEO1rNUX03mtndhPt MiB9ZI3kXdDIfmsiRVfCW1lMgovKb0a/YTRyY=
Received: by 10.100.205.15 with SMTP id c15mr1827699ang.132.1235674737401; Thu, 26 Feb 2009 10:58:57 -0800 (PST)
Received: from ?192.168.168.114? (smtp.forterrainc.com [208.64.184.34]) by mx.google.com with ESMTPS id c1sm3631188ana.20.2009.02.26.10.58.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 26 Feb 2009 10:58:56 -0800 (PST)
Message-ID: <49A6E66E.8090506@gmail.com>
Date: Thu, 26 Feb 2009 10:58:54 -0800
From: Jon Watte <jwatte@gmail.com>
User-Agent: Thunderbird 2.0.0.19 (Windows/20081209)
MIME-Version: 1.0
To: Catherine Pfeffer <cathypfeffer@gmail.com>
References: <ebe4d1860902260559v3869fb9fpf6a5c60932b450b8@mail.gmail.com>
In-Reply-To: <ebe4d1860902260559v3869fb9fpf6a5c60932b450b8@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: mmox@ietf.org
Subject: Re: [mmox] Field names as numbers?
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: Thu, 26 Feb 2009 18:58:37 -0000

Catherine Pfeffer wrote:
> I am not sure I like this idea of replacing keys like 
> "Nose_Orientation" with numbers like 443:
>  - a protocol dump would be harder to debug (you'd need a table to 
> know what each field means).

Agreed. Another example is MPEG video, or JPEG images: you can't see the 
color of the individual pixels inside Wireshark.

>  - it would be less simple in a program because you would need to look 
> up in a table to solve the indirections

I don't think that's intellectually honest. Usually, doing a look-up 
from integer to "something" is a lot faster than doing a look-up from 
string to "something." If you are saying that you'd need to do a look-up 
from integer to string, and then from string to something, then I 
suggest that perhaps your internal structure could be improved :-)

>  - it is error prone (it is easier to mix field 443 with field 442 
> than to mix field "Nose_Orientation" with field "Associated_Sound")

Who would do this mixing? The code? The code works, or it doesn't. To 
code, the values 17 and 443 are as different as 442 and 443.

>  - if you have been unable to transmit the packet containing the 
> table, you can't do anything anymore

If I can't send data, I can't send data, that's right! If I can't send 
data, why am I trying to do a live, real-time streaming application anyway?

Note that I am not proposing using schema-driven binary interchange for 
transactional or durable applications. I believe we need at least two 
separate systems: a very efficient transmission format for streaming 
live, high-bandwidth data (such as a stream of entity property updates 
during simulation), and a very robust exchange format for transactional, 
batch or offline processing (such as "properly structured" XML).

Sincerely,

jw