Oh -- also libevent, described at <a href="http://www.monkey.org/~provos/libevent/">http://www.monkey.org/~provos/libevent/</a> :<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
Currently, <i>libevent</i> supports
<i><a href="http://access1.sun.com/techarticles/devpoll.html">/dev/poll</a></i>,
<i><a href="http://www.freebsd.org/cgi/man.cgi?query=kqueue&apropos=0&sektion=0&format=html">kqueue(2)</a></i>,
<i><a href="http://developers.sun.com/solaris/articles/event_completion.html">event ports</a></i>,
<i>select(2)</i>,
<i>poll(2)</i> and <i><a href="http://www.xmailserver.org/linux-patches/epoll.txt">epoll(4)</a></i>.
The internal event mechanism is completely independent of the exposed
event API, and a simple update of libevent can provide new
functionality without having to redesign the applications. As a
result, <i>Libevent</i> allows for portable application development
and provides the most scalable event notification mechanism available
on an operating system.
Libevent can also be used for multi-threaded
applications; see Steven Grimm's <a href="http://monkeymail.org/archives/libevent-users/2007-January/000450.html">explanation</a>.
<i>Libevent</i> should compile on Linux, *BSD,
Mac OS X, Solaris and Windows.<br></blockquote><br><div class="gmail_quote">On Fri, Dec 4, 2009 at 10:52 PM, Conal Elliott <span dir="ltr"><<a href="mailto:conal@conal.net">conal@conal.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks, Matt. I see libev is available via macports. - Conal<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Fri, Dec 4, 2009 at 3:03 PM, Matt Morrow <span dir="ltr"><<a href="mailto:moonpatio@gmail.com" target="_blank">moonpatio@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Conal,<br>
<br>
If I were looking to do this, I'd read the relevant parts of the libev code.<br>
<font color="#888888"><br>
Matt<br>
</font><div><div></div><div><br>
<br>
On 12/3/09, Conal Elliott <<a href="mailto:conal@conal.net" target="_blank">conal@conal.net</a>> wrote:<br>
> I'd like to make some FRPish toys that keep files updated to have functional<br>
> relationships with other files. hinotify looks like just the sort of<br>
> underlying magic I could use for efficient implementation on linux. Is<br>
> there any support for mac os x? Could support be either added to hinotify<br>
> or maybe inotify and a mac-friendly library be abstracted into a common<br>
> Haskell interface? I'm fine with an imperative interface, since I can<br>
> abstract into a functional library, which I guess would be a sort of<br>
> persistent simplified FRP.<br>
><br>
> - Conal<br>
><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>