Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm not sure what really needs abstracting about it other than tuning stuff for a given kernel/system.

It's already extremely high level from a certain perspective :)



Boost.interprocess is an example of an abstraction over mmap which solves some of the things the blog post mentions. It abstracts away the difference between mmap() and CreateViewOfFile(), and gives you smart pointers and container types which are close to being drop-in replacements for std::vector and std::map that can be stored in a memory-mapped file.


Someone has to own the memory region and know it gets munmap()ed not free()d. (deleted?)

If you send it over IPC it's nice to keep it mmapped instead of accidentally copying it too.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: