News for hackers. Stuff that matters.
Re:MessagePack: It's like JSON, but fast and small. by fshafique on Saturday January 11, 2025 @03:58AM (#42664447)
Does it solve the problem of repeating set of keys in an object array, eg. when representing a table?

I don't think using a dictionary of key values is the way to go here. I think there should be a dedicated "table" type, where the column keys are only defined once, and not repeated for every single row.

Re:MessagePack: It's like JSON, but fast and small. by ubutler on Saturday January 11, 2025 @04:02AM (#42664465)
MessagePack can encode rows as well and then you just need to manage linking the keys during deserialization. In fact, it can encode arbitrary binary without needing base64 like JSON.
Re:MessagePack: It's like JSON, but fast and small. by feverzsj on Saturday January 11, 2025 @04:29AM (#42664574)
You can just use array of array like most scientific applications do.
Re:MessagePack: It's like JSON, but fast and small. by fshafique on Saturday January 11, 2025 @07:23PM (#42670089)
I can do that with JSON too. I was hoping MessagePack would have built-in functionality to do it.