Skip to content

Conversation

@shikokuchuo
Copy link
Member

The NNG 2.0 API is not compatible in quite a few cases, but where the APIs already exist, we should migrate as much as possible beforehand to minimize the changes.

Doing a recv() using NNG_FLAG_ALLOC directly into a buffer is no longer possible in NNG 2.0. Instead the more 'modern' (and performant) way to do things is via nng_recvmsg().

FYI @lionel- this is just the start. The non-compatible changes will be done on a new branch, and we will bundle NNG 2.0 there so that we don't need to maintain multiple code paths for compatibility.

@shikokuchuo
Copy link
Member Author

For non-trivial changes to C code, I like to build the tarball locally and run R CMD check --use-valgrind on it (on Ubuntu), checking that the examples and tests .Rout files are completely clean.

For more substantial changes and prior to release, I will run it through many of the platforms on rhub.

@shikokuchuo shikokuchuo merged commit 900edda into main Oct 14, 2025
13 checks passed
@shikokuchuo shikokuchuo deleted the api branch October 14, 2025 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants