[protobuf] Issue 382 in protobuf: improving GOOGLE_ARRAYSIZE

2012-04-04 Thread protobuf
Status: New Owner: liuj...@google.com Labels: Type-Defect Priority-Medium New issue 382 by nn1436...@gmail.com: improving GOOGLE_ARRAYSIZE http://code.google.com/p/protobuf/issues/detail?id=382 Current implementation is not good enough. Use the following one: template class T, int Size char (

[protobuf] Install/Setup Problem While Running ./configure

2012-04-04 Thread mbiesent...@ebay.com
I am trying to follow the install instructions in the README. The step states to run ./configure. When I execute it the process dies with the message: ... checking for nawk... nawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking whether the C compiler works... no

[protobuf] Java - Adding jars to proto_path

2012-04-04 Thread dingwa
Hi, I have a situation where I have proto definitions in a third-party foo.jar, but I want to access the definitions from within my own project. In the documentation for the proto_path flag, it only states multiple directories in which to look for, with no mention of including jars on the

[protobuf] Odd problem with protobuf implementation in C++

2012-04-04 Thread G.
Hi all, I am using protobuf 2.4.1, and I encountered a weird issue: I created the following .proto file: message Auction { // Bid request id required bytes Id = 1; optional bytes Ip = 2; required int32 adId = 3; required int32 adHeight = 4;

[protobuf] Re: Odd problem with protobuf implementation in C++

2012-04-04 Thread Jeremiah Jordan
How are you setting the data? You should be using something like: bid.set_HtmlSnippet(Stuff); and std::string html = bid.HtmlSnippet(); See: https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.message On Wednesday, April 4, 2012 7:25:15 AM UTC-5, G. wrote: Hi

[protobuf] Additional data types

2012-04-04 Thread jhakim
Any plans to provide out-of-the-box for commonly used data types such as Date (encoded as String) and BigDecimal/BigInteger types? Seems this would be of interest to a lot of users. -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To post to

Re: [protobuf] Additional data types

2012-04-04 Thread Alexandru Turc
proto files are mapped to many languages, Date and BigDecimal are java specific. On Apr 4, 2012, at 9:37 AM, jhakim wrote: Any plans to provide out-of-the-box for commonly used data types such as Date (encoded as String) and BigDecimal/BigInteger types? Seems this would be of interest to a

Re: [protobuf] Additional data types

2012-04-04 Thread Alexandru Turc
What would be the mapping for C or C++? I think there is an advantage of keeping the set of data types very limited, to primitive values which can be easily mapped to multiple languages. Otherwise things can get complicated. Let's take date as an example. It's representation depends on the

RE: [protobuf] Additional data types

2012-04-04 Thread Jawaid Hakim
Date and decimal types are ubiquitous and in wide use. Language specific bindings could easily be created - this is exactly what we do in some other open source projects that I contribute to. The way I envision it, protocol buffers would provide 'date' and 'decimal' types - protoc compiler

RE: [protobuf] Additional data types

2012-04-04 Thread Jawaid Hakim
You are correct to point out the complications of dealing with complex data types. All the more reason why it would be great to not have the developer community keep re-inventing the wheel. But I understand why this is not on the radar map of the proto buffer team. My group builds applications

Re: [protobuf] Additional data types

2012-04-04 Thread Christopher Smith
AFAIK the answer is no. A lot of the value of protocol buffers derives from keeping their functionality simple. There are plenty of all singing/all dancing serialization frameworks already. ;-) I think date in particular is fraught with peril. I'd recommend against encodung them as strings.

Re: [protobuf] Additional data types

2012-04-04 Thread Christopher Smith
Nothing prevents you from making a module available for everyone's benefit. If it is broadly useful, it will undoubtedly be universally adopted. --Chris P.S.: What is a decimal type? On Apr 4, 2012, at 2:21 PM, Jawaid Hakim jawaid.ha...@codestreet.com wrote: Date and decimal types are

Re: [protobuf] Additional data types

2012-04-04 Thread Christopher Smith
On Apr 4, 2012, at 2:54 PM, Jawaid Hakim jawaid.ha...@codestreet.com wrote: My group builds applications using use multiple languages, including Java and C#, so a simple int64 for date representation does not work. That there isn't a simple way to do it is a pretty nasty strike against