4 ms·
It's funny how this centered around ZeroMQ, which is written in C++.
by lukaslalinsky 11y ago
It's funny how this centered around ZeroMQ, which is written in C++.
- geocar 11y agoThis might be part of the reason: * http://250bpm.com/blog:4 http://250bpm.com/blog:4 * http://250bpm.com/blog:8 http://250bpm.com/blog:8
- lukaslalinsky 11y agoInteresting, in this case it seems the choice to keep using C++ is just the most practical decision, which is much better than telling people to use C, but developing a library in C++.
- jeremyjh 11y agoWhich are weak arguments that point more to the author's dissatisfaction with the architecture of libzmq than with problems in C++ language. This was discussed previously here: https://news.ycombinator.com/item?id=3953434 https://news.ycombinator.com/item?id=3953434
- unscaled 11y agoIt's worth noting this was written by a different author.
- PieterH 11y agoIt is at heart a guide to using CZMQ, the high level C binding for ZeroMQ. More broadly, how to write scalable C applications like Zyre and Malamute. The fact ZeroMQ is written in C++ is invisible and irrelevant, except that it's easy to wrap in C.
- lukaslalinsky 11y agoThe point is that you are telling people to use C instead of C++ and that the best way to do that is by using a library that is written in C++. I completely understand that it's invisible, but it's not irrelevant -- it's not eating your own dog food (given that you are the author of ZeroMQ).
- PieterH 11y agoZeroMQ is a community of many projects. The old core library is libzmq, written in C++ by hundreds of people, led originally by Martin Sustrik. The library I'm explaining in this book is CZMQ, a high level C binding for libzmq that offers such things as actors, pollers, certificate management, beacons, and containers. CZMQ of course uses libzmq to send messages between processes and threads. In fact libzmq exposes only a C API, not C++ at all.