bipf
bipf copied to clipboard
Binary json codec optimized for in-place access
The library encode undefined as value 2 for BOOLNULL tag while nothing defined in spec. Note that seems a deviation from JSON compatibility and is not very portable as differentiation...
returning the favor to @arj03 and providing a test vector for BIPF: ```f50418666f6f8c02127fff0a800a810aff0a000a010a7f12800012007f1a0080000e002179656168061862616695014046726564686f6c6d4305413da6832fbc3f186261722868656c6c6f1862617a06``` which should turn, in Python speak, into ```{'foo': [-129, -128, -127, -1, 0, 1, 127, 128, 32512,...
In Python, it is fine to have bytes (buffer in JS), or integers, as keys for dictionaries (object in JS). The current implementation in JS, which somehow serves as spec,...
Continuing from https://github.com/jerive/bipf-napi/issues/1#issuecomment-985868777 @jerive I noticed that in `test/perf.js`, sometimes `seekKey(buffer, start, target)` is called with `buffer = 0` and that's what causes a deopt. We could do two things:...
In @staltz' FOSDEM2021 talk we had the [feedback](https://matrix.to/#/!AUvLzDizWvOedgLWtR:fosdem.org/$qAPwfLUhlp2RjKkGHSY-aNj38e95yfJUMX63T3N83UA?via=fosdem.org&via=matrix.org&via=mozilla.org) that the encoding is basically [DER](https://en.wikipedia.org/wiki/X.690#DER_encoding), which is also type, length, value. While my guess is that most DER libraries don't offer...
From https://github.com/dominictarr/bipf/pull/1#issuecomment-685182454 > btw, i didn't quite consider this production ready yet. it currently makes small numbers bigger, because a double is 8 bytes. was considering making it into two...