Re:Keyframes: Delivering scalable, high-quality animations t...
by steveklabnik on Tuesday November 22, 2016 @01:46PM
(#13016385)
https://crates.io/crates/protobuf exists; though I haven't used it.
Cap'n'Proto has pretty great support for Rust, from what I hear.
Re:Keyframes: Delivering scalable, high-quality animations t...
by echelon on Tuesday November 22, 2016 @01:57PM
(#13016477)
Oh awesome! I'll check this out.
btw, I love all the work you do for Rust, Steve! :)
Re:Keyframes: Delivering scalable, high-quality animations t...
by steveklabnik on Tuesday November 22, 2016 @03:40PM
(#13017455)
Thanks :)
Fields are serialized to tag numbers instead of field names in the binary format, so it's easy to rename fields. This also saves a ton of space versus JSON.
Proto "messages", analagous to structs in other languages, are typesafe, negating the need for a separate schema definition language. They support optional and sum types too.
So many languages have great protobuf libraries available. (I'm hoping one becomes available for Rust soon--as well as gRPC.) It would be amazing if the browser vendors would come together and standardize it as a first class browser serializarion format. It'd save so much bandwidth to emit protos instead of JSON.