On Tue, Apr 28, 2015 at 10:39 PM, elodg <[email protected]> wrote: > Thanks, Feng. One more thing: lite_runtime is not supported in proto3 > alpha 1. Is it going to stay this way? > The first proto3 release (official 3.0) will not have lite runtime support. We plan to add it after the first release.
> Is the runtime for proto3 going to be smaller than for proto2, thus no > need for lite? > No, proto3 uses the same runtime as proto2 for C++. It will only be larger. We didn't add lite-runtime support in order to make things simpler for the initial release. > > On Tuesday, April 28, 2015 at 11:50:41 PM UTC+3, Feng Xiao wrote: > >> >> >> On Mon, Apr 27, 2015 at 11:54 PM, elodg <[email protected]> wrote: >> >>> I provide pure virtual interfaces and abstract default implementations >>> in header-only source code specifically to allow for different compilers >>> and compiler settings. It seems to me that I either have to provide pb.cc >>> and the protobuf lib source, or just .protos and let developers download, >>> compile and statically link protobuf into the plug-in. >>> >> That's what I think as well. >> >> >>> Is there a subset of protobuf source I could provide? Sort of like bcp >>> for boost? >>> >> We don't have such tools. I think you can use LITE_RUNTIME to generate >> the pb.cc/pb.h file and only include the protobuf-lite part of the >> source. >> >> >>> >>> On Monday, April 27, 2015 at 11:11:03 PM UTC+3, Feng Xiao wrote: >>>> >>>> >>>> >>>> On Mon, Apr 27, 2015 at 11:04 AM, elodg <[email protected]> wrote: >>>> >>>>> Suppose there is a plug-in framework that uses protobuf to pass data >>>>> around between plug-ins. The plug-ins can be C++ dynamic libraries, where >>>>> the proto wire crosses the ABI boundary going around binary >>>>> incompatibilities. Many different predefined protos exist that need to be >>>>> distributed to plug-in developers. >>>>> I think I am correct in saying that since there is no guarantee of ABI >>>>> compatibility, each plug-in dll will need to compile and statically link >>>>> protobuf. The question is how is the library and protos meant to be >>>>> distributed? Do I provide .protos and let plug-in developers download >>>>> protobuf and compile everything? Do I provide pb.c/h and protobuf library >>>>> sources? >>>>> >>>> Besides these protos, what else do you provide for plug-in developers >>>> to code against your framework? Do you provide a static library or put >>>> everything as source code? If you provide a static library for plug-in >>>> developers to link with, I think you can have the generated .pb.cc files >>>> compiled in the static library and include .pb.h in the public header files >>>> for plugin developers to use. >>>> >>>> >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Protocol Buffers" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> To post to this group, send email to [email protected]. >>>>> Visit this group at http://groups.google.com/group/protobuf. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Protocol Buffers" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at http://groups.google.com/group/protobuf. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/protobuf. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
