Re: [protobuf] Efficiently reading/writing multiple messages in C++

2013-06-26 Thread Hochhaus, Andrew
Does anyone have any insight on Evan's related question below? On Thu, Jun 17, 2010 at 5:05 PM, Evan Jones ev...@mit.edu wrote: Related question: If I am writing length-prefixed values, what is the best way to do this? I think there are 3 approaches: 1. out.WriteVarint32(msg.ByteSize());

Re: [protobuf] Re: How can I customize the protoc compiler to generate/parse JSON format instead of protocol buffer? I just want to hint me to a start point?

2013-01-30 Thread Hochhaus, Andrew
If an example is helpful, I wrote a protoc plugin that adds c++ support for JSON in the format expected by closure-library's goog.proto2. Depending on your needs it likely won't meet them out of the box, but it could be helpful as an example. http://code.google.com/p/protobuf-plugin-closure/

[protobuf] Re: integration with google-glog

2012-01-24 Thread Hochhaus, Andrew
Any thoughts on better google-glog integration? On Tue, Jan 3, 2012 at 2:20 PM, Hochhaus, Andrew ahochh...@samegoal.com wrote: Hi, Is it possible to configure protobuf to use google-glog (instead of the LogMessage stub)? The alternatives that I can see are to use a LogHandler to proxy

[protobuf] integration with google-glog

2012-01-03 Thread Hochhaus, Andrew
Hi, Is it possible to configure protobuf to use google-glog (instead of the LogMessage stub)? The alternatives that I can see are to use a LogHandler to proxy logging through to glog or modify protobuf to directly use glog [1]. If these are the only options, would the protobuf project consider

Re: [protobuf] AS3 with INT64

2011-10-06 Thread Hochhaus, Andrew
On Thu, Oct 6, 2011 at 7:56 AM, hsl4125 qlhuang...@gmail.com wrote: ActionScript 3.0 has no int64 type. How can use int64 in ActionScript 3.0?? I'm not sure about ActionScript, but I have worked with 64-bit values in JavaScript protocol buffers so some of the following may be helpful to you.

Re: [protobuf] Typed Array support in Chrome 9

2011-01-01 Thread Hochhaus, Andrew
On Thu, Dec 30, 2010 at 11:54 AM, jd unicom...@gmail.com wrote: Are there any plans for code generating javascript (using typed arrays) so we can use protocol buffers directly in the browser (chrome, mozilla, safari) This does not used typed arrays, but closure-library contains a javascript