News for hackers. Stuff that matters.
Re:Two Weeks of Rust by amelius on Tuesday January 12, 2016 @07:50AM (#10887066)
Hmm, it seems this library only provides the basic I/O.

The main problem is not opening the mmapped file. The problem is having a kind of pointer that allows arbitrary offsetting, and using this pointer inside standard data structures.

Re:Two Weeks of Rust by fpoling on Tuesday January 12, 2016 @09:45AM (#10887653)
Rust has typesafe arenas, when one allocates small objects from a bigger chunk of memory and typesystem ensures that small objects do not outlive the chunk. I suppose mmap files could be treated similarly when assembling a pointer from an offset stored in the mmaped file is treated as an allocation.