idlewan / nim-fswatch

Nim bindings for the fswatch library
0 stars 0 forks source link

comparison: fsmonitor, nimwatch, nim-fswatch #1

Open timotheecour opened 5 years ago

timotheecour commented 5 years ago

/cc @bluenote10 @dom96 @snowlt23

the readme.md doesn't contain much so was wondering:

related packages

in D

there's this: https://code.dlang.org/packages/fswatch

Platform Watching Directory Watching File
Windows ReadDirectoryChangesW (very fast, accurate) polling using std.file.timeLastModified and std.file.exists (fast, not accurate for quick write)
Linux inotify (very fast, accurate) inotify (very fast, accurate)
Other polling using std.file.dirEntries (slow, not accurate) polling using std.file.timeLastModified and std.file.exists (fast, not accurate for quick write)

note

was about to recommend Nim in this post https://forum.dlang.org/thread/igsegyczboysopismnft@forum.dlang.org (Can i watch folders/files for changes with D language?) (he was looking for a viable language with cross platform gui + file monitoring) but lack of file monitoring seems a blocker for that

timotheecour commented 4 years ago

=> moving discussion to this new repo which seems to be maintained and works on OSX: https://github.com/paul-nameless/nim-fswatch/issues/1