News for hackers. Stuff that matters.
Re:Amazon Ion – A richly-typed, self-describing, hierarchica... by dboreham on Friday November 19, 2021 @10:55PM (#29285424)
This is protocol buffers + a global type registry. I worked on such a system.
Re:Amazon Ion – A richly-typed, self-describing, hierarchica... by pcarolan on Saturday November 20, 2021 @05:06AM (#29286813)
Is it public? Id love to learn more about it.
Re:Amazon Ion – A richly-typed, self-describing, hierarchica... by jenny91 on Saturday November 20, 2021 @09:54AM (#29288581)
If you read the protobuf source, you can see a bunch of places where you can hook in custom type-fetching code, e.g. in the google.protobuf.Any type.

After studying it a bit, I'm certain this is how it's used inside Google (might also be mentioned elsewhere).

All you'd really need to do is to compile all protos into a repository (you can spit out the binary descriptors from protoc), then fetch those and decode in the client.

It'd actually be quite straightforward to set up,