Re: Numerical Formats

2009-02-23 Thread Tim
of a deal-breaker for us due to space requirements. Especially since we're planning to use 4 byte tags across the board in our system so that there's enough space for a unique tag for each attribute in our system. Curious, and Thanks, Tim On Jul 8 2008, 10:13 am, Kenton Varda ken...@google.com wrote

importing/defining/evaluating symbols and expressions in a .proto

2009-02-24 Thread Tim
. An alternative which I was hoping to avoid would be to write scripts to parse my header files, evaluate the symbols, and then write my .proto files accordingly. I am curious if others are doing similar things with protobufs. Thanks, Tim --~--~-~--~~~---~--~~ You received

Re: event-based decoding / new C implementation

2009-02-26 Thread Tim
, Is anyone else using PB in this way? Tim On Feb 23, 1:33 pm, Joshua Haberman jhaber...@gmail.com wrote: On Feb 23, 9:51 am, Caleb caleb.epst...@gmail.com wrote: On Feb 6, 5:56 pm, Joshua  Haberman jhaber...@gmail.com wrote: Does proto2 support event-based decoding

Re: GPB on non-Linux, non-Windows OS?

2009-02-27 Thread Tim
of protobufs definitely weren't designed for embedded systems, but there might be a case for taking the Google C++ implementation and ripping out all the advanced features to make something extremely stripped-down. On Thu, Feb 26, 2009 at 5:27 PM, Tim timbla...@gmail.com wrote: Anyone out

Re: GPB on non-Linux, non-Windows OS?

2009-03-02 Thread Tim
I'm interested in your work, Josh. But I'm having trouble understanding what your goal is. I.e. what is the essence of protobufs that you are trying to distill? And how would you differentiate your work from Dave's protobuf-c project? And is your implementation going to be entirely in C? Tim

Using PB for object data storage in embedded c++ application

2009-03-02 Thread Tim
by the framework so you don't have to do extra did the field change and if so, what should I do about it now? checks at a higher level. Is this sort of consideration on anyone's radar? Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed

[protobuf] Feature requests

2009-12-07 Thread Tim
to go to and from string (similar to how the new Java-style enums allow you to call valueOf to go from String to Enum, and toString to go from Enum to String). This would be extremely useful for us to have the capability in C++, and it seems like this could be very easily code-generated. Thanks, Tim

Make error on FreeBSD after link

2009-04-23 Thread tim . espey
Hi, I am trying to build protobuf 2.0.3 on FreeBSD 7.1 and am running into an error in the make immediately after the link step. I run configure with the --disable-shared argument, then run make. The make appears to compile all of the code, and successfully produces the archives in the

[protobuf] What's the point of Protocol Buffers?

2010-07-21 Thread Tim Acheson
I generally create web services using WCF or ASP.NET MVC. I don't get the point of Protocol Buffers. Am I missing something? Out of the box, WCF web services and ASP.NET MVC actions serialise my objects to JSON or XML, using the serialisation libraries provided by the framework. I don't need to

[protobuf] Re: What's the point of Protocol Buffers?

2010-07-22 Thread Tim Acheson
The consensus seems to be that the main rationale for Protocol Buffers is cross-platform interoperability, and transferring objects between platforms. I can already consume JSON objects from a WCF service using JavaScript in the web browser. I can see that if I used other platforms/languages I

[protobuf] Re: What's the point of Protocol Buffers?

2010-07-22 Thread Tim Acheson
If you can show me a format which offers faster serialisation or deserialisation than JSON in a .NET application, I'd be impressed! :) Although I haven't heard anybody experiencing problems with the performance of either direction in .NET with JSON or XML, the libraries provided by the framework

[protobuf] Re: Reducing code size of protocol buffers

2010-12-22 Thread Tim Turner
This is C++. I had not tried optimizing for CODE_SIZE. I understood that CODE_SIZE was the precursor to and not as compact as LITE_RUNTIME. Yes, I believe they are tag numbers, the enumeration-style numbering of each possible response or request. -- You received this message because you are

[protobuf] custom constructor

2011-01-14 Thread Tim Wisniewski
find a bitset type within the proto language. Any thoughts? -Tim -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to this group, send email to protobuf@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr

[protobuf] Re: How to parse a message with extensions?

2012-05-01 Thread Tim Edwards
You cannot use the extension's number as the key (though I agree, that would be nice). Instead, you need to provide the fully-qualified path to the extended field inside square braces, e.g. [My.Extension.foo]: 'foovalue'. Take a look at the Debug() output of an extended message and you'll see

[protobuf] Fwd: Protobuf question for mailing list

2016-02-05 Thread Tim Kientzle
option would seem to be to serialize the JSON data as a protobuf Struct representation (which in turn has interesting implications for the receiving system). Am I missing some other option? > Tim P.S. Nice work on the conformance test suite, by the way! That clarified a *lot* of details about the expe

[protobuf] JSON serialization can fail?

2016-02-03 Thread Tim Kientzle
to instead truncate Durations and Timestamps to the representable range and to redefine Fieldmask to drop unrepresentable fields. This would eliminate a lot of boilerplate from implementations (and users) of the JSON code. Cheers, Tim -- You received this message because you are subscribed

[protobuf] JSON serialization for 'Any'

2016-02-03 Thread Tim Kientzle
rotobuf Struct, which would have interesting implications for the receiving system. Am I missing some other option? Tim P.S. Nice work on the conformance test suite, by the way! That answered a *lot* of questions about the expected handling for protobuf JSON format. -- You received this mes

[protobuf] Any JSON coding question

2016-02-03 Thread Tim Kientzle
serialize the JSON data as a protobuf Struct representation (which in turn has interesting implications for the receiving system). Am I missing some other option? Tim P.S. Nice work on the conformance test suite, by the way! That clarified a *lot* of details about the expected handling for protobuf

[protobuf] Transform data from one schema to another

2016-02-24 Thread Tim Richardson
I have a data modelling problem and I'm wondering if protobuf could be the right tool to help me solve this problem. I have data in one schema and i want to transform it to another schema. message Dataset { required string title = 1; required string description = 2; } message Study {

[protobuf] Scoping in definitions

2016-02-25 Thread Tim Richardson
Hi, just wanted to check my declaration with you guys, is it possible to reuse the `Study` declaration in the `Denormalised` package mypackage; message Dataset { required string accession = 1; required string url_self = 2; optional string title = 3; optional string description = 4;

[protobuf] Any type with python

2016-02-26 Thread Tim Richardson
Is the Any type implemented in the python libraries yet? I read this on the documentation *Currently the runtime libraries for working with Any types are under development*. -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe

[protobuf] Re: C++ JsonToBinaryStream losing large uint32 values

2016-03-09 Thread Tim Kientzle
On Friday, February 19, 2016 at 3:56:34 PM UTC-8, Josh Haberman wrote: > > Thanks a lot for tracking this down. For reference, here it is in our bug > tracker: https://github.com/google/protobuf/issues/1243 > > On Thursday, February 11, 2016 at 3:28:33 AM UTC-8, Ron Ben-Yosef wrote: >> >> Hi,

Re: [protobuf] Any JSON coding question

2016-03-14 Thread Tim Kientzle
> On Mar 14, 2016, at 11:50 AM, Feng Xiao <xiaof...@google.com> wrote: > > > > On Thu, Mar 3, 2016 at 6:37 PM, Tim Kientzle <kient...@gmail.com> wrote: > > I think your current Any JSON design requires that protobuf serialization be > able to fail. Th

[protobuf] JSON field naming inconsistency

2016-03-10 Thread Tim Kientzle
What should the JSON coding be for the following? message Foo { string _field_name4 = 7; } Currently, the protoc tests say that the JSON field name should be “fieldName4”, the conformance test says that the JSON field name should be “FieldName4”. Both seem reasonable, but only one can be

Re: [protobuf] Default Values vs Missing Values

2016-03-26 Thread Tim Kientzle
andard message (one of the "well-known types") specifically designed to store a set of field names. You might be able to achieve what you want by providing a FieldMask with your data listing the specific fields to be updated. Tim -- You received this message because you are subscribed

Re: [protobuf] Any JSON coding question

2016-03-19 Thread Tim Kientzle
s odd, since every other part of the proto3 design works equally well for systems that are primarily JSON or primarily protobuf. Tim -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop

Re: [protobuf] Any JSON coding question

2016-03-19 Thread Tim Kientzle
> On Mar 17, 2016, at 10:04 AM, Feng Xiao <xiaof...@google.com> wrote: > > On Wed, Mar 16, 2016 at 7:49 PM, Tim Kientzle <kient...@gmail.com> wrote: > > > On Mar 14, 2016, at 7:07 PM, Feng Xiao <xiaof...@google.com> wrote: > > > > In google

Re: [protobuf] Any JSON coding question

2016-03-19 Thread Tim Kientzle
t approach works well my proposed Any design as well. Your proxies can still walk the object tree and validate and/or convert Any fields as necessary for your particular systems. But that approach is not appropriate for everyone. Your Any design cannot be used by people that require different po

Re: [protobuf] Any JSON coding question

2016-03-03 Thread Tim Kientzle
to protobuf. The actual JSON serialization is very similar to the current Any serialization (with the addition of the extra “json” tag). Cheers, Tim > On Feb 5, 2016, at 1:53 PM, Josh Haberman <haber...@google.com> wrote: > > Hi Tim, > > I think your analysis is correc

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

2016-05-19 Thread Tim Kientzle
ld stick with proto2. It’s still around and will be for a long time. Cheers, Tim -- 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+

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

2016-05-18 Thread Tim Kientzle
are deeply baked into your systems, you can keep using it. protoc will continue to support it for a very long time. Cheers, Tim > On May 18, 2016, at 1:33 PM, Jeremy Ong <jer...@plexchat.com> wrote: > > Big fan of 4, 5, 6, and 7. Huge un-fan of 2, and 3. I am mixed on 1 be

Re: [protobuf] Re: protobuf with swift3

2017-01-19 Thread Tim Kientzle
exec-am'. > > make[2]: Nothing to be done for `install-data-am'. > > This looks like it worked. What is your concern? Tim -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To unsubscribe from this group and stop recei

Re: [protobuf] Can I assume ByteSize() always return same size?

2016-08-20 Thread Tim Kientzle
only integers in my message type, can I always assume assert > "msg_size_before == msg_size_after" No. Protobuf uses variable-length integer encodings, so the size will change depending on the exact integer values. If you need the size to be the same, you can use "fixed32

Re: [protobuf] protobuf::Any Message vs MessageLite interface

2016-10-07 Thread Tim Kientzle
ould be > best to avoid creating another dependency on that GetTypeName() method when > it might be going away in the future. > This seems to suggest that you don’t intend to support Any for mobile? Tim -- You received this message because you are subscribed to the Google Groups &qu

Re: [protobuf] Apple's Swift Protobuf Plugin

2016-09-22 Thread Tim Kientzle
support. https://developers.google.com/protocol-buffers/docs/reference/other Tim > > thanks! > > 2016年9月23日星期五, <tkient...@apple.com <mailto:tkient...@apple.com>> 写道: > If you’re interested in protobuf support for Swift, you might want to take a > look at the protoc p

Re: [protobuf] Problem encoding between C# string on windows and C++ on unix

2017-01-04 Thread Tim Kientzle
there is 0x12 = 2 * 8 + 2). Your C++ code thinks the `wiffName` field is field #3 (the third byte is 0x1a = 3 * 8 + 2). Also, both are correctly writing UTF-8 strings into the output. Tim -- You received this message because you are subscribed to the Google Groups "Protocol Buffers"

[protobuf] Import functionality

2021-01-16 Thread Tim Epkes
I am trying to section up my protocol buffers into simpler or digestable files (each file fitting a category like device and all messages that would make up a device. I then want to import that into my main pb definition file. I do it, I compile it and there is a reference to the object (test