Re: [swift-dev] Implementation of Type Erasers

2016-09-19 Thread Chris Eidhof via swift-dev
Hm. I'm not sure if the performance difference is a hard limitation because of implementation decisions, or if it would be possible to make the current implementation as fast as the closure-based implementation. I don't understand enough about the codegen (and about possible optimizations) to make

Re: [swift-dev] Implementation of Type Erasers

2016-09-19 Thread Chris Eidhof via swift-dev
Oh, also: for AnyIterator it was a pretty clear performance gain (in my testing). I haven't tested other erasers such as AnySequence, but even if they're faster, they will have to store more closures (instead of a single base pointer) and will thus have memory overhead... On Mon, Sep 19, 2016 at 9

[swift-dev] Rebinding UnsafePointer makes it mutable

2016-09-19 Thread Martin R via swift-dev
I noticed that both UnsafePointer and UnsafeMutablePointer have the identical method public func withMemoryRebound(to: T.Type, capacity count: Int, _ body: (UnsafeMutablePointer) throws -> Result) rethrows -> Result so that rebinding an immutable pointer gives you a _mutable_ pointer. That

Re: [swift-dev] Debian/Ubuntu Package

2016-09-19 Thread Joseph Bell via swift-dev
Paulo, yes, I know for Debian that it starts with https://wiki.debian.org/DebianMentorsFaq, but I can't claim to have gone through the process myself. My sense is that for Swift to be a first-class citizen in the Debian or Ubuntu repos that someone at Apple should (not must) sponsor it. On Sun, S

[swift-dev] Extending Swift's continuous integration

2016-09-19 Thread Brian Gesiak via swift-dev
Hello all, (+cc Ted Kremenek, John Holdsworth, Philippe Hausler) Following up on https://github.com/apple/swift-corelibs-foundation/pull/622#issuecomment-247630142, I'd like to discuss expanding the range of platforms that are tested by @swift-ci. Currently, @swift-ci is capable of "test macOS pl

Re: [swift-dev] Extending Swift's continuous integration

2016-09-19 Thread Brian Gesiak via swift-dev
Oops, forgot to actually CC people. My bad! On Mon, Sep 19, 2016 at 8:02 AM, Brian Gesiak wrote: > Hello all, > (+cc Ted Kremenek, John Holdsworth, Philippe Hausler) > > Following up on https://github.com/apple/swift-corelibs-foundation/ > pull/622#issuecomment-247630142, I'd like to discuss exp

Re: [swift-dev] Android: Build error: No such module "SwiftGlibc"

2016-09-19 Thread Brian Gesiak via swift-dev
Swift Android builds successfully for me. Following all the preliminary steps from https://github.com/apple/swift/blob/master/docs/Android.md, such as building libicu, I can successfully build with the following command on the master branch of apple/swift this morning: utils/build-script -R \

Re: [swift-dev] Android: Build error: No such module "SwiftGlibc"

2016-09-19 Thread Brian Gesiak via swift-dev
In case anyone's interested in writing some Python, here's a task for giving utils/update-checkout a --tag option: https://bugs.swift.org/browse/SR-2695 - Brian On Mon, Sep 19, 2016 at 9:01 AM, Brian Gesiak wrote: > Swift Android builds successfully for me. Following all the preliminary > step

[swift-dev] 'SwiftShims': no such file or directory

2016-09-19 Thread Eric Wing via swift-dev
I've been trying to build Swift for Linux with --installable-package to build a swift-package.tar.gz that I can install to another Linux machine. When I extract my package on the other machine, and try either compiling a simple print("hello world") program either with swiftc, or doing this in the

Re: [swift-dev] Android: Build error: No such module "SwiftGlibc"

2016-09-19 Thread Eric Wing via swift-dev
So I did some superstition as William suggested and started removing and changing a bunch of build flags. At some point, the message went away, and when I put the flags back, the message didn't come back. My original attempt should have been a completely clean checkout and rebuild from scratch. (T

[swift-dev] More Swift 3 Raspberry Pi 2 build problems

2016-09-19 Thread Eric Wing via swift-dev
I temporarily hacked around the NSXMLNode.swift integer literal overflow error I mentioned in the other thread to continue the build. I hit a few more problems afterwards. First, there was some kind of segmentation fault. It looks like swift crashed trying to build libXCTest.so. =

[swift-dev] Specify Xcode command line tools when building Swift?

2016-09-19 Thread Brian Gesiak via swift-dev
Hello all, I have two copies of Xcode on my development machine: /Applications/Xcode-7.3.1.app and /Applications/Xcode.app (which is Xcode 8.0). I have `Xcode > Preferences... > Locations > Command Line Tools` set to /Applications/Xcode-7.3.1.app, since I need Xcode 7.3.1 to build a different pro

Re: [swift-dev] 'SwiftShims': no such file or directory

2016-09-19 Thread Daniel Dunbar via swift-dev
Are you building within a shared folder? We have heard reports of this happening in such an environment, but we don't have a handle on the exact steps to reproduce. Getting that information would be very useful. - Daniel > On Sep 19, 2016, at 6:53 AM, Eric Wing via swift-dev > wrote: > > I'

Re: [swift-dev] Specify Xcode command line tools when building Swift?

2016-09-19 Thread Daniel Dunbar via swift-dev
> On Sep 19, 2016, at 8:24 AM, Brian Gesiak via swift-dev > wrote: > > Hello all, > > I have two copies of Xcode on my development machine: > /Applications/Xcode-7.3.1.app and /Applications/Xcode.app (which is Xcode > 8.0). > > I have `Xcode > Preferences... > Locations > Command Line Tools

Re: [swift-dev] [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 14.04 (master) #7476

2016-09-19 Thread Ankit Aggarwal via swift-dev
This has been randomly failing a lot and I can't reproduce locally, Should I disable this test for now? fatal error: 'try!' expression unexpectedly raised an error: POSIX.ShellError.popen(["echo", "foo"], read error: Bad file descriptor (9)): file /home/buildnode/disk2/workspace/oss-swift-incr

Re: [swift-dev] [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 14.04 (master) #7476

2016-09-19 Thread Michael Gottesman via swift-dev
I would appreciate it if you would do so = ). This is I imagine blocking @swift-ci testing. Michael > On Sep 17, 2016, at 12:43 AM, Ankit Aggarwal via swift-dev > wrote: > > This has been randomly failing a lot and I can't reproduce locally, Should I > disable this test for now? > > fatal e

Re: [swift-dev] [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 14.04 (master) #7476

2016-09-19 Thread Daniel Dunbar via swift-dev
If we disable this please make sure we have a bug tracking fixing it. This seems worth investigating soon. - Daniel > On Sep 19, 2016, at 9:27 AM, Michael Gottesman wrote: > > I would appreciate it if you would do so = ). > > This is I imagine blocking @swift-ci testing. > > Michael > >> O

[swift-dev] TWISt-shout Newsletter 2016-09-19

2016-09-19 Thread Kenny Leung via swift-dev
Here is your TWISt-shout Newsletter for the week of 2016-09-12 to 2016-09-18 https://github.com/pepperdog/TWISt-shout/blob/master/2016/TWISt-shout-2016-09-19.md Enjoy! -Kenny ___ swift-dev mailing list swift-dev@swift.org https://lists.swift.org/mailm

Re: [swift-dev] Rebinding UnsafePointer makes it mutable

2016-09-19 Thread Andrew Trick via swift-dev
> On Sep 19, 2016, at 1:24 AM, Martin R via swift-dev > wrote: > > I noticed that both UnsafePointer and UnsafeMutablePointer have the identical > method > >public func withMemoryRebound(to: T.Type, capacity count: Int, > _ body: (UnsafeMutablePointer) throws -> Result) rethrows -> Resul

Re: [swift-dev] 'SwiftShims': no such file or directory

2016-09-19 Thread Eric Wing via swift-dev
On 9/19/16, Daniel Dunbar wrote: > Are you building within a shared folder? We have heard reports of this > happening in such an environment, but we don't have a handle on the exact > steps to reproduce. Getting that information would be very useful. > Unfortunately no. I didn't use shared folder

Re: [swift-dev] 'SwiftShims': no such file or directory

2016-09-19 Thread Dave Abrahams via swift-dev
on Mon Sep 19 2016, Eric Wing wrote: > On 9/19/16, Daniel Dunbar wrote: >> Are you building within a shared folder? We have heard reports of this >> happening in such an environment, but we don't have a handle on the exact >> steps to reproduce. Getting that information would be very useful. >>

Re: [swift-dev] 'SwiftShims': no such file or directory

2016-09-19 Thread Dave Abrahams via swift-dev
on Mon Sep 19 2016, Eric Wing wrote: > I've been trying to build Swift for Linux with --installable-package > to build a swift-package.tar.gz that I can install to another Linux > machine. > > When I extract my package on the other machine, and try either > compiling a simple print("hello world"