I think that would make a giant mess. I'm curious how far off we are for having 
lob libdispatch on Linux. I think it would be worth waiting a bit longer I n 
stead of making the code illegible. Just my 2¢.

/Daniel


> On Apr 20, 2016, at 04:23, Pushkar N Kulkarni <[email protected]> wrote:
> 
> Hi Tony, Daniel, 
> 
> Thanks for your responses. 
> 
> Would it be acceptable if, for now, we check for the availability of Dispatch 
> and conditionally compile calls to it into the current implementation of 
> NSURLSession* (something like the  _HAS_DISPATCH__ macro used in 
> CoreFoundation)? This would make NSURLSession and related classes functional 
> with a custom toolchain that has Dispatch, on Linux. It'd also make them 
> functional on OS X.
> 
> I realise this may need some code restructuring.
> 
> Pushkar N Kulkarni,
> IBM Runtimes
> 
> Simplicity is prerequisite for reliability - Edsger W. Dijkstra
> 
> 
> 
> -----Daniel Eggert <[email protected]> wrote: -----
> To: Tony Parker <[email protected]>
> From: Daniel Eggert <[email protected]>
> Date: 04/19/2016 08:21PM
> Cc: Pushkar N Kulkarni/India/IBM@IBMIN, Swift corelibs dev 
> <[email protected]>
> Subject: Re: [swift-corelibs-dev] NSURLSession & libcurl
> 
> I don't think it compiles, but I haven't tried, yet. I've been trying to keep 
> it up-to-date with master. 
> 
> /Daniel
> 
>> On Apr 18, 2016, at 13:15, Tony Parker <[email protected]> wrote:
>> 
>> I think that’s a fair approach - but does this even compile on Linux without 
>> dispatch in place? I get “no such module ‘Dispatch’” errors when compiling.
>> 
>> - Tony
>> 
>>> On Apr 18, 2016, at 11:24 AM, Pushkar N Kulkarni <[email protected]> 
>>> wrote:
>>> 
>>> Thanks for your great work on NSURLSession and friends, Daniel!
>>> 
>>> I was wondering if we are only waiting for dispatch to be available on 
>>> Linux here. In that case, could we have the failing tests (if any) excluded 
>>> (only on Linux perhaps) and have this merged please? Some of us at IBM 
>>> would like to work with the current implementation and contribute on top of 
>>> it.
>>> 
>>> Thanks!
>>> 
>>> Pushkar N Kulkarni,
>>> IBM Runtimes
>>> 
>>> Simplicity is prerequisite for reliability - Edsger W. Dijkstra
>>> 
>>> 
>>> 
>>> [email protected] wrote: -----
>>> To: Swift corelibs dev <[email protected]>
>>> From: Daniel Eggert via swift-corelibs-dev 
>>> Sent by: [email protected]
>>> Date: 04/05/2016 12:14AM
>>> Subject: Re: [swift-corelibs-dev] NSURLSession & libcurl
>>> 
>>> I won't be able to put too many more hours into this after next week.
>>> 
>>> https://github.com/apple/swift-corelibs-foundation/pull/299
>>> 
>>> Feedback is very welcome.
>>> 
>>> The tests show what's working, and there are "TODO:" markers throughout the 
>>> code where applicable.
>>> 
>>> /Daniel
>>> 
>>> _______________________________________________
>>> swift-corelibs-dev mailing list
>>> [email protected]
>>> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev
> 
_______________________________________________
swift-corelibs-dev mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

Reply via email to