<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>Wouldn't it still be a huge win to use dispatch for reading from / writing to a file descriptor?</div><div><br></div><div>/Daniel</div><div><br></div><div><br>On Apr 18, 2016, at 01:52, Chris Bailey via swift-corelibs-dev &lt;<a href="mailto:swift-corelibs-dev@swift.org">swift-corelibs-dev@swift.org</a>&gt; wrote:<br><br></div><blockquote type="cite"><div><font size="2" face="sans-serif">Hi Dan:</font>
<br>
<br><font size="2" face="sans-serif">The Dispatch sources are mostly complete
- unfortunately DISPATCH_SOURCE_TYPE_PROC isn't there and it unlikely to
be there in a hurry. It would ideally need the underlying kqueue library
to have EVFILT_PROC support, which it doesn't today.</font>
<br>
<br><font size="2" face="sans-serif">Chris<br>
</font>
<br>
<br>
<br>
<br><font size="1" color="#5f5f5f" face="sans-serif">From: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size="1" face="sans-serif">Dan Stenmark via swift-corelibs-dev
&lt;<a href="mailto:swift-corelibs-dev@swift.org">swift-corelibs-dev@swift.org</a>&gt;</font>
<br><font size="1" color="#5f5f5f" face="sans-serif">To: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size="1" face="sans-serif">Alexander Alemayhu
&lt;<a href="mailto:alexander@alemayhu.com">alexander@alemayhu.com</a>&gt;</font>
<br><font size="1" color="#5f5f5f" face="sans-serif">Cc: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size="1" face="sans-serif">Swift core libraries
&lt;<a href="mailto:swift-corelibs-dev@swift.org">swift-corelibs-dev@swift.org</a>&gt;</font>
<br><font size="1" color="#5f5f5f" face="sans-serif">Date: &nbsp; &nbsp; &nbsp;
&nbsp;</font><font size="1" face="sans-serif">16/04/2016 22:00</font>
<br><font size="1" color="#5f5f5f" face="sans-serif">Subject: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size="1" face="sans-serif">Re: [swift-corelibs-dev]
NSTask and NSFileHandle implementation</font>
<br><font size="1" color="#5f5f5f" face="sans-serif">Sent by: &nbsp; &nbsp;
&nbsp; &nbsp;</font><font size="1" face="sans-serif"><a href="mailto:swift-corelibs-dev-bounces@swift.org">swift-corelibs-dev-bounces@swift.org</a></font>
<br>
<hr noshade="">
<br>
<br>
<br><font size="3">While we’re on the subject, I’ve been out of the loop
for a little while: how’s the Linux-side implementation of dispatch sources
looking these days? &nbsp;In particular, I’m interested in the status
of DISPATCH_SOURCE_TYPE_READ and DISPATCH_SOURCE_TYPE_PROC.</font>
<br>
<br><font size="3">Right now, NSTask is using Good Ol’ CFRunLoops for it’s
event handling, and I’d really like to move that over to GCD as soon as
I can.</font>
<br>
<br><font size="3">Dan</font>
<br>
<br>
<br><font size="3">On Apr 16, 2016, at 1:55 PM, Dan Stenmark &lt;</font><a href="mailto:daniel.j.stenmark@gmail.com"><font size="3" color="blue"><u>daniel.j.stenmark@gmail.com</u></font></a><font size="3">&gt;
wrote:</font>
<br>
<br><font size="3">Hey Alexander,</font>
<br>
<br><font size="3">I supplied most of the initial implementation of NSTask,
but was holding off on IO redirection until someone tackled NSFileHandle.
&nbsp;I can’t say if anyone else on this list is working on this right
now, but if not and if you’re really interested in finishing NSFileHandle,
I would (very happily!) take care of the relevant implementation in NSTask.</font>
<br>
<br><font size="3">Dan</font>
<br>
<br><font size="3">On Apr 16, 2016, at 1:50 AM, Alexander Alemayhu via swift-corelibs-dev
&lt;</font><a href="mailto:swift-corelibs-dev@swift.org"><font size="3" color="blue"><u>swift-corelibs-dev@swift.org</u></font></a><font size="3">&gt;
wrote:</font>
<br>
<br><font size="3">Hei Everyone,</font>
<br>
<br><font size="3">Is anyone working on the NSTask and/or NSFileHandle implementation?
</font>
<br>
<br><font size="3">I would like to fix the hangs issue in order to revert
[3aa8434][0](disable</font>
<br><font size="3">NSTask tests for now since it can cause hangs., 2016-01-21),
but want to avoid</font>
<br><font size="3">duplicating work. Fixing this should also resolve [SR-625][1].</font>
<br>
<br><font size="3">Thanks.</font>
<br>
<br><font size="3">[0]: </font><a href="https://github.com/apple/swift-corelibs-foundation/commit/3aa8434df50d9513a0ac1646fb52516a092fa728"><font size="3" color="blue"><u>https://github.com/apple/swift-corelibs-foundation/commit/3aa8434df50d9513a0ac1646fb52516a092fa728</u></font></a>
<br><font size="3">[1]: </font><a href="https://bugs.swift.org/browse/SR-625"><font size="3" color="blue"><u>https://bugs.swift.org/browse/SR-625</u></font></a>
<br>
<br><font size="3">-- </font>
<br><font size="3">Mit freundlichen Grüßen<br>
<br>
Alexander Alemayhu</font>
<br><font size="3">_______________________________________________<br>
swift-corelibs-dev mailing list</font><font size="3" color="blue"><u><br>
</u></font><a href="mailto:swift-corelibs-dev@swift.org"><font size="3" color="blue"><u>swift-corelibs-dev@swift.org</u></font></a><font size="3" color="blue"><u><br>
</u></font><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev"><font size="3" color="blue"><u>https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</u></font></a>
<br>
<br><tt><font size="2">_______________________________________________<br>
swift-corelibs-dev mailing list<br>
<a href="mailto:swift-corelibs-dev@swift.org">swift-corelibs-dev@swift.org</a><br>
</font></tt><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev"><tt><font size="2">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</font></tt></a><tt><font size="2"><br>
</font></tt>
<br>
<br>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>swift-corelibs-dev mailing list</span><br><span><a href="mailto:swift-corelibs-dev@swift.org">swift-corelibs-dev@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a></span><br></div></blockquote></body></html>