4 ms·
On a related note; does anyone know what the plans are for memory mapped files/io in Rust? I had a look at the documentation[1], and it would seem a bit fragile
by e12e 13y ago
On a related note; does anyone know what the plans are for memory mapped files/io in Rust? I had a look at the documentation[1], and it would seem a bit fragile atm? Would it be viable to implement something along a database or webcache using rust's current mmap, and have a hope of it working both on *bsd and Linux?
Any pointers to where one would start to do raw mmap-ing in rust (say for implementing an os...)?
[1] http://static.rust-lang.org/doc/master/std/os/struct.MemoryMap.html http://static.rust-lang.org/doc/master/std/os/struct.MemoryM...
- kibwen 13y agoFor pointers on that sort of thing, I'd try the IRC channel. #rust on irc.mozilla.org. Or try the mailing list: https://mail.mozilla.org/listinfo/rust-dev https://mail.mozilla.org/listinfo/rust-dev .
- dbaupp 13y agoIn theory MemoryMap supports all platforms (i.e. Linux, BSD, Windows and OSX), with a uniform for the basic functionality; but the more specialised uses (which aren't common across operating systems) may require using some platform-specific flags. But, yes, I don't think there's been much effort put into streamlining it fully.