4 ms·
Not to be confused with Facebook’s file watch daemon, also names watchman, which does the same sort of thing but is more complicated. There’s a bunch of tools t
by jitl 4y ago
Not to be confused with Facebook’s file watch daemon, also names watchman, which does the same sort of thing but is more complicated. There’s a bunch of tools that integrate Facebook’s watchman for more efficient change tracking.
Advantages of Facebook’s watchman:
1. Implements efficient file system event watches on macOS and Windows
2. IPC/daemon system reduces resource use because overlapping watches/triggers don’t use more inotify slots.
3. Denounces / waits for changes to settle
4. Client libraries in a few different languages for scripting purposes
https://facebook.github.io/watchman/ https://facebook.github.io/watchman/
- HelloNurse 4y ago5. Windows is supported.
- deleted 4y ago[deleted]
- dec0dedab0de 4y agoAlso not to be confused with watchdog and it's command watchmedo, which is what I thought this was when I first read the headline. I don't know what the differences are, but I use watchdog to restart my local celery workers when I make changes. It's scripted out so I don't ever use the command directly. https://pypi.org/project/watchdog/ https://pypi.org/project/watchdog/ https://github.com/gorakhargosh/watchdog https://github.com/gorakhargosh/watchdog EDIT: Now I'm wondering how often I miss out on something because I confuse it for something I already use. Maybe there is room for a "things I use" or "things I know about" browser plugin.
- ghassanmas 4y agoAlso to note "watchdog" the term. Is used also in hardware/software context. Usually as a way to mitgate or recover system faulate. I first I heard of this term while taking in a course about PIC microcontroller[1]. > The Watchdog Timer in the PIC16F819 The watchdog timer can be a real source of pain and can also make a PIC system incredibly robust and reliable. But what exactly is the watchdog timer? Simply put, the watchdog timer is a hardware timer in the PIC that, if not constantly reset by the software, will cause the PIC to reset. This feature can be incredibly useful if the PIC should hang due to a hardware or software issue and guarantees that the PIC will restart from the beginning. Not only does it reset the system, it also flags a bit that can be used to determine if the system just crashed. Ref: https://maker.pro/pic/tutorial/how-to-get-started-with-pic-microcontrollers-timer0-and-the-watchdog-timer https://maker.pro/pic/tutorial/how-to-get-started-with-pic-m... [1]: PIC microcontroller, is a small hardware simliar to arduino but more on a lower level.
- damagednoob 4y agoAlso not to be confused with watchexec (my tool of choice for executing commands on file changes): https://github.com/watchexec/watchexec https://github.com/watchexec/watchexec
- hamparawa 4y agoNot to be confused with the Watchmen; the comic :)
- martincmartin 4y agoIf you sign up for notifications on both github projects, you can watch the watchmen.
- graypegg 4y agoIt’s a good day when I can get a laugh out of HN heh
- Manu40 4y agoBut then, who watches the watcher?
- adhesive_wombat 4y agoMicrosoft, via the analytics on GitHub.
- Manu40 4y agoHardly comforting, but okay.
- MengerSponge 4y agoOk, but then who watches the watchmen watcher?
- kbenson 4y agoThe SEC. Oh, who am I kidding. Nobody, obviously.
- deleted 4y ago[deleted]
- Wherecombinator 4y agoCoastguard
- jinnko 4y agoQ
- Semiapies 4y agoAlternately, Facebook's project is not to be confused with this significantly older one.
- amenghra 4y agoBoth projects are from around 2014.
- malkia 4y agoAlso support for other OS's - like Windows.
- giantg2 4y agoI have just used some Power Shell scripts for stuff like this in the past on Windows.
- electromech 4y agoPSA: it doesn't work on Ubuntu 22.04. I wanted to use it a few months ago, and it's not yet fixed.
- jsmeaton 4y agoThe Python integration seems to be abandoned unfortunately and isn’t keeping up with the parent. No longer works with django filewatching.