[Unison-hackers] unison and inotify principle

Benjamin Pierce bcpierce at cis.upenn.edu
Fri Jun 6 06:43:25 EDT 2008


Well, in any case the main implementation work is on the side of the  
external notifier.  What's already there on Unison's side is enough  
to work with.  If someone gets far enough along with the external  
tool to need a more sophisticated interface to Unison, I'll be happy  
to work with them on getting it implemented (especially if it's on  
OSX, where it's easy for me to develop and test).

     - Benjamin


On Jun 5, 2008, at 9:04 AM, Sylvain Le Gall wrote:
> On 05-06-2008, Benjamin Pierce <bcpierce at cis.upenn.edu> wrote:
>>> Forget to say: you can use "Unix.select" or similar polling
>>> function to
>>> check if there are data to be readi/write (not very portable
>>> though, but
>>> better than nothing).
>>>
>>> Unix.select will work on Mac and Linux. It will work on Windows with
>>> OCaml 3.11
>>
>> That's useful information and it may make indeed make the Unison side
>> easier to implement in terms of pipes.  (Actually, your design and
>> mine are not so very far apart, I think -- using files vs. pipes
>> [with enough buffering] should amount to much the same thing in the
>> end.)
>>
>
> Indeed, i think we could add to the former required command line
> option of FOO:
> - "-in fl": read dir/file to watch from file fl, if fl = "-", read  
> from
>   stdin
> - "-out fl": write name of file changed on file fl, if fl = "-", write
>   to stdout
> + others options defined in a former post (-enc...)
>
> This way we can have almost both of what you think and what i propose
> with a little change...
>
> Regards,
> Sylvain Le Gall
>
> _______________________________________________
> Unison-hackers mailing list
> Unison-hackers at lists.seas.upenn.edu
> http://lists.seas.upenn.edu/mailman/listinfo/unison-hackers



More information about the Unison-hackers mailing list