Re: [protobuf] Cross-compiling protobuf to 32-bit

2010-01-28 Thread Kenton Varda
What OS? What compiler? What is your ./configure command line? On Thu, Jan 28, 2010 at 5:12 AM, SyRenity stas.os...@gmail.com wrote: Hi. I'm trying to compile a 32-bit protobuf on 64-bit machine. No matter what I tried (changing build option, host option or setting - m32 flag), I

Re: [protobuf] Re: Problems de-serialising a string, C++

2010-01-28 Thread Kenton Varda
There's a bug in your code, but I don't know what. Can you please reduce it to a small, self-contained example and send it to the list? On Thu, Jan 28, 2010 at 11:47 AM, iWalsh iain.d.wa...@googlemail.comwrote: Ah Sorry I should also mention that leaving the mac address field empty/default

Re: [protobuf] Re: Cross-compiling protobuf to 32-bit

2010-01-28 Thread Kenton Varda
. Where is it? On Jan 28, 9:22 pm, Kenton Varda ken...@google.com wrote: What OS? What compiler? What is your ./configure command line? On Thu, Jan 28, 2010 at 5:12 AM, SyRenity stas.os...@gmail.com wrote: Hi. I'm trying to compile a 32-bit protobuf on 64-bit machine

Re: [protobuf] Re: Problems de-serialising a string, C++

2010-01-29 Thread Kenton Varda
On Jan 28, 8:48 pm, Kenton Varda ken...@google.com wrote: There's a bug in your code, but I don't know what. Can you please reduce it to a small, self-contained example and send it to the list? On Thu, Jan 28, 2010 at 11:47 AM, iWalsh iain.d.wa...@googlemail.com wrote: Ah Sorry I

Re: [protobuf] Re: How can I reset a FileInputStream?

2010-01-29 Thread Kenton Varda
. Regards, Jacob 2010/1/28 Kenton Varda ken...@google.com: Your new results seem to indicate that the extra malloc/free can cost between 300ns and 1500ns. At the low end, the overhead is negligible and not worth complicating the interface. At the high end, your results seem hard to believe

Re: [protobuf] protocol buffers in clojure

2010-01-29 Thread Kenton Varda
I've added this to the wiki: http://code.google.com/p/protobuf/wiki/ThirdPartyAddOns On Fri, Jan 29, 2010 at 2:47 PM, ninjudd goo...@justinbalthrop.com wrote: Hi, I wrote a clojure library that provides a wrapper around Java protocol buffers for clojure. Of course, you can call Java

Re: [protobuf] out-of-bounds varint

2010-01-31 Thread Kenton Varda
The official implementation does #1: It assumes that if there are 10 bytes or more in a row with the high bit set when a varint is expected, then some sort of corruption must have occurred. It's impossible to reasonably recover from such corruption, so the parser just gives up and returns an

Re: [protobuf] Options

2010-01-31 Thread Kenton Varda
We'd like to make it possible to override options from the command-line, but no one has gotten around to implementing it. How best to do this is unclear, particularly when you consider message-level and field-level options as well. What should the flag syntax be to, say, set packed = true on all

Re: [protobuf] Re: Problems de-serialising a string, C++

2010-02-01 Thread Kenton Varda
. Regards, Iain On 29 January 2010 19:20, Kenton Varda ken...@google.com wrote: Sorry, I can only debug something small, but your example is 1000 lines of code, most of it unrelated to protobufs. Please reduce this to a program that simply initializes your message, writes it to a file

Re: [protobuf] Re: How can I reset a FileInputStream?

2010-02-01 Thread Kenton Varda
On Sat, Jan 30, 2010 at 3:03 PM, Jacob Rief jacob.r...@gmail.com wrote: Please just don't add anything new. If you are unhappy with what ZeroCopy{Input,Output}Stream provide, you can always just create your own stream framework to use. Well, I have to live with that decision. Maybe in

Re: Fwd: [protobuf] Re: Cross-compiling protobuf to 32-bit

2010-02-01 Thread Kenton Varda
: Fri, Jan 29, 2010 at 11:27 PM Subject: Re: [protobuf] Re: Cross-compiling protobuf to 32-bit To: Kenton Varda ken...@google.com Hi. And when you configure other autotool-based packages the same way, it works? Yes, it is. You said you were using the -m32 flag. Where

Re: [protobuf] Unittests failing on armel architecture

2010-02-01 Thread Kenton Varda
On Mon, Feb 1, 2010 at 1:22 PM, Iustin Pop iu...@k1024.org wrote: Hi, I'm one of the Debian maintainers for protobuf and 2.3.0 fails during unittests on the armel architecture (only on it). This might be a host issue or a CFLAGS issue (we had something like this for sh4, where '-mieee' is

Re: [protobuf] Unittests failing on armel architecture

2010-02-01 Thread Kenton Varda
On Mon, Feb 1, 2010 at 2:42 PM, Kenton Varda ken...@google.com wrote: On Mon, Feb 1, 2010 at 1:22 PM, Iustin Pop iu...@k1024.org wrote: Hi, I'm one of the Debian maintainers for protobuf and 2.3.0 fails during unittests on the armel architecture (only on it). This might be a host issue

Re: [protobuf] How to use Protocol Buffers in my legacy c program

2010-02-01 Thread Kenton Varda
Either approach can work. It depends on whether you're willing to switch to a C++ compiler, whether your C code compiles correctly when interpreted as C++, and which protobuf interface you like better. If your app is pure C than I'd think using protobuf-c would be easier, but I haven't used it

Re: [protobuf] Re: ProtocolBuffer repeated tasks in Java..

2010-02-02 Thread Kenton Varda
On Tue, Feb 2, 2010 at 12:54 AM, Mohan mohan.narayanasw...@credit-suisse.com wrote: I have a situation to create 1000's of objects inside loop, I am bit worried cause those manny builder objects are also created. is there any workaround for that? With a modern JVM, creating short-lived

Re: [protobuf] Mac OS X: Compilation as 32 bit lib

2010-02-02 Thread Kenton Varda
It's up to the compiler what kind of binaries it wants to build. There's probably some flag you can pass to make it build 32-bit. You could give this flag to the configure script like: ./configure CXXFLAGS=--compiler-flag LDFLAGS=--liker-flag I don't know what flags you need -- check your

Re: [protobuf] Error in compiling protobuf example

2010-02-03 Thread Kenton Varda
/protobuf-2.3.0/examples:1015:15$ On Tue, Feb 2, 2010 at 1:38 PM, Kenton Varda ken...@google.com wrote: What does protoc --version print? On Tue, Feb 2, 2010 at 10:31 AM, hap 497 hap...@gmail.com wrote: Hi, I am trying to compile protobuf cpp example. $ cd /media/EXTDIV/src/protobuf-2.3.0

Re: [protobuf] Error in compiling protobuf example

2010-02-03 Thread Kenton Varda
instead in /meda/EXTDIV/bin', I am not sure if that is a problem. And I am using ubuntu 9.10 which has gcc 4.4. On Wed, Feb 3, 2010 at 10:35 AM, Kenton Varda ken...@google.com wrote: Did you previously compile the examples with an older protoc? You need to make clean before trying to compile

Re: [protobuf] app engine

2010-02-04 Thread Kenton Varda
You need to ask the appengine people about this. On Thu, Feb 4, 2010 at 7:27 AM, alf alberto@gmail.com wrote: Hi, Any Idea of when will be available protol buffers in appenige natively. thanks -- You received this message because you are subscribed to the Google Groups Protocol

Re: [protobuf] 2.3.0 examples java code can't build?

2010-02-04 Thread Kenton Varda
What does protoc --version say? On Thu, Feb 4, 2010 at 6:09 PM, Yang Y tedd...@gmail.com wrote: I downloaded the source, installed on my box, but it gave me the following error $ echo $CLASSPATH :../java/target/protobuf-java-2.3.0.jar $ uname -a Linux yyang-laptop

Re: [protobuf] protoc.exe 2.3.0 doesn't generate parseFrom methods when output is cpp

2010-02-05 Thread Kenton Varda
The methods are on the parent class, google::protobuf::MessageLite. (It is a parent class of non-line messages as well.) On Fri, Feb 5, 2010 at 10:47 AM, Animosity animosi...@gmail.com wrote: So I've downloaded the 2.3.0 version of the win binary I've created a tutorial.proto file (

Re: [protobuf] protoc.exe 2.3.0 doesn't generate parseFrom methods when output is cpp

2010-02-05 Thread Kenton Varda
s/non-line/non-lite/ On Fri, Feb 5, 2010 at 11:14 AM, Kenton Varda ken...@google.com wrote: The methods are on the parent class, google::protobuf::MessageLite. (It is a parent class of non-line messages as well.) On Fri, Feb 5, 2010 at 10:47 AM, Animosity animosi...@gmail.com wrote: So

Re: [protobuf] 1 failed test, CommandLineInterfaceTest.GeneratorPluginNotFound

2010-02-06 Thread Kenton Varda
Please provide more information: - What OS? - What error messages did the test print before failing? On Sat, Feb 6, 2010 at 12:16 PM, idleman evoo...@gmail.com wrote: Hi everyone, I have been playing around with protobuf a while and should today update from 2.2.0 to 2.3.0. Everything

Re: [protobuf] protobuf2.3.0 crashes on using extensions

2010-02-08 Thread Kenton Varda
You need to use AddExtension() to add a new value to a repeated field. SetExtension() is for modifying an existing value. In fact, you're supposed to pass the index of the value you want to modify to SetExtension, e.g.: fltData.SetExtension(FilterData::filter_columns, 5, TEST); Due to a bug

Re: [protobuf] Re: 1 failed test, CommandLineInterfaceTest.GeneratorPluginNotFound

2010-02-08 Thread Kenton Varda
On Mon, Feb 8, 2010 at 1:35 PM, idleman evoo...@gmail.com wrote: c:\protobuf-2.3.0\src\google\protobuf\compiler \command_line_interface_unittest.cc(341): error: Value of: expected_substring Actual: --badplug_out: prefix-gen-badplug: The system cannot find the file specified. Expected: a

Re: [protobuf] Re: 1 failed test, CommandLineInterfaceTest.GeneratorPluginNotFound

2010-02-08 Thread Kenton Varda
On Mon, Feb 8, 2010 at 3:59 PM, idleman evoo...@gmail.com wrote: hehe no, xxx = The system cannot find the file specified on Swedish: Det går inte att hitta filen , I have a Swedish installation of windows, I assumed it would not do any help so I just removed it. Ah, then the problem is

Re: [protobuf] Re: Protocol buffer for symbian

2010-02-09 Thread Kenton Varda
for symbian, which source code I need to build to get protoc.exe for symbian. I may be asking too many questions, but please help me in this regard. Thanks in advance Vinayaka Karjigi On Feb 10, 12:02 am, Kenton Varda ken...@google.com wrote: I imagine that the lite version of protobufs should

Re: [protobuf] Using Protocol Buffers across OS and Technologies

2010-02-09 Thread Kenton Varda
On Tue, Feb 9, 2010 at 8:32 PM, Kartik Iyer iyerkart...@gmail.com wrote: My requirement : I have a .NET client( Windows) and my server is a C++ server running on Unix (listening on a port). Wanted to understand if I can use protocol buffers to transport the requests from client to server

Re: [protobuf] Using Protocol Buffers across OS and Technologies

2010-02-09 Thread Kenton Varda
the network. On Tue, Feb 9, 2010 at 8:48 PM, Kartik Iyer iyerkart...@gmail.com wrote: Thank Kenton. This tutorial only has C++,Java and Python examples, I want to look at a .NET (C#) example, client sending request to another OS. On Wed, Feb 10, 2010 at 10:08 AM, Kenton Varda ken...@google.com

Re: [protobuf] ProtocolBuffer + compression in hadoop?

2010-02-18 Thread Kenton Varda
, in compression or non-compression mode, the dumped out bytestream is the same. On Thu, Feb 18, 2010 at 12:03 PM, Kenton Varda ken...@google.com wrote: You should verify that the bytes that come out of the InputStream really are the exact same bytes that were written by the serializer

Re: [protobuf] how to get RepeatedField object

2010-02-18 Thread Kenton Varda
On Wed, Feb 17, 2010 at 12:19 AM, Romain Francois romain.francois.r.enthusi...@gmail.com wrote: On 02/17/2010 12:51 AM, Kenton Varda wrote: The Reflection interface already provides a way -- FieldSize() and GetRepeatedX(). The only problem is that it's a bit slower than the generated

Re: [protobuf] ProtocolBuffer + compression in hadoop?

2010-02-19 Thread Kenton Varda
to delimit the input? I'm not familiar with SplitterInputStream, but I'm wondering if it does the right thing for this to work. --Chris On Thu, Feb 18, 2010 at 12:56 PM, Kenton Varda ken...@google.com wrote: Please reply-all so the mailing list stays CC'd. I don't know anything about

Re: [protobuf] ProtocolBuffer + compression in hadoop?

2010-02-19 Thread Kenton Varda
at the byte stream itself can we figure it out. but when we write the stream, the underlying stream could insert some markers itself, and utilize it later. On Fri, Feb 19, 2010 at 2:16 AM, Kenton Varda ken...@google.com wrote: Two options: 1) Do not use parseFrom(InputStream). Use

Re: [protobuf] Can I use Protocol Buffers with Go ( golang.org )?

2010-02-19 Thread Kenton Varda
This is up to the Go developers. You'll have to ask them. On Fri, Feb 19, 2010 at 6:09 PM, hutuworm hutuw...@gmail.com wrote: Since I've not found any information about Protocol Buffers with Go on the project page, so please help me to find the answer. Thanks. -- You received this

Re: [protobuf] New lightweight Java / J2ME port

2010-02-22 Thread Kenton Varda
Cool! I've added this to the list: http://code.google.com/p/protobuf/wiki/ThirdPartyAddOns On Sat, Feb 20, 2010 at 8:30 AM, Ralf ralf.kist...@gmail.com wrote: I created a new lightweight Java port, specifically intended for J2ME. It is not ready for production yet, but comments are welcome.

Re: [protobuf] ANN: Protocol Buffer support in RCF 1.2

2010-02-22 Thread Kenton Varda
I've added this to the RPC system list: http://code.google.com/p/protobuf/w/edit/ThirdPartyAddOns On Sat, Feb 20, 2010 at 2:08 AM, Jarl Lindrud jarl.lind...@gmail.comwrote: Hi all, I would like to announce native Protocol Buffer support in RCF (Remote Call Framework) 1.2. RCF is a portable

Re: [protobuf] Construct return message using Descriptors.ServiceDescriptor

2010-02-22 Thread Kenton Varda
Right, Descriptor.toProto() returns a DescriptorProto, which is itself a protobuf type. So, calling newBuilderForType() on that is going to return a builder for DescriptorProto, not a builder for the type described. What you want is com.google.protobuf.DynamicMessage. Note that DynamicMessage

Re: [protobuf] Stopping MSVC from dropping unreferenced objects

2010-02-22 Thread Kenton Varda
, Mark On Tue, Feb 23, 2010 at 10:12 AM, Kenton Varda ken...@google.com wrote: My only guess is that your protobuf type wasn't actually referenced anywhere in your program and so was dropped from the binary. Some linkers do this. But it's weird that you have a pointer to an object whose class

Re: [protobuf] Re: Construct return message using Descriptors.ServiceDescriptor

2010-02-23 Thread Kenton Varda
(But to answer your question: Compiled-in types are almost always faster than DynamicMessage.) On Tue, Feb 23, 2010 at 4:27 PM, Kenton Varda ken...@google.com wrote: I'm not sure how your approach works, but since it looks like you're using Java reflection, my guess is that it will only work

Re: [protobuf] Re: Construct return message using Descriptors.ServiceDescriptor

2010-02-24 Thread Kenton Varda
and I have method name. ServiceDescriptor has descriptors of all types I possibly need, but unfortunately I looks like there is no way to construct message from byte array having MessageDescriptor (which I can get from ServiceDescriptor). On Feb 23, 7:28 pm, Kenton Varda ken...@google.com wrote

Re: [protobuf] How do I use the add method on a repeating bytes field?

2010-02-25 Thread Kenton Varda
Actually, it's append(), not add(): a2.device_tokens.append(a byte string) On Thu, Feb 25, 2010 at 1:55 PM, Kenton Varda ken...@google.com wrote: Bytes are represented using the str type. So you do: a2.device_tokens.add(a byte string) On Thu, Feb 25, 2010 at 9:09 AM, Garry ga

Re: [protobuf] CodedInputStream hanging in constructor

2010-02-25 Thread Kenton Varda
Weird, read() on a socket should return as soon as *any* data is available, not wait until the entire buffer can be filled. Have you set some unusual flags on your socket which may be causing it to behave this way? On Thu, Feb 25, 2010 at 5:20 PM, Patrick schultz.patr...@gmail.com wrote: When

Re: [protobuf] Re: CodedInputStream hanging in constructor

2010-02-25 Thread Kenton Varda
that the buffer wasn't being flushed; I should of realized this earlier. Any reason why the Java CodedInputStream has a flush method but the c+ + API has no equivalent? On Feb 25, 9:04 pm, Kenton Varda ken...@google.com wrote: Weird, read() on a socket should return as soon as *any* data

Re: [protobuf] Re: protoc plugin compiler extension framework

2010-02-26 Thread Kenton Varda
documentation. at the moment i am completely lost how to begin to write the plugin. but i dont want to whine: protobufs other documentation is excellent, so maybe i am just getting too comfortable ;) On Jan 6, 7:01 pm, Kenton Varda ken...@google.com wrote: Yes. Sorry, I haven't had a chance

Re: [protobuf] Feature Request: Iterating over files in a virtual directory

2010-02-27 Thread Kenton Varda
Why does this need to be built into DiskSourceTree? Just map the virtual path back to a disk path, then use the OS APIs to iterate over the directory. On Sat, Feb 27, 2010 at 6:33 AM, Hassan Syed h.a.s...@gmail.com wrote: Hello Kenton Co, I was wondering if their exists, or if I may request

Re: [protobuf] strange encoding

2010-02-28 Thread Kenton Varda
On Sun, Feb 28, 2010 at 3:47 AM, adamdms adam.kwintkiew...@gmail.comwrote: I created (from tutorial example) below message. Person ID: 1 Name: Adam E-mail address: adam...@tlen.pl Home phone #: 12345 Mobile phone #: Person ID: 2 Name: Honorata E-mail address: hon...@wp.pl

Re: [protobuf] Re: Feature Request: Iterating over files in a virtual directory

2010-03-02 Thread Kenton Varda
trying to benefit from protobuf as a more extensible and generic platform for creating types usable not only serving the purpose of a over-the-wire format and a portable message specification. On Sat, Feb 27, 2010 at 8:47 PM, Kenton Varda ken...@google.com wrote: Why does this need to be built

Re: [protobuf] Issue with protobuf-2.3.0: Problem running 'configure' on Solaris 10

2010-03-03 Thread Kenton Varda
Please check config.log for a more detailed error message. On Wed, Mar 3, 2010 at 7:43 AM, Steven Ong stevenong2...@gmail.com wrote: Hi all, I tried to run 'configure' for the 'protobuf-2.3.0' on an Intelx86 and Solaris 10 machine. It's failed and I saw the following error message:

Re: [protobuf] Using std::string as a zero-copy buffer

2010-03-04 Thread Kenton Varda
Sean: The Google-internal version of this function wouldn't work for you because we actually use an alternate (non-COW) string class. Also, our resize function violates aliasing rules, which may be a problem if you don't use -fno-strict-aliasing. On Thu, Mar 4, 2010 at 10:09 AM, Jason Hsueh

Re: [protobuf] Protbuf 2.1.0 + Resin + Solaris + Jvm5 = SIGBUS Jvm Crash

2010-03-05 Thread Kenton Varda
This was fixed in 2.3.0. On Fri, Mar 5, 2010 at 7:32 AM, Franz See franz@gmail.com wrote: I don't know where to start. Any ideas? # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGBUS (0xa) at pc=0x6bed752c, pid=467, tid=42 # # Java VM: Java HotSpot(TM)

Re: [protobuf] How to compile protobuf using g++ in windows

2010-03-08 Thread Kenton Varda
You need to use either Cygwin or MinGW+MSYS. Either of these will be able to run the configure script and make just like on Linux. On Mon, Mar 8, 2010 at 6:08 AM, Chiang chiangk...@gmail.com wrote: Hi there, Does anyone know how to compile protobuf using g++ in windows? I have an

Re: [protobuf] Debugging invalid UTF-8 data

2010-03-08 Thread Kenton Varda
Protocol Buffers are binary data, not text. You can't store them in String (or CharSequence) objects because those are meant only for Unicode text. If CMeCab tries to transfer protobuf messages as Strings then it is, unfortunately, broken. If you want to figure out how you are hitting that log

Re: [protobuf] Debugging invalid UTF-8 data

2010-03-09 Thread Kenton Varda
: http://www.twitter.com/franz_see On Tue, Mar 9, 2010 at 3:13 PM, Kenton Varda ken...@google.com wrote: Protocol Buffers are binary data, not text. You can't store them in String (or CharSequence) objects because those are meant only for Unicode text. If CMeCab tries to transfer protobuf

Re: [protobuf] how to represent type like decimal?

2010-03-09 Thread Kenton Varda
You would have to manually convert it to/from a string. Or, for more efficiency, you could convert to a byte array (each byte being a base-256 digit) or perhaps a packed repeated fixed64. The protobuf library doesn't provide any helpers for this but they should not be too hard to write. On Tue,

Re: [protobuf] Re: Any sample messages/data for optimization out there?

2010-03-09 Thread Kenton Varda
On Tue, Mar 9, 2010 at 3:41 AM, Evan Jones ev...@mit.edu wrote: On Mar 9, 2010, at 3:21 , Paul Rudd wrote: Which actually brings up a feature request - MessageLite.Builder.mergeDelimitedFrom(InputStream) is too inefficient for small streamed messages, since it creates a new CodedInputStream

Re: [protobuf] Support for J2ME

2010-03-09 Thread Kenton Varda
There are three J2ME implementations on the third-party list: http://code.google.com/p/protobuf/wiki/ThirdPartyAddOns I'd be happy to list yours as well if you'd like. On Tue, Mar 9, 2010 at 5:17 PM, Igor Gatis igorga...@gmail.com wrote: Hi protobuf team, Have you guys considered

Re: [protobuf] Support for J2ME

2010-03-09 Thread Kenton Varda
such support? The changes I've made seem to match with the current architecture. I've added extended protoc to accept a new file option java_platform (where user may specify J2SE(default) or J2ME) which makes it produce J2ME compatible sources. On Tue, Mar 9, 2010 at 10:29 PM, Kenton Varda ken

Re: [protobuf] Variant-length encoding : is it OK to be wasteful?

2010-03-10 Thread Kenton Varda
I'd be careful about this. Currently parsers will accept it, but there are good arguments for why perhaps they should not. In UTF-8, overlong byte sequences are rejected for security reasons. The same security reasons don't quite apply to protobufs but nevertheless, relying on this seems like a

Re: [protobuf] Variant-length encoding : is it OK to be wasteful?

2010-03-10 Thread Kenton Varda
On Wed, Mar 10, 2010 at 11:03 AM, Evan Jones ev...@mit.edu wrote: Kenton Varda wrote: The output of your serializer will no longer be canonical. People won't be able to, say, used serialized messages as map keys or to compute hash values. That alone is probably enough reason not to do

Re: [protobuf] Disabling the 'gen_cpp' output of Services?

2010-03-10 Thread Kenton Varda
Note that to write your plugin, you do *not* have to copy the CppGenerator sources. Instead, write your plugin to use output_directory-OpenForInsert() to insert additional code into what the C++ code generator already generated. Specifically, you want to insert at the namespace_scope insertion

Re: [protobuf] Re: Issue with protobuf-2.3.0: Problem running 'configure' on Solaris 10

2010-03-10 Thread Kenton Varda
though. Monty On 03/03/2010 11:03 AM, Kenton Varda wrote: Please check config.log for a more detailed error message. On Wed, Mar 3, 2010 at 7:43 AM, Steven Ong stevenong2...@gmail.com mailto:stevenong2...@gmail.com wrote: Hi all, I tried to run 'configure

Re: [protobuf] Support for J2ME

2010-03-11 Thread Kenton Varda
On Wed, Mar 10, 2010 at 1:17 AM, Kenton Varda ken...@google.com wrote: Is your implementation a modification of the official Java implementation? If so, how much is shared? Could you send me a diff via codereview.appspot.com? On Tue, Mar 9, 2010 at 5:46 PM, Igor Gatis igorga...@gmail.com

Re: [protobuf] Disabling the 'gen_cpp' output of Services?

2010-03-11 Thread Kenton Varda
file-service($index$). I'd rather hide the details of descriptor initialization from plugins as it's something that has changed many times and could change again. On Thu, Mar 11, 2010 at 11:07 AM, Andrew Kimpton awkimp...@gmail.comwrote: On Wed, Mar 10, 2010 at 8:50 PM, Kenton Varda ken

Re: [protobuf] Re: Disabling the 'gen_cpp' output of Services?

2010-03-11 Thread Kenton Varda
On Thu, Mar 11, 2010 at 8:01 AM, NoamC noam1...@gmail.com wrote: I am looking for a lightweight RPC in C/C++ between VxWorks and linux (both embedded systems) and started looking at protobuf for this purpose. The 3rd party addons (RPC implementations) I saw in the doc looks either heavy

Re: [protobuf] Re: Disabling the 'gen_cpp' output of Services?

2010-03-11 Thread Kenton Varda
On Thu, Mar 11, 2010 at 11:29 AM, Kenton Varda ken...@google.com wrote: On Thu, Mar 11, 2010 at 8:01 AM, NoamC noam1...@gmail.com wrote: 1. Why was the current method of services deprecated? will it be removed in the future? It's deprecated in favor of code generator plugins

Re: [protobuf] Re: Problem : Serialized in protobuf-net, deserialize in C++ app

2010-03-11 Thread Kenton Varda
OK, so, which pointer is null? We can't do this for you. You are the only one who can run your code in the debugger. If you want us to debug it, you need to provide a small, self-contained example program demonstrating the problem. Just C++ code and input data is needed -- the C# part is not

Re: [protobuf] Re: Problem : Serialized in protobuf-net, deserialize in C++ app

2010-03-11 Thread Kenton Varda
of the CodedInputStream, is null. (the buffer_ field is not null ). since I can't delve into ReadBytes, I have no idea what's causing the access violation On Thu, Mar 11, 2010 at 9:44 PM, Kenton Varda ken...@google.com wrote: OK, so, which pointer is null? We can't do this for you

Re: [protobuf] protobuf license terms

2010-03-11 Thread Kenton Varda
The license is displayed prominently on the project page as well as in the file COPYING.txt which comes with the source package. It is the New BSD license. http://www.opensource.org/licenses/bsd-license.php On Thu, Mar 11, 2010 at 11:56 AM, n179911 n179...@gmail.com wrote: Hi protobuf team,

Re: [protobuf] Disabling the 'gen_cpp' output of Services?

2010-03-11 Thread Kenton Varda
, 2010 at 2:27 PM, Kenton Varda ken...@google.com wrote: On the first call to your descriptor() or GetDescriptor() method, you could look up the ServiceDescriptor in google::protobuf::DescriptorPool::generated_pool(). I think that's what my generated code is essentially now doing : In my

Re: [protobuf] Re: Issue with protobuf-2.3.0: Problem running 'configure' on Solaris 10

2010-03-11 Thread Kenton Varda
in advance for your help. Steven On Mar 10, 11:18 pm, Kenton Varda ken...@google.com wrote: Oops, it looks like it's actually gtest/config.log that you need to look at, since the failure happened when configuring the gtest sub-package. On Wed, Mar 10, 2010 at 7:44 PM, stevenong2007

Re: [protobuf] How to send classes defined in proto over a socket

2010-03-12 Thread Kenton Varda
On what line do you get the error? On Fri, Mar 12, 2010 at 9:29 AM, mk apollo...@gmail.com wrote: Hi, I am trying to send a proto over a socket, but i am getting segmentation error. Could someone please help and tell me what is wrong with this? file.proto message data{ required

Re: [protobuf] How to send classes defined in proto over a socket

2010-03-12 Thread Kenton Varda
Wait. On Fri, Mar 12, 2010 at 9:29 AM, mk apollo...@gmail.com wrote: Hi, I am trying to send a proto over a socket, but i am getting segmentation error. Could someone please help and tell me what is wrong with this? file.proto message data{ required string x1 = 1;

Re: [protobuf] Support for J2ME

2010-03-12 Thread Kenton Varda
On Thu, Mar 11, 2010 at 1:52 PM, Igor Gatis igorga...@gmail.com wrote: *- Why did you eliminate the builder pattern?* To save jar space. J2ME environment is pretty restricted. Many devices have a few kilo bytes size limit (e.g 128K, 256K). An empty class adds about 200 bytes to jar file. The

Re: [protobuf] Re: Protocol buffers performance in python

2010-03-12 Thread Kenton Varda
). After upgrade from 2.0.1 to 2.3.0 we got 4x-6x performance boost (python 2.5.2, Ubuntu 8.04) - it's great! Do you know about Petar's timeline for the new version with more power for Python code? On Jan 20, 10:45 pm, Kenton Varda ken...@google.com wrote: In 2.3.0, the Python implementation

Re: [protobuf] Support for J2ME

2010-03-12 Thread Kenton Varda
This may solve the problem but adding code to every setter may have a significant cost. It's harder to inline the setter this way. But it's hard to say exactly what the cost will be without some sort of benchmarks. On Fri, Mar 12, 2010 at 12:12 PM, Igor Gatis igorga...@gmail.com wrote: I

Re: [protobuf] Please help with serialization/deserialization of classes defined in .proto

2010-03-12 Thread Kenton Varda
Please read the tutorial: http://code.google.com/apis/protocolbuffers/docs/cpptutorial.html On Fri, Mar 12, 2010 at 7:39 PM, mk apollo...@gmail.com wrote: Hi, Could someone please help me with serialization/deserialization classes defined in .proto (protobuf). here is an exp that I am

Re: [protobuf] chinese documentation

2010-03-15 Thread Kenton Varda
Having Chinese documentation would be great. I would be very happy to link to your documentation if you put it on the internet somewhere. For example, you could put it on Google Sites, or maybe create a separate code.google.comproject to use its wiki. This way you can manage your documents

Re: [protobuf] Re: Issue with protobuf-2.3.0: Problem running 'configure' on Solaris 10

2010-03-15 Thread Kenton Varda
You might be able to solve this by setting LD=gcc, like: ./configure LD=gcc On Sun, Mar 14, 2010 at 4:00 PM, Steven Ong stevenong2...@gmail.com wrote: One more thing... I discovered that the whole root cause is as the following: Although the code was compiled by CSW gcc4, Sun's linker

Re: [protobuf] Re: Problem : Serialized in protobuf-net, deserialize in C++ app

2010-03-15 Thread Kenton Varda
I actually maintain the project files using VS2008, but I run a hack script that downgrades them to VS2005 (by simply replacing the version number) before release so that VS2005 users can use the package. I'm confused about how you managed to compile the project using VS2008 without it

Re: [protobuf] Support for J2ME

2010-03-15 Thread Kenton Varda
to your implementation separately from the protobuf release cycle, which is probably far too slow for a new project. With the decentralized approach, you do not have to depend on me and I do not have to depend on you. On Fri, Mar 12, 2010 at 9:10 PM, Kenton Varda ken...@google.com wrote

Re: [protobuf] Re: Options

2010-03-15 Thread Kenton Varda
=true is applied to a non- repeated or non-primitive field). I don't have a strong opinion about delimiters in the option syntax; I just chose some that should hopefully work without ambiguity. -dave On Jan 31, 6:58 pm, Kenton Varda ken...@google.com wrote: We'd like to make it possible

Re: [protobuf] DynamicServiceFactory

2010-03-15 Thread Kenton Varda
What would this return? What are MyRpcOne and MyRpcTwo? On Mon, Mar 15, 2010 at 3:19 PM, rthompson.dtisoft@gmail.com rthompson.dtisoft@gmail.com wrote: DynamicServiceFactory-New(MyRpcOne,MyRpcTwo,...) This type of functionality doesn't appear to exist. Is there an alternate way to

Re: [protobuf] Support for J2ME

2010-03-16 Thread Kenton Varda
. It makes more sense to keep my implementation in a separated project. Thanks for all the advices. Thanks, -Gatis On Mon, Mar 15, 2010 at 7:54 PM, Kenton Varda ken...@google.com wrote: I wonder if we should consider making mutable-message mode a feature of the base implementation, rather

Re: [protobuf] Re: Problem : Serialized in protobuf-net, deserialize in C++ app

2010-03-16 Thread Kenton Varda
compilation failed with the 2005 version. Linking with the 2005 version failed, the linker error I got was something to do with std::Base_container contstructor/destructor. I guess that's what changed between VS2005 and VS2008. On Tue, Mar 16, 2010 at 12:16 AM, Kenton Varda ken...@google.com

Re: [protobuf] kInitialSize in RepeatedField

2010-03-16 Thread Kenton Varda
You can, of course, modify the value all you want in your copy of the code. However, the value is only useful if it is a compile-time constant, so we can't really parameterize it in general. Note that if you change the value, you must recompile libprotobuf and anything you have that depends on

Re: [protobuf] kInitialSize in RepeatedField

2010-03-16 Thread Kenton Varda
, Kenton Varda ken...@google.com wrote: You can, of course, modify the value all you want in your copy of the code. However, the value is only useful if it is a compile-time constant, so we can't really parameterize it in general. Note that if you change the value, you must recompile libprotobuf

Re: [protobuf] LNK2019 and LNK2001 problems in MSVS2008

2010-03-16 Thread Kenton Varda
You need to link the example against libprotobuf.lib. On Tue, Mar 16, 2010 at 1:43 PM, mohito moh...@inbox.ru wrote: Hi. I use MSVS2008 and I have next problem: I installed protocol buffers from vsprojects folder in Debug mode, like it was recomended in readme.txt. Next step I took

Re: [protobuf] Re: Problem : Serialized in protobuf-net, deserialize in C++ app

2010-03-16 Thread Kenton Varda
On Tue, Mar 16, 2010 at 6:11 PM, Austin Ziegler halosta...@gmail.comwrote: On Tue, Mar 16, 2010 at 3:24 PM, Kenton Varda ken...@google.com wrote: I do test each release with both VS2005 and VS2008, and haven't seen that problem before. Odd. Do you have 2005 and 2008 on a single system

Re: [protobuf] Re: LNK2019 and LNK2001 problems in MSVS2008

2010-03-17 Thread Kenton Varda
You need to edit the project settings to tell it to actually link in libprotobuf.lib. Simply putting it in a particular directory is not enough. Please consult the MSVC docs. You don't need libprotobuf-lite.lib (unless you're using optimize_for = LITE_RUNTIME) or libprotoc.lib (unless you're

Re: [protobuf] protobuf and nixysa ?

2010-03-17 Thread Kenton Varda
For GWT in particular, you might ask them directly if they have any plans with protobufs. On Wed, Mar 17, 2010 at 12:45 AM, Romain Francois romain.francois.r.enthusi...@gmail.com wrote: Hello, I was wondering if anyone tried to use nixysa to build NPAPI plugins for compatible browsers to

Re: [protobuf] Re: kInitialSize in RepeatedField

2010-03-17 Thread Kenton Varda
versions of protobufs actually used this approach. Unfortunately, having the extra vtable pointer in every object increased memory usage enough to significantly affect performance. Thorsten On Mar 16, 10:02 pm, Kenton Varda ken...@google.com wrote: We can't make it a template parameter because

Re: [protobuf] modifying lists within a message

2010-03-17 Thread Kenton Varda
When you call Builder.getXXXList(), the underlying list is still modifiable because it's still being built, so it has to convert the list to unmodifiable before returning. But when you call Builder.build(), the underlying list is made unmodifiable. Thus the message's getXXXList() does not need

Re: [protobuf] Re: Problem : Serialized in protobuf-net, deserialize in C++ app

2010-03-17 Thread Kenton Varda
On Tue, Mar 16, 2010 at 7:44 PM, Austin Ziegler halosta...@gmail.comwrote: Except in the case where the user has both VS2005 and VS2008 installed on the same system. Oh, right. Sorry. Urgh. I'll think about it. This is the first I've heard of this problem, though. Is it really that

Re: [protobuf] PreProcessor for TextFormat files

2010-03-17 Thread Kenton Varda
If you're asking whether text format supports expression evaluation, the answer is no. Implementing this would probably add more complication to the parser than it already has, and it would never be good enough to satisfy everyone. If you need computed values, you should write code in a real

Re: [protobuf] modifying lists within a message

2010-03-17 Thread Kenton Varda
On Wed, Mar 17, 2010 at 12:59 PM, Ron Reynolds tequila...@ymail.com wrote: seems odd that you can delete all via clearXXX() or add via addAllXXX() and addXXX() but not remove a single element by index... Our experience is that if we provide a way to remove a single element by index, people

Re: [protobuf] modifying lists within a message

2010-03-17 Thread Kenton Varda
:31 PM, Kenton Varda ken...@google.com wrote: On Wed, Mar 17, 2010 at 12:59 PM, Ron Reynolds tequila...@ymail.comwrote: seems odd that you can delete all via clearXXX() or add via addAllXXX() and addXXX() but not remove a single element by index... Our experience is that if we provide a way

Re: [protobuf] Re: Problem : Serialized in protobuf-net, deserialize in C++ app

2010-03-17 Thread Kenton Varda
OK, can you file an issue report, then? I suppose it would not be too terrible to make this part of the release post-processing step. On Wed, Mar 17, 2010 at 11:19 AM, Austin Ziegler halosta...@gmail.comwrote: On Wed, Mar 17, 2010 at 1:07 PM, Kenton Varda ken...@google.com wrote: On Tue, Mar

Re: [protobuf] signing protobuf messages

2010-03-18 Thread Kenton Varda
All implementations are advised to output tags in order by field number, in which case they should all produce the same bytes... unless there are unknown fields, which are always written at the end. In C++ you can use DiscardUnknownFields() to make sure all unknown fields are discarded. But I

Re: [protobuf] modifying lists within a message

2010-03-18 Thread Kenton Varda
) option (which i'm pretty sure is more costly than removing a single element from an ArrayList by index...). -- *From:* Kenton Varda ken...@google.com *To:* Ron Reynolds tequila...@ymail.com *Cc:* protobuf@googlegroups.com *Sent:* Wed, March 17, 2010 1:32:50 PM

Re: [protobuf] Re: PreProcessor for TextFormat files

2010-03-19 Thread Kenton Varda
TextFormatter runs? I guess it's an overall design question. I realize this is not the intention of ProtoBuf but the simplistic file format lends itself well to disseminating configuration information across many processing nodes. On Mar 17, 10:09 am, Kenton Varda ken...@google.com wrote

<    3   4   5   6   7   8   9   10   11   >