[protobuf] iSeries port

2010-08-10 Thread ury
Hi, I am trying to port the C++ protobuf runtime library to iSeries. (aka AS/400). Have anyone does this before ? I'd be glad to hear any advice. Thanks ! -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to

Re: [protobuf] Setting a nested message field without making a pointer?

2010-08-10 Thread Kenton Varda
On Wed, Aug 4, 2010 at 6:50 AM, mark.t.macdon...@googlemail.com < mark.t.macdon...@googlemail.com> wrote: > Is there a way I can do this without creating a Pixel pointer? > Something like this (which doesn't compile): > > fractal.add_pixels(); > fractal.pixels(0).set_red(54); > You want: fracta

Re: [protobuf] TextMate bundle with semi-smart syntax highlighting

2010-08-10 Thread Kenton Varda
I added this to the third-party wiki. There are several other IDE plugins listed there. I'd rather not add this to the main project because I'm really trying to keep it minimal and keep the maintainership clear. Thanks! On Wed, Aug 4, 2010 at 7:00 PM, Michael Edgar wrote: > I put together a T

Re: [protobuf] Re: Java implementation questions

2010-08-10 Thread Kenton Varda
Another big advantage of writing the size first is that you can potentially write parsers which skip over sub-messages quickly, and perhaps parse them lazily. Currently the Google-provided implementations do not implement this, but there are some third-party implementations that use lazy parsing.

Re: [protobuf] How to use SetString reflection method

2010-08-10 Thread Kenton Varda
In other words: reflection->SetString(&fractal_handle,fractal.GetDescriptor()->FindFieldByName("name"),"Mandlebrot"); Note the & before fractal_handle. On Fri, Aug 6, 2010 at 8:34 AM, Jason Hsueh wrote: > The setters need a (non-const) pointer to the message object. It appears > fractal_handle

Re: [protobuf] add Common Lisp protobuf implementation

2010-08-10 Thread Kenton Varda
Looks like Jason added this but forgot to say so (or said so privately?). Anyway, it's there now! On Fri, Aug 6, 2010 at 10:53 AM, Robert Brown wrote: > Please add an entry to the ThirdPartyAddOns wiki page in the > programming languages section for the following protocol buffer > implementation

Re: [protobuf] Python script as a compiler plugin

2010-08-10 Thread Kenton Varda
On Thu, Aug 5, 2010 at 6:26 AM, Ralf wrote: > However, I have no idea how to do the same in Windows. I couldn't get > it to work using batch files - I think it breaks the standard input/ > output. > Could you explain this more? Batch files should be the correct approach on Windows. -- You rec

Re: [protobuf] Setting extensions for empty messages in python

2010-08-10 Thread Kenton Varda
On Tue, Aug 10, 2010 at 2:48 PM, Kenton Varda wrote: > Members that start with an underscore are private and may go away in the > future. Use SetInParent(), which is explicitly meant for this exact > purpose: > > a.Extensions[F].SetInParent(); > Er, without the semicolon. Sorry, I'm used to

Re: [protobuf] Setting extensions for empty messages in python

2010-08-10 Thread Kenton Varda
Members that start with an underscore are private and may go away in the future. Use SetInParent(), which is explicitly meant for this exact purpose: a.Extensions[F].SetInParent(); On Thu, Aug 5, 2010 at 10:56 AM, CARSON DEAN FENIMORE wrote: > Let's say you have a message (A) that has an exte

Re: [protobuf] Where can I get protocol buffer 2.3.0 jar file?

2010-08-10 Thread Kenton Varda
No, we currently only release source code. On Tue, Aug 10, 2010 at 8:04 AM, Prakash Rao wrote: > Hi, > I don't see Google providing protocol buffer jar file (for java > implementation). I created the jar file from source using mvn. Usually > for open source projects there would be src & bin and h

Re: [protobuf] Ant task to create java stub from .proto files in all platforms

2010-08-10 Thread Kenton Varda
On Tue, Aug 10, 2010 at 8:34 AM, Prakash Rao wrote: > I saw the below ant task and it uses protoc.exe, which is only for > windows. > protoc runs on all platforms, not just windows. You have to compile it from sources on other platforms. -- You received this message because you are subscribed

Re: [protobuf] Re: writing a rpc plugin

2010-08-10 Thread Kenton Varda
There is no tutorial, but you might look at one of the third-party packages which has implemented a plugin successfully to see what they did. If someone writes a tutorial I'd be happy to link to it! On Sun, Aug 8, 2010 at 3:08 PM, Yegor wrote: > I think we're in the same boat. All I've found is

Re: [protobuf] flushing the data

2010-08-10 Thread Kenton Varda
The protobuf library writes all data to the file descriptor before returning from SerializeToFileDescriptor(). So, the problem is not in protobufs. Sorry. On Tue, Aug 10, 2010 at 10:58 AM, nirajshr wrote: > > > Particularly, I am using the SerializeToFileDescriptor() function to > send the ser

Re: [protobuf] Ant task to create java stub from .proto files in all platforms

2010-08-10 Thread Josh Hartman
Actually, I'm going to have to address this pretty soon for my company as well. The biggest problem is compatibility between the different OSes. We don't have to worry about Windows, but we will have to support OSX, Linux, and probably Solaris for building .proto files. With static linking it's def

[protobuf] flushing the data

2010-08-10 Thread nirajshr
Particularly, I am using the SerializeToFileDescriptor() function to send the serialized data over a socket interface. The problem is that the data does not get sent before I explicitly close the socket using close(fileDescriptor). I even tried letting the google protocol buffer object go out of

[protobuf] Ant task to create java stub from .proto files in all platforms

2010-08-10 Thread Prakash Rao
Hi, Is there a way to automate java stub creation from .proto files using ant task in all platforms? And can this be done without using protoc.exe, which is platform specific? I saw the below ant task and it uses protoc.exe, which is only for windows. And has any one tried this (or an

[protobuf] Where can I get protocol buffer 2.3.0 jar file?

2010-08-10 Thread Prakash Rao
Hi, I don't see Google providing protocol buffer jar file (for java implementation). I created the jar file from source using mvn. Usually for open source projects there would be src & bin and here I see only the source. Is protocol buffer jar file available in some place? I just want to avoid crea