Re: [swift-dev] Beginner's questions about building Swift from source etc.

2015-12-10 Thread Jens Persson via swift-dev
Thanks! I tried the above to compile with the buildbot_osx_package preset. It kind of worked, but it failed while performing the tests. (TEST 'Swift :: Driver/Dependencies/bindings-build-record.swift' FAILED) So, I got a working swiftc etc but no package or toolchain or anything (at least as far as

Re: [swift-dev] Initialization of default values

2015-12-10 Thread Joe Groff via swift-dev
> On Dec 9, 2015, at 3:28 PM, Matthew Johnson via swift-dev > wrote: > > I am working on a proposal for flexible memberwise initialization and would > like to understand how Swift currently handles initialization of members that > have a default specified in the declaration when an initialize

Re: [swift-dev] [RFC] SIL syntax for debug information Part 1: Variables

2015-12-10 Thread Joe Groff via swift-dev
> On Dec 9, 2015, at 4:15 PM, Adrian Prantl via swift-dev > wrote: > > In order to write textual SIL -> SIL testcases that exercise the handling of > debug information by SIL passes, we need to make a couple of additions to the > textual SIL language. In memory, the debug information attached

[swift-dev] program performance Ubuntu15.10 ?

2015-12-10 Thread Isaac Gouy via swift-dev
How should I compile Swift programs on Ubuntu 15.10 for best performance? Like this? bin/swiftc -Ounchecked -whole-module-optimization What is performance with swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu15.10 currently expected to be like? Like Python? Like Java? Like C?

Re: [swift-dev] [RFC] SIL syntax for debug information Part 1: Variables

2015-12-10 Thread Adrian Prantl via swift-dev
> On Dec 10, 2015, at 8:31 AM, Joe Groff wrote: > >> >> On Dec 9, 2015, at 4:15 PM, Adrian Prantl via swift-dev >> wrote: >> >> In order to write textual SIL -> SIL testcases that exercise the handling of >> debug information by SIL passes, we need to make a couple of additions to >> the t

Re: [swift-dev] Beginner's questions about building Swift from source etc.

2015-12-10 Thread Dmitri Gribenko via swift-dev
On Thu, Dec 10, 2015 at 7:41 AM, Jens Persson wrote: > Thanks! > I tried the above to compile with the buildbot_osx_package preset. It kind > of worked, but it failed while performing the tests. > (TEST 'Swift :: Driver/Dependencies/bindings-build-record.swift' FAILED) > So, I got a working swiftc

Re: [swift-dev] program performance Ubuntu15.10 ?

2015-12-10 Thread Dmitri Gribenko via swift-dev
On Thu, Dec 10, 2015 at 8:33 AM, Isaac Gouy via swift-dev wrote: > How should I compile Swift programs on Ubuntu 15.10 for best performance? > > Like this? > > >bin/swiftc -Ounchecked -whole-module-optimization > > > > What is performance with swift-2.2-SNAPSHOT-2015-12-01-b-ubuntu15.10 > cu

Re: [swift-dev] [SR-40] Port Swift to Arm progress / question

2015-12-10 Thread William Dillon via swift-dev
Yep. I see that are a few of those in there (1700 and change). When it comes to linking and ELF, I am fumbling in the dark a bit. With the hope of getting some context, I decided to see whether R_ARM_REL32 is used in any other shared libraries in the system; it is not. It seems as though R_A

Re: [swift-dev] [SR-40] Port Swift to Arm progress / question

2015-12-10 Thread Joe Groff via swift-dev
> On Dec 10, 2015, at 9:29 AM, William Dillon wrote: > > Yep. I see that are a few of those in there (1700 and change). When it > comes to linking and ELF, I am fumbling in the dark a bit. With the hope of > getting some context, I decided to see whether R_ARM_REL32 is used in any > other

Re: [swift-dev] Possibility to makes classes partial as C# language

2015-12-10 Thread Jordan Rose via swift-dev
Hi, Kévin. This sort of post is more appropriate for the swift-evolution list, and indeed there's already a bit of discussion around this. I suggest you look through the archives to see what you need to add. J

[swift-dev] Possibility to makes classes partial as C# language

2015-12-10 Thread Kévin Machado via swift-dev
Dear colleagues, In swift we are able to add extension of classes that allows us to add methods but we cannot add attributes, properties. C# language allows developers to make its *classes *partial*. It is possible to split the definition of class, struct or interface over two or more source files

[swift-dev] preset: buildbot_linux_1404/1510 are the same

2015-12-10 Thread Brad Erickson via swift-dev
The [preset: buildbot_linux_1404] is the same as [preset: buildbot_linux_1510]. 14.04 has a comment stating: # This preset does not build Foundation due to unavailable ICU versions on Ubuntu 14.04 src: https://github.com/apple/swift/blob/469208d9156489c48591d3ffab0560c30c87be54/utils/build-presets

Re: [swift-dev] [RFC] SIL syntax for debug information Part 1: Variables

2015-12-10 Thread John McCall via swift-dev
> On Dec 10, 2015, at 8:31 AM, Joe Groff via swift-dev > wrote: >> On Dec 9, 2015, at 4:15 PM, Adrian Prantl via swift-dev >> wrote: >> >> In order to write textual SIL -> SIL testcases that exercise the handling of >> debug information by SIL passes, we need to make a couple of additions to

Re: [swift-dev] preset: buildbot_linux_1404/1510 are the same

2015-12-10 Thread Mish Awadah via swift-dev
That’s correct. This comment is out of date. - mish > On Dec 10, 2015, at 10:06 AM, Brad Erickson via swift-dev > wrote: > > The [preset: buildbot_linux_1404] is the same as [preset: > buildbot_linux_1510]. 14.04 has a comment stating: > > # This preset does not build Foundation due to unava

Re: [swift-dev] preset: buildbot_linux_1404/1510 are the same

2015-12-10 Thread Dmitri Gribenko via swift-dev
On Thu, Dec 10, 2015 at 10:33 AM, Brad Erickson via swift-dev wrote: > > The best solution is to remove one and rename the other simply: [preset: > buildbot_linux], but that will have far reaching effects. Nothing that can't > be dealt with though. How should this be handled? The best solution

Re: [swift-dev] preset: buildbot_linux_1404/1510 are the same

2015-12-10 Thread Brad Erickson via swift-dev
Done: https://github.com/apple/swift/pull/403 -Brad Erickson On Thu, Dec 10, 2015 at 11:24 AM, Brad Erickson wrote: > Totally reasonable. I'll take care of it. > > -Brad Erickson > > On Thu, Dec 10, 2015 at 10:53 AM, Dmitri Gribenko > wrote: > >> On Thu, Dec 10, 2015 at 10:33 AM, Brad Erickson

Re: [swift-dev] Ubuntu build error

2015-12-10 Thread Johan Jensen via swift-dev
I got that error when building on a VM with too little disk space and too little memory. How many cores, disk space and memory do you have available? Do anyone know of some recommended/minimum system requirements? —Johan On Thu, Dec 10, 2015 at 9:23 PM, Gabe Shahbazian via swift-dev < swift-dev@

Re: [swift-dev] Ubuntu build error

2015-12-10 Thread William Dillon via swift-dev
I’ve been getting that, and a smattering of other memory exhaustion errors in my work with ARM. I can say that with a reasonable (10-20GB) swap file you should be able to build the release variant (-R) with 2GB or ram. I haven’t been able to successfully build the debug variant with 2GB of ram

[swift-dev] Thread safety of weak properties

2015-12-10 Thread Mike Ash via swift-dev
Hello, world! First, congratulations on the whole open source thing. I'm really pleased to see how the team set it up and how well it's going. Blew away my expectations. Anyway, on to the thing. I was looking through the standard library's implementation of weak references, as one does, and no

Re: [swift-dev] Thread safety of weak properties

2015-12-10 Thread John McCall via swift-dev
> On Dec 10, 2015, at 6:50 PM, Mike Ash via swift-dev > wrote: > Hello, world! > > First, congratulations on the whole open source thing. I'm really pleased to > see how the team set it up and how well it's going. Blew away my expectations. > > Anyway, on to the thing. > > I was looking throu

Re: [swift-dev] Beginner's questions about building Swift from source etc.

2015-12-10 Thread Jens Persson via swift-dev
Thanks again, I pulled the latest Swift repos which included the fix of the failing test and modified the build preset locally according to Dmitri's advice and the build completes without problems. But now I wonder if there is a way to switch between the command line tools of Xcode, Xcode-beta and

Re: [swift-dev] Beginner's questions about building Swift from source etc.

2015-12-10 Thread Dmitri Gribenko via swift-dev
Mish Awadah probably knows about setting up a custom toolchain in Xcode. Dmitri On Thu, Dec 10, 2015 at 9:44 PM, Jens Persson wrote: > Thanks again, > I pulled the latest Swift repos which included the fix of the failing test > and modified the build preset locally according to Dmitri's advice a

Re: [swift-dev] Beginner's questions about building Swift from source etc.

2015-12-10 Thread Jens Persson via swift-dev
Just to clarify (not sure if it's needed): Note that I can run Xcode with my custom toolchain, eg: xcrun launch-with-toolchain ./swift-SNAPSHOT-2015-12-11-a.xctoolchain What I want to know is the part about switching between the command line tools, not only between my Xcode and Xcode-beta (which I