Live data from Hacker News

IceRPC: RPC framework for the QUIC era

zeroc.com

11–12 of 12 posts

Re: IceRPC: RPC framework for the QUIC era

#11

Earlier quoted context omitted.

Yeah, I pretty much completely agree with you on tags! While required-by-default is more natural IMO, and more performant, etc. It does require a little more foresight by the programmer for sure. But, honestly, for those who want to play it safe (or not think about it), you can just mark everything tagged and pretend like you're still using protobuf : vP Although, it would hurt me a little bit on the inside... The wa…

> The way we typically see definitions evolving is you'll create a struct with required fields first. Then if you need to augment it later on, you can add tagged fields, in a fully compatible manner. I think this is spot on. Each data container usually has "core" fields that are unlikely to change. Making core fields required and others tagged, gives you simplicity for former and flexibility for latter fields. I real…

> Can I map multiple custom types to the same C# type? :)

Yes that is totally fine. In C# side both would be represented as "long[]", the generated code would use the appropriated encoding for the custom type, as provided by the user methods.

Re: IceRPC: RPC framework for the QUIC era

#12

Earlier quoted context omitted.

> The way we typically see definitions evolving is you'll create a struct with required fields first. Then if you need to augment it later on, you can add tagged fields, in a fully compatible manner. I think this is spot on. Each data container usually has "core" fields that are unlikely to change. Making core fields required and others tagged, gives you simplicity for former and flexibility for latter fields. I real…

> Can I map multiple custom types to the same C# type? :) Yes that is totally fine. In C# side both would be represented as "long[]", the generated code would use the appropriated encoding for the custom type, as provided by the user methods.

That's so awesome! This looks like the most well-designed IDL-based binary serialization format I have ever seen. Well done!
Post reply on HN