Re: [swift-dev] [swift-users] Collection underestimatedCount() does _?

2016-03-19 Thread Will Stanton via swift-dev
Hello Brent, Thanks kindly for the flair! You gave cases for which `underestimatedCount()` is used: > For sequences with easily-calculated counts, this should give us a size > that's just right. For sequences where they can kind of estimate the right > count (for instance, if you're decoding a

Re: [swift-dev] build-script -x freezing?

2016-05-20 Thread Will Stanton via swift-dev
Hi Geoffrey, Wanted to share I encountered this issue on 5/11. (Ninja build was+is fine.) Maybe the first 8 gyb scripts to run (I’m on a 2012 Mac Mini) are not recognized as having finished… As you suggest, CPU of xcodebuild, cmake, and python processes were all 0. Regards, Will Stanton > On

[swift-dev] Mirror behavior

2016-09-22 Thread Will Stanton via swift-dev
Hello, I had a question about the intended behavior/functionality of mirrors in Swift/Swift Foundation types. In general, should a Mirror reference all variables in a type? I’m not sure what scope mirrors should/will have, but it does seem like some of iterating through children has been

Re: [swift-dev] Mirror behavior

2016-09-24 Thread Will Stanton via swift-dev
Hello Enrico, Thank you for the reply! If the goal of `Mirror` is reflection, wouldn’t the full structure of a type need to be exposed by its `Mirror`? And even if the goal is a more limited form of inspection, wouldn’t it still be necessary to make the default implementation, which exposes

Re: [swift-dev] build order? Glibc.swift: error: no such module 'SwiftGlibc'

2016-11-15 Thread Will Stanton via swift-dev
Hello Eric, Wanted to share I ran into a similar/the same error message this week rebuilding from scratch (clean build/ on AWS Linux like CentOS): the build stops (almost certainly) because the native SwiftGlibc module isn’t generated. It happens near the end of the Swift build, around step

Re: [swift-dev] [swift-users] Swift linux repl can't import

2017-04-04 Thread Will Stanton via swift-dev
From https://bugs.swift.org/browse/SR-3648, the work-around seems to be passing -I /path/to/extracted/usr/lib/swift/clang/include when invoking swift (credit Lukas and others, SR-3794 is more active) So, ex. `swift -I ~/a-swift/usr/lib/swift/clang/include/` Fortunately, the issue has only come

Re: [swift-dev] Property modification not taking effect

2017-05-12 Thread Will Stanton via swift-dev
I am a bit curious about Pushkar’s test case; perhaps it should be added as a test? The SIL emitted then vs ~today looked very similar, so I was thinking the issue might be in IRGen. Scanning there, looks like this cured the problem: @shajrawi https://github.com/apple/swift/pull/9452 Disable