[swift-corelibs-dev] NSURLSession & libcurl

Daniel Dunbar daniel_dunbar at apple.com
Wed Apr 20 11:59:26 CDT 2016


> On Apr 20, 2016, at 9:43 AM, Daniel Eggert via swift-corelibs-dev <swift-corelibs-dev at swift.org> wrote:
> 
> 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¢.

+1, having another incentive to drive libdispatch to be part of the snapshots doesn't seem like a bad thing.

 - Daniel

> 
> /Daniel
> 
> 
> On Apr 20, 2016, at 04:23, Pushkar N Kulkarni <pushkar.nk at in.ibm.com <mailto:pushkar.nk at in.ibm.com>> 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 <danieleggert at me.com <mailto:danieleggert at me.com>> wrote: -----
>> To: Tony Parker <anthony.parker at apple.com <mailto:anthony.parker at apple.com>>
>> From: Daniel Eggert <danieleggert at me.com <mailto:danieleggert at me.com>>
>> Date: 04/19/2016 08:21PM
>> Cc: Pushkar N Kulkarni/India/IBM at IBMIN, Swift corelibs dev <swift-corelibs-dev at swift.org <mailto:swift-corelibs-dev at swift.org>>
>> 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 <anthony.parker at apple.com <mailto:anthony.parker at apple.com>> 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 <pushkar.nk at in.ibm.com <mailto:pushkar.nk at in.ibm.com>> 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
>>>> 
>>>> 
>>>> 
>>>> -----swift-corelibs-dev-bounces at swift.org <mailto:-----swift-corelibs-dev-bounces at swift.org> wrote: -----
>>>> To: Swift corelibs dev <swift-corelibs-dev at swift.org <mailto:swift-corelibs-dev at swift.org>>
>>>> From: Daniel Eggert via swift-corelibs-dev 
>>>> Sent by: swift-corelibs-dev-bounces at swift.org <mailto:swift-corelibs-dev-bounces at swift.org>
>>>> 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 <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
>>>> swift-corelibs-dev at swift.org <mailto:swift-corelibs-dev at swift.org>
>>>> https://lists.swift.org/mailman/listinfo/swift-corelibs-dev <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/20160420/88951883/attachment.html>


More information about the swift-corelibs-dev mailing list