[swift-dev] [Performance Question]

2017-08-19 Thread Félix Fischer via swift-dev
Hi all. I’m a CS student, and as such I’ve heard that the compiling process is very hard, O(2^n) in the worst case (because of the type checker). I’m curious as to how true this is. Is it truly EXP? Is there a shortcut (from the dev perspective) to avoid this cost (maybe by defining all of the typ

[swift-dev] Preparing Swift compiler stage reentrancy in preparation for "constexpr"

2017-08-19 Thread Daryle Walker via swift-dev
[I’m not sure which list should cover this.] I once thought of having a “#protocols(SomeTypeOrProtocol)” that was a type alias to a composition of all protocols the given type/protocol conforms to (or “Any” if none). It seems simple, but all current uses of protocols requires explicit mentions

[swift-dev] RFC: internal language versioning

2017-08-19 Thread David Zarzycki via swift-dev
Hi Ewa! In commit 93786d8e264d095256169a6a2552970ea785036f, you wrote: “Removing isSwiftVersion4, isSwiftVersion5. We’ll need to come up with a better way to conditionalize code based on language version.” This is certainly true! I wondered what would happen as new versions came along. :-) I

Re: [swift-dev] Build Failure with Xcode 9.0 beta 5

2017-08-19 Thread Toni Suter via swift-dev
Thanks guys! It worked! Best regards Toni > Am 17.08.2017 um 00:25 schrieb Tony Allevato : > > Not that it's something that I'd generally recommend, but I ended up just > commenting out that #import in AVFoundation.h and the build was able to > complete successfully (enough for what I needed).