[erlang-questions] [ANN] nifpp: C++11 wrappers for NIF API
Wed Mar 28 05:22:20 CEST 2012
I'm pleased to announce nifpp, C++11 wrappers for the Erlang NIF API.
- 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...
More information about the erlang-questions