Re: [swift-dev] [Swift CI] Build Still Failing: OSS - Swift Package - Ubuntu 16.10 (swift 4.1) #291

2017-12-05 Thread Mishal Shah via swift-dev
Hi, Does anyone know whats going on here? We started seeing this after re-branching swift-4.1-branch from master yesterday. ninja: error: '/home/buildnode/jenkins/workspace/oss-swift-4.1-package-linux-ubuntu-16_10/build/buildbot_linux/swift-linux-x86_64/lib/swift/linux/x86_64/swift_begin.o',

[swift-dev] [Swift CI] Build Failure: OSS - Swift Package - OS X (swift 4.1) #290

2017-12-05 Thread no-reply--- via swift-dev
Title: Report [FAILURE] oss-swift-4.1-package-osx [#290] Build URL:https://ci.swift.org/job/oss-swift-4.1-package-osx/290/ Project:oss-swift-4.1-package-osx Date of build:Tue, 05 Dec 2017 20:44:08 -0600 Build duration:57 min Identified problems:Compile Error: This build f

Re: [swift-dev] TwoWordPair::Return and Calling Conventions on x64 Windows

2017-12-05 Thread John McCall via swift-dev
> On Dec 5, 2017, at 8:30 PM, Thomas Roughton via swift-dev > wrote: > > I've been working on getting Swift running properly on 64-bit Windows and > wanted to get some feedback/ideas on a specific issue. > > In swift/Runtime/HeapObject.h, there is a TwoWordPair::Return type intended > to re

Re: [swift-dev] TwoWordPair::Return and Calling Conventions on x64 Windows

2017-12-05 Thread Jordan Rose via swift-dev
Since all of the functions that use TwoWordPair::Return are part of the Swift runtime and not intended to be overloaded, we could also just make them all `extern "C"`, or give them explicit mangled names, either everywhere or just on x64 Windows. Jordan > On Dec 5, 2017, at 17:30, Thomas Roug

[swift-dev] TwoWordPair::Return and Calling Conventions on x64 Windows

2017-12-05 Thread Thomas Roughton via swift-dev
I've been working on getting Swift running properly on 64-bit Windows and  wanted to get some feedback/ideas on a specific issue.  In swift/Runtime/HeapObject.h, there is a TwoWordPair::Return type intended to return two word-sized values in registers. On Windows, structs are returned indirectl

Re: [swift-dev] [swift-build-dev] Swift CI will be down for maintenance - Dec 5th 2017 - 1pm PST

2017-12-05 Thread Mishal Shah via swift-dev
Hi Slava, Your pull request is in the queue. Build #1771 — https://ci.swift.org/job/swift-PR-osx/ Thanks, Mishal Shah > On Dec 5, 2017, at 4:34 PM, Slava Pestov wrote: > > CI is not triggering for me here: https://github.com/apple/swift/pull/13288 >

Re: [swift-dev] [swift-build-dev] Swift CI will be down for maintenance - Dec 5th 2017 - 1pm PST

2017-12-05 Thread Slava Pestov via swift-dev
CI is not triggering for me here: https://github.com/apple/swift/pull/13288 Slava > On Dec 5, 2017, at 4:25 PM, Mishal Shah via swift-dev > wrote: > > Maintenance completed. > > Thanks, > Mishal Shah > >> On Dec 5, 2017, at 1:00 PM, Mishal Shah v

Re: [swift-dev] [swift-build-dev] Swift CI will be down for maintenance - Dec 5th 2017 - 1pm PST

2017-12-05 Thread Mishal Shah via swift-dev
Maintenance completed. Thanks, Mishal Shah > On Dec 5, 2017, at 1:00 PM, Mishal Shah via swift-build-dev > wrote: > > Maintenance started. > > >> On Dec 4, 2017, at 5:18 PM, Mishal Shah > > wrote: >> >> We will be taking down ci.swift.org

Re: [swift-dev] [SE-0143] Dynamic casting for conditional conformances

2017-12-05 Thread Slava Pestov via swift-dev
> On Dec 5, 2017, at 4:05 PM, Douglas Gregor via swift-dev > wrote: > > > >> On Dec 5, 2017, at 3:56 PM, David Hart > > wrote: >> >> But that wouldn’t allow surfacing a func type(named: String) Standard >> Library function that worked on any type, wouldn’t it (lik

Re: [swift-dev] [SE-0143] Dynamic casting for conditional conformances

2017-12-05 Thread Douglas Gregor via swift-dev
> On Dec 5, 2017, at 3:56 PM, David Hart wrote: > > But that wouldn’t allow surfacing a func type(named: String) Standard Library > function that worked on any type, wouldn’t it (like the Dictionary with > non-Hashable key)? As I noted to John, we still need to handle the general case for th

Re: [swift-dev] [SE-0143] Dynamic casting for conditional conformances

2017-12-05 Thread Douglas Gregor via swift-dev
> On Dec 5, 2017, at 3:42 PM, John McCall wrote: > >> On Dec 5, 2017, at 5:28 PM, Douglas Gregor via swift-dev >> mailto:swift-dev@swift.org>> wrote: >> Hi all, >> >> The main missing piece for conditional conformances >> (https://github.com/apple/swift-evolution/blob/master/proposals/0143-c

Re: [swift-dev] [SE-0143] Dynamic casting for conditional conformances

2017-12-05 Thread Slava Pestov via swift-dev
> On Dec 5, 2017, at 3:42 PM, John McCall via swift-dev > wrote: > >> On Dec 5, 2017, at 5:28 PM, Douglas Gregor via swift-dev >> mailto:swift-dev@swift.org>> wrote: >> Hi all, >> >> The main missing piece for conditional conformances >> (https://github.com/apple/swift-evolution/blob/master

Re: [swift-dev] [SE-0143] Dynamic casting for conditional conformances

2017-12-05 Thread David Hart via swift-dev
But that wouldn’t allow surfacing a func type(named: String) Standard Library function that worked on any type, wouldn’t it (like the Dictionary with non-Hashable key)? > On 6 Dec 2017, at 00:42, John McCall via swift-dev > wrote: > >> On Dec 5, 2017, at 5:28 PM, Douglas Gregor via swift-dev

Re: [swift-dev] [Proposal] RangeReplaceableCollection should inherits from MutableCollection

2017-12-05 Thread Cao, Jiannan via swift-dev
String should be some kind of MutableCollection. if we really want to restrict subscript of String should be { get } only, then we should consider make some extension methods of MutableCollection should available on SubrangeReplaceablecollection too. For example: > > var c = [1, 2, 3, 4] > pr

Re: [swift-dev] [SE-0143] Dynamic casting for conditional conformances

2017-12-05 Thread John McCall via swift-dev
> On Dec 5, 2017, at 5:28 PM, Douglas Gregor via swift-dev > wrote: > Hi all, > > The main missing piece for conditional conformances > (https://github.com/apple/swift-evolution/blob/master/proposals/0143-conditional-conformances.md > >

Re: [swift-dev] [Proposal] RangeReplaceableCollection should inherits from MutableCollection

2017-12-05 Thread Ben Cohen via swift-dev
> On Dec 5, 2017, at 2:48 PM, Jordan Rose via swift-dev > wrote: > > > >> On Dec 4, 2017, at 18:48, Brent Royal-Gordon via swift-dev >> wrote: >> >>> On Dec 2, 2017, at 12:31 PM, Cao, Jiannan via swift-dev >>> wrote: >>> >>> I'd like to discuss the relation between RangeReplaceableColl

Re: [swift-dev] [Proposal] RangeReplaceableCollection should inherits from MutableCollection

2017-12-05 Thread Dave Abrahams via swift-dev
Sent from my iPhone > On Dec 5, 2017, at 12:19 AM, Cao, Jiannan via swift-dev > wrote: > > > But, I mean, what subscript (restrict to the length) could do is subset of p > replaceSubrange could do, right? True but that would imply the opposite of the refinement relationship you’re suggest

Re: [swift-dev] [Proposal] RangeReplaceableCollection should inherits from MutableCollection

2017-12-05 Thread Jordan Rose via swift-dev
> On Dec 4, 2017, at 18:48, Brent Royal-Gordon via swift-dev > wrote: > >> On Dec 2, 2017, at 12:31 PM, Cao, Jiannan via swift-dev >> wrote: >> >> I'd like to discuss the relation between RangeReplaceableCollection and >> MutableCollection >> >> MutableCollection is a Collection type that

[swift-dev] [SE-0143] Dynamic casting for conditional conformances

2017-12-05 Thread Douglas Gregor via swift-dev
Hi all, The main missing piece for conditional conformances (https://github.com/apple/swift-evolution/blob/master/proposals/0143-conditional-conformances.md) is support for dynamic casting. Right now, dynamic casting that queries a conditional conformance will always fail. Here’s an example: p

Re: [swift-dev] Bug for FIXME(sil-serialize-all) @_inlineable cleanup?

2017-12-05 Thread Michael Ilseman via swift-dev
CC Max, Ben > On Dec 5, 2017, at 2:03 PM, Greg Parker via swift-dev > wrote: > > Many stdlib functions were temporarily marked @_inlineable in the fallout of > killing sil-serialize-all. Where is the bug report tracking their resolution? > > The C runtime currently needs to export otherwise-

[swift-dev] Bug for FIXME(sil-serialize-all) @_inlineable cleanup?

2017-12-05 Thread Greg Parker via swift-dev
Many stdlib functions were temporarily marked @_inlineable in the fallout of killing sil-serialize-all. Where is the bug report tracking their resolution? The C runtime currently needs to export otherwise-private symbols so they can be called by such functions. Those symbols can't be un-exported

Re: [swift-dev] Swift CI will be down for maintenance - Dec 5th 2017 - 1pm PST

2017-12-05 Thread Mishal Shah via swift-dev
Maintenance started. > On Dec 4, 2017, at 5:18 PM, Mishal Shah wrote: > > We will be taking down ci.swift.org for maintenance > tomorrow Dec 5th 2017 at 1pm PST to update the Xcode. Please avoid triggering > pull request testing during the maintenance. > > Xcode 9.2

Re: [swift-dev] [Proposal] RangeReplaceableCollection should inherits from MutableCollection

2017-12-05 Thread Cao, Jiannan via swift-dev
Yes. ‘replaceSubrange(myRange, with: newCharacters)’ is different than subscript, because it may change the length. But, I mean, what subscript (restrict to the length) could do is subset of p replaceSubrange could do, right? 在 2017年12月5日,10:48,Brent Royal-Gordon 写道: >> On Dec 2, 2017, at

Re: [swift-dev] [Proposal] RangeReplaceableCollection should inherits from MutableCollection

2017-12-05 Thread Cao, Jiannan via swift-dev
Yes. ‘replaceSubrange(myRange, with: newCharacters)’ is different than subscript, because it may change the length. But any subscript could do that replaceSubrange could do, right? 在 2017年12月5日,10:48,Brent Royal-Gordon 写道: >> On Dec 2, 2017, at 12:31 PM, Cao, Jiannan via swift-dev >> wrot