www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - RPC module for D ?

reply luis <luis.panadero gmail.com> writes:
There are any RPC module for D ??
Jan 30 2012
next sibling parent reply David Nadlinger <see klickverbot.at> writes:
On 1/30/12 5:27 PM, luis wrote:
 There are any RPC module for D ??
I implemented support for Apache Thrift during last summer's GSoC, it's currently under review for inclusion into Thrift trunk: http://klickverbot.at/code/gsoc/thrift/ David
Jan 30 2012
next sibling parent reply Zardoz <luis.panadero gmail.com> writes:
I will try it. I only need to make a remote "hello world" , do a short
description , and compare with other 
RPCs in other 3 languages (university homework...) .

On Mon, 30 Jan 2012 17:30:59 +0100, David Nadlinger wrote:

 On 1/30/12 5:27 PM, luis wrote:
 There are any RPC module for D ??
I implemented support for Apache Thrift during last summer's GSoC, it's currently under review for inclusion into Thrift trunk: http://klickverbot.at/code/gsoc/thrift/ David
-- Yep, I'm afraid that I have a blog : zardoz.es
Jan 30 2012
parent luis <luis.panadero gmail.com> writes:
I think that It not would show D awesomeness. The code of D thrift 
server&client looks more long and complex that Python, Perl and Ruby 
examples with xml-rpc ...

Why not are something more simple ? I think that D allow to something in 
the line of these xml-rpc implementations in Python or Ruby.

El Mon, 30 Jan 2012 19:51:05 +0000, Zardoz escribió:

 I will try it. I only need to make a remote "hello world" , do a short
 description , and compare with other RPCs in other 3 languages
 (university homework...) .
 
 On Mon, 30 Jan 2012 17:30:59 +0100, David Nadlinger wrote:
 
 On 1/30/12 5:27 PM, luis wrote:
 There are any RPC module for D ??
I implemented support for Apache Thrift during last summer's GSoC, it's currently under review for inclusion into Thrift trunk: http://klickverbot.at/code/gsoc/thrift/ David
Feb 03 2012
prev sibling parent reply Zardoz <luis.panadero gmail.com> writes:
On Mon, 30 Jan 2012 17:30:59 +0100, David Nadlinger wrote:

 On 1/30/12 5:27 PM, luis wrote:
 There are any RPC module for D ??
I implemented support for Apache Thrift during last summer's GSoC, it's currently under review for inclusion into Thrift trunk: http://klickverbot.at/code/gsoc/thrift/ David
I try to build it and when i did make check to see it all works I get two fails : thrift.transport.base.TTransportException src/thrift/transport/socket.d(255): Failed to connect to 127.0.0.1:11122. ---------------- ./unittest/debug/thrift/server/transport/socket(void thrift.server.transport.socket.__unittest3()+0x1ba) [0x45e2ea] ./unittest/debug/thrift/server/transport/socket(void thrift.server.transport.socket.__modtest()+0x9) [0x46529d] ./unittest/debug/thrift/server/transport/socket(extern (C) bool core.runtime.runModuleUnitTests().int __foreachbody272(ref object.ModuleInfo*)+0x30) [0x47f228] ./unittest/debug/thrift/server/transport/socket(int object.ModuleInfo.opApply(scope int delegate(ref object.ModuleInfo*))+0x55) [0x4712d9] ./unittest/debug/thrift/server/transport/socket(runModuleUnitTests+0xa7) [0x47f0f7] ./unittest/debug/thrift/server/transport/socket(extern (C) int rt.dmain2.main(int, char**).void runAll() +0x27) [0x47583f] ./unittest/debug/thrift/server/transport/socket(extern (C) int rt.dmain2.main(int, char**).void tryExec (scope void delegate())+0x2a) [0x4753ae] ./unittest/debug/thrift/server/transport/socket(main+0xd3) [0x47533f] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x2b67f2bc730d] FAIL: unittest/debug/thrift/server/transport/socket thrift.transport.base.TTransportException src/thrift/transport/socket.d(255): Failed to connect to 127.0.0.1:11122. ---------------- ./unittest/release/thrift/server/transport/socket(void thrift.server.transport.socket.__unittest3()+0x19f) [0x45e0a7] ./unittest/release/thrift/server/transport/socket(void thrift.server.transport.socket.__modtest()+0x9) [0x46372d] ./unittest/release/thrift/server/transport/socket(extern (C) bool core.runtime.runModuleUnitTests().int __foreachbody272(ref object.ModuleInfo*)+0x30) [0x47d32c] ./unittest/release/thrift/server/transport/socket(int object.ModuleInfo.opApply(scope int delegate(ref object.ModuleInfo*))+0x55) [0x46f749] ./unittest/release/thrift/server/transport/socket(runModuleUnitTests+0xa7) [0x47d1fb] ./unittest/release/thrift/server/transport/socket(extern (C) int rt.dmain2.main(int, char**).void runAll() +0x27) [0x473caf] ./unittest/release/thrift/server/transport/socket(extern (C) int rt.dmain2.main(int, char**).void tryExec (scope void delegate())+0x2a) [0x47381e] ./unittest/release/thrift/server/transport/socket(main+0xd3) [0x4737af] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x2b6f742c530d] FAIL: unittest/release/thrift/server/transport/socket -- Yep, I'm afraid that I have a blog : zardoz.es
Jan 30 2012
parent reply David Nadlinger <see klickverbot.at> writes:
On 1/30/12 11:35 PM, Zardoz wrote:
 I try to build it and when i did make check to see it all works I get two
fails :
 […]
Oh, I'm afraid you caught me in a bad moment – because the version for upstream integration is frozen at Thrift's JIRA, I've been a bit more careless with multi-platform testing when pushing to my GitHub master (resp. d-gsoc) branch than normal – was an artifact of IPv6 support being rolled out, should be fixed now. Also, please note that the »all green« status on the project page applies to commit 73e7e5e (the one submitted for upstream integration), I didn't have time to check whether the IPv6 stuff works on Windows yet. David
Jan 30 2012
parent reply Zardoz <luis.panadero gmail.com> writes:
On Tue, 31 Jan 2012 00:17:18 +0100, David Nadlinger wrote:

 On 1/30/12 11:35 PM, Zardoz wrote:
 I try to build it and when i did make check to see it all works I get
 two fails : […]
Oh, I'm afraid you caught me in a bad moment – because the version for upstream integration is frozen at Thrift's JIRA, I've been a bit more careless with multi-platform testing when pushing to my GitHub master (resp. d-gsoc) branch than normal – was an artifact of IPv6 support being rolled out, should be fixed now. Also, please note that the »all green« status on the project page applies to commit 73e7e5e (the one submitted for upstream integration), I didn't have time to check whether the IPv6 stuff works on Windows yet. David
At least I can say that the Tutorial client & server works (async_client not compile) :) . For me it's enough . -- Yep, I'm afraid that I have a blog : zardoz.es
Jan 30 2012
parent reply David Nadlinger <see klickverbot.at> writes:
On 1/31/12 12:29 AM, Zardoz wrote:
 At least I can say that the Tutorial client&  server works (async_client not
compile) :) . For me it's enough .
Because you don't have libevent installed (the tutorial makefile doesn't have detection for that by design), or do you encounter another error? Thanks, David
Jan 30 2012
parent luis <luis.panadero gmail.com> writes:
El Tue, 31 Jan 2012 00:33:36 +0100, David Nadlinger escribió:

 On 1/31/12 12:29 AM, Zardoz wrote:
 At least I can say that the Tutorial client&  server works
 (async_client not compile) :) . For me it's enough .
Because you don't have libevent installed (the tutorial makefile doesn't have detection for that by design), or do you encounter another error? Thanks, David
I'm trying to compile thrift in other computer. I have libevent-dev installed and I download deimos/libevent and put D files in /usr/include/ d/deimos and add a -I/usr/include/d/deimos to dmd.conf. When I run ./ configure I get this : checking for DMD... yes checking whether DMD uses OPTLINK... no checking for D module deimos.event2.event... no checking for D module deimos.openssl.ssl... no I need to add a flag to ./configure or do other thing to get working with libevent ???
Jan 31 2012
prev sibling parent Jacob Carlborg <doob me.com> writes:
On 2012-01-30 17:27, luis wrote:
 There are any RPC module for D ??
The Mango project has some support for RPC. But this if for D1 with Tango: http://dsource.org/projects/mango -- /Jacob Carlborg
Jan 30 2012