[zeromq-dev] czmq / zauth

Joe McIlvain joe.eli.mac at gmail.com
Fri May 6 22:04:21 CEST 2016


Greg Young,

As a shameless, somewhat off-topic plug, I've been working to write a
ZeroMQ implementation in Pony, which happens to be an actor language where
each actor is not a system thread, but a more "green" representation as you
describe.

I've found that the CZMQ actor paradigm have been very much in line with
Pony's paradigm, and that working with CZMQ did a lot to get me in the
right mind set for writing Pony applications.

It turns out that you don't need to use inproc ZeroMQ sockets to pass
messages between actors within your application, as Pony has its own
mechanisms for doing that, so the main focus of my ZeroMQ port has been to
support interoperability with external applications in other languages (but
I also included inproc sockets for consistency).

The Pony website: http://www.ponylang.org/
My pony-zmq package: https://github.com/jemc/pony-zmq

Thanks,

On Fri, May 6, 2016 at 12:54 PM, Pieter Hintjens <ph at imatix.com> wrote:

> We did a lot of work with green threads in the past, in C. In fact we
> kind of do the same with our zproto state machine, where each
> connection is a "thread". In other places it hardly seems worth it.
> System threads are simple and effective for our usage of actors.
>
> On Fri, May 6, 2016 at 9:34 PM, Greg Young <gregoryyoung1 at gmail.com>
> wrote:
> > I am curious if anyone would be interested in trying to quantify the
> > work involved with green threads on zmq actors?
> >
> > On Fri, May 6, 2016 at 10:29 PM, Pieter Hintjens <ph at imatix.com> wrote:
> >> The current actor API is a bit simplistic. I'd have liked to redesign
> >> it using the new client/server sockets so that you could talk to
> >> actors from any thread. As it is, there's no explicit mechanism to
> >> check if actor X is running or not. You have to start the actor in
> >> your main thread. You might be able to detect zauth itself by trying a
> >> connect that needs it (as we do in the security selftests).
> >>
> >> On Fri, May 6, 2016 at 8:17 PM, Brian Knox <bknox at digitalocean.com>
> wrote:
> >>> Is there currently a way one can check if zauth is running for a
> process -
> >>> e.g.,  imagine a case where a zauth actor may be been started by
> another
> >>> thread - is there a way one can check (in a thread safe manner) if
> this was
> >>> the case?
> >>>
> >>> Brian
> >>>
> >>> _______________________________________________
> >>> zeromq-dev mailing list
> >>> zeromq-dev at lists.zeromq.org
> >>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >> _______________________________________________
> >> zeromq-dev mailing list
> >> zeromq-dev at lists.zeromq.org
> >> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >
> >
> >
> > --
> > Studying for the Turing test
> > _______________________________________________
> > zeromq-dev mailing list
> > zeromq-dev at lists.zeromq.org
> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20160506/5aac7554/attachment.htm>


More information about the zeromq-dev mailing list