[erlang-questions] [ANN] nifpp: C++11 wrappers for NIF API

Daniel Goertzen daniel.goertzen@REDACTED
Wed Mar 28 05:22:20 CEST 2012

I'm pleased to announce nifpp, C++11 wrappers for the Erlang NIF API.
 nifpp provides...

- Conversions to/from C++ container types, namely tuple, vector, list,
deque, set, and multiset.
- A safe resource wrapper so that any type can be created as a resource.

Source and documentation here:

I need to polish, test and document binary support, but the rest of it is
in good shape so I'm sharing it now.

Below are links to C and C++ versions of an identical tuple manipulation
operation.  The C++ version is [imho] easier to understand, and it actually
benchmarks slightly faster than the C version on most of my runs.


And here is an example of resource wrapping.  The Boost class
"mapped_file_source" which provides portable file memory mapping is
instantiated as an Erlang resource.


All feedback appreciated.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120327/d63a022c/attachment.htm>

More information about the erlang-questions mailing list