Using ZeroRPC

Has someone of you managed to use ZeroRPC in Julia? I found a library in GitHub, but I have not managed to use it: (

Can you be more specific about what you’ve tried and what problem you’re encountering?

When i run the example i get this error:

LoadError: LoadError: syntax: space before "(" not allowed in "new ("
while loading /home/karther/juliapro/JuliaPro-0.5.2.2/JuliaPro/pkgs-0.5.2.2/v0.5/ZeroRPC/src/ZeroRPC.jl, in expression starting on line 38
while loading /home/karther/Dropbox/TELEMEDICINE/telPro/Julia/api.jl, in expression starting on line 1
 in include_from_node1(::String) at loading.jl:488
 in eval(::Module, ::Any) at boot.jl:234
 in require(::Symbol) at loading.jl:415
 in include_string(::String, ::String) at loading.jl:441
 in include_string(::Module, ::String, ::String) at eval.jl:34
 in (::Atom.##59#62{String,String})() at eval.jl:73
 in withpath(::Atom.##59#62{String,String}, ::String) at utils.jl:30
 in withpath(::Function, ::String) at eval.jl:38
 in macro expansion at eval.jl:71 [inlined]
 in (::Atom.##58#61{Dict{String,Any}})() at task.jl:60

Ah, the link you posted to was for ZMQ, which is solid and ships with JuliaPro. What you’re using is the ZeroRPC library built on top of that, which is not widely used or tested, as far as I’m aware. Do you need the RPC aspect of this or just the messaging part? Building RPC on top of plain messaging in Julia should be very easy without a library since you can serialize and deserialize expressions and closures.

If you are looking for an RPC library to use with Julia, i would recommend using JuliaWebAPI. It is shipped with JuliaPro.

1 Like

Thank you! I will use it!