Announcing libasync, a cross-platform D event loop

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Wed Sep 24 23:51:38 PDT 2014


On 24/09/14 22:09, Etienne wrote:

> I've thought about it but it isn't compatible with other BSD platforms
> and has no docs about using it with kqueue, it ended up looking more
> complicated and unstable because I could read complaints everywhere I
> looked. It ended up putting me in a direction where I needed separate
> threads with their own event loops and communication through signals,
> which didn't fit in with what I was used to doing from what the other
> platforms offered.

The only complains I've seen with FSEvents is that it doesn't support 
notifying about file changes, only directory changes. But that has been 
fixed in OS X 10.7 so that complain is moot.

> I found the solution with kqueue's vnode, which acts like inotify. It
> doesn't have recursion nor file modification events when watching
> folders so individual files had to be watched and the directories
> checked against cache data every time an event came in.

That sounds like a quite big limitation.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list