-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for nng #202
Comments
totally agree.
so user would need to have a CMAKE to build it and i wonder if there's a nice way to do an npm install with a cmake process @nickdesaulniers, are you aware of anything like that? @nullr0ute, we're building libnanomsg in the old school autoconf style but skipping just based on how hard that whole thing is to get right, i would imagine an npm-cmake would be better |
I don't know enough about the build process to comment, but
|
I think nng should be a different library than node-nanomsg. It's non
trivial to write nodejs native libraries (C++), and you can't just swap
them out. Nng may be api compatible, but I'll bet it's not abi compatible,
so it's not like it's a drop in replacement for us.
…On Fri, Jan 11, 2019, 6:12 PM snailuj ***@***.*** wrote:
I don't know enough about the build process to comment, but nng has API
compatibility with nanomsg as one of its core aims, so once the cmake
change is made there *may* only be a few changes required to the
node-nanomsg C++ files.
Today nng offers this. You can relink an existing nanomsg binary against
libnng instead of libnn, and it usually Just Works™. Source compatibility
is almost as easy, although the application code needs to be modified to
use different header files. I am considering changing the include file in
the future so that it matches exactly the nanomsg include path, so that
only a compiler flag change would be needed.
https://nanomsg.github.io/nng/RATIONALE.html
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#202 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABvUX6z47-TvgJzKjZCKHs4MDbU2mvwgks5vCUR9gaJpZM4ZbbHO>
.
|
after looking into NNG a bit more I agree with Nick, we can close this issue/question problem 1
a lot of new api plus clearly something there to preserve our current libnanomsg operations: // This file supplies the legacy compatibility API. Applications should
// avoid using these if at all possible, and instead use the new style APIs. https://github.com/nanomsg/nng/blob/master/src/compat/nanomsg/nn.c Not the real issue! Interface compatibility is like the last hurdle to an nng integration w/ nodejs problem 2this is our real issue and the basis for separating a node-nng module into a different binding we have the nontrivial prerequisite to build and compile nng as C/C++11 binaries for direct execution from the node.js runtimes. nng uses a totally different build process than the versions of libnanomsg we're building for nodejs |
nng is the new upstream replacement to nanomsg https://github.com/nanomsg/nng
It would be useful to be able to use either the older nanomsg while providing a migration path to nng
The text was updated successfully, but these errors were encountered: