[swift-dev] Starter project: increase test coverage on Linux

2015-12-13 Thread Dmitri Gribenko via swift-dev
Hi, Many important tests are XFAIL'ed on Linux. Usually this is because one or few parts of the test use the Objective-C runtime or rely on Foundation. These parts can usually be separated into separate files, or guarded with `#if _runtime(_ObjC)`. Sometimes these failures are real issues that we

Re: [swift-dev] Porting swift to FreeBSD

2015-12-13 Thread Davide Italiano via swift-dev
On Sun, Dec 13, 2015 at 12:35 AM, Davide Italiano wrote: > On Sun, Dec 13, 2015 at 12:30 AM, Dmitri Gribenko wrote: >> On Sat, Dec 12, 2015 at 9:26 PM, Davide Italiano >> wrote: >>> On Sun, Dec 13, 2015 at 12:22 AM, Dmitri Gribenko >>> wrote: On Sat, Dec 12, 2015 at 9:09 PM, Davide Itali

Re: [swift-dev] Porting swift to FreeBSD

2015-12-13 Thread Dmitri Gribenko via swift-dev
On Sun, Dec 13, 2015 at 2:52 AM, Davide Italiano wrote: > And now, swift compiled programs run correctly on FreeBSD! This is great, thanks Davide! > % ./swiftc hello.swift -o hello > davide@rabbit1:/exps/swift/build/Ninja-ReleaseAssert/swift-freebsd-x86_64/bin > % ./hello > hello > % cat hello.s

Re: [swift-dev] Porting swift to FreeBSD

2015-12-13 Thread Davide Italiano via swift-dev
On Sun, Dec 13, 2015 at 6:15 AM, Dmitri Gribenko wrote: > On Sun, Dec 13, 2015 at 2:52 AM, Davide Italiano > wrote: >> And now, swift compiled programs run correctly on FreeBSD! > > This is great, thanks Davide! > >> % ./swiftc hello.swift -o hello >> davide@rabbit1:/exps/swift/build/Ninja-Relea

[swift-dev] Building on Fedora

2015-12-13 Thread Brad Erickson via swift-dev
I've got Swift building now on Fedora 23. The only problem issue I'm running into is probably related to: https://llvm.org/bugs/show_bug.cgi?id=23785 CMake Error at scripts/cmake_install.cmake:36 (file): file INSTALL cannot find "/build/buildbot_linux/lldb-linux-x86_64/lib/python2.7". Call Sta

Re: [swift-dev] Swift's code in VSCode

2015-12-13 Thread David Owens II via swift-dev
I've started working on an extension to support this. https://github.com/owensd/vscode-swift Still early in the process. Syntax highlighting is mostly there. I'm going to start the debugger integration next. -David Sent from my iPhone > On Dec 12, 2015, at 2:07 PM, Piero Sabino via swift-de

Re: [swift-dev] [stdlib] Array.description calls debugDescription on its contents

2015-12-13 Thread Wojciech Czekalski via swift-dev
I agree with Brent that offering description on Arrays where it "shouldn't be presented to the user in raw form, ever, so the use case here is debugging” is misleading. Is there any specific reason for them to offer it? Also, there is a slightly difference in representation of description and d

[swift-dev] [Starter Project] Teach SILParser how to parse switch_enum of undef.

2015-12-13 Thread Michael Gottesman via swift-dev
This is a small starter project for those who are interested in working with SIL. The SIL Parser currently is unable to parse switch_enum of undef. I wrote a patch that does the work some time ago, but I never have had time to finish it (i.e. make sure everything works ok/write tests). I posted

Re: [swift-dev] Porting swift to FreeBSD

2015-12-13 Thread Chris Lattner via swift-dev
> On Dec 13, 2015, at 3:34 AM, Davide Italiano via swift-dev > wrote: > > On Sun, Dec 13, 2015 at 6:15 AM, Dmitri Gribenko wrote: >> On Sun, Dec 13, 2015 at 2:52 AM, Davide Italiano >> wrote: >>> And now, swift compiled programs run correctly on FreeBSD! >> >> This is great, thanks Davide!

Re: [swift-dev] Location of "indirect" declaration modifier

2015-12-13 Thread Chris Lattner via swift-dev
On Dec 11, 2015, at 7:03 AM, Slava Pestov via swift-dev wrote: > With your proposal, the fact that the entire tuple payload can be matched by > a pattern implies that ‘indirect’ has to become a formal type in the > language, since you will now be able to write down a value of type '(indirect >

Re: [swift-dev] Porting swift to FreeBSD

2015-12-13 Thread Davide Italiano via swift-dev
On Sun, Dec 13, 2015 at 4:41 PM, Chris Lattner wrote: > >> On Dec 13, 2015, at 3:34 AM, Davide Italiano via swift-dev >> wrote: >> >> On Sun, Dec 13, 2015 at 6:15 AM, Dmitri Gribenko wrote: >>> On Sun, Dec 13, 2015 at 2:52 AM, Davide Italiano >>> wrote: And now, swift compiled programs r

Re: [swift-dev] Building on Fedora

2015-12-13 Thread Meador Inge via swift-dev
On Sun, Dec 13, 2015 at 12:17 PM, Brad Erickson via swift-dev < swift-dev@swift.org> wrote: I've got Swift building now on Fedora 23. The only problem issue I'm > running into is probably related to: > https://llvm.org/bugs/show_bug.cgi?id=23785 > > CMake Error at scripts/cmake_install.cmake:36 (f

[swift-dev] Running only one unit test through build-script?

2015-12-13 Thread Austin Zheng via swift-dev
Apologies if I'm overlooking something basic. I looked through the help for both build-script and build-script-impl, and while I found flags to disable parts of the prebuilt test suites, it doesn't look like there's a way to specify running a specific unit test. Is this indeed not currently poss

Re: [swift-dev] Running only one unit test through build-script?

2015-12-13 Thread Dmitri Gribenko via swift-dev
On Sun, Dec 13, 2015 at 10:34 PM, Austin Zheng via swift-dev wrote: > Apologies if I'm overlooking something basic. I looked through the help for > both build-script and build-script-impl, and while I found flags to disable > parts of the prebuilt test suites, it doesn't look like there's a way

Re: [swift-dev] [stdlib] Array.description calls debugDescription on its contents

2015-12-13 Thread Dave Abrahams via swift-dev
> On Dec 13, 2015, at 12:43 PM, Wojciech Czekalski wrote: > > I agree with Brent that offering description on Arrays where it "shouldn't be > presented to the user in raw form, ever, so the use case here is debugging” > is misleading. I think it's a bit too absolute—there are a few applicati

Re: [swift-dev] [stdlib] Array.description calls debugDescription on its contents

2015-12-13 Thread Dave Abrahams via swift-dev
> On Dec 13, 2015, at 11:08 PM, Dave Abrahams via swift-dev > wrote: > >> >> On Dec 13, 2015, at 12:43 PM, Wojciech Czekalski > > wrote: >> >> I agree with Brent that offering description on Arrays where it "shouldn't >> be presented to the user in raw form, ever, s

[swift-dev] Porting Swift to Linux aarch64 (arm64)

2015-12-13 Thread Dmitri Gribenko via swift-dev
Hi, This weekend I have been playing with Swift on Linux on 64-bit arm. I have summarized my findings in this bug: https://bugs.swift.org/browse/SR-221 TL;DR: 20 tests fail in the main testsuite; there is an issue with type metadata, I'm thinking this is a linker issue. If someone would like t