Re: Depending on libnotify

2014-07-07 Thread Gregory Szorc
On 7/4/14, 7:46 AM, David Rajchenbach-Teller wrote: Well, we basically have the Windows version implemented already. We could possibly use Watchman for other platforms. How do others feel about introducing a dependency towards Watchman? The inotify limitation on watchers is indeed annoying in

Re: Depending on libnotify

2014-07-06 Thread Karl Tomlinson
Philip Chee writes: On 02/07/2014 18:13, David Rajchenbach-Teller wrote: We had libnotify support but this was removed from the tree on the grounds that it didn't suit our needs. I don't think those were the grounds. AIUI it was just that people didn't want to put effort into a lower

Re: Depending on libnotify

2014-07-05 Thread Philip Chee
On 02/07/2014 18:13, David Rajchenbach-Teller wrote: For its recently landed WebIDE, the devtools team needs a component to watch changes in a directory (they are currently using a somewhat hackish workaround that they want to replace with something better supported). Both Windows and MacOS X

Re: Depending on libnotify

2014-07-04 Thread David Rajchenbach-Teller
Well, we basically have the Windows version implemented already. We could possibly use Watchman for other platforms. How do others feel about introducing a dependency towards Watchman? I'm not so happy about the idea of using libuv. We already have many ways of performing I/O and introducing yet

Depending on libnotify

2014-07-02 Thread David Rajchenbach-Teller
For its recently landed WebIDE, the devtools team needs a component to watch changes in a directory (they are currently using a somewhat hackish workaround that they want to replace with something better supported). Both Windows and MacOS X provide built-in functions for this purpose but most

Re: Depending on libnotify

2014-07-02 Thread Mike Hommey
On Wed, Jul 02, 2014 at 12:13:44PM +0200, David Rajchenbach-Teller wrote: For its recently landed WebIDE, the devtools team needs a component to watch changes in a directory (they are currently using a somewhat hackish workaround that they want to replace with something better supported). Both

Re: Depending on libnotify

2014-07-02 Thread David Rajchenbach-Teller
The main usecase is an editor that needs to 1/ reload resources when they have been modified by an outside application; 2/ see when resources are added or removed. In other words, watching a directory (recursively) for add/remove/modify changes to files. Which library do you suggest? Cheers,

Re: Depending on libnotify

2014-07-02 Thread Dirkjan Ochtman
On Wed, Jul 2, 2014 at 1:41 PM, David Rajchenbach-Teller dtel...@mozilla.com wrote: Which library do you suggest? Take a look at watchman: https://github.com/facebook/watchman Cheers, Dirkjan ___ dev-platform mailing list

Re: Depending on libnotify

2014-07-02 Thread Mike Hommey
On Wed, Jul 02, 2014 at 02:23:51PM +0200, Dirkjan Ochtman wrote: On Wed, Jul 2, 2014 at 1:41 PM, David Rajchenbach-Teller dtel...@mozilla.com wrote: Which library do you suggest? Take a look at watchman: https://github.com/facebook/watchman That one uses inotify as well. Might as well

Re: Depending on libnotify

2014-07-02 Thread Ivan Enderlin @ Hoa
Hello :-), On 02/07/2014 13:41, David Rajchenbach-Teller wrote: Which library do you suggest? libuv also allows to watch a FS, whatever the platform: https://github.com/joyent/libuv. Cheers. -- Ivan Enderlin Developer of Hoa http://hoa-project.net/ PhD. student at DISC/Femto-ST (Vesontio)

Re: Depending on libnotify

2014-07-02 Thread Mike Hommey
On Wed, Jul 02, 2014 at 01:41:54PM +0200, David Rajchenbach-Teller wrote: The main usecase is an editor that needs to 1/ reload resources when they have been modified by an outside application; 2/ see when resources are added or removed. In other words, watching a directory (recursively) for

Re: Depending on libnotify

2014-07-02 Thread David Rajchenbach-Teller
According to the manpage of fanotify, « there is no support for create, delete, and move events, » which would make it useless for our scenario. What kind of drawbacks are you talking about in the case of inotify? The possible race condition that [1] attempts to solve? Are there any build

Re: Depending on libnotify

2014-07-02 Thread Gregory Szorc
I've written a cross-platform file watching API for Windows/OS X/Linux before. It's no fun. I would strongly recommend using an existing higher-level abstraction layer because implementing this ourselves will lead to constant edge case discovery and bug fixing. I'd like to think that any