Re: [swift-dev] statically initialized arrays

2017-06-15 Thread Andrew Trick via swift-dev
> On Jun 15, 2017, at 8:30 PM, Greg Parker wrote: > > (You can do without a separate token if (1) your storage is two pointers or > less in size, (2) your storage is sufficiently well-aligned that it does not > cross cache line boundaries, (3) your uninitialized value is zero, and (4) > your

Re: [swift-dev] statically initialized arrays

2017-06-15 Thread Greg Parker via swift-dev
> On Jun 15, 2017, at 4:39 PM, Andrew Trick via swift-dev > wrote: > >> On Jun 15, 2017, at 4:26 PM, Andrew Trick > > wrote: >> >>> On Jun 14, 2017, at 12:03 PM, Jordan Rose via swift-dev >>> mailto:swift-dev@swift.org>> wrote: >>> ad 3) IRGen support

Re: [swift-dev] statically initialized arrays

2017-06-15 Thread Greg Parker via swift-dev
> On Jun 15, 2017, at 9:24 AM, John McCall via swift-dev > wrote: > >> On Jun 15, 2017, at 10:52 AM, Arnold via swift-dev >> wrote: >> >>> On Jun 14, 2017, at 2:56 PM, Dave Abrahams via swift-dev >>> wrote: >>> on Wed Jun 14 2017, Erik Eckstein wrote: I’m about implementi

Re: [swift-dev] statically initialized arrays

2017-06-15 Thread Andrew Trick via swift-dev
> On Jun 15, 2017, at 4:26 PM, Andrew Trick wrote: > > >> On Jun 14, 2017, at 12:03 PM, Jordan Rose via swift-dev > > wrote: >> >>> ad 3) IRGen support >>> >>> Generating statically initialized globals is already done today for structs >>> and tuples. >>> What’s n

Re: [swift-dev] statically initialized arrays

2017-06-15 Thread Andrew Trick via swift-dev
> On Jun 14, 2017, at 12:03 PM, Jordan Rose via swift-dev > wrote: > >> ad 3) IRGen support >> >> Generating statically initialized globals is already done today for structs >> and tuples. >> What’s needed is the handling of objects. >> In addition to creating the global itself, we also need

[swift-dev] [Swift CI] Build Still Failing: OSS - Swift Package - OS X (swift 4.0) #268

2017-06-15 Thread no-reply--- via swift-dev
New issue found!Title: Report [FAILURE] oss-swift-4.0-package-osx [#268] Build URL:https://ci.swift.org/job/oss-swift-4.0-package-osx/268/ Project:oss-swift-4.0-package-osx Date of build:Thu, 15 Jun 2017 10:36:21 -0700 Build duration:2 hr 24 min Identified problems:Regres

Re: [swift-dev] statically initialized arrays

2017-06-15 Thread Dave Abrahams via swift-dev
on Thu Jun 15 2017, Arnold wrote: >> W00t! I'd like to do the same for String, i.e. encode the entire buffer >> in the data section. I was looking for Array example code to follow but >> couldn't find it. > > We have support for constant string buffers as of PR 8701 and PR > 8692. The former P

Re: [swift-dev] statically initialized arrays

2017-06-15 Thread Dave Abrahams via swift-dev
on Thu Jun 15 2017, Arnold wrote: >> On Jun 14, 2017, at 2:56 PM, Dave Abrahams via swift-dev >> wrote: >> >> >>> on Wed Jun 14 2017, Erik Eckstein wrote: >>> >>> Hi, >>> >>> I’m about implementing statically initialized arrays. It’s about >>> allocating storage for arrays in the data sec

[swift-dev] [Swift CI] Build Still Failing: OSS - Swift Package - OS X (swift 4.0) #267

2017-06-15 Thread no-reply--- via swift-dev
New issue found!Title: Report [FAILURE] oss-swift-4.0-package-osx [#267] Build URL:https://ci.swift.org/job/oss-swift-4.0-package-osx/267/ Project:oss-swift-4.0-package-osx Date of build:Thu, 15 Jun 2017 08:11:21 -0700 Build duration:2 hr 24 min Identified problems:Regres

[swift-dev] CI failures in deserialization

2017-06-15 Thread Jordan Rose via swift-dev
…are a result of using Swift 3.2 modules in a Swift 4 context, specifically with inlinable code. I'll fix this particular issue, but I'll also use this as a reminder that @inline(__always), @_inlineable, and @_transparent are not supported for user code. We're getting away with them in the stand

Re: [swift-dev] statically initialized arrays

2017-06-15 Thread John McCall via swift-dev
> On Jun 15, 2017, at 10:52 AM, Arnold via swift-dev > wrote: > > > >> On Jun 14, 2017, at 2:56 PM, Dave Abrahams via swift-dev >> wrote: >> >> >>> on Wed Jun 14 2017, Erik Eckstein wrote: >>> >>> Hi, >>> >>> I’m about implementing statically initialized arrays. It’s about >>> allocati

Re: [swift-dev] [swift-evolution] [SR-3281] Update swift man page

2017-06-15 Thread Saagar Jha via swift-dev
Looks great…at least, it’s much better than the old one. One thing that stuck out was the “by Apple Inc.” in the synopsis. I think you should ask one of the Core Team members for advice on this, but to me it 1. reduces the impact of outside collaborators on the language and 2. makes it appear t

[swift-dev] Translating Swift Programming Language

2017-06-15 Thread Mani Ghasemnia Hamedani via swift-dev
Hi there, I saw that you are ready to help and support anyone contributing to the translation of Swift Programming Language book. I am an author in my country (Iran) and have authored/translated many books since 1999. Now I am seriously interested to translate Swift ebook (published by Appl

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

2017-06-15 Thread no-reply--- via swift-dev
Title: Report [FAILURE] oss-swift-4.0-package-osx [#266] Build URL:https://ci.swift.org/job/oss-swift-4.0-package-osx/266/ Project:oss-swift-4.0-package-osx Date of build:Thu, 15 Jun 2017 05:46:53 -0700 Build duration:2 hr 24 min Identified problems:Regression test failed

Re: [swift-dev] statically initialized arrays

2017-06-15 Thread Arnold via swift-dev
> On Jun 14, 2017, at 2:56 PM, Dave Abrahams via swift-dev > wrote: > > >> on Wed Jun 14 2017, Erik Eckstein wrote: >> >> Hi, >> >> I’m about implementing statically initialized arrays. It’s about >> allocating storage for arrays in the data section rather than on the >> heap. > > W00t!

Re: [swift-dev] statically initialized arrays

2017-06-15 Thread David Smith via swift-dev
> On Jun 14, 2017, at 4:04 PM, Michael Gottesman via swift-dev > wrote: > >> >> On Jun 14, 2017, at 11:24 AM, Erik Eckstein via swift-dev >> mailto:swift-dev@swift.org>> wrote: >> >> Hi, >> >> I’m about implementing statically initialized arrays. It’s about allocating >> storage for array