News for hackers. Stuff that matters.
Re:Biscuit Authorization by 38 on Wednesday December 13, 2023 @11:29PM (#38637788)
> All you need for a new implementation is a Protobuf generator

Nope. I will never touch anything that uses protobuf. The fact that it's not self describing (and pointlessly so) is instant deal breaker. Anyone who's ever looked into parsing the wire format knows what an awful standard it is.

Re:Biscuit Authorization by thadt on Thursday December 14, 2023 @12:06AM (#38638007)
Why do we feel using variable length integers in protobuf's wire format vs strings is an instant deal breaker? Isn't understanding a protocol is going to require a more documentation than just a string field name? The kind of documentation that can often be found as comments in a protocol buffer definition file?

Having written a binary serialization format that does make the choice to use strings for field identifiers on the wire (https://litevectors.org), I can still see the appeal of using integers - they're smaller and parse faster. I've used protocol buffers in several places, including in an embedded microcontroller where parsing something like JSON would have been a lift. Aside from some issues with the impact of deeply nested buffers on the stack size, protocol buffers worked brilliantly, and allowed us to keep a consistent data representation across multiple languages and platforms.

Re:Biscuit Authorization by esafak on Thursday December 14, 2023 @12:55AM (#38638270)
What do you use instead?
Re:Biscuit Authorization by geal on Thursday December 14, 2023 @03:58AM (#38639295)
(biscuit author here) I tried a lot of different formats, especially looking for something that generated small tokens, that could have a canonical form, and that was supported in a lot of languages. The canonical part was a dead end as most formats did not support that well. Protobuf ended up being the one which generated the smallest tokens, and was easily supported in most languages, even if, like you, I don't agree with everything in the way it's serialized. Self describing formats were a dead end as well because it grows the token size