paul-nameless / nim-fswatch

Nim wrapper for the libfswatch
GNU General Public License v3.0
18 stars 1 forks source link

comparison with other packages #1

Open timotheecour opened 4 years ago

timotheecour commented 4 years ago

(migrated from https://github.com/idlewan/nim-fswatch/issues/1)

Curious how it compares to other packages

related nim 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)

other links

scratch below, may not be relevant anymore

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