<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 20, 2016, at 9:43 AM, Daniel Eggert via swift-corelibs-dev &lt;<a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="content-type" content="text/html; charset=utf-8" class=""><div dir="auto" class=""><div class=""></div><div class="">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¢.</div></div></div></blockquote><div><br class=""></div>+1, having another incentive to drive libdispatch to be part of the snapshots doesn't seem like a bad thing.</div><div><br class=""></div><div>&nbsp;- Daniel</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="auto" class=""><div class=""><br class=""></div><div class="">/Daniel</div><div class=""><br class=""></div><div class=""><br class="">On Apr 20, 2016, at 04:23, Pushkar N Kulkarni &lt;<a href="mailto:pushkar.nk@in.ibm.com" class="">pushkar.nk@in.ibm.com</a>&gt; wrote:<br class=""><br class=""></div><blockquote type="cite" class=""><div class=""><font face="Verdana,Arial,Helvetica,sans-serif" size="2" class=""><div class="">Hi Tony, Daniel,&nbsp;</div><div class=""><br class=""></div><div class="">Thanks for your responses.&nbsp;</div><div class=""><br class=""></div><div class="">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 &nbsp;_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 class=""><br class=""></div><div class="">I realise this may need some code restructuring.</div><div class=""><br class=""></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=""><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="">-----Daniel Eggert &lt;<a href="mailto:danieleggert@me.com" target="_blank" class="">danieleggert@me.com</a>&gt; wrote: -----</font><div class="iNotesHistory" style="padding-left:5px;"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px;" class="">To: Tony Parker &lt;<a href="mailto:anthony.parker@apple.com" target="_blank" class="">anthony.parker@apple.com</a>&gt;<br class="">From: Daniel Eggert &lt;<a href="mailto:danieleggert@me.com" target="_blank" class="">danieleggert@me.com</a>&gt;<br class="">Date: 04/19/2016 08:21PM<br class="">Cc: Pushkar N Kulkarni/India/IBM@IBMIN, Swift corelibs dev &lt;<a href="mailto:swift-corelibs-dev@swift.org" target="_blank" class="">swift-corelibs-dev@swift.org</a>&gt;<br class="">Subject: Re: [swift-corelibs-dev] NSURLSession &amp; libcurl<br class=""><br class=""><!--Notes ACF
<meta http-equiv="content-type" content="text/html; charset=utf8">--><div class=""></div><div class="">I don't think it compiles, but I haven't tried, yet. I've been trying to keep it up-to-date with master.&nbsp;</div><div class=""><br class=""></div><div class="">/Daniel</div><div class=""><br class="">On Apr 18, 2016, at 13:15, Tony Parker &lt;<a href="mailto:anthony.parker@apple.com" class="">anthony.parker@apple.com</a>&gt; wrote:<br class=""><br class=""></div><blockquote type="cite" class=""><div class=""><!--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 class=""><blockquote type="cite" class=""><div class="">On Apr 18, 2016, at 11:24 AM, Pushkar N Kulkarni &lt;<a href="mailto:pushkar.nk@in.ibm.com" class="">pushkar.nk@in.ibm.com</a>&gt; 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 &lt;<a href="mailto:swift-corelibs-dev@swift.org" target="_blank" class="">swift-corelibs-dev@swift.org</a>&gt;<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 &amp; 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 class="">

</div></blockquote></div>_______________________________________________<br class="">swift-corelibs-dev mailing list<br class=""><a href="mailto:swift-corelibs-dev@swift.org" class="">swift-corelibs-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-corelibs-dev<br class=""></div></blockquote></div><br class=""></body></html>