[zeromq-dev] ZRE/Zbeacon improvement proposal

2013-10-26 Thread Arnaud Loonstra
in the case when multiple nodes run on one machine. Rg, Arnaud Loonstra -- w: http://www.sphaero.org t: http://twitter.com/sphaero g: http://github.com/sphaero i: freenode: sphaero_z25 ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org http

Re: [zeromq-dev] ZRE/Zbeacon improvement proposal

2013-10-26 Thread Arnaud Loonstra
On 10/26/2013 12:09 PM, Pieter Hintjens wrote: On Sat, Oct 26, 2013 at 10:53 AM, Arnaud Loonstra arn...@sphaero.org wrote: 1 - Only one node can run on a host (or one per interface) 1 - The issue is caused by using a broadcast socket. It's possible to bind multiple programs to the same

Re: [zeromq-dev] ZRE/Zbeacon improvement proposal

2013-10-27 Thread Arnaud Loonstra
On 10/27/2013 09:05 AM, Pieter Hintjens wrote: On Sat, Oct 26, 2013 at 11:54 PM, Arnaud Loonstra arn...@sphaero.org wrote: Yes, it's a natural pattern to say bye bye when leaving a room or ending a phone call, precisely to save the other person from wasting time wondering what happened

Re: [zeromq-dev] ZRE/Zbeacon improvement proposal

2013-10-27 Thread Arnaud Loonstra
On 10/27/2013 12:17 PM, Pieter Hintjens wrote: The spec is here: http://rfc.zeromq.org/spec:20 and it's marked as draft, so we can still change it. We work with pull requests on a GitHub repo: https://github.com/zeromq/rfc Any change should be backed by a real problem and be minimal and

Re: [zeromq-dev] TIPC clustering protocol support in libzmq

2013-11-05 Thread Arnaud Loonstra
On 11/04/2013 04:13 PM, Pieter Hintjens wrote: Hi all, Just to let everyone know that libzmq master now supports the tipc:// transport, which wraps the TIPC clustering protocol. This makes it rather easier to do failover and load-balancing. I've written an article that explains how this

Re: [zeromq-dev] pyzmq - pyczmq rewrite

2013-11-18 Thread Arnaud Loonstra
On 11/17/2013 08:58 PM, Michael Haberler wrote: Hi Michel, just rewrote a protobuf/pyzmq Python application to use pyczmq (because I'm interested in beacon and securitiy support) [snip] If you mean zbeacon also note that it's available in Pyre using native python:

Re: [zeromq-dev] RFC: zbeacon for dhcp-style discovery

2013-11-27 Thread Arnaud Loonstra
On 11/27/2013 12:03 PM, Michael Haberler wrote: I consider using zbeacon for service discovery, but more in a DHCP-style way (I dont have the use case for permanently visible beacons since the information is used during startup/on demand only) an application looking for services would

Re: [zeromq-dev] RFC: zbeacon for dhcp-style discovery

2013-11-27 Thread Arnaud Loonstra
On 11/27/2013 02:20 PM, Michael Haberler wrote: [snip] In Zyre zbeacon is broadcasting continuously, would the nodes be replying continuously as well? Otherwise you would need to do some tracking of nodes inside zbeacon? I wouldnt use zbeacon_publish() so broadcasting wouldnt be used by the

Re: [zeromq-dev] When unreliability is desired

2013-11-27 Thread Arnaud Loonstra
On 11/27/2013 04:50 PM, Lindley French wrote: I've never used ZeroMQ before so writing up a new transport would be just a bit ambitious right now. (I did write something in Java last year that, in retrospect, was solving basically the same problem as ZeroMQ so I have some familiarity with the

Re: [zeromq-dev] RFC: zbeacon for dhcp-style discovery

2013-11-30 Thread Arnaud Loonstra
On 11/30/2013 03:49 PM, Michael Haberler wrote: I have a seemingly trivial problem where I currently have tunnel vision: if I send a directed UDP packet to the beacon socket, the s_beacon_recv () callback isnt called except if I force the destination address to broadcast (255.255.255.255;

Re: [zeromq-dev] ZRE/Zbeacon improvement proposal

2013-11-30 Thread Arnaud Loonstra
On 10/27/2013 09:05 AM, Pieter Hintjens wrote: [snip] Yes, it's a natural pattern to say bye bye when leaving a room or ending a phone call, precisely to save the other person from wasting time wondering what happened. And the fallback is already there. So for leaving, it makes sense to

Re: [zeromq-dev] RFC: zbeacon for dhcp-style discovery

2013-11-30 Thread Arnaud Loonstra
On 11/30/2013 06:30 PM, Michael Haberler wrote: Hi Arnaud, Am 30.11.2013 um 17:16 schrieb Arnaud Loonstra arn...@sphaero.org: On 11/30/2013 03:49 PM, Michael Haberler wrote: I have a seemingly trivial problem where I currently have tunnel vision: if I send a directed UDP packet

Re: [zeromq-dev] When unreliability is desired

2013-12-07 Thread Arnaud Loonstra
On 12/07/2013 12:15 AM, Lindley French wrote: Is there a better place for discussion of this effort? I do have a lot of questions. The latest one is about encoder_t etc. This appears to have changed significantly recently, and I'm not entirely sure how to adapt the Crossroads code to match.

Re: [zeromq-dev] Idea draft : a module system on top of zyre/zbeacon.

2013-12-13 Thread Arnaud Loonstra
On 12/13/2013 12:05 AM, crocket wrote: I'm not good with current module systems because they are difficult to use and maintain. Binding modules from other languages is difficult with FFI(Foreign language interface). Publishing namespace or answering namespace requests via zbeacon would be

Re: [zeromq-dev] Is UDP transport needed in ZeroMQ?

2013-12-27 Thread Arnaud Loonstra
On 12/25/2013 04:08 PM, crocket wrote: Recent mailing list messages seem to revolve around UDP transport. It seems people need UDP transport in ZeroMQ. Since people seem to need it and the task of adding udp looks interesting, it would be a good time for me to learn the internals of libzmq

[zeromq-dev] Zyre ipaddress in Hello message

2013-12-27 Thread Arnaud Loonstra
Imagine I'm running Zyre on node A with multiple interfaces. eth0: 192.168.1.10 eth1: 192.168.2.10 The zbeacon beacon is broadcasted on all interfaces. (255.255.255.255) The zyre router socket listens on all interfaces. (tcp://*) From zbeacon I'm receiving an ipaddress of an interface:

Re: [zeromq-dev] Google Summer of Code 2014

2013-12-27 Thread Arnaud Loonstra
On 12/27/2013 08:06 AM, Indradhanush Gupta wrote: Hello, Is there any chance that ZeroMQ will participate in Google Summer of Code 2014 as an organization? In that case is anyone interested to participate as mentors for the program? Thanks, -- Indradhanush Gupta I think it would be great

Re: [zeromq-dev] Zyre ipaddress in Hello message

2013-12-28 Thread Arnaud Loonstra
On 12/28/2013 08:53 AM, Pieter Hintjens wrote: On Fri, Dec 27, 2013 at 6:34 PM, Arnaud Loonstra arn...@sphaero.org wrote: Now node B is discoverd through eth1. It will receive a HELLO message from Node A containing the ipaddress 192.168.1.10 however it should use 192.168.2.10 instead. The two

Re: [zeromq-dev] Is UDP transport needed in ZeroMQ?

2013-12-28 Thread Arnaud Loonstra
On 12/28/2013 11:15 AM, Daniel Krikun wrote: I am currently using zeromq (with ZMQ_CONFLATE option sometimes), and I am considering switching to udp. Almost always I do not need reliability in my code, only the last data is relevant. The question is, what is the value of using zmq with udp

Re: [zeromq-dev] Zyre ipaddress in Hello message

2013-12-28 Thread Arnaud Loonstra
On 12/28/2013 11:25 AM, Arnaud Loonstra wrote: On 12/28/2013 08:53 AM, Pieter Hintjens wrote: On Fri, Dec 27, 2013 at 6:34 PM, Arnaud Loonstra arn...@sphaero.org wrote: Now node B is discoverd through eth1. It will receive a HELLO message from Node A containing the ipaddress 192.168.1.10

Re: [zeromq-dev] Is UDP transport needed in ZeroMQ?

2013-12-31 Thread Arnaud Loonstra
On 12/31/2013 10:05 AM, Martin Sustrik wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 31/12/13 09:59, Wojtek Sliwinski wrote: For many industrial control systems, UDP is the solution when we talk about: - high frequency (50Hz) messaging - scalability: minimal load use of

Re: [zeromq-dev] Google Summer of Code 2014

2013-12-31 Thread Arnaud Loonstra
On 12/31/2013 01:05 PM, Bjorn Reese wrote: On 12/31/2013 03:19 AM, Pieter Hintjens wrote: It is a delicate process to decide what problems are really worth solving. Throwing money into the process when that money isn't backed by business needs is IMO counterproductive. This is a general

Re: [zeromq-dev] Zyre ipaddress in Hello message

2014-01-02 Thread Arnaud Loonstra
On 01/01/2014 10:49 PM, Pieter Hintjens wrote: Yes, that seems like the simplest stupid solution. It would let us also do IPv4 and IPv6 at the same time, as you say. On Wed, Jan 1, 2014 at 7:27 PM, Lindley French lindl...@gmail.com wrote: Binding a separate socket to each interface (in fact,

[zeromq-dev] Application loop methods

2014-01-02 Thread Arnaud Loonstra
Hi all, I was reading through czmq's zloop class and wondering what methods exists for creating application loops. I'm used to using frameworks which handle these so I'm not really 'under the hood' often. From what I can tell zeroMQ uses filedescriptor polling a lot

Re: [zeromq-dev] Application loop methods

2014-01-02 Thread Arnaud Loonstra
On 01/02/2014 04:22 PM, Arnaud Loonstra wrote: Hi all, I was reading through czmq's zloop class and wondering what methods exists for creating application loops. I'm used to using frameworks which handle these so I'm not really 'under the hood' often. From what I can tell zeroMQ uses

Re: [zeromq-dev] How do we activate and connect to WiFi hotspots in edgenets?

2014-01-08 Thread Arnaud Loonstra
On 01/08/2014 03:46 PM, Bruno D. Rodrigues wrote: I don’t know too many details about FON, but we have an ISP in Portugal that provides FON over all their clients (if they accept) and as soon as I connect to one FON hotstpot, the device automatically connects to any other. No idea if it’s just

[zeromq-dev] WifiOpti for Android source

2014-01-08 Thread Arnaud Loonstra
Hey Pieter, I told you a while ago about this WifiOpti app which handles your wifi connections in Android so it won't drain your battery. I talked to the developer and he agreed to put the source on Github: https://github.com/rejhgadellaa/wifiopti/ As you said it could be interesting for

Re: [zeromq-dev] How do we activate and connect to WiFi hotspots in edgenets?

2014-01-08 Thread Arnaud Loonstra
On 01/08/2014 03:46 PM, Bruno D. Rodrigues wrote: I don’t know too many details about FON, but we have an ISP in Portugal that provides FON over all their clients (if they accept) and as soon as I connect to one FON hotstpot, the device automatically connects to any other. No idea if it’s just

[zeromq-dev] Zyre extensions

2014-01-10 Thread Arnaud Loonstra
Hi all, I was looking into using the headers in ZRE to extend functionality. However I'm not sure how to use these headers. There are two examples FileMQ and the log extension but they just give a pointer to a socket to where nodes can connect. I can imagine more complicated setups. Like a

[zeromq-dev] FOSDEM'14

2014-01-13 Thread Arnaud Loonstra
Is anybody going to this event? Any ZeroMQ attendance? Apparently it's in Brussels this year which is nearby for me :) Rg, Arnaud -- w: http://www.sphaero.org t: http://twitter.com/sphaero g: http://github.com/sphaero i: freenode: sphaero_z25 ___

Re: [zeromq-dev] FOSDEM'14

2014-01-28 Thread Arnaud Loonstra
:-) at the largest French-speaking university. If you come, shout, and we'll organize a meetup on e.g. Saturday evening. -Pieter [1] https://fosdem.org/2014/schedule/track/internet_of_things/ On Mon, Jan 13, 2014 at 12:21 PM, Arnaud Loonstra arn...@sphaero.org wrote: Is anybody going

Re: [zeromq-dev] FOSDEM'14

2014-01-28 Thread Arnaud Loonstra
LOL, that definitely would be uplifting. We would need to subscribe to the same PUB then :) Arnaud On 01/28/2014 11:45 AM, Łukasz Nowak wrote: Hello, I'd be happy to have a HBM (High Beer Mark) in nonblocking messaging spirit. Is Friday evening ok to anyone? Lukasz -- w:

Re: [zeromq-dev] FOSDEM'14

2014-01-29 Thread Arnaud Loonstra
:-) at the largest French-speaking university. If you come, shout, and we'll organize a meetup on e.g. Saturday evening. -Pieter [1] https://fosdem.org/2014/schedule/track/internet_of_things/ On Mon, Jan 13, 2014 at 12:21 PM, Arnaud Loonstra arn...@sphaero.org wrote: Is anybody going to this event

Re: [zeromq-dev] FOSDEM'14

2014-01-31 Thread Arnaud Loonstra
Just arrived in Brussels, onto 'Dilerium' now. I'll definitely stop by the Iot room Sunday. Arnaud On 01/28/2014 03:33 PM, Pieter Hintjens wrote: Come to the Iot devroom on Sunday maybe, that's where I'll be. Aw.121 I think. -- w: http://www.sphaero.org t: http://twitter.com/sphaero g:

Re: [zeromq-dev] FOSDEM'14

2014-01-31 Thread Arnaud Loonstra
Crap, Delirium... cheap jokes here On 01/31/2014 09:55 PM, Arnaud Loonstra wrote: Just arrived in Brussels, onto 'Dilerium' now. I'll definitely stop by the Iot room Sunday. Arnaud -- w: http://www.sphaero.org t: http://twitter.com/sphaero g: http://github.com/sphaero i: freenode

Re: [zeromq-dev] multicast chat working only with DHCP networks

2014-05-11 Thread Arnaud Loonstra
On 05/11/2014 04:26 PM, Andrew Simpson wrote: I have a 0MQ multicast chat program that only appears to work when the computer is on a network with a DHCP server. When I connect into a simple, flat network (say 192.168.5.x) with 2 computers, chat does not work. Adding them back onto the

Re: [zeromq-dev] multicast chat working only with DHCP networks

2014-05-11 Thread Arnaud Loonstra
On 05/11/2014 09:29 PM, Andrew Simpson wrote: by 0MQ multicast, I meant that I am using zeroMQ to make a chat program that is using multicast addresses to send out to other nodes on a local network. this is a fairly simple application. When it attempts to bind to the multicast address, it

Re: [zeromq-dev] Zyre Wi-Fi Rejoin Issue

2014-05-30 Thread Arnaud Loonstra
Indeed, this is a known problem. There's also the problem when using multiple NIC's. I did a very simple workaround in Pyre which tries on e more time to connect. This is not enough though but I haven't had situations yet where this was a real showstopper. Then again I'm not using it in

Re: [zeromq-dev] Gossip discovery in CZMQ

2014-06-02 Thread Arnaud Loonstra
On 06/01/2014 02:15 PM, Pieter Hintjens wrote: Hi all, For Zyre (and zbroker), I'm adding a gossip discovery service into CZMQ. I've posted the API outline: https://github.com/hintjens/czmq/commit/6081970ba7ac434e9d899bc81b7495a36a17b38c The goal is to build clusters (like Zyre) using

Re: [zeromq-dev] ZRE spec query

2014-06-30 Thread Arnaud Loonstra
To my knowledge it was added before v2 was introduced. We discussed it around November 2013. https://github.com/zeromq/zyre/pull/134 On 06/29/2014 10:28 AM, Pieter Hintjens wrote: Fixed. RFC 20 shouldn't even discuss this, it was added for ZRE v2, which is RFC 36.. On Sun, Jun 29, 2014 at

Re: [zeromq-dev] ZRE interoperability

2014-06-30 Thread Arnaud Loonstra
On 06/29/2014 01:47 PM, Chris Laws wrote: Hi list, I've just spent some time trailing the interoperability of the C, Go and Python ZRE implementations. I encountered some issues with the Python version - which I later determined are due to it being a v1 implementation. I did not initially

Re: [zeromq-dev] Zyre PHP

2014-07-08 Thread Arnaud Loonstra
On 06/25/2014 01:44 PM, William Martin wrote: Hi, Does someone have start writing a PHP binding for zyre, or a pure PHP implementation ? I guess the answer is no. I haven't heard of anything either. Arnaud -- w: http://www.sphaero.org t: http://twitter.com/sphaero g:

Re: [zeromq-dev] zyre and hidden nodes?

2014-08-07 Thread Arnaud Loonstra
On 08/07/2014 10:00 AM, Benoit Chesneau wrote: I wonder if someone already thought to have hidden nodes (lazily connected nodes)with zyre. It seems that currently zyre only handle connected nodes like in Erlang but it would be interresting to be able to join group or nodes only when needed so

Re: [zeromq-dev] [zyre] Can not get UDP beaconing working

2014-08-27 Thread Arnaud Loonstra
On 08/27/2014 07:44 AM, Stanislav Ivochkin wrote: Hi all! I've wrote a simple program to play with zyre, but it does not work as I expect. #include thread #include zyre.h int main(int argc, char* argv[]) { auto node = zyre_new(nullptr); auto rc = zyre_start(node); auto

[zeromq-dev] zactor destroy sequence

2014-11-01 Thread Arnaud Loonstra
Hi all, I'm going through the zactor class to understand it better. I'm slightly confused by the destroy sequence: At line 182 of zactor.c: // Signal the actor to end and wait for the thread exit code // If the pipe isn't connected any longer, assume child thread //

Re: [zeromq-dev] zactor destroy sequence

2014-11-02 Thread Arnaud Loonstra
thread blocks waiting for a reply that never arrives. The return signalling is done by the zactor wrapper, not the actor itself. This isn't entirely symmetrical, that's true. On Sat, Nov 1, 2014 at 10:18 PM, Arnaud Loonstra arn...@sphaero.org wrote: Hi all, I'm going through the zactor class

Re: [zeromq-dev] Adding UUID to ZRE messages

2014-11-07 Thread Arnaud Loonstra
On 11/07/2014 02:13 PM, Joss Gray wrote: Currently ZRE messages are not uniquely identifiable ( AFAIK ) so if you receive the same message multiple times, particularly when there are multiple network adapters, you can't tell if the same message was sent 3 times, or received 3 times.

[zeromq-dev] Zyre Node signal on stop?

2014-11-17 Thread Arnaud Loonstra
See: https://github.com/zeromq/zyre/blob/master/src/zyre_node.c#L369 Who is supposed to receive the signal which is send when STOP is received in zyre_node.c? I'm guessing a zyre client sends STOP to zyre_node backend and waits for reply through zsock_wait... however zyre_stop doesn't do

[zeromq-dev] Zyre frontend polling and waiting for a reply

2014-11-17 Thread Arnaud Loonstra
Suppose I have the zyre frontend socket in my app in a poller. Every activity on the socket would then be handled by a method retrieving the frames from the socket. If I want to retrieve header info of a peer I would call zyre_peer_header_value However this call ends with retrieving messages

Re: [zeromq-dev] Zyre frontend polling and waiting for a reply

2014-11-17 Thread Arnaud Loonstra
On 11/17/2014 03:10 PM, Pieter Hintjens wrote: This is why in Zyre (and newer actor models) we use a second socket for data transfer. https://github.com/zeromq/zyre/commit/c684cad -Pieter Thanks for the pointer, Pieter. I missed that one. It's implemented in Pyre now as well. Rg, Arnaud

Re: [zeromq-dev] zyre questions

2015-02-08 Thread Arnaud Loonstra
This is actually what I'm hoping to extend Zyre with. As nodes running on the same machine are better off using a different transport than tcp. But having multiple paths to nodes implies the need for some priority thing. Rg, Arnaud On 2015-02-08 11:13, Pieter Hintjens wrote: Hi Kalyan,

[zeromq-dev] zmq FOSDEM IoT videos online

2015-03-19 Thread Arnaud Loonstra
Hi all, I just received notice that the videos of the IoT devroom which Pieter organised at FOSDEM this year are online. I have given a talk about ZOCP. ZOCP is build on top of Zyre thus the presentation includes an introduction and explanation of the Zyre framework.

Re: [zeromq-dev] zyre

2015-03-24 Thread Arnaud Loonstra
, and then switched to broadcast UDP because the Android stack filters (or used to) incoming multicast when it is running as an access point. On Mon, Mar 23, 2015 at 5:58 PM, Arnaud Loonstra arn...@sphaero.org wrote: but I'm working on it in C nor Android Add 'not' to that... I'm working on it in Python

Re: [zeromq-dev] zyre

2015-03-23 Thread Arnaud Loonstra
and working on it?  On Mon, Mar 23, 2015 at 9:42 AM, Arnaud Loonstra arn...@sphaero.org [3] wrote: On 2015-03-20 14:41, Pieter Hintjens wrote: Could you provide me a spec for the multicast? Then Ill add it to the RFC. The other discovery methods Id like to eventually make are bluetooth

Re: [zeromq-dev] zyre

2015-03-23 Thread Arnaud Loonstra
On 2015-03-20 14:41, Pieter Hintjens wrote: Could you provide me a spec for the multicast? Then I'll add it to the RFC. The other discovery methods I'd like to eventually make are bluetooth and manual (i.e. provide the Zyre API with node endpoints taken from arbitrary mechanisms). It's not

Re: [zeromq-dev] Python Bindings for Zyre

2015-02-22 Thread Arnaud Loonstra
And if there are any differences in the api of pyre and zyre please report them. The zyre python bindings should be a drop-in replacement for the native pyre. Even better would be to auto detect the zyre bindings and prefer them over native python. Rg, Arnaud On 2015-02-22 08:45, Pieter

Re: [zeromq-dev] zyre

2015-03-23 Thread Arnaud Loonstra
but I'm working on it in C nor Android Add 'not' to that... I'm working on it in Python On 03/23/2015 04:05 PM, Arnaud Loonstra wrote: Yes, but I'm working on it in C nor Android(currently): https://github.com/zeromq/pyre/blob/master/pyre/zbeacon.py#L208

[zeromq-dev] Naming of the Pyre project

2015-04-19 Thread Arnaud Loonstra
Hi, I don't know if people have followed the discussion on the Pyre github. It seems there is another project called Pyre. Therefore there's a discussion for renaming Pyre in order to have it listed on Pypi. https://github.com/zeromq/pyre/issues/14 I'm personally not so much troubled by not

[zeromq-dev] zproto python support?

2015-04-23 Thread Arnaud Loonstra
Hi all, I'm currently working on porting zgossip to Python but running into wrapping my head around zproto which is used to generate the code. Has there been any attempt for generating python code using zproto? I see there's go, php and csharp support? Any pointers to what it would mean to

[zeromq-dev] zproject python binding mixing with pyZMQ

2015-05-03 Thread Arnaud Loonstra
Hi all, I'm testing the new python bindings from zproject. As a test I was trying the Zyre bindings. In Zyre you can retrieve the socket using socket() in case you want to add it to a poller. However the socket method returns a class 'zyre.LP_zsock_t' type which not hashable and probably

Re: [zeromq-dev] zproto python support?

2015-05-08 Thread Arnaud Loonstra
: gsl -script:zproto_codec_py zproto_example On Thu, Apr 23, 2015 at 1:08 PM, Arnaud Loonstra arn...@sphaero.org wrote: Hi all, I'm currently working on porting zgossip to Python but running into wrapping my head around zproto which is used to generate the code. Has there been any attempt

Re: [zeromq-dev] SUB and PUB sockets on one url over epgm/pgm

2015-05-11 Thread Arnaud Loonstra
On 2015-05-11 15:53, Sergey Zinov wrote: Hi all, I encountered problem, while using zeromq with epgm transport. I have several nodes that should broadcast messages to each other, for that purpose each node creates two sockets(one PUB and one SUB) with same url. See attachment for sample

Re: [zeromq-dev] zproto python support?

2015-05-10 Thread Arnaud Loonstra
I've created a generator for Python. It still misses some functionality as I don't have an approach for the Zframe and Zmsg types. However one thing I didn't find out how to do with gsl is the following: In Python there's no switch construct. So instead you're supposed to use if, elif, else.

[zeromq-dev] ZBeacon multiple interface support

2015-04-09 Thread Arnaud Loonstra
Hi All, I was refactoring the ZBeacon code in Pyre to start thinking about using it on multiple interfaces. Imagine a simple laptop with a wireless and wired NIC. ZBeacon now tries the first interface it can get its hands on or it tries INADDR_ANY. To support multiple interfaces it would

Re: [zeromq-dev] (almost) zero-copy message receive

2015-06-02 Thread Arnaud Loonstra
Although I'm not very familiar with zmq's internals this looks promising. Did you test if your implementation remains correct? ie. it doesn't introduce deadlocks or other race conditions? Rg, Arnaud On 2015-05-31 19:29, Jens Auer wrote: Hi, I did some performance analysis of a program

Re: [zeromq-dev] Passing a python object (PyZMQ)

2015-06-08 Thread Arnaud Loonstra
A python dictionary is not thread safe, AFAIK. So if multiple producers(threads) write to the dictionary you'll run into trouble. Rg, Arnaud On June 8, 2015 6:05:08 PM GMT+02:00, Min RK benjami...@gmail.com wrote: On Jun 8, 2015, at 01:35, Arnaud Loonstra arn...@sphaero.org wrote: On 06

Re: [zeromq-dev] Passing a python object (PyZMQ)

2015-06-09 Thread Arnaud Loonstra
On 06/08/2015 08:10 PM, MinRK wrote: On Mon, Jun 8, 2015 at 11:00 AM, Arnaud Loonstra arn...@sphaero.org mailto:arn...@sphaero.org wrote: A python dictionary is not thread safe, AFAIK. So if multiple producers(threads) write to the dictionary you'll run into trouble. Depends what

Re: [zeromq-dev] Passing a python object (PyZMQ)

2015-06-08 Thread Arnaud Loonstra
On 06/06/2015 01:52 AM, MinRK wrote: Without using ctypes, you could pass the objects through a namespace: |# shared namespace ns = {} # sender ns[id(obj)] = obj pipe_out.send(struct.pack(b'Q',1)) # receiver id_bytes = pipe_in.recv() obj_id = struct.unpack(b'Q', id_bytes)[0] obj =

[zeromq-dev] Passing a python object (PyZMQ)

2015-06-03 Thread Arnaud Loonstra
I read here: http://zeromq.github.io/pyzmq/serialization.html PyZMQ being able to pass an object without copying it. I guess this holds only for the serialised copy of the data..? In theory the object can be passed as a reference thus preventing a copy. Suppose I have an image as a python

Re: [zeromq-dev] Passing a python object (PyZMQ)

2015-06-03 Thread Arnaud Loonstra
On 2015-06-03 10:20, Arnaud Loonstra wrote: I read here: http://zeromq.github.io/pyzmq/serialization.html PyZMQ being able to pass an object without copying it. I guess this holds only for the serialised copy of the data..? In theory the object can be passed as a reference thus preventing

Re: [zeromq-dev] zproject python binding mixing with pyZMQ

2015-06-04 Thread Arnaud Loonstra
On 2015-06-02 13:56, Arnaud Loonstra wrote: On 2015-05-03 16:25, Arnaud Loonstra wrote: Hi all, I'm testing the new python bindings from zproject. As a test I was trying the Zyre bindings. In Zyre you can retrieve the socket using socket() in case you want to add it to a poller. However

Re: [zeromq-dev] Passing a python object (PyZMQ)

2015-06-04 Thread Arnaud Loonstra
On 2015-06-03 17:25, Arnaud Loonstra wrote: On 2015-06-03 10:20, Arnaud Loonstra wrote: I read here: http://zeromq.github.io/pyzmq/serialization.html PyZMQ being able to pass an object without copying it. I guess this holds only for the serialised copy of the data..? In theory the object can

Re: [zeromq-dev] zproject python binding mixing with pyZMQ

2015-06-02 Thread Arnaud Loonstra
On 2015-05-03 16:25, Arnaud Loonstra wrote: Hi all, I'm testing the new python bindings from zproject. As a test I was trying the Zyre bindings. In Zyre you can retrieve the socket using socket() in case you want to add it to a poller. However the socket method returns a class

Re: [zeromq-dev] zeromq/zyre over ipv6

2015-06-28 Thread Arnaud Loonstra
For what it's worth, you should use gossping when using ipv6. I don't think zbeacon is going to work on ipv6 simply because ipv6 doesn't support broadcasts. The socket options for the beacon socket should be different then. I've wanted to test this but since I hardly ever run into an ipv6

Re: [zeromq-dev] Coveralls

2015-05-26 Thread Arnaud Loonstra
is covered by the unit test suite. I suppose as long as the tool is free for open source it cannot hurt to merge the pull request. At best it's useful to see how well the tests cover the codebase, and worst you don't use it. On Fri, May 22, 2015 at 6:39 PM, Arnaud Loonstra arn...@sphaero.org

[zeromq-dev] Pyre API changes

2015-05-26 Thread Arnaud Loonstra
Hi all, Just as a notice I'm going to merge a PR on Pyre which breaks the API to reflect Zyre better. Essentially the changes can be done automatically with a simple sed script: sed -i 's/get_uuid/uuid/g' $1 sed -i 's/get_peer_groups/peer_groups/g' $1 sed -i 's/get_own_groups/own_groups/g' $1

[zeromq-dev] Coveralls

2015-05-22 Thread Arnaud Loonstra
Has anybody got experience with coveralls? I received this PR: https://github.com/zeromq/pyre/pull/66 but I have no experience with this service or approach. Rg, Arnaud ___ zeromq-dev mailing list zeromq-dev@lists.zeromq.org

Re: [zeromq-dev] Zyre on the web

2015-08-04 Thread Arnaud Loonstra
Hi Johan, A proxy would probably be the fastest path. We've been experimenting with websockets and a proxy which works fine. Easiest would probably be to create a ZyreNode containing a webserver which can provide the web interface. With Pyre this is very simple. Here's an example of a

[zeromq-dev] Python bindings strings and bytes

2015-11-11 Thread Arnaud Loonstra
This is a frequent issue dealing with Python but how do we want to deal with strings? Python strings are a bit cumbersome when dealing with C. For example to use the Zyre bindings in python one needs to do one of the following: > from zyre import Zyre > zn = Zyre(b'MyZyreNode') or > zn =

Re: [zeromq-dev] Cinder-ZeroMQ block

2015-11-15 Thread Arnaud Loonstra
I'm not sure how Cinder works internally but I guess it is similar to OpenFrameworks. It then probably will be typical 'game loop' based. So running anything blocking kills the framerate. You can do a poll with 0 timeout but better would be to replace the sleeping of the loop with polling.

Re: [zeromq-dev] Python bindings strings and bytes

2015-11-11 Thread Arnaud Loonstra
st the rules are simple.  Pass > unicode, get a clear exception. > > On Wed, Nov 11, 2015 at 3:43 AM, Arnaud Loonstra <arn...@sphaero.org > [3]> wrote: > >> This is a frequent issue dealing with Python but how do we want to >> deal >> with strings? Python

Re: [zeromq-dev] czmq python binding Zpoller

2015-11-10 Thread Arnaud Loonstra
On 2015-11-05 12:20, Arnaud Loonstra wrote: > On 2015-11-05 02:50, Johan Philips wrote: >> How can I get the actual socket out of it, because Zpoller seems to >> return a c_void_p which I cannot compare to my Zsock object I added >> to >> the poller. >> &g

Re: [zeromq-dev] czmq python binding Zpoller

2015-11-03 Thread Arnaud Loonstra
I think you are right. Have you tried removing index(). Rg, Arnaud On November 3, 2015 5:42:17 AM GMT+01:00, Johan Philips wrote: >Hi guys > >I am trying to use the Zpoller class from the python binding together >with the zyre binding. Following minimal example

Re: [zeromq-dev] czmq python binding Zpoller

2015-11-04 Thread Arnaud Loonstra
Indeed, it was fixed last night. Did you test that? Rg, Arnaud On November 4, 2015 9:53:42 PM GMT+01:00, Johan Philips <johan.phil...@kuleuven.be> wrote: > > >On 2015-11-04 20:38, Arnaud Loonstra wrote: >> On 2015-11-03 22:55, Johan Philips wrote: >>> On 2015-11-0

Re: [zeromq-dev] czmq python binding Zpoller

2015-11-05 Thread Arnaud Loonstra
On 2015-11-05 02:50, Johan Philips wrote: > How can I get the actual socket out of it, because Zpoller seems to > return a c_void_p which I cannot compare to my Zsock object I added > to > the poller. > > Minimal example using zyre nodes: > Python 2.7.9 (default, Apr 2 2015, 15:33:21) > [GCC

Re: [zeromq-dev] czmq python binding Zpoller

2015-11-04 Thread Arnaud Loonstra
This is an assertion error and then an error in the destructor. I need to look into that. What if you just add a single socket? Rg, Arnaud On November 3, 2015 10:55:57 PM GMT+01:00, Johan Philips <johan.phil...@kuleuven.be> wrote: > > >On 2015-11-03 19:31, Arnaud Loonstra wr

Re: [zeromq-dev] czmq python binding Zpoller

2015-11-05 Thread Arnaud Loonstra
On 2015-11-05 14:53, Johan Philips wrote: >> I haven't found the best approach yet. First of all you can use >> ZyreEvents. See the test.py file for an example. > > I’ve been using ZyreEvent but since it’s blocking I need a working > Zpoller :( > >> I've used the zyre binding with PyZMQ. I had to

[zeromq-dev] Question about python binding generator

2015-11-06 Thread Arnaud Loonstra
Hi all, I'm a bit puzzled. For example if I use czmq's zsock in Python I can retrieve the underlying socket using the resolve method. This method is defined as a static method in Python: https://github.com/zeromq/czmq/blob/master/bindings/python/czmq.py#L2233 The way it is defined I need to

Re: [zeromq-dev] New ZeroMQ project: zwebrap

2015-11-06 Thread Arnaud Loonstra
You could append the 'p' again zebrap Rg, Arnaud On 2015-11-06 15:47, Kevin Sapper wrote: > I like it, very catchy :) > Am 06.11.2015 2:37 nachm. schrieb "Pieter Hintjens" [9]>: > >> As for names, my brain was trying to parse it as "zebra"... >> >> On Fri, Nov 6, 2015 at

Re: [zeromq-dev] New ZeroMQ project: zwebrap

2015-11-06 Thread Arnaud Loonstra
On 2015-11-05 10:00, Kevin Sapper wrote: > Hi, > > I like to announce a new project I moved to the ZeroMQ community. Its > name is zwebrap[1 [1]] and its purpose is to convert HTTP requests > into XRAP[2 [2]] requests and XRAP responses into HTTP responses. It > has been develop for my employer

Re: [zeromq-dev] czmq python binding Zpoller

2015-11-04 Thread Arnaud Loonstra
On 2015-11-03 22:55, Johan Philips wrote: > On 2015-11-03 19:31, Arnaud Loonstra wrote: >> I think you are right. Have you tried removing index(). > > Yes and that silences the error but how can I add 2 sockets to the > poller? Is the only way by using the 'add' method? >

Re: [zeromq-dev] Zyre on Android (JNI)

2016-01-06 Thread Arnaud Loonstra
gt;> >>> >>> On January 5, 2016 9:26:02 AM EST, Pieter Hintjens <p...@imatix.com> >wrote: >>>>Ah, great, this is good progress. Thanks a lot for that. >>>> >>>>Any chance you can try on a 64-bit ARM somewhere? >>> >>> Why n

Re: [zeromq-dev] Zyre on Android (JNI)

2016-01-06 Thread Arnaud Loonstra
Ok, I played with android studio a bit. Djeez, these dependencies fill my harddrive faster than I can empty. :S Anyway, just build a simple app and ran it on a emulator: Unfortunately, ZyreTest has stopped It seems it can't find the czmq libs? 01-06 15:15:20.295 1257-1257/org.z25.zyretest

Re: [zeromq-dev] Zyre on Android (JNI)

2016-01-07 Thread Arnaud Loonstra
On 2016-01-07 14:57, Pieter Hintjens wrote: > OK, so thanks to everyone for helping. The problem was due to how > Android looks for shared libraries; if the root .so needs to specify > its dependencies properly. This means adding a > target_link_libraries() > in the Cmake script. > > I've gotten

Re: [zeromq-dev] Zyre on Android (JNI)

2016-01-08 Thread Arnaud Loonstra
m> >wrote: >>> >>> I developed some apps for my research using Jyre on Android. I can >test >>> those with Zyre and report results. >>> >>> On Jan 7, 2016 11:15 AM, "Pieter Hintjens" <p...@imatix.com> wrote: >>>> >

Re: [zeromq-dev] Zyre on Android (JNI)

2016-01-05 Thread Arnaud Loonstra
I have hardly any experience either but I asked a colleague. We just created a simple app with zyre = new Zyre("android_test"); zyre.start(); in the constructor and zyre.stop() in the destructor. 01-05 13:45:05.769 8364-8364/org.z25.zyretest I/art: Late-enabling -Xcheck:jni

Re: [zeromq-dev] Weird whisper messages arriving with Pyre

2015-12-21 Thread Arnaud Loonstra
I can have a look tomorrow although we'd be best helped with a reproducible error. In this case it seems messages are either malformed or getting mixed up. If some error happens somewhere in a node it is very hard to predict what will happen due to the asynchronous behaviour of pyre. Are the

Re: [zeromq-dev] Weird whisper messages arriving with Pyre

2015-12-22 Thread Arnaud Loonstra
see them set with rather fixed values (constants or magic >>> numbers) :S. >>> Only zcreate_pipe takes it as a default parameter, but it is not >>> used when >>> called. >>> >>> >>> Cheers, >>> Axel >>> >>> >>>

Re: [zeromq-dev] [zproject] mkapi.py: Generate API model from header

2015-12-20 Thread Arnaud Loonstra
Do I understand this correctly that this is the reverse path of zproject? I.e. it generates zproject xmls from a C header so you can then use zproject's functionality (ie Python binding?) Rg, Arnaud On 2015-12-20 15:22, Pieter Hintjens wrote: > This is neat. Have you tried it on other

Re: [zeromq-dev] Node.js over Zyre

2016-06-08 Thread Arnaud Loonstra
On 2016-06-08 09:47, Johan Philips wrote: Pieter Hintjens imatix.com> writes: Yes, the more merges the better... I wanted this to go onto master so others could play with it. Is someone picking this up? I assume, given the circumstances, Pieter will not be finishing this? [...] Johan

  1   2   3   >