Re: [protobuf] Apple's Swift Protobuf Plugin

2016-09-22 Thread chai2010
cool!
do you plan support grpc?

thanks!

2016年9月23日星期五, <tkient...@apple.com> 写道:

> If you’re interested in protobuf support for Swift, you might want to take
> a look at the protoc plugin that Apple just open-sourced.
>
> You can find more details at
> https://github.com/apple/swift-protobuf-plugin/
>
> As one of the maintainers, I’m eager to get your help in making this as
> good as it can be.  We plan to develop it completely in the open, so please
> feel free to file github Issues with your questions and ideas and send us
> github Pull Requests with your proposed improvements.
>
> I look forward to working with you,
>
> Tim
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to protobuf+unsubscr...@googlegroups.com
> <javascript:_e(%7B%7D,'cvml','protobuf%2bunsubscr...@googlegroups.com');>.
> To post to this group, send email to protobuf@googlegroups.com
> <javascript:_e(%7B%7D,'cvml','protobuf@googlegroups.com');>.
> Visit this group at https://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.
>


-- 
https://github.com/golang-china/gopl-zh
https://github.com/golang-china
https://github.com/chai2010

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


[protobuf] notepad++ for Protobuf

2015-07-29 Thread chai2010
Support syntax highlighting and functions list panel.

https://github.com/chai2010/notepadplus-protobuf

-- 
https://github.com/golang-china
https://github.com/chai2010

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


Re: [protobuf] Looks for pointers to convert XML to Google Proto Buffers

2015-04-01 Thread chai2010
I have a xml convertor:
https://github.com/chai2010/protorpc.cxx/blob/master/src/google/protobuf/xml/xml_message.h
https://github.com/chai2010/protorpc.cxx/blob/master/src/google/protobuf/xml/xml_message.cc

This is a example:
https://github.com/chai2010/protorpc.cxx/tree/master/tests/xmltest

2015-03-31 14:25 GMT+08:00 Mouli himo...@gmail.com:

 Hi,

 I am looking for a procedure to convert my XML output to GPB format.
 Any pointers / procedure to do that would be helpful.

 Thanks
 Mouli

 --
 You received this message because you are subscribed to the Google Groups
 Protocol Buffers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to protobuf+unsubscr...@googlegroups.com.
 To post to this group, send email to protobuf@googlegroups.com.
 Visit this group at http://groups.google.com/group/protobuf.
 For more options, visit https://groups.google.com/d/optout.




-- 
https://github.com/golang-china
https://github.com/chai2010

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


[protobuf] protoc for Gophers, support `go get`

2015-03-26 Thread chai2010
I create a Go warp for protoc app:
https://github.com/chai2010/protoc

Install protoc is simple:
go get github.com/chai2010/protoc

PS:
Go1.4 for windows donot support statick link with C++.
Need install Go1.5+ for windows.

-- 
https://github.com/golang-china
https://github.com/chai2010

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


Re: [protobuf] Protobuf Buffers v3.0.0-alpha-1

2014-12-10 Thread chai2010
 adding this option. In the future we will
 make this option enabled by default.

 To actually take advantage of arena allocation, you need to use the
 arena
 APIs when creating messages. A quick example of using the arena API:

   {
 google::protobuf::Arena arena;
 // Allocate a protobuf message in the arena.
 MyMessage* message = Arena::CreateMessageMyMessage(arena);
 // All submessages will be allocated in the same arena.
 if (!message-ParseFromString(data)) {
   // Deal with malformed input data.
 }
 // Must not delete the message here. It will be deleted
 automatically
 // when the arena is destroyed.
   }

 Currently arena does not work with map fields. Enabling arena in a
 .proto
 file containing map fields will result in compile errors in the
 generated
 code. This will be addressed in a future release.
 ===

 Thanks,
 Feng

 --
 You received this message because you are subscribed to the Google Groups
 Protocol Buffers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to protobuf+unsubscr...@googlegroups.com.
 To post to this group, send email to protobuf@googlegroups.com.
 Visit this group at http://groups.google.com/group/protobuf.
 For more options, visit https://groups.google.com/d/optout.




-- 
https://github.com/chai2010

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


Re: [protobuf] We are moving protobuf to github.

2014-08-26 Thread chai2010
Readme.txt should be markdown format:
s/README.txt/README.md/

And can you help to update the protorpc(Go/C++) link:
Go: https://github.com/chai2010/protorpc
CC: https://github.com/chai2010/protorpc.cxx.

Thanks!



2014-08-27 7:59 GMT+08:00 Feng Xiao xiaof...@google.com:

 Hi all,

 Finally, we are moving protobuf to github. The new home of protobuf is:
   https://github.com/google/protobuf

 All future code changes will be made in github. We will continue
 fix/clean-up issues filed in protobuf Google Code site but for new issues
 please file it in the github site.

 I'm not sure whether I got all the configurations right for our protobuf
 github site. If you find any problems, please post it here. This google
 group will continue to be the place to discuss protobuf related questions.

 Thanks,
 Feng


  --
 You received this message because you are subscribed to the Google Groups
 Protocol Buffers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to protobuf+unsubscr...@googlegroups.com.
 To post to this group, send email to protobuf@googlegroups.com.
 Visit this group at http://groups.google.com/group/protobuf.
 For more options, visit https://groups.google.com/d/optout.




-- 
https://chai2010.github.com/

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.


Re: [protobuf] Protocol RPC for Go and C++

2013-12-10 Thread chai2010
2013/12/8 Jens Munk Hansen jens.munk.han...@gmail.com

 Hi ChaiShushan

 I have looked into your c++ implementation and I really like the fact that
 it is portable. The POSIX components do not compile, but it was easy to
 fix, some names were wrong in rpc_posix_conn.cc.

Thanks for your feedback :)
I am a windows user, i have not do the test on posix system.
Can you submit some patch for POSIX compile issue?


 The software boss in our company likes standards and is trying to make a
 crew of software engineers with limited experience go from an almost
 monolithic structure into implementing their own services using DDS. We use
 Windows for a near real-time application (oh no).

For my protorpc, i just use golang protorpc server.
And my golang protorpc server run on windows right now,
but i don't care the OS(it is easy to switch to Linux with golang).
My rpc client run on the windows with C++ language.


 I am working on a project in my spare time, where I have used a simple C
 protocol allowing me set set remote parameters and execute remote
 functions. I wan't to use Kenton Vardas capnproto, but I would also like it
 to be cross-platform and cannot wait for this to be started.

I hear about the capnproto.
But i don't worry about the performance right now :)


 I really like your solution, except for the fact, that I would like not to
 change protoc (introduce return arguments for Services, remove the Closure
 concept, etc.) and be in sync with the main protocol buffers development.
 Another thing that I would to have is that all threads are outside the
 library and I can use a shared thread pool. I have sort of stolen some of
 your ideas and some ideas from Kenson Varda.

This solution is very like the Go standard RPC framwork.
And i implement the Go's protorpc first, and then implement the C++'s
version.
I am a newbie with C++ network pramgram.
So the C++'s protorpc server is just a toy for me.
And the C++'s protorpc client don't support asynchronous RPC call.
If need implement the asynchronous RPC call, we need use Closure for the
delayed replay.


 Some questions:
 1) Are you still developing on this branch and do you think there is a
 possibility that you work will be part of the official protocol buffers?

There is no new feature in developing.
I use the C++ client now, and i will fix the bugs.
I don't think the official protocol buffers will accept my RPC solution(C++
and Go).

 2) If you want to shutdown a server using a remote procedure you somehow
 need to exit the loop. I have implemented this in a command protocol, where
 a new callback is registered using the Closure concept. It is sort of hack,
 because one service is the able to shutdown others. Do you have any good
 ideas on how to implement this?

I don't think it is a really requirement for RPC.
We can shutdown the server in other way, eg: ssh.

 3) What is your opinion about Captain Proto. Do you think it will become a
 standard for RPC?

I don't think there is a standard RPC!
As Gopher, i like Protobuf, because it is a standard package(Go team
created it).


 The reason for I would like to be in sync with protocol buffers is that we
 use for other stuff.


 On Sunday, July 21, 2013 4:20:51 PM UTC+2, ChaiShushan wrote:

 Hi Feng Xiao,

 I changed the url to https://code.google.com/p/protorpc/

 Now, go version can use `go get 
 code.google.com/p/protorpc`http://code.google.com/p/protorpcinstall pkg.

 C++ version also need `hg clone 
 https://code.google.com/p/protorpc.cxx/`https://code.google.com/p/protorpc.cxx/first.

 Please update the protorpc URL.
 Thanks!

 在 2013年5月9日星期四UTC+8上午1时56分44秒,Feng Xiao写道:

 Thanks, added to https://code.google.com/p/
 protobuf/wiki/ThirdPartyAddOns

 On Wed, May 8, 2013 at 6:33 AM, chai2010 chais...@gmail.com wrote:

 Hi, I have create a protorpc project, impl RPC for Go/C++:

 https://bitbucket.org/chai2010/protorpc
 https://code.google.com/p/protorpc/

 Some examples:
 https://code.google.com/p/protorpc/source/browse/
 protobuf/src/google/protobuf/rpc/example/

 Document(${root}/README.md):
 https://bitbucket.org/chai2010/protorpc

 --
 chaishushan
 http://my.oschina.net/chai2010
 http://chai2010.bitbucket.org/
 http://golang-china.org

  --
 You received this message because you are subscribed to the Google
 Groups Protocol Buffers group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to protobuf+u...@googlegroups.com.
 To post to this group, send email to prot...@googlegroups.com.
 Visit this group at http://groups.google.com/group/protobuf?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




  --
 You received this message because you are subscribed to the Google Groups
 Protocol Buffers group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to protobuf+unsubscr...@googlegroups.com.
 To post to this group, send email to protobuf@googlegroups.com.
 Visit this group at http://groups.google.com/group/protobuf

[protobuf] A question about the rpc service syntax (Golang)

2013-07-30 Thread chai2010
hi,

I found a Golang project groupcache [0], which is used in dl.google.com.

I see the groupcache.proto define a rpc service [1], with `{}` suffix:

service GroupCache {
rpc Get(GetRequest) returns (GetResponse)* {*
* };*
}

And i can't find this protobuf syntax in the doc [2].

What is the `{}` mean ?

Thanks!

---

[0]
https://github.com/golang/groupcache

[1]
https://github.com/golang/groupcache/blob/master/groupcachepb/groupcache.proto#L30

[2]
https://developers.google.com/protocol-buffers/docs/proto#services

-- 
chaishushan
http://my.oschina.net/chai2010
https://bitbucket.org/chai2010

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.




[protobuf] Protocol RPC for Go and C++

2013-05-08 Thread chai2010
Hi, I have create a protorpc project, impl RPC for Go/C++:

https://bitbucket.org/chai2010/protorpc
https://code.google.com/p/protorpc/

Some examples:
https://code.google.com/p/protorpc/source/browse/protobuf/src/google/protobuf/rpc/example/

Document(${root}/README.md):
https://bitbucket.org/chai2010/protorpc

-- 
chaishushan
http://my.oschina.net/chai2010
http://chai2010.bitbucket.org/
http://golang-china.org

-- 
You received this message because you are subscribed to the Google Groups 
Protocol Buffers group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.