Binary Serialization Formats

Discussions critique a new proprietary binary serialization format, questioning its need and recommending established alternatives like Protobuf, MessagePack, BSON, CBOR, ASN.1, and Cap'n Proto.

➡️ Stable 0.7x Programming Languages
4,220
Comments
20
Years Active
5
Top Authors
#5916
Topic ID

Activity Over Time

2007
4
2008
11
2009
35
2010
45
2011
68
2012
128
2013
122
2014
186
2015
161
2016
245
2017
234
2018
221
2019
287
2020
398
2021
431
2022
355
2023
405
2024
366
2025
492
2026
26

Keywords

e.g CPU pocoo.org MsgPack ETF VLA BSON XML DSL BER serialization binary protobuf data length json struct format proto data model

Sample Comments

throwbadubadu May 17, 2024 View on HN

Sounds really like you used them for the wrong use case. If you are in need of a binary compact serialization, they are not prefect (is there any) but fair enough.

Matthias247 May 2, 2017 View on HN

it's a proprietary binary serialization. However nothing revolutionary, just comparable to thrift and protobuf.

paultopia Jul 23, 2020 View on HN

Why do we need more random serialization formats?

sneak Apr 19, 2020 View on HN

Why bencoding and not BSON or CBOR or any of the other serialization options?

rkeene2 Mar 16, 2019 View on HN

I'm not sure why ASN.1 isn't more popular for a zero-copy encoding system

ramranch Nov 25, 2022 View on HN

Does your protocol provide any advantages over bincode?

sparkie Mar 7, 2014 View on HN

Why reinvent binary serialization when you could use ASN.1, or any of the thousand binary serialization formats that pre-date protobufs?

ricardobeat Oct 27, 2016 View on HN

You may want to take a look at Protocol Buffers or the new Ion format by Amazon; the latter can seamlessly switch between binary and human-readable.

stkdump Dec 30, 2020 View on HN

I created a binary serialization format and library that is comparable to json but binary. It uses 1-byte tags to give type information, which often already contains the value (in case of 0,1,true,false,null,empty string, empty list, empty object, single letter string or one of the last 32 interned strings) very similarly to msgpack. But it has the advantage, that strings are interned, which does about the same for performance as a runtime schema-based thing like Avro, but is more generic. Also,

cheschire Dec 27, 2020 View on HN

Check out MessagePack.https://msgpack.org/