Is libpmemobj++ production ready?

43 views
Skip to first unread message

Yue Li

unread,
Jan 15, 2018, 8:01:57 PM1/15/18
to pmem
hello, 

I saw libpmemobj++ wasn't marked experimental on pmem.io:


But in the blog articles on it (they are old articles though), and on its doxygen web:


It is marked as experimental. 

Just wondered what is the latest status on this development?

Best, 

Yue

Piotr Balcer

unread,
Jan 16, 2018, 6:03:52 AM1/16/18
to pmem
The C++ bindings themselves are complete. Having said that, we are continuously pursuing
avenues on how to improve them by introducing new features to the language.

The experimental parts is the standard allocator implementation (http://en.cppreference.com/w/cpp/concept/Allocator).
This allocator allows one to use standard library containers in conjunction with libpmemobj++, for example:

   std::vector<foo, pmem::obj::allocator<foo>> foovec;

Due to various issues with both the C++ language itself and the standard library implementations,
especially the GNU's libstdc++, this is currently inadvisable.

We are engaged with C++ study groups to enable this usage model in future versions of C++.

But if you are willing to use custom standard library implementation, the allocator implementation
is complete and fully working. Here's the fork of libc++ that we adopted to work with our bindings:
https://github.com/pmem/libcxx

Piotr

Yue Li

unread,
Jan 18, 2018, 2:43:46 PM1/18/18
to pmem
Thank you Piotr!

Best, 

Yue
Reply all
Reply to author
Forward
0 new messages