Live data from Hacker News

Amazon Ion – A richly-typed, self-describing, hierarchical serialization format

amzn.github.io

11–20 of 240 posts

Re: Amazon Ion – A richly-typed, self-describing, hierarchical serialization format

#12
Ions text format is a nice JSON alternative while it's binary format is very compact and allows for efficient sparse parsing. Fields are prefixed with their length so you can skip over unneeded fields or structs while only creating objects for values you'll use.

Re: Amazon Ion – A richly-typed, self-describing, hierarchical serialization format

#17

`years::4`? I don't know. What not `4::years`? Also, symbols converted to integers means the receiving end has to already know exactly what they are.

There is provision for encoding a local symbol table: https://amzn.github.io/ion-docs/docs/symbols.html#processing...

Re: Amazon Ion – A richly-typed, self-describing, hierarchical serialization format

#19
post #16

I scanned the docs, and can't see what happens if you alter your data schema. Anyone know?

Seems like you have to handle that yourself. The serialized data includes the type, so your app code might have to have logic a la “if type1: … else: …” after parsing it.

Re: Amazon Ion – A richly-typed, self-describing, hierarchical serialization format

#20
post #3

I feel like a lot of file formats came out of companies, but even protocol buffers isn't calling itself google protocol buffers. What is it with modern companies putting their name everywhere they can?

Natural file extension will be .ai despite having no relation to AI
Post reply on HN