Re: [protobuf] Re: New types?

2011-07-22 Thread Jason Hsueh
Apologies for the delay. I don't, but the basic sketch would be: - define a custom option by extending google.protobuf.FieldOptions - Implement a code generator that opens the files generated by the main generators - Modify your build system to execute protoc with both the language specific target

[protobuf] Re: New types?

2011-07-12 Thread Bo Hansen
Sounds interesting, do you have an example of doing this? On Jul 9, 2:21 am, Jason Hsueh wrote: > Echoing Chris's messages, we don't really want to get into supporting > arbitrary types in the core implementation. Various language-specific > annotations could be added, but doing this portably acr

Re: [protobuf] Re: New types?

2011-07-08 Thread Jason Hsueh
Echoing Chris's messages, we don't really want to get into supporting arbitrary types in the core implementation. Various language-specific annotations could be added, but doing this portably across languages would be difficult. Supporting these types also complicate the reflection implementations.

Re: [protobuf] Re: New types?

2011-07-08 Thread Christopher Smith
On Fri, Jul 8, 2011 at 9:46 AM, Eric Hopper wrote: > I guess. This is an interesting and general problem. Practically every > system like protobuf needs to solve it. Python itself, for example, > solves it for pickle by allowing you to write custom methods for your > classes to reduce them to well

[protobuf] Re: New types?

2011-07-08 Thread Eric Hopper
On Jun 30, 10:16 am, Christopher Smith wrote: > You could always extend the compiler, but I bet you could get away with a > simple preprocessor that aliases types and represents those larger integers > as raw bytes. I guess. This is an interesting and general problem. Practically every system l