Earlier quoted context omitted.
What's it for?
gRPC
Amazon Ion – A richly-typed, self-describing, hierarchical serialization format
21–30 of 240 posts
Re: Amazon Ion – A richly-typed, self-describing, hierarchical serialization format
#22Pretty neat, but isn't it like *two* formats: one binary and one textual?
Ion text is like JSON, in fact all JSON is valid ion text. Ion text has comments, trailing commas, dates, and unquoted keys. It's a really good alternative to JSON, YAML, or TOML.
Ion binary is compact and fast to parse. Values are length prefixed so the parser can skip over unneeded fields or structs, saving time parsing and memory allocated. Common string values, like struct keys and enum values, are given numeric ids and stored once in a header table.
Re: Amazon Ion – A richly-typed, self-describing, hierarchical serialization format
#23Re: Amazon Ion – A richly-typed, self-describing, hierarchical serialization format
#24Re: Amazon Ion – A richly-typed, self-describing, hierarchical serialization format
#25Re: Amazon Ion – A richly-typed, self-describing, hierarchical serialization format
#26It seems like an odd choice to make the type "metadata" a prefix to the value, rather than a separate field. It feels like overloading. What's the advantage?
1. Considering that a goal of Ion is to be a strict superset of JSON, separate syntax ensures that any JSON value can be parsed without misinterpreting some field as an annotation--there are no reserved/"magic" field names.
2. Annotations can be applied to any type of value, not just objects, which are the only type that have fields.
Re: Amazon Ion – A richly-typed, self-describing, hierarchical serialization format
#27I 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
Re: Amazon Ion – A richly-typed, self-describing, hierarchical serialization format
#28It seems like an odd choice to make the type "metadata" a prefix to the value, rather than a separate field. It feels like overloading. What's the advantage?
Re: Amazon Ion – A richly-typed, self-describing, hierarchical serialization format
#29`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.