Virtual-Insurance-Products / cldb

GNU General Public License v3.0
44 stars 2 forks source link

Use a portability library for mmap #1

Open phoe opened 3 years ago

phoe commented 3 years ago

https://github.com/Shinmera/mmap should work across all Lisp implementations supported by CFFI and on all platforms that expose either the Windows or POSIX API.

ppymdjr commented 3 years ago

Well, yes - obviously :) I was just too lazy to sort that initially. A few of the libraries here seriously need to use the portable things - the MOP being another obvious example. I need to just check something. There's an oddity with the mapped array being offset by one somewhere, so I need to make sure I handle it. Thanks for the pointer. Do you happen to know whether Shinmera/mmap happily mmaps as unsigned 64 bit words?

ppymdjr commented 3 years ago

(if people are interested I'd quite like to get this library to the stage where it's actually possible for other people to use it)

ppymdjr commented 3 years ago

Shinmera said this: https://old.reddit.com/r/lisp/comments/k0vq7p/a_fast_atomic_consistent_isolated_memory_based/gdkwx8m/