[zeromq-dev] what happens to the bindings with libzmq libzapi ...
Pieter Hintjens
ph at imatix.com
Tue Apr 26 13:43:01 CEST 2011
On Tue, Apr 26, 2011 at 1:30 PM, Martin Lucina <mato at kotelna.sk> wrote:
> Correct; except that it is being positioned as the *official* high-level C
> binding for ZeroMQ, rather than being positioned as a separate higher level
> layer and product in its own right.
I'm confused. Libzapi is presented exactly the same way as other
language bindings. It has a bindings page.
As to what defines "official", I think if Martin and I agree, then
it's official. Do you want to propose another system? I'm open to it,
but please do start by listing the problems you're aiming to solve.
> Same goes for the guide. It's great work, but I see it becoming the "Guide
> to using ZeroMQ with ZAPI" rather than "The 0MQ Guide".
We've discussed this several times on IRC and there is *no way* to
make a guide using the core API except up to about half of chapter 1.
Which is exactly what the Guide does: it uses the core API until that
becomes untenable, and then it moves to higher-level APIs. It's been
doing this since the start, BTW, libzapi is simply an extension of the
zhelpers.h and zmsg.c files used before.
Sincerely, you're welcome to translate the later examples to plain C
using the core API and no other abstractions. It'll result in
thousand-line samples no-one will ever read.
The big advantage of using a HL API in C is that since most other
language bindings also use a HL API, the code becomes more portable.
You make a good point that clarity between HL and low-level could be
improved. For example the C++ binding is LL, but is that really
useful...?
I've started a thread on HL consistency:
http://www.zeromq.org/topics:binding-abstractions
We might want to make the HL / LL semantic split more explicit in all
languages, that would be useful IMO.
> Clearly position ZAPI as a separate product.
What does that mean, literally, and what about other language
bindings? I've really tried to clearly do that, while remaining
consistent with other language bindings. It's got its own website,
separate git, separate documentation, and is clearly marked as such in
the Guide.
-Pieter
More information about the zeromq-dev
mailing list