News for hackers. Stuff that matters.
Re:The mmap pattern by comex on Thursday May 01, 2014 @02:07AM (#7678494)
For a while I've wanted a nice C library for an mmapped heap with allocation and common data structures (and maybe locks?) - all the usual stuff you'd expect in a standard library, but with support for relative offsets instead of pointers, crash robustness, introspection, and other features required to work well with a persistent file. I do not know any library of this type that currently exists.
Re:The mmap pattern by jasonjackson on Thursday May 01, 2014 @02:31AM (#7678569)
I believe this would qualify as a Java library https://github.com/peter-lawrey/Java-Chronicle

"This library also supports distributed, durable, observable collections (Map, List, Set)" "It uses almost no heap, trivial GC impact, can be much larger than your physical memory size (only limited by the size of your disk) and can be shared between processes with better than 1/10th latency of using Sockets over loopback."

Re:The mmap pattern by nly on Thursday May 01, 2014 @09:12AM (#7679483)
For C++:

http://www.boost.org/doc/libs/1_55_0/doc/html/interprocess.h...

"Boost.Interprocess offers useful tools to construct C++ objects, including STL-like containers, in shared memory and memory mapped files"

Re:The mmap pattern by sovande on Thursday May 01, 2014 @06:15AM (#7679017)
SQLite
Re:The mmap pattern by jadc on Thursday May 01, 2014 @07:28AM (#7679176)
You can also check out libgist at http://gist.cs.berkeley.edu/libgist-2.0/
Re:The mmap pattern by mtdewcmu on Thursday May 01, 2014 @09:47AM (#7679671)
BerkeleyDB?