[swift-corelibs-dev] libdispatch/GCD for Swift 3.0 on Linux

Joseph Bell joe at iachieved.it
Tue Jun 21 08:15:00 CDT 2016


Dave,

Thanks for the details, I appreciate it.  I have seen the term "Swift
overlay" used, particularly in the context of libdispatch.  What does that
mean exactly in this regard (searching for it returns tutorials on overlay
UIViews which I doubt is appropriate here).

I certainly hope GCD is included in Swift 3.0 on Linux too!

Joe


On Tue, Jun 21, 2016 at 7:59 AM, David P Grove <groved at us.ibm.com> wrote:

> Hi Joe,
>
> TL;DR: right now the Swift 3.0 overlay for libdispatch is not available on
> Linux.
>
> But, a variety of activities are kicking off to get it there.  There
> should be visible progress (and opportunities to help if you are so
> inclined) over the next few weeks.
>
> >
> > While working to convert some NSThread code over to GCD on Linux I
> > noticed that (to my dismay) GCD wasn't included in the Swift 3.0
> > preview build, nor is it apart of the buildbot for Linux.  Scouring
> > through the repository and mailing lists I can see where it is
> > possible to build, but there are no downstream instructions on how
> > to make a line like this:
> >
> > let queue = DispatchQueue(label: "com.app.queue")
> >
> > work with the swiftc compiler on Linux.
> >
> > A couple of questions:
> >
> > * are there any timelines that the principals of GCD with Swift 3 on
> > Linux can share; i.e., is the plan to have it included in time for
> > the Swift 3 GA release later this year?
>
> I certainly hope so; but cannot speak for official plans.
>
> > * are there any follow-up instructions past getting it built on how
> > to use it (or will make install DESTDIR place it in the right spots
> > in the Swift 3 toolchain hierarchy?)
> >
>
> I expect when things are done, it will be similar to how building the
> current Swift-2 dispatch overlay works on Linux.  To build from source you
> use swift/utils/build-script with --libdispatch and it takes care of all
> the details (ie, it just works...).
>
> --dave
>
>


-- 
Joseph Bell
http://dev.iachieved.it/iachievedit/
@iachievedit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-corelibs-dev/attachments/20160621/b709df31/attachment.html>


More information about the swift-corelibs-dev mailing list