[swift-corelibs-dev] NSTask and NSFileHandle implementation

Daniel Eggert danieleggert at me.com
Tue Apr 19 20:46:17 CDT 2016


Wouldn't it still be a huge win to use dispatch for reading from / writing to a file descriptor?

/Daniel


> On Apr 18, 2016, at 01:52, Chris Bailey via swift-corelibs-dev <swift-corelibs-dev at swift.org> wrote:
> 
> Hi Dan: 
> 
> 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. 
> 
> Chris
> 
> 
> 
> 
> From:        Dan Stenmark via swift-corelibs-dev <swift-corelibs-dev at swift.org> 
> To:        Alexander Alemayhu <alexander at alemayhu.com> 
> Cc:        Swift core libraries <swift-corelibs-dev at swift.org> 
> Date:        16/04/2016 22:00 
> Subject:        Re: [swift-corelibs-dev] NSTask and NSFileHandle implementation 
> Sent by:        swift-corelibs-dev-bounces at swift.org 
> 
> 
> 
> 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?  In particular, I’m interested in the status of DISPATCH_SOURCE_TYPE_READ and DISPATCH_SOURCE_TYPE_PROC. 
> 
> 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. 
> 
> Dan 
> 
> 
> On Apr 16, 2016, at 1:55 PM, Dan Stenmark <daniel.j.stenmark at gmail.com> wrote: 
> 
> Hey Alexander, 
> 
> I supplied most of the initial implementation of NSTask, but was holding off on IO redirection until someone tackled NSFileHandle.  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. 
> 
> Dan 
> 
> On Apr 16, 2016, at 1:50 AM, Alexander Alemayhu via swift-corelibs-dev <swift-corelibs-dev at swift.org> wrote: 
> 
> Hei Everyone, 
> 
> Is anyone working on the NSTask and/or NSFileHandle implementation? 
> 
> I would like to fix the hangs issue in order to revert [3aa8434][0](disable 
> NSTask tests for now since it can cause hangs., 2016-01-21), but want to avoid 
> duplicating work. Fixing this should also resolve [SR-625][1]. 
> 
> Thanks. 
> 
> [0]: https://github.com/apple/swift-corelibs-foundation/commit/3aa8434df50d9513a0ac1646fb52516a092fa728 
> [1]: https://bugs.swift.org/browse/SR-625 
> 
> -- 
> Mit freundlichen Grüßen
> 
> Alexander Alemayhu 
> _______________________________________________
> swift-corelibs-dev mailing list
> swift-corelibs-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev 
> 
> _______________________________________________
> swift-corelibs-dev mailing list
> swift-corelibs-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev
> 
> 
> _______________________________________________
> swift-corelibs-dev mailing list
> swift-corelibs-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-corelibs-dev/attachments/20160419/602e2834/attachment.html>


More information about the swift-corelibs-dev mailing list