You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,
I tried to run this on window... to no avail. Basically, Go for windows does not support mmap and its siblings.
Not being the type that backs up that easily, I set to try to solve it (Bear in mind, I had Go installed locally because I found a nice tutorial few days ago, but haven't actually used it and have zero experience with the language).
I found online a Go package that is supposed to make mmap work in windows:
It didn't work out right out of the oven, so I tinkered with it and - several hours later - I had a working server running under windows :)
Still haven't used it so can't tell it it really works (I went as far as creating a collection, and the benchmark doesn't work). I haven't got any ide of how the prot flags work in Windows compared to *nix, and same for the flags, so I just put there what I thought was correct. Find below the patch for file.go
I made several fixes to mmap-go library and used it in tiedot beta, now it has been fully tested on Windows operating system (I tested it in Windows Server 2003 32-bit and Windows 7 64-bit).
Hi there,
I tried to run this on window... to no avail. Basically, Go for windows does not support mmap and its siblings.
Not being the type that backs up that easily, I set to try to solve it (Bear in mind, I had Go installed locally because I found a nice tutorial few days ago, but haven't actually used it and have zero experience with the language).
I found online a Go package that is supposed to make mmap work in windows:
https://github.com/edsrzf/mmap-go
It didn't work out right out of the oven, so I tinkered with it and - several hours later - I had a working server running under windows :)
Still haven't used it so can't tell it it really works (I went as far as creating a collection, and the benchmark doesn't work). I haven't got any ide of how the prot flags work in Windows compared to *nix, and same for the flags, so I just put there what I thought was correct. Find below the patch for
file.go
P.S.: HN brought me here.
The text was updated successfully, but these errors were encountered: