www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - gRPC, Better C and D

reply Andre Pany <andre s-e-a-p.de> writes:
Hi,

the core of gRPC is written in C. I asked the developers whether 
they considered rewriting the core with Better C 
(https://github.com/grpc/grpc/issues/15786).
They answered that they won't rewrite it with Better C but they 
are open for including D into their ecosystem.
They have support for different languages and most of them are 

PHP, Python, Ruby).

As far as I know there is no gRPC wrapper for D at the moment and 
if I remember correctly on DConf München there was a speaker 
talking about the need of a D wrapper for gRPC.

My idea was to translate the C++ 
(https://github.com/grpc/grpc/tree/master/src/cpp) coding to D 
coding but my C++ knowledge is very limited.

Is someone interested in adding D to gRPC?

Kind regards
André
Jun 22 2018
next sibling parent aberba <karabutaworld gmail.com> writes:
On Friday, 22 June 2018 at 18:10:54 UTC, Andre Pany wrote:
 Hi,

 the core of gRPC is written in C. I asked the developers 
 whether they considered rewriting the core with Better C 
 (https://github.com/grpc/grpc/issues/15786).
 They answered that they won't rewrite it with Better C but they 
 are open for including D into their ecosystem.
 They have support for different languages and most of them are 

 PHP, Python, Ruby).

 As far as I know there is no gRPC wrapper for D at the moment 
 and if I remember correctly on DConf München there was a 
 speaker talking about the need of a D wrapper for gRPC.

 My idea was to translate the C++ 
 (https://github.com/grpc/grpc/tree/master/src/cpp) coding to D 
 coding but my C++ knowledge is very limited.

 Is someone interested in adding D to gRPC?

 Kind regards
 André
I'm also very interested in a D binding. But I have no C binding skills. Maybe the direlict guys can help. gRPC is the gold standard for rpc in the interprese. I'm surprised we don't have much ctivity around it.
Jun 23 2018
prev sibling parent reply Andre Pany <andre s-e-a-p.de> writes:
On Friday, 22 June 2018 at 18:10:54 UTC, Andre Pany wrote:
 Hi,

 the core of gRPC is written in C. I asked the developers 
 whether they considered rewriting the core with Better C 
 (https://github.com/grpc/grpc/issues/15786).
 They answered that they won't rewrite it with Better C but they 
 are open for including D into their ecosystem.
 They have support for different languages and most of them are 

 PHP, Python, Ruby).

 As far as I know there is no gRPC wrapper for D at the moment 
 and if I remember correctly on DConf München there was a 
 speaker talking about the need of a D wrapper for gRPC.

 My idea was to translate the C++ 
 (https://github.com/grpc/grpc/tree/master/src/cpp) coding to D 
 coding but my C++ knowledge is very limited.

 Is someone interested in adding D to gRPC?

 Kind regards
 André
Small update. With the help of evilrat I was able to translate the C headers to D. https://github.com/andre2007/grpc/tree/feature/d/src/d/source/grpc/c While the source code compiles without errors, everything is completely untested. As next step I will try to rewrite the python grpc code with D: https://github.com/andre2007/grpc/tree/feature/d/src/python/grpcio/grpc/_cython/_cygrpc
Jul 02 2018
next sibling parent aberba <karabutaworld gmail.com> writes:
On Monday, 2 July 2018 at 10:25:07 UTC, Andre Pany wrote:
 On Friday, 22 June 2018 at 18:10:54 UTC, Andre Pany wrote:
 [...]
Small update. With the help of evilrat I was able to translate the C headers to D. https://github.com/andre2007/grpc/tree/feature/d/src/d/source/grpc/c While the source code compiles without errors, everything is completely untested. As next step I will try to rewrite the python grpc code with D: https://github.com/andre2007/grpc/tree/feature/d/src/python/grpcio/grpc/_cython/_cygrpc
Very interesting news. gRPC in D is a must. If it'll get used for web services and other microseevices.
Jul 02 2018
prev sibling parent reply bpr <brogoff gmail.com> writes:
On Monday, 2 July 2018 at 10:25:07 UTC, Andre Pany wrote:
 Small update. With the help of evilrat I was able to translate 
 the C headers to D.
 https://github.com/andre2007/grpc/tree/feature/d/src/d/source/grpc/c

 While the source code compiles without errors, everything is 
 completely untested.
 As next step I will try to rewrite the python grpc code with D:
 https://github.com/andre2007/grpc/tree/feature/d/src/python/grpcio/grpc/_cython/_cygrpc
That's really interesting! Are you thinking about translating some part of gRPC to DasBetterC?
Jul 02 2018
parent Andre Pany <andre s-e-a-p.de> writes:
On Monday, 2 July 2018 at 18:06:43 UTC, bpr wrote:
 On Monday, 2 July 2018 at 10:25:07 UTC, Andre Pany wrote:
 Small update. With the help of evilrat I was able to translate 
 the C headers to D.
 https://github.com/andre2007/grpc/tree/feature/d/src/d/source/grpc/c

 While the source code compiles without errors, everything is 
 completely untested.
 As next step I will try to rewrite the python grpc code with D:
 https://github.com/andre2007/grpc/tree/feature/d/src/python/grpcio/grpc/_cython/_cygrpc
That's really interesting! Are you thinking about translating some part of gRPC to DasBetterC?
At the moment, no. Foremost priority is building a wrapper for D to open the gRPC ecosystem for D. Kind regards André
Jul 03 2018