Re: Protocol Buffers Compiler Maven Plug-In

2009-01-20 Thread Nat

So is this going anywhere?  Bueller...?  Bueller...?

After my last post I was curious to build my first Maven2 plugin, and
I also now have a working plugin that binds to the generate-sources
phase like Tom's original post in this thread.  I was just about to
(ask to) put it on Codehaus but re-read this thread first and realized
Tom is already in position to do so, so I'll hold off.  However, it
seems like if this is going to be further delayed maybe it makes sense
to pursue this option.  Gregory, I'm sure you are a busy man but do
you have an estimate of when you think you might be able to publish
this?  Or do you think it's a good idea for either myself or Tom to
post to Codehaus/elsewhere in the meantime?

Nat
--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~--~~~~--~~--~--~---



Re: Protocol Buffers Compiler Maven Plug-In

2009-01-20 Thread Kenton Varda
[cc Greg to get his attention]

On Tue, Jan 20, 2009 at 9:35 AM, Nat nharw...@gmail.com wrote:


 So is this going anywhere?  Bueller...?  Bueller...?

 After my last post I was curious to build my first Maven2 plugin, and
 I also now have a working plugin that binds to the generate-sources
 phase like Tom's original post in this thread.  I was just about to
 (ask to) put it on Codehaus but re-read this thread first and realized
 Tom is already in position to do so, so I'll hold off.  However, it
 seems like if this is going to be further delayed maybe it makes sense
 to pursue this option.  Gregory, I'm sure you are a busy man but do
 you have an estimate of when you think you might be able to publish
 this?  Or do you think it's a good idea for either myself or Tom to
 post to Codehaus/elsewhere in the meantime?

 Nat
 


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~--~~~~--~~--~--~---



Re: Generating subclasses of a protocol buffer serialized class

2009-01-20 Thread Kenton Varda
Sorry, but we don't allow subclassing of protocol buffer objects (in any
language).  Allowing this leads to too many fragile base class problems.
If you want to expose all of the fields of your protocol message (which is
what you'd get from subclassing), you can always add an accessor to your
wrapper which returns the wrapped message object.  Then you do not need to
add a new accessor for every new field added.  If you only want to expose
some fields but not others, you could separate your message into two
messages like:

message MyMessage {
  message Public {
// public fields here
  }
  required Public public_fields = 1;
  // private fields here
}

Then your wrapper class can provide a method to access the MyMessage.Public
part but not the rest.

On Sun, Jan 18, 2009 at 5:03 PM, Chris chrisjcoll...@gmail.com wrote:


 Thanks Mark, Its java.  So far people keep recommending me what I am
 already doing (delegation) which is itself not maintainable.  Sounds
 like there is a need for a code generator to generate the delegation
 of those methods you want to expose :-}

 On Jan 18, 2:17 am, Marc Gravell marc.grav...@gmail.com wrote:
  What language are you using? In C#, partial classes are a viable way
  of adding extra logic into generated classes - the protobuf-net
  generator allows this fairly well. In the more general sense, consider
  encapsulation over inheritance, or simply keep the two separate (for
  example, passing the generated object into static methods defined in
  the business class etc),
 
  Marc Gravell
 


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~--~~~~--~~--~--~---



Re: Protocol Buffers Compiler Maven Plug-In

2009-01-20 Thread Nathaniel Harward
I don't really consider this slacking; anything going to the open source
community is a public gift and should be treated as such.  I mostly just
want to avoid fragmentation and having three different plugins doing the
same thing, so that it can be focused and as high-quality as possible.  Even
if it has no tests I'd love to see it as an alpha-release plugin, and
perhaps Tom, myself and others can help out with tests and/or enhancements
to bring it to beta and/or release.

As I said I made one for internal use at my workplace and it will satisfy
our needs until this one pops up.  Thanks in advance to you and Tom (and
anyone else working on it); I'd love to see protobuf gain in popularity and
tooling and in particular replace XML where it makes sense (which is a LOT
of places); I just can't take any more inappropriate use of XML in my life
:)

Nat

On Tue, Jan 20, 2009 at 11:12 AM, Gregory Kick g...@google.com wrote:


 I totally understand the frustration.  This had slipped to the bottom
 of the priorities, but I'm actually working on this stuff today.
 Basically, my plan is to check in the plugin today.  The plugin is
 more or less done, but I have no tests.  (ack!)  I would really,
 really, really appreciate it if somebody could contribute some.  As
 soon as I check in the plugin everybody that expressed interest will
 get a notice about a code review.

 Sorry again for the slacking.

 On Tue, Jan 20, 2009 at 12:54 PM, Kenton Varda ken...@google.com wrote:
  [cc Greg to get his attention]
 
  On Tue, Jan 20, 2009 at 9:35 AM, Nat nharw...@gmail.com wrote:
 
  So is this going anywhere?  Bueller...?  Bueller...?
 
  After my last post I was curious to build my first Maven2 plugin, and
  I also now have a working plugin that binds to the generate-sources
  phase like Tom's original post in this thread.  I was just about to
  (ask to) put it on Codehaus but re-read this thread first and realized
  Tom is already in position to do so, so I'll hold off.  However, it
  seems like if this is going to be further delayed maybe it makes sense
  to pursue this option.  Gregory, I'm sure you are a busy man but do
  you have an estimate of when you think you might be able to publish
  this?  Or do you think it's a good idea for either myself or Tom to
  post to Codehaus/elsewhere in the meantime?
 
  Nat
  
 
 

 


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~--~~~~--~~--~--~---



Re: Quick Hacky text_mode Parse in Python

2009-01-20 Thread Helder Suzuki
I sent a partial patch a while ago and I disappeared without completing the
text_format in python, sorry about that.
So far I've only implemented the tokenizer part (w/ test cases), but anyone
is free to use it to implement the parser part (I'd be really glad), and for
some reason I couldn't set up the codereview (I didn't try hard though). For
various reasons I won't be able to touch it in the next few weeks.
This is such an important feature, specially if you use protobufs for
configuration files, it'd be so handy!

Thanks,
Helder

On Tue, Dec 30, 2008 at 12:19 AM, Piotr Findeisen piotr.findei...@gmail.com
 wrote:




 On Dec 8, 7:27 pm, Petar Petrov pe...@google.com wrote:
  On Mon, Dec 8, 2008 at 10:21 AM, Kenton Varda ken...@google.com wrote:
   Hey Petar, isn't there a patch someone was trying to submit that
 implements
   text format parsing?  (For real, not by wrapping protoc.)  What's the
 status
   of that?
 
  I'll review it today.
  Hopefully the author hasn't forgotten about it.

 Hey!
 This gonna be a feature I miss really much!
 Is there happening anything about this?

 regards!
 Piotr

 


--~--~-~--~~~---~--~~
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...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~--~~~~--~~--~--~---