Re: [swift-dev] No attribute(swiftcall) support on Linux?

2017-11-14 Thread Greg Parker via swift-dev
> On Nov 14, 2017, at 7:52 AM, Arnold Schwaighofer > wrote: > >> On Nov 14, 2017, at 12:33 AM, Slava Pestov via swift-dev >> mailto:swift-dev@swift.org>> wrote: >> > >>> On Nov 13, 2017, at 10:47 PM, Greg Parker via swift-dev >>> mailto:swift-dev@swift.org>> wrote: >>> >>> I see that in ou

Re: [swift-dev] [swift-evolution] Re-pitch: Deriving collections of enum cases

2017-11-14 Thread Jacob Bandes-Storch via swift-dev
Jacob Bandes-Storch On Tue, Nov 14, 2017 at 9:06 PM, Brent Royal-Gordon wrote: > On Nov 14, 2017, at 5:21 PM, Xiaodi Wu wrote: > > 1. It must be possible to easily access the count of values, and to access >> any particular value using contiguous `Int` indices. This could be achieved >> either

Re: [swift-dev] [swift-evolution] Re-pitch: Deriving collections of enum cases

2017-11-14 Thread Xiaodi Wu via swift-dev
On Tue, Nov 14, 2017 at 11:06 PM, Brent Royal-Gordon wrote: > On Nov 14, 2017, at 5:21 PM, Xiaodi Wu wrote: > > 1. It must be possible to easily access the count of values, and to access >> any particular value using contiguous `Int` indices. This could be achieved >> either by directly accessin

Re: [swift-dev] [swift-evolution] Re-pitch: Deriving collections of enum cases

2017-11-14 Thread Brent Royal-Gordon via swift-dev
> On Nov 14, 2017, at 5:21 PM, Xiaodi Wu wrote: > > 1. It must be possible to easily access the count of values, and to access > any particular value using contiguous `Int` indices. This could be achieved > either by directly accessing elements in the list of values through an Int > subscript,

Re: [swift-dev] [swift-evolution] Re-pitch: Deriving collections of enum cases

2017-11-14 Thread Xiaodi Wu via swift-dev
On Tue, Nov 14, 2017 at 5:49 AM, Brent Royal-Gordon wrote: > On Nov 13, 2017, at 9:21 PM, Xiaodi Wu wrote: > > ...I should add, if full conformance to `Collection` is still too much to > ask, enabling "for `case` in Foo.self" by magic would itself address the > entirety of the proposal's use cas

Re: [swift-dev] Rationalizing FloatingPoint conformance to Equatable

2017-11-14 Thread Xiaodi Wu via swift-dev
On Tue, Nov 14, 2017 at 2:34 PM, David Sweeris wrote: > > On Nov 2, 2017, at 4:22 PM, Xiaodi Wu via swift-dev > wrote: > > On Thu, Nov 2, 2017 at 5:22 PM, Matthew Johnson > wrote: > >> >> On Nov 2, 2017, at 5:20 PM, Jonathan Hull via swift-dev < >> swift-dev@swift.org> wrote: >> >> It looks lik

Re: [swift-dev] RFC: AST representation for coroutine types

2017-11-14 Thread John McCall via swift-dev
> On Nov 14, 2017, at 2:50 PM, Joe Groff wrote: > > > >> On Nov 13, 2017, at 9:52 PM, John McCall via swift-dev > > wrote: >> >> SIL now has some minimal representational support for coroutines, and while >> there's significantly more to do there, I'd like to simu

Re: [swift-dev] Rationalizing FloatingPoint conformance to Equatable

2017-11-14 Thread David Sweeris via swift-dev
> On Nov 2, 2017, at 4:22 PM, Xiaodi Wu via swift-dev > wrote: > > On Thu, Nov 2, 2017 at 5:22 PM, Matthew Johnson > wrote: > >> On Nov 2, 2017, at 5:20 PM, Jonathan Hull via swift-dev > > wrote: >> >> It looks like we have a good so

Re: [swift-dev] RFC: AST representation for coroutine types

2017-11-14 Thread Joe Groff via swift-dev
> On Nov 13, 2017, at 9:52 PM, John McCall via swift-dev > wrote: > > SIL now has some minimal representational support for coroutines, and while > there's significantly more to do there, I'd like to simultaneously kick off a > conversation about how best to represent them at the AST level.

[swift-dev] Generalizing nominal type descriptors into "context descriptors"; encoding generic requirements

2017-11-14 Thread Joe Groff via swift-dev
The type metadata that gets emitted for struct, enum, and class types includes a reference to a nominal type descriptor. The descriptor carries information that pertains to the nominal type declaration itself, independent of specific instantiations of generic types, as well as information that’s

Re: [swift-dev] No attribute(swiftcall) support on Linux?

2017-11-14 Thread Arnold Schwaighofer via swift-dev
> On Nov 14, 2017, at 12:33 AM, Slava Pestov via swift-dev > wrote: > > This is while building the metadata unit tests — I’m assuming those are built > with the host clang? Do we build the runtime with the Swift clang on Linux? > If so, we should still be able to use swiftcall. Yes we buil

Re: [swift-dev] [swift-evolution] Re-pitch: Deriving collections of enum cases

2017-11-14 Thread Brent Royal-Gordon via swift-dev
> On Nov 13, 2017, at 9:21 PM, Xiaodi Wu wrote: > > ...I should add, if full conformance to `Collection` is still too much to > ask, enabling "for `case` in Foo.self" by magic would itself address the > entirety of the proposal's use case, adding no API surface area. No, Xiaodi. No, it would

Re: [swift-dev] No attribute(swiftcall) support on Linux?

2017-11-14 Thread Slava Pestov via swift-dev
This is while building the metadata unit tests — I’m assuming those are built with the host clang? Do we build the runtime with the Swift clang on Linux? If so, we should still be able to use swiftcall. Slava > On Nov 13, 2017, at 10:47 PM, Greg Parker via swift-dev > wrote: > > I see that i