[Ohrrpgce] SVN: pkmnfrk/2436 so, I've decided against XML. Instead, I propose RELOAD, a new format.

David Gowers 00ai99 at gmail.com
Thu Nov 6 14:07:41 PST 2008


Hi Mike,

On Fri, Nov 7, 2008 at 12:51 AM, Mike Caron <caron.mike at gmail.com> wrote:
>>> [2008-11-06 02:15:47] <MikeCaron> I'll also add a 64-bit int, in case we
>>> ever need it
>>
>> .. <variable-length int goes here>, yes?
>
> A variable length int would be overkill. I think the current implementation
> is sufficient for 99.84% of all cases. If you really need larger than
> 64-bit, you're welcome to encode a BigInt as a byte stream.
My point was that 64bit is already storing an ludicrously large number
(+-4611686018427387903), and you can store numbers up to 56bit in
64bit variable-length-ints, so it might be more sensible to support
variable length instead of 64bit, to minimize future upgrading.
I admit I forgot that FB doesn't have transparent usage of
variable-sized integers as needed.

>
>>
>> Cool, I like this encoding of bitsets. Far more inspectable, and
>> reasonably efficient for moderate N of set bits.
>
> Inspectable? Hardly anything of this format is inspectable.

Sure it is; only one indirection per tag after reading the 'dataless'
tags, and you've got a textual list of bits in that group that are
set, right?


David


-- 
Reticience and self-censorship is a farce.  The deceiver does not
himself know the truth, anything that he holds back he holds back not
only from others but from himself. Fuck censorship. "I yam what I
yam."



More information about the Ohrrpgce mailing list