<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=""><div class="">Getting GCD up and rolling is definitely a bottleneck for a few things (not just NSURLSession).&nbsp;<div class=""><br class=""></div><div class="">There are a few things that we need as checkpoints:</div><div class="">A set of build instructions tailored for the swift project</div><div class="">GCD needs to be able to build on Ubuntu 14 as well as Ubuntu 15</div><div class="">We need to move Availability.h and friends down underneath both GCD and Foundation since they both use them</div><div class="">We need to move the blocks runtime out of Foundation and underneath or inside of GCD.</div><div class="">The master build script in swift/utils/build-script needs to be able to build GCD</div><div class="">The master build script in swift/utils/build-script to ensure GCD and all required components are built before Foundation and the appropriate linker paths are passed to Foundation (see how XCTest is handled)</div></div><div class=""><br class=""></div><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 13, 2016, at 10:39 AM, David P Grove 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=""><div class=""><p class=""><tt class=""><br class="">&gt; From: Robert Stephen Thompson via swift-corelibs-dev &lt;swift-<br class="">&gt; <a href="mailto:corelibs-dev@swift.org" class="">corelibs-dev@swift.org</a>&gt;</tt><br class=""><tt class="">&gt; <br class="">&gt; I might be wrong (I obviously don’t work for Apple or anything), but<br class="">&gt; when I looked at it, the main stumbling block at this point is the <br class="">&gt; lack of libdispatch. I mean, all the basic network stuff could be <br class="">&gt; implemented with posix APIs no problem, but basically all of what <br class="">&gt; makes NSURLSession et al actually cool comes from GCD. Which does <br class="">&gt; make me wonder what the status of libdispatch is now… I did try <br class="">&gt; building it on Linux and it appears to now build “out of the box” <br class="">&gt; (after installing some additional dependencies), but tests hang. </tt><br class=""><br class=""><tt class="">Hi,</tt><br class=""><br class=""><tt class="">        I'm hoping you are seeing as a hang is just an unfortunate current ordering of test cases. &nbsp;For me, the tests run and 29 of 32 pass. &nbsp;It is currently running dispatch_select as the first test, which is perhaps a bad choice. &nbsp;The sub test "kevent read 1" of dispatch_select takes about 90 seconds with no output for me, so the test may appear to be hanging. &nbsp;Be patient ;)</tt><br class=""><br class=""><tt class="">&gt; How<br class="">&gt; will we go about integrating it with the corelibs-foundation project<br class="">&gt; once it’s ready to try doing that?</tt><br class=""><tt class="">&gt;</tt><br class=""><br class=""><tt class="">This is a great question (but for someone who knows more about corelibs-foundation than me....). &nbsp;I think libdispatch on Linux is getting close to being ready for this next step. &nbsp;</tt><br class=""><br class=""><br class=""><tt class="">--dave</tt><br class=""><br class=""><br class="">

<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=0mkChau6XnFV-2FCNUik62L9ZaldD0W0ziOwj-2F3jLx36-2B82tiO5fCR7lQYPKXqacH6jhV0gQF1x08SfPsCnIlOspeQ8jxQ-2BqhQphSiVM5LU09Iz6Eyobb9eXeHMDQXR6657KSs4Gx1kbvHdGnGd9CZJ9NT5VLIdHnNN3OpUZh8llPHxP0sFhNwnj95Y1DHllyB4J-2B-2BfaA2GK3JP42-2BKlsebFQVLjQSa-2FIuQnfq57KeSUg-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;" class="">
</p></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>