[zeromq-dev] Request-Reply Broker translation to ruby

Chuck Remes cremes.devlist at mac.com
Fri Jan 21 17:19:14 CET 2011


On Jan 21, 2011, at 10:09 AM, Олег Сидоров wrote:

> Hi!
> 
> I've translated rrbroker, rrclient & rrserver to ruby, and placed it all to github: https://github.com/4pcbr/zmq-ruby
> 
> Hope this'll be helpfull.
> 
> If my work is well done, I think I would translate more examples to ruby.
> 
> All code in this repository is under MIT/X11 license.

Looks great!

One suggestion for you. The ZMQ::Context class (in the ffi-rzmq gem) provides a default value of 1 for the i/o threads argument. So, you can just take advantage of that default without explicitly passing 1.

e.g.

context = ZMQ::Context.new(1)

becomes

context = ZMQ::Context.new

That's just a minor style point.

cr





More information about the zeromq-dev mailing list