Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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/



If you sign up for notifications on both github projects, you can watch the watchmen.


But then, who watches the watcher?


Microsoft, via the analytics on GitHub.


Ok, but then who watches the watchmen watcher?


The SEC.

Oh, who am I kidding. Nobody, obviously.


Coastguard


Hardly comforting, but okay.


Q


Dr. dre ofcourse.


use facebook's watchman to watch changes to the source for OPs watchman to commit changes to the source of facebook's watchman to commit changes to OP's


It’s a good day when I can get a laugh out of HN heh


Also 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://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.


Also 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-m...

[1]: PIC microcontroller, is a small hardware simliar to arduino but more on a lower level.


Also not to be confused with watchexec (my tool of choice for executing commands on file changes):

https://github.com/watchexec/watchexec


Not to be confused with the Watchmen; the comic :)


5. Windows is supported.


Alternately, Facebook's project is not to be confused with this significantly older one.


Both projects are from around 2014.


The Python integration seems to be abandoned unfortunately and isn’t keeping up with the parent. No longer works with django filewatching.


PSA: it doesn't work on Ubuntu 22.04. I wanted to use it a few months ago, and it's not yet fixed.


Also support for other OS's - like Windows.


I have just used some Power Shell scripts for stuff like this in the past on Windows.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: