<font face="Verdana,Arial,Helvetica,sans-serif" size="2"><div>Hi Tony, Daniel, </div><div><br></div><div>Thanks for your responses. </div><div><br></div><div>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.</div><div><br></div><div>I realise this may need some code restructuring.</div><div><br></div><div><font face="Verdana,Arial,Helvetica,sans-serif" size="2"><font><font><div class="socmaildefaultfont" dir="ltr"><div class="socmaildefaultfont" dir="ltr"><div class="socmaildefaultfont" dir="ltr"><div dir="ltr" style="font-style: normal;"><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif">Pushkar N Kulkarni,</font></div>
<div dir="ltr" style="font-style: normal;"><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif">IBM Runtimes</font></div><div dir="ltr" style="font-style: normal;"><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif"><br></font></div><div dir="ltr"><font face="serif, Times New Roman, Times, serif"><i>Simplicity is prerequisite for reliability - Edsger W. Dijkstra</i></font></div>
<div dir="ltr" style="font-style: normal; font-size: 10.5pt; font-family: Arial;"><br></div></div></div></div></font></font></font></div><br><br><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" color="#000000"><font color="#990099">-----Daniel Eggert <<a href="mailto:danieleggert@me.com" target="_blank">danieleggert@me.com</a>> wrote: -----</font><div class="iNotesHistory" style="padding-left:5px;"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px;">To: Tony Parker <<a href="mailto:anthony.parker@apple.com" target="_blank">anthony.parker@apple.com</a>><br>From: Daniel Eggert <<a href="mailto:danieleggert@me.com" target="_blank">danieleggert@me.com</a>><br>Date: 04/19/2016 08:21PM<br>Cc: Pushkar N Kulkarni/India/IBM@IBMIN, Swift corelibs dev <<a href="mailto:swift-corelibs-dev@swift.org" target="_blank">swift-corelibs-dev@swift.org</a>><br>Subject: Re: [swift-corelibs-dev] NSURLSession & libcurl<br><br><!--Notes ACF
<meta http-equiv="content-type" content="text/html; charset=utf8">--><div></div><div>I don't think it compiles, but I haven't tried, yet. I've been trying to keep it up-to-date with master. </div><div><br></div><div>/Daniel</div><div><br>On Apr 18, 2016, at 13:15, Tony Parker <<a href="mailto:anthony.parker@apple.com">anthony.parker@apple.com</a>> wrote:<br><br></div><blockquote type="cite"><div><!--Notes ACF
<meta http-equiv="Content-Type" content="text/html charset=utf8">-->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.<div class=""><br class=""></div><div class="">- Tony<br class=""><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On Apr 18, 2016, at 11:24 AM, Pushkar N Kulkarni <<a href="mailto:pushkar.nk@in.ibm.com" class="">pushkar.nk@in.ibm.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><font face="Verdana,Arial,Helvetica,sans-serif" size="2" class=""><div class="">Thanks for your great work on NSURLSession and friends, Daniel!<br class=""></div><div class=""><br class=""></div><div class="">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.</div><div class=""><font face="Verdana,Arial,Helvetica,sans-serif" size="2" class=""><font class=""><font class=""><div class="socmaildefaultfont" dir="ltr"><div class="socmaildefaultfont" dir="ltr"><div class="socmaildefaultfont" dir="ltr"><div dir="ltr" style="font-style: normal;" class=""><br class=""></div><div dir="ltr" style="font-style: normal;" class="">Thanks!</div><div dir="ltr" style="font-style: normal;" class=""><br class=""><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class="">Pushkar N Kulkarni,</font></div><div dir="ltr" style="font-style: normal;" class=""><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class="">IBM Runtimes</font></div><div dir="ltr" style="font-style: normal;" class=""><font face="Sans Serif, Verdana, Arial, Helvetica, sans-serif" class=""><br class=""></font></div><div dir="ltr" class=""><font face="serif, Times New Roman, Times, serif" class=""><i class="">Simplicity is prerequisite for reliability - Edsger W. Dijkstra</i></font></div><div dir="ltr" style="font-style: normal; font-size: 10.5pt; font-family: Arial;" class=""><br class=""></div></div></div></div></font></font></font></div><br class=""><br class=""><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2" class=""><font color="#990099" class=""><a href="mailto:-----swift-corelibs-dev-bounces@swift.org" target="_blank" class="">-----swift-corelibs-dev-bounces@swift.org</a> wrote: -----</font><div class="iNotesHistory" style="padding-left:5px;"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px;" class="">To: Swift corelibs dev <<a href="mailto:swift-corelibs-dev@swift.org" target="_blank" class="">swift-corelibs-dev@swift.org</a>><br class="">From: Daniel Eggert via swift-corelibs-dev <!--Notes ACF
<swift-corelibs-dev@swift.org class="">--><br class="">Sent by: <a href="mailto:swift-corelibs-dev-bounces@swift.org" target="_blank" class="">swift-corelibs-dev-bounces@swift.org</a><br class="">Date: 04/05/2016 12:14AM<br class="">Subject: Re: [swift-corelibs-dev] NSURLSession & libcurl<br class=""><br class=""><div class=""><font face="Courier New,Courier,monospace" size="3" class="">I won't be able to put too many more hours into this after next week.<br class=""><br class=""><a href="https://github.com/apple/swift-corelibs-foundation/pull/299" class="">https://github.com/apple/swift-corelibs-foundation/pull/299</a><br class=""><br class="">Feedback is very welcome.<br class=""><br class="">The tests show what's working, and there are "TODO:" markers throughout the code where applicable.<br class=""><br class="">/Daniel<br class=""><br class="">_______________________________________________<br class="">swift-corelibs-dev mailing list<br class=""><a href="mailto:swift-corelibs-dev@swift.org" target="_blank" class="">swift-corelibs-dev@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-corelibs-dev" class="">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev</a><br class=""></font></div><!--Notes ACF
</swift-corelibs-dev@swift.org>--></div></div></font></font><br class="">
</div></blockquote></div><br class=""></div></div></div></blockquote></div></div></font></font><BR>