Re: [zeromq-dev] RFC in Markdown?

2016-05-18 Thread Joe McIlvain
Awesome work, everyone! On Wed, May 18, 2016 at 9:52 AM, Yurii Rashkovskii wrote: > Pieter, > > That was a great PR! The site is available at > https://zeromq.gitbooks.io/rfc/content/ — I can see we're still missing a > few things, but they are fairly cosmetic and will be easy to fix, like RFCs

Re: [zeromq-dev] czmq / zauth

2016-05-06 Thread Joe McIlvain
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

Re: [zeromq-dev] CZTop, a new CZMQ binding for Ruby

2016-01-20 Thread Joe McIlvain
Congratulations on the stable release, Patrik! I know you've put in a lot of diligent work into this effort, and I'll be recommending it to others as the "go-to" library to use for any ZeroMQ-related Ruby projects. On Mon, Jan 18, 2016 at 12:49 PM, Pieter Hintjens wrote: > Heh, neat... I think

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

2016-01-06 Thread Joe McIlvain
What Utsav says sounds right, but from what little I remember, it was called `dlopen`. You need to separately `dlopen` each library yourself (libsodium, libzmq, czmq, zyre). I remember having to coax Qt into doing this correctly. On Wed, Jan 6, 2016 at 7:07 AM, Utsav Drolia wrote: > I think yo

Re: [zeromq-dev] [zproject] How to detect fresh = "1" attribute?

2016-01-03 Thread Joe McIlvain
This is one example that I think demonstrates that we actually do encode more information in the zproject API models than is found in the C headers. This extra information is necessary for the API to understood to generate well-behaved bindings, but is, as you've found, merely an understood conven

Re: [zeromq-dev] [Zproject] Unclear semantics of polymorphic

2015-12-14 Thread Joe McIlvain
The "polymorphic" attribute was added recently. There was some debate about it, and I'm still not convinced that it's useful. Basically, polymorphic implies "singleton" with a first argument of type "anything" (which translates to a void pointer). I'd be in favor of removing the concept of "poly

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

2015-11-12 Thread Joe McIlvain
As you say, providing a fully idiomatic user experience is not always possible in generated bindings - this was also the case with Ruby when I was writing those bindings. In cases where there is a conflict between idiomatic user experience and predictability, I would argue that we *must* make the

Re: [zeromq-dev] Question about python binding generator

2015-11-06 Thread Joe McIlvain
The reason that method is static/singleton (which in this case, we use interchangably) is because the "self" argument does not have to be an instance of `zsock_t` (it could also be a libzmq socket pointer already). Essentially, the "self" argument can be any arbitrary object as far as the bindings

[zeromq-dev] Problem: CLIENT/SERVER types cannot send multi-part messages.

2015-09-11 Thread Joe McIlvain
Solution: Add new libzmq API for sending and receiving multi-part messages atomically/statelessly. --- With this commit, the REQ, REP, DEALER, and ROUTER types are marked as soon-to-be deprecated in favor of the CLIENT and SERVER types on libzmq master: https://github.com/hintjens/libzmq/commit/f

Re: [zeromq-dev] JNI binding generation

2015-09-10 Thread Joe McIlvain
ke recv() work. > > > > > > > > Best regards > > > > Adam Wynne > > CR/RTC3.1-NA > > > > Tel. +1(412)390-3211 > > > > From: zeromq-dev-boun...@lists.zeromq.org > > [mailto:zeromq-dev-boun...@lists.zeromq.org] On Behal

Re: [zeromq-dev] JNI binding generation

2015-09-09 Thread Joe McIlvain
Pieter, When you say you're stuck on the internal model, do you mean on the zproject representation of the API model, or on JNI-specific internals (in need of a Java/JNI guru)? On Wed, Sep 9, 2015 at 2:11 PM, Pieter Hintjens wrote: > Hi guys, > > We've started a small effort to make a JNI bind

Re: [zeromq-dev] CZMQ related travis failures

2015-08-16 Thread Joe McIlvain
Could be that Travis updated its software packages so that a different set of warning/error settings are active for the compiler. On Sun, Aug 16, 2015 at 5:02 AM, Brian Knox wrote: > CZMQ is currently failing to build on travis-ci for GoCZMQ, just wanted to > see if anyone else has run into this

Re: [zeromq-dev] qt-android QML bindings - status?

2015-06-12 Thread Joe McIlvain
Michael, I just responded to another user about this - I'm copying my response here in case it is useful to you I did much of the work on the qt-android build system. I apologize that there is little guiding documentation on this point, but I did it mainly to allow using the zeromq family of li

Re: [zeromq-dev] Qt zeromq Android versus JZMQ

2015-06-12 Thread Joe McIlvain
Arthur, I did much of the work on the qt-android build system. I apologize that there is little guiding documentation on this point, but I did it mainly to allow using the zeromq family of libraries on android in Qt/QML applications. In order to use the `dlopen` style import Qt uses, there are c

Re: [zeromq-dev] zproto and Malamute/Majordomo

2015-04-27 Thread Joe McIlvain
Lucas, It may well be that code generation is a good choice for solving your problem but zproto (one specific set of code generators) is not. You can always use GSL to write your own code generator scripts that are verbose and descriptive. Codecs generated by zproto are not all verbose or descri

Re: [zeromq-dev] zproto python support?

2015-04-23 Thread Joe McIlvain
Michel, Much of the work for what you're talking about is already done by others in zproject (see https://github.com/zeromq/zproject/blob/master/zproject_bindings_python.gsl). The zproject code generators do two major things: 1) generate the build systems and project skeleton for a C library. 2)

Re: [zeromq-dev] zyre

2015-03-28 Thread Joe McIlvain
Utsav, Try running the builds/qt-android/build.sh script in the repository. On Wed, Mar 25, 2015 at 2:00 PM, Utsav Drolia wrote: > Is compiling zyre for Android documented anywhere? > Also are the python bindings for zyre stable now? I was thinking of using > python on Android (e.g. SL4A) and a

Re: [zeromq-dev] Zyre on Android?

2015-03-12 Thread Joe McIlvain
Kenneth, I've spent quite a bit of time working on the android cross-compile process (see the builds/qt-android subdir in libzmq, czmq, zyre, etc..) and QML bindings for writing cross-platform Qt applications that use these libraries on platforms including android (see the bindings/qml subdir). Bo

Re: [zeromq-dev] Issue linking ZMQ static library into shared library for Android

2015-03-09 Thread Joe McIlvain
nd it helped me verifying that I did not > miss a flag, a step or something i was not considering yet. > Generally it doesn't matter if I compile a static or a shared library - > The NDK uses its own linker to link the prebuilt libraries. > > Am 06.03.2015 um 18:17 schrieb Joe McIlvai

Re: [zeromq-dev] Issue linking ZMQ static library into shared library for Android

2015-03-06 Thread Joe McIlvain
to link the prebuilt libraries. > > Am 06.03.2015 um 18:17 schrieb Joe McIlvain: > > Matthias, > > I don't usually compile them as static, but you may be able to get some > ideas/help from using or looking at the scripts I added under > `builds/qt-android`of the zeromq

Re: [zeromq-dev] Issue linking ZMQ static library into shared library for Android

2015-03-06 Thread Joe McIlvain
Matthias, I don't usually compile them as static, but you may be able to get some ideas/help from using or looking at the scripts I added under `builds/qt-android`of the zeromq repository. I use these to compile for use with Qt on android, but there's nothing really Qt-specific about them. I only

Re: [zeromq-dev] "thread safe" sockets and ZMQ_FD

2015-02-22 Thread Joe McIlvain
I thought one of the major motivations for sharing a socket among threads was to avoid the (anti-)pattern of creating a socket for each request in a multithreaded environment and worrying about running out of file descriptors. It sounds like this new strategy would avoid allocations of more zmq so

Re: [zeromq-dev] IPC path permissions

2015-02-13 Thread Joe McIlvain
> Thanks, > > Santosh > > > > *From:* zeromq-dev-boun...@lists.zeromq.org [mailto: > zeromq-dev-boun...@lists.zeromq.org] *On Behalf Of *Joe McIlvain > *Sent:* Wednesday, February 11, 2015 3:37 PM > > *To:* ZeroMQ development list > *Subject:* Re: [zeromq-dev]

Re: [zeromq-dev] IPC path permissions

2015-02-11 Thread Joe McIlvain
Santosh, Sounds like a good change to me. I can't imagine anyone relying on the current behavior, because they wouldn't be able to communicate over that socket anyway. Care to submit a patch on Github? On Wed, Feb 11, 2015 at 1:19 PM, wrote: > Hi Pieter and Jim, > > I got the trace of the cl

Re: [zeromq-dev] Notes from a hackathon

2015-02-06 Thread Joe McIlvain
Pieter, Integer routing ids sounds nice to me, quite honestly. I wouldn't mind having the routing ids being semantically separated from the content frames by more than just the empty "delimiter", so representing them with separate accessors as integers is a possibly appealing id. Arguably, it add

Re: [zeromq-dev] Notes from a hackathon

2015-02-05 Thread Joe McIlvain
FWIW, we are currently using a patched version of zproto message codec to support multi-hop messages by tracking routing info as an envelope of zero or more frames instead of as zero or one frames. I'm not afraid of change, but I'm still trying to work out how we are going to change our architectu

Re: [zeromq-dev] Notes from a hackathon

2015-02-02 Thread Joe McIlvain
b 2, 2015 at 8:55 AM, Doron Somech wrote: > Joe the problem with the api of zmsg for single frame is that you cannot > calculate the frame size in advance causing a lot of re allocation and > copying data around (it's ok for receiving, the problem is sending). > > > > On Mon,

Re: [zeromq-dev] Notes from a hackathon

2015-02-02 Thread Joe McIlvain
In my opinion, maintaining some kind of multi-frame abstraction at the API level is in fact very useful to applications, even if they are sent atomically on the implementation level as you describe. For example, in CZMQ It's quite useful in program flow to be able to push or pop a single zframe on