Return-Path: <noreply@github.com>
X-Original-To: quic-issues@ietfa.amsl.com
Delivered-To: quic-issues@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1])
 by ietfa.amsl.com (Postfix) with ESMTP id 425CA12080C
 for <quic-issues@ietfa.amsl.com>; Tue, 29 Oct 2019 06:17:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.999
X-Spam-Level: 
X-Spam-Status: No, score=-7.999 tagged_above=-999 required=5
 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_IMAGE_ONLY_32=0.001,
 HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_HI=-5,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key)
 header.d=github.com
Received: from mail.ietf.org ([4.31.198.44])
 by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id wrszuH7N-Q3F for <quic-issues@ietfa.amsl.com>;
 Tue, 29 Oct 2019 06:17:07 -0700 (PDT)
Received: from out-21.smtp.github.com (out-21.smtp.github.com [192.30.252.204])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by ietfa.amsl.com (Postfix) with ESMTPS id BDB97120801
 for <quic-issues@ietf.org>; Tue, 29 Oct 2019 06:17:07 -0700 (PDT)
Date: Tue, 29 Oct 2019 06:17:06 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com;
 s=pf2014; t=1572355026;
 bh=kJuMslyNx6nluZlBMaiGg664qeiTyOWFnSTqSokSaUU=;
 h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:List-ID:
 List-Archive:List-Post:List-Unsubscribe:From;
 b=OlpYXSve8CKC3EqJmCxsNqzYyrrcOuGG/B714+wss6yxtcVJAL0I1se25lzLJDcJd
 OpngpWECIWaVXwbz4fMpQKHv0hAnd0k5pK5UkqLPNMihculWwUEBACRlyFQQpzVcIf
 MhFMq/DVS0mQ6H1pvp97AX+RdI2vXtHgre1snS3w=
From: Robin Marx <notifications@github.com>
Reply-To: quicwg/base-drafts
 <reply+AFTOJK5ZAXL5OPQVYOZKUK53YVXFFEVBNHHB4UPZEI@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/issues/3115/547414052@github.com>
In-Reply-To: <quicwg/base-drafts/issues/3115@github.com>
References: <quicwg/base-drafts/issues/3115@github.com>
Subject: Re: [quicwg/base-drafts] Don't use bitmap frames to describe varint
 structures (#3115)
Mime-Version: 1.0
Content-Type: multipart/alternative;
 boundary="--==_mimepart_5db83bd293e26_7d593fb4b40cd96c55336";
 charset=UTF-8
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: rmarx
X-GitHub-Recipient: quic-issues
X-GitHub-Reason: subscribed
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: quic-issues@ietf.org
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/ZVswW-s7Szs1-bKZqleVNMBvqNI>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.29
List-Id: Notification list for GitHub issues related to the QUIC WG
 <quic-issues.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic-issues>,
 <mailto:quic-issues-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic-issues/>
List-Post: <mailto:quic-issues@ietf.org>
List-Help: <mailto:quic-issues-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic-issues>,
 <mailto:quic-issues-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 29 Oct 2019 13:17:09 -0000


----==_mimepart_5db83bd293e26_7d593fb4b40cd96c55336
Content-Type: text/plain;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

> Yeah sorry I should have recognised you were providing a simple example not the whole shebang. I will point out that this format begins to resemble @rmarx qlog definition in TypeScript notation. If we really did want to change things, he'd probably be interested in aligning them if possible.

For what it's worth, @nharper's example would look a bit like this in TypeScript notation:

```
class StreamFrame implements Frame {
 stream_id:varint;
 offset?:varint;
 length?:varint;
 data:Array<byte> = new Array<byte>(length);
}

interface GenericFrame {
 frame_type:varint,
 frame:Frame
}

interface Packet {
 frames:Array<GenericFrame>
}
```

I've been using this in qlog mainly for convenience but am willing to move to another format down the line if qlog actually gets adopted and this type of flexible format is used in other QUIC drafts. 



-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/quicwg/base-drafts/issues/3115#issuecomment-547414052
----==_mimepart_5db83bd293e26_7d593fb4b40cd96c55336
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

<blockquote>
<p>Yeah sorry I should have recognised you were providing a simple example not the whole shebang. I will point out that this format begins to resemble <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=2240689" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rmarx">@rmarx</a> qlog definition in TypeScript notation. If we really did want to change things, he'd probably be interested in aligning them if possible.</p>
</blockquote>
<p>For what it's worth, <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=653608" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nharper">@nharper</a>'s example would look a bit like this in TypeScript notation:</p>
<pre><code>class StreamFrame implements Frame {
 stream_id:varint;
 offset?:varint;
 length?:varint;
 data:Array&lt;byte&gt; = new Array&lt;byte&gt;(length);
}

interface GenericFrame {
 frame_type:varint,
 frame:Frame
}

interface Packet {
 frames:Array&lt;GenericFrame&gt;
}
</code></pre>
<p>I've been using this in qlog mainly for convenience but am willing to move to another format down the line if qlog actually gets adopted and this type of flexible format is used in other QUIC drafts.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/quicwg/base-drafts/issues/3115?email_source=notifications&amp;email_token=AFTOJK3BVFKDPFYFCLGFZDDQRAZVFA5CNFSM4JB6VQ22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECQOAJA#issuecomment-547414052">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AFTOJK7OFEMC45S2ZIAFWJLQRAZVFANCNFSM4JB6VQ2Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AFTOJK7X7O3ZDCX4N7RUVF3QRAZVFA5CNFSM4JB6VQ22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECQOAJA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/quicwg/base-drafts/issues/3115?email_source=notifications\u0026email_token=AFTOJK3BVFKDPFYFCLGFZDDQRAZVFA5CNFSM4JB6VQ22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECQOAJA#issuecomment-547414052",
"url": "https://github.com/quicwg/base-drafts/issues/3115?email_source=notifications\u0026email_token=AFTOJK3BVFKDPFYFCLGFZDDQRAZVFA5CNFSM4JB6VQ22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECQOAJA#issuecomment-547414052",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>
----==_mimepart_5db83bd293e26_7d593fb4b40cd96c55336--

