▲ | mdhb 9 days ago | |
I’d really love to see more work bringing the best parts of protobuf to a standardised serialization format like CBOR. I’d make the same argument for gRPC-web to something like WHATWG streams and or WebTransport. There is a lot of really cool and important learnings in both but it’s also so tied up in weird tooling and assumptions. Let’s rebase on IETF and W3C standards | ||
▲ | cyberax 3 days ago | parent | next [-] | |
You can easily do this. Protobuf supports pluggable writers, and iterating over a schema is pretty easy. We do it for the JSONB. I'm not sure the purpose, though. Protobuf is great for its inflexible schema, and CBOR is great for its flexible data representation. A separate CBOR schema would be a better fit, there's CDDL but it has no traction. | ||
▲ | youngtaff 9 days ago | parent | prev [-] | |
Would be good to see support for encoding / decoding CBOR exposed as a broswer API - they currently use CBOR internally for WebAuthn so I’d hope it’s bnot too hard |