[protobuf] ProtoBuf 3 C# Options

2018-05-04 Thread Jeremy Swigart
Anyone know why generated C# classes don't include the named constants for options? (MessageOptions,FieldOptions,etc). They still work but you have to hard code the number value directly, which is less that readable and isn't on par with the named constants generated for the C++ files. -- You

Re: [protobuf] Re: Compatibility Issue + Max value for the indices/field numbers + are high field number slower?

2016-06-20 Thread Jeremy Ong
#x27;d be really surprised if a CRC ended up being more performant than a single branch to see if the mod message exists if I'm understanding your situation correctly. On Mon, Jun 20, 2016 at 3:36 PM, a_teammate wrote: > Am Montag, 20. Juni 2016 20:50:17 UTC+2 schrie

Re: [protobuf] Compatibility Issue + Max value for the indices/field numbers + are high field number slower?

2016-06-20 Thread Jeremy Ong
much >> simpler logic already introduced or invented to better make protobuf >> message version independent, if yes we would be happy to hear them! >> >> Thanks in advance and for reading all this stuff :) >> >> -- >> You received this message because you are subs

Re: [protobuf] Compatibility Issue + Max value for the indices/field numbers + are high field number slower?

2016-06-20 Thread Jeremy Ong
ightly more memory? > > > Well: Maybe we totally ask the wrong questions here and theres a much > simpler logic already introduced or invented to better make protobuf > message version independent, if yes we would be happy to hear them! > > Thanks in advance and for reading all

Re: [protobuf] sanitizer/asan_interface.h: No such file or directory when building with -fsanitize=address

2016-06-01 Thread Jeremy Ong
c. > > Any advice, or is there a proper place to file a bug? > > -- > 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 protobu

Re: [protobuf] can protobuf3 be used with protobuf2?

2016-05-19 Thread Jeremy Ong
a choice made with the encoding and has nothing to do with JSON itself. Do those JSON blobs also lose forward compatibility when the schema changes? Thanks for the discussion, J On Thu, May 19, 2016 at 7:01 PM, Tim Kientzle wrote: > > > On May 18, 2016, at 10:01 PM, Jeremy O

Re: [protobuf] can protobuf3 be used with protobuf2?

2016-05-18 Thread Jeremy Ong
you can use that technique there as well. > > Finally, remember that proto2 is not going away: If proto2 assumptions > are deeply baked into your systems, you can keep using it. protoc will > continue to support it for a very long time. > > Cheers, > > Tim > > >

Re: [protobuf] can protobuf3 be used with protobuf2?

2016-05-18 Thread Jeremy Ong
ail to protobuf+unsubscr...@googlegroups.com. >> To post to this group, send email to protobuf@googlegroups.com. >> Visit this group at https://groups.google.com/group/protobuf. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You recei

Re: [protobuf] Re: Forced serialization/deserialization of unknown fields in proto3 messages

2016-03-18 Thread Jeremy Ong
have switched everything back to proto2, which despite some inconvenience I believe is more feature complete and superior to proto3 at this time. On Fri, Mar 18, 2016 at 4:20 PM, 'Feng Xiao' via Protocol Buffers wrote: > > > On Tuesday, March 15, 2016 at 12:32:07 PM UTC-7, Je

Re: [protobuf] Re: Forced serialization/deserialization of unknown fields in proto3 messages

2016-03-18 Thread Jeremy Ong
other disadvantages, e.g., extra copies ... > > On Fri, Mar 18, 2016 at 6:51 PM, Jeremy Ong wrote: > >> Neither are appropriate in my use case unfortunately. I want to be >> able to tag any message with data in a field range special within the >> organization. The

[protobuf] Forced serialization/deserialization of unknown fields in proto3 messages

2016-03-15 Thread Jeremy Ong
, are there other options or suggestions to handle this? Best, Jeremy -- 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 protobuf+unsubscr...@google

Re: [protobuf] Re: Protobuf Buffers v3.0.0-alpha-1

2015-02-06 Thread Jeremy Swigart
I don't understand. If a message is a simple struct then the generated wrapper code would populate it with the default as defined by the proto it was compiled with wouldn't it? Are you suggesting that the implementation on different platforms would lack the wrapper objects generated by protobuf?

[protobuf] Add field option on imported message

2015-02-06 Thread Jeremy Swigart
Is it possible to add a field option to select fields within an imported message? Ie without modifying the original proto file, add custom options to its fields? Thanks -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from

Re: [protobuf] Re: Protobuf Buffers v3.0.0-alpha-1

2015-01-14 Thread Jeremy Swigart
That sounds like a poor design decision, and one easily readded without breaking anything. If a field doesn't have an explicit default, you use 0 or whatever, thereby not breaking anyone not using them, but if an explicit default is provided that is used instead. I am using that feature as well.

[protobuf] Protobuf Buffers v3.0.0-alpha-1

2014-12-12 Thread Jeremy Swigart
Does the arena allocator also get used by messages allocated as children of the root message? -- 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 protobuf+unsu

[protobuf] Passing messages without a compiled proto

2014-12-10 Thread Jeremy Swigart
Is it possible, given a proto file, but without compiling it(protoc), to use the proto file directly to be able to load data? In other words parsing the proto file at run time and generating a reflection interface or something such that a tool may read the messages with just the proto file witho

[protobuf] Re: Dynamically determine the type of a message

2013-02-25 Thread Jeremy Swigart
What about something like this message UnknownMessage { enum MessageType { MESSAGE_TYPE_A = 1; MESSAGE_TYPE_B = 2; MESSAGE_TYPE_C = 3; } required MessageTypemsgType = 1; required bytesmsgPayload = 2; } On Wednesday, February 10, 2

Re: [protobuf] Static allocation

2012-07-20 Thread Jeremy Swigart
nding on whether or not it turns out to badly effect performance maybe do some compiler modifications myself. Thanks for the help. On Thursday, July 19, 2012 8:22:29 AM UTC-5, Evan Jones wrote: > > On Jul 18, 2012, at 16:14 , Jeremy wrote: > > I understand, but if one wants to keep a

Re: [protobuf] Static allocation

2012-07-18 Thread Jeremy
ve to involve a cache miss. On Tue, Jul 17, 2012 at 1:30 PM, Evan Jones wrote: > On Jul 17, 2012, at 2:33 , Jeremy Swigart wrote: > > Is there a way to tell the proto compiler to generate message > definitions for which the message fields are statically defined rather than > e

[protobuf] Static allocation

2012-07-17 Thread Jeremy Swigart
Is there a way to tell the proto compiler to generate message definitions for which the message fields are statically defined rather than each individual field allocated with dynamic memory? Obviously the repeater fields couldn't be fully statically allocated(unless you could provide the compil

Re: [protobuf] incompatible type changes philosophy

2012-05-10 Thread Jeremy Stribling
On 05/10/2012 07:52 AM, Evan Jones wrote: On May 9, 2012, at 15:26 , Jeremy Stribling wrote: * There are two nodes, 1 and 2, running version A of the software. * They exchange messages containing protobuf P, which contains a string field F. * We write a new version B of the software, which

Re: [protobuf] incompatible type changes philosophy

2012-05-09 Thread Jeremy Stribling
On 05/09/2012 04:41 AM, Evan Jones wrote: On May 8, 2012, at 21:26 , Jeremy Stribling wrote: Thanks for the response. As you say, this solution is painful because you can't enable the optimization until the old version of the program is completely deprecated. This is somewhat simple i

Re: [protobuf] incompatible type changes philosophy

2012-05-08 Thread Jeremy Stribling
On 05/08/2012 06:04 PM, Daniel Wright wrote: On Tue, May 8, 2012 at 4:42 PM, Jeremy Stribling <mailto:st...@nicira.com>> wrote: I'm working on a project to upgrade- and downgrade-proof a distributed system that uses protobufs to communicate data between instan

[protobuf] incompatible type changes philosophy

2012-05-08 Thread Jeremy Stribling
lds of the newer versions. I'm wondering if anyone has experience with a scenario like this, and if there's a more elegant way to solve it. If not, what do folks think of this business of an external translator program? Foolish nonsense? Worthy of a proper insertion point? Thanks, Je

[protobuf] Re: 'Delta' Protocol Buffers

2009-11-13 Thread Jeremy Leader
nputs would result in a repeated field in the output containing a nested message with an index field and a difference field. -- Jeremy Leader jlea...@oversee.net Kenton Varda wrote: > What do you mean by "represented with their index"? > > I don't understand the problem.

Re: Why I get inconsistent values with serialization ?

2009-10-15 Thread Jeremy Leader
many places. -- Jeremy Leader jlea...@oversee.net The_Glu wrote: > Hello, > > I use the following prototype : > > message Find { >required uint64 tag = 1; >required Common.Hash peerID = 2; >required string pattern = 3; > } > > Now: >

Re: Decoders for Network Analyzer (Wireshark/Ethereal)

2009-06-19 Thread Jeremy Leader
data types. -- Jeremy Leader jlea...@oversee.net Jon M wrote: > Hello, > > I am evaluating using Protocol Buffers for objects that are shared > across a distributed system. One key thing I would like is a way to > look at these objects "on the wire" by sniffing

Re: Problem compiling after checking out from svn

2009-04-07 Thread Jeremy Leader
I'm not an autotools expert, but I suspect you're using an inappropriate version (too old? or too new?) of autoconf and friends. On my system, I see: % rpm -q --whatprovides /usr/bin/autoreconf /usr/bin/automake autoconf-2.59-12 automake-1.9.6-2.1 -- Jeremy Leader jlea...@oversee.

Re: same message, different serialization

2009-03-16 Thread Jeremy Leader
you want to send to client 2. Serialize both instances, send instance 1 to client 1, and send the concatenation of instance 1 and instance 2 to client 2. That way, there's no double serialization, and each client only gets the fields you want to send to them. -- Jeremy Leader

Re: speed - python implementation

2008-10-28 Thread Jeremy Leader
Jeremy Leader wrote: > Might it be possible to use the XS wrappers generated by protobuf-perlxs > from Python? Aaah, not enough caffeine yet. I somehow confused XS (Perl-specific) with SWIG (supports Perl, Python, and many others). Never mind! -- Jeremy Leader [EMAIL PRO

Re: speed - python implementation

2008-10-28 Thread Jeremy Leader
Might it be possible to use the XS wrappers generated by protobuf-perlxs from Python? -- Jeremy Leader [EMAIL PROTECTED] andres wrote: > Hi, > > I would like to use protocol buffers in my python code but currently > the serialization and parsing methods are too slow compared

Re: Data structures using protocol buffers

2008-10-22 Thread Jeremy Leader
ginal .proto file, where nodes have references to their neighbors, and you'd probably need a map from node id to node object reference, which you'd use during deserialization. -- Jeremy Leader [EMAIL PROTECTED] GDR wrote: > my bad. The code snippet should be as follows: > > for(

Re: Data structures using protocol buffers

2008-10-22 Thread Jeremy Leader
I was assuming all the properties of a node (weight, label, color, whatever) would be in UndirectedGraphNode; UndirectedGraphNodeReference would only have the id and nothing else. -- Jeremy Leader [EMAIL PROTECTED] GDR wrote: > Thanks Jeremy. That worked! > But we now have information

Re: Data structures using protocol buffers

2008-10-21 Thread Jeremy Leader
ence { required string id = 0; } message UndirectedGraphNode { required string id = 0; repeated UndirectedGraphNodeReference neighbors; } message UndirectedGraph { repeated UndirectedGraphNode nodes; } -- Jeremy Leader [EMAIL PROTECTED] GDR wrote: > Hi, > > I'm wonder

Re: 2.0.2 release is up

2008-10-13 Thread Jeremy Leader
ewer gcc. For what it's worth, "make check" is standard in projects built using Gnu automake (see http://www.gnu.org/software/automake/manual/html_node/Tests.html). -- Jeremy Leader [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this mess