3 ms·
I recently implemented a similar (simpler) format https://baremessages.org/ https://baremessages.org/ in ruby. First thoughts are: ION pros: - easy to skip ar
by n8ta 5y ago
I recently implemented a similar (simpler) format https://baremessages.org/ https://baremessages.org/ in ruby.
First thoughts are:
ION pros:
- easy to skip around while reading a file
- no need to write a schema
- backed by amazon so major langs will have impls
- good date support
- better concatenation, probably better suited to logging than bare
ION cons
- what's the text format even for?
BARE pros:
- schemas keep things tightly versioned
- smaller binaries (not self describing like ion)
- simpler to implement so tons of devs have impl'ed for their favorite lang
- better suited to small messages (think REST json api)
BARE cons:
- no skip read
- no date support
I might do an ion ruby implementation too, to really feel out the difference.
- ozzythecat 5y agoIon text is helpful so you can convert ion binary to text for debugging:
- seniorsassycat 5y agoion text is a good contender for JSON, YAML, TOML usecases. It's also a good way to present the binary to humans.
- imiric 5y ago> what's the text format even for? Configuration files? Not sure if that's an intended use case, but being more flexible than JSON and stricter than YAML seems ideal for configuration.
- the_girabbit 5y agoIon will be even better for (structured) logging if this proposal for templates ever happens. https://github.com/amzn/ion-docs/pull/104 https://github.com/amzn/ion-docs/pull/104 Looks like no one’s even so much as commented on it in the last year, so it might have been abandoned.
- n8ta 5y agoIon is already a little too complex for my taste. It'd be a shame to see it go the same way as yaml where it's so complex that most major implementations are not safely interoperable.
- jonwilsdon 5y agoDisclosure: I manage the Ion and PartiQL teams at Amazon. This proposal hasn’t been abandoned. We hope to post an update soon!