Re: [hybi] frame length encoding

Pieter Hintjens <ph@imatix.com> Sat, 21 August 2010 21:55 UTC

Return-Path: <pieterh@gmail.com>
X-Original-To: hybi@core3.amsl.com
Delivered-To: hybi@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 788FC3A6943 for <hybi@core3.amsl.com>; Sat, 21 Aug 2010 14:55:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.967
X-Spam-Level:
X-Spam-Status: No, score=-1.967 tagged_above=-999 required=5 tests=[AWL=0.010, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
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 blntFvHjrr9j for <hybi@core3.amsl.com>; Sat, 21 Aug 2010 14:55:33 -0700 (PDT)
Received: from mail-vw0-f44.google.com (mail-vw0-f44.google.com [209.85.212.44]) by core3.amsl.com (Postfix) with ESMTP id 3F4A53A67FE for <hybi@ietf.org>; Sat, 21 Aug 2010 14:55:33 -0700 (PDT)
Received: by vws10 with SMTP id 10so4536420vws.31 for <hybi@ietf.org>; Sat, 21 Aug 2010 14:56:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type; bh=THQj3+btO5qSw2rOMdRoAHNrhYC541qy8ZZVmbkg/xE=; b=mMwZ9AATEK5ZcB+z4cMJbOfRE2HY4bumwLHzz5IGOpiIv/z5PNhcwae2xrdqlAcVtl kMzS6EXb6/W0mD99gaimX41DwzdzVek+FGNx2KlBpwZsTC4aawOaWpm4j8dfccaN8+qA xPAT0CPG9OZXDZzdyJdkw8gm+7hNyzzHh3UpU=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=TGqpb7W/9HmOryPByH0ApDflVwx5vyCtjx6fnR8gwhr2u86EwmEra2CF3eGwaGp6k3 qTOqsv120MfcvEFEsPBx0RVGABgt4U4GczGt8jIcCVccv2QkwjPDUVjpv0fFxbaUEWlf xnxTjJpys1CrlJtguMf2rMqKxZo2lJXDvbM/A=
Received: by 10.220.87.70 with SMTP id v6mr1951566vcl.226.1282427767169; Sat, 21 Aug 2010 14:56:07 -0700 (PDT)
MIME-Version: 1.0
Sender: pieterh@gmail.com
Received: by 10.220.167.17 with HTTP; Sat, 21 Aug 2010 14:55:47 -0700 (PDT)
In-Reply-To: <AANLkTi=kzKWBiXNd2-AiJwfOdbTEh7mo4b-wqeJjMPjz@mail.gmail.com>
References: <AANLkTimKbmcpgx8k0uXUWvCO=8w9pPrtV=3y4qh6363k@mail.gmail.com> <20100820192927.GA32620@1wt.eu> <4C6EEA55.2050205@hs-weingarten.de> <AANLkTinHqxUOZaVANFpC52t8FfgNw2L5_A-s9Az3Fm7p@mail.gmail.com> <9038007a07cb2e7f2659663b8bc6af82.squirrel@sm.webmail.pair.com> <8586ffdbc1c035a949df3965da5f489a.squirrel@sm.webmail.pair.com> <AANLkTinkYMN8LyU7432v2PZjrQ0Z7cN7mcwwzYwCwhON@mail.gmail.com> <8dea23aa73d8065b3f286852af659362.squirrel@sm.webmail.pair.com> <AANLkTim_-pAk8N8v2QTsBrk2qvArKXXZeESUuDdYZJ7u@mail.gmail.com> <969601515f702aa6b03857c6fdc0cdc3.squirrel@sm.webmail.pair.com> <AANLkTin4NZsaL6wBKGF7UNmeG3BeQmNR9QCuD5Kscv8W@mail.gmail.com> <d94ad0d7f0af55a23d41421be03b7ecc.squirrel@sm.webmail.pair.com> <AANLkTimE32fxdx_DVZ-KLAYR+AQXuk6Xvg7k6Th5m9WV@mail.gmail.com> <AANLkTi=kzKWBiXNd2-AiJwfOdbTEh7mo4b-wqeJjMPjz@mail.gmail.com>
From: Pieter Hintjens <ph@imatix.com>
Date: Sat, 21 Aug 2010 23:55:47 +0200
X-Google-Sender-Auth: OglWr44Fg0Tn2ETIu4bNlf_OtwA
Message-ID: <AANLkTinY5Cmb3hOK-EnhYTt2mz6c_wSbQviCfH4LzXTk@mail.gmail.com>
To: John Tamplin <jat@google.com>
Content-Type: text/plain; charset="ISO-8859-1"
Cc: Hybi <hybi@ietf.org>
Subject: Re: [hybi] frame length encoding
X-BeenThere: hybi@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Server-Initiated HTTP <hybi.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hybi>
List-Post: <mailto:hybi@ietf.org>
List-Help: <mailto:hybi-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hybi>, <mailto:hybi-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 21 Aug 2010 21:55:34 -0000

On Sat, Aug 21, 2010 at 11:32 PM, John Tamplin <jat@google.com> wrote:

> That sounds dangerously close to the discarded "amateur programmer"
> requirement.

Perhaps it sounds like it, but it's not.  Simplicity is about shaving
off friction costs and the more a design is used the more those
savings add up.

> Personally, I think having a base framing that won't have to be changed
> breaking existing implementations is the most critical thing we need to
> accomplish.

That is easily accomplished if we stop aiming for ultra-efficiency.
Make no assumptions about limits, assume a 50-year lifespan during
which data sizes will double every 24 months.  Allow sufficient space
at every junction for 20x more variability than we think we will ever
need.  Do not try to save bits.  There will be waste but we won't hit
limits.

Dropping the assumption that we have to save every byte possible will
IMO make it easier to build a solid, future-proof framing.

This makes sense, WebSocket is not meant for supercomputing but to
connect browsers to servers easily and interoperably.

-
Pieter Hintjens
iMatix - www.imatix.com