3 ms·
> Is there any actual reason something like serde couldn't exist in other languages? C# standard library has DataContractSerializer for decades. That thing rea
by Const-me 5y ago
> Is there any actual reason something like serde couldn't exist in other languages?
C# standard library has DataContractSerializer for decades. That thing reads/write text XML by default, but with minor tweaks can do binary XML or JSON.
I like their binary XML format the most. Very fast because doesn’t waste time printing or parsing numbers or Base64 bytes. Also, pre-shared XML dictionary, and session-accumulating dynamic dictionary, makes the serialized representation very compact, sometimes an order of magnitude better than text/xml.