No, the plugin would be in pure Julia. The protoc compiler would send events to the plugin over stdin as it parses the .proto file, and the plugin sends out generated code over stdout. This exchange happens using protobuf messages. The documentation I pointed to explains the input and output message structures.
- Tanmay On Monday, February 24, 2014 2:06:45 PM UTC+5:30, Uwe Fechner wrote: > > Interesting. Shall the protoc plugin be written in C++? > > Uwe > > On Monday, February 24, 2014 6:18:18 AM UTC+1, Tanmay K. Mohapatra wrote: >> >> There is no protoc parser in Julia yet. I intend to develop it as a >> plugin to the protoc parser as described here: >> https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.compiler.plugin.pb >> . >> >> I shall try it out with your .proto files. >> >> Best, >> Tanmay >> >> >> On Monday, February 24, 2014 12:33:23 AM UTC+5:30, Uwe Fechner wrote: >>> >>> That's a good start. >>> >>> Perhaps the following file could be used as test case: >>> >>> https://bitbucket.org/ufechner/freekitesim/src/1df579321570a3c7fa2c157416f7326876bb9dda/asset/asset.system.proto?at=master >>> >>> Is there already a piece of code that can parse .proto files in Julia? >>> >>> Regards: >>> >>> Uwe >>> >>> On Sunday, February 23, 2014 6:09:22 PM UTC+1, Tanmay K. Mohapatra wrote: >>>> >>>> I have started working on a pure Julia Protobuf implementation here: >>>> https://github.com/tanmaykm/Protobuf.jl. It's in very early stages, >>>> but I plan to focus on it for the next few weeks. I have put up a few >>>> lines >>>> now about how I plan to develop it in the readme. Would love to hear what >>>> you think of it. >>>> >>>> - Tanmay >>>> >>>> On Sunday, February 23, 2014 10:14:27 PM UTC+5:30, Amit Murthy wrote: >>>>> >>>>> You may want to check out Tanmay's >>>>> https://github.com/tanmaykm/Protobuf.jl >>>>> >>>>> >>>>> On Sun, Feb 23, 2014 at 8:51 PM, Uwe Fechner <[email protected]>wrote: >>>>> >>>>>> Hello, >>>>>> >>>>>> our control and simulation software is highly modular, and we use >>>>>> google protocol buffer >>>>>> encoded messages over ZeroMQ sockets to communicate. >>>>>> >>>>>> What is the best approach to send and receive protobuf encoded >>>>>> messages: >>>>>> >>>>>> a) using one of the C bindings; there are actually three: >>>>>> - http://spbc.sourceforge.net/ >>>>>> - http://code.google.com/p/protobuf-c/ >>>>>> - http://koti.kapsi.fi/jpa/nanopb/ >>>>>> >>>>>> b) using the Python library: >>>>>> >>>>>> https://developers.google.com/protocol-buffers/docs/pythontutorial >>>>>> This one is officially supported by google in contrast to the C >>>>>> bindings >>>>>> >>>>>> c) writing a full protobuf compiler, coder and decoder in Julia >>>>>> directly >>>>>> >>>>>> Any comments welcome. >>>>>> >>>>>> Uwe Fechner >>>>>> >>>>> >>>>>
