Re: [swift-corelibs-dev] [swift-dev] [RFC] Toolchain based build process

2016-06-10 Thread Karl via swift-corelibs-dev
We can’t separate building for ‘Build’ and building for an arbitrary ‘Host’. For those who don’t know, this is how cross-compiling works with Swift (this isn’t off-topic, I’m going to bring it back firmly to this proposal): Currently, when you install the compiler, the standard library is in (p

[swift-corelibs-dev] IndexSet isStrictSubsetOf bug?

2016-06-17 Thread Karl via swift-corelibs-dev
Is this a bug in IndexSet? It seems like it should return true, but it returns false: IndexSet([0,2]).isStrictSubset(of: IndexSet([0,1,2])) From the documentation: > Returns a Boolean value that indicates whether this set is a strict subset of > the given set. > Set A is a strict subset of ano

[swift-corelibs-dev] New GCD API change: DispatchWorkItems should be retained by their groups

2016-07-07 Thread Karl via swift-corelibs-dev
Hi, I’d like to propose a change to the new GCD API; that DispatchWorkItems be retained by their groups (and in turn, for them to be retained by their queues). This allows for whoever created the work item to create a weak reference to it, as an indicator for whether or not it has finished exec