New Swift Snapshots Available!


(Mishal Shah) #1

New Swift Snapshots Available!

Download new packages from https://swift.org/download/

Swift Development: (master)

Following repository are tagged with swift-DEVELOPMENT-SNAPSHOT-2016-08-23-a

https://github.com/apple/swift
https://github.com/apple/swift-clang
https://github.com/apple/swift-llbuild
https://github.com/apple/swift-lldb
https://github.com/apple/swift-llvm
https://github.com/apple/swift-corelibs-foundation
https://github.com/apple/swift-corelibs-xctest
https://github.com/apple/swift-package-manager
https://github.com/apple/swift-cmark
https://github.com/apple/swift-integration-tests
https://github.com/apple/swift-compiler-rt
https://github.com/apple/swift-xcode-playground-support
https://github.com/apple/swift-corelibs-libdispatch

Thanks,
Mishal Shah


(Chris Bailey) #2

If you haven't spotted it, the new snapshots include Dispatch on Linux for
the first time - please test it out as there may well be number of issues
to shake out, especially with the new Swift 3 API.

The availability is thanks to the hard work of a large number of people,
including Dave Grove, Hubertus Franke, Pierre Habouzit, Daniel Steffan,
Matt Wright, Tony Parker, Philippe Hausler and Mishal Shah.

Chris

···

From: mishal_shah via swift-dev <swift-dev@swift.org>
To: swift-dev <swift-dev@swift.org>, swift-users@swift.org
Date: 24/08/2016 01:04
Subject: [swift-dev] New Swift Snapshots Available!
Sent by: swift-dev-bounces@swift.org

New Swift Snapshots Available!

Download new packages from https://swift.org/download/

Swift Development: (master)

Following repository are tagged with
swift-DEVELOPMENT-SNAPSHOT-2016-08-23-a

https://github.com/apple/swift
https://github.com/apple/swift-clang
https://github.com/apple/swift-llbuild
https://github.com/apple/swift-lldb
https://github.com/apple/swift-llvm
https://github.com/apple/swift-corelibs-foundation
https://github.com/apple/swift-corelibs-xctest
https://github.com/apple/swift-package-manager
https://github.com/apple/swift-cmark
https://github.com/apple/swift-integration-tests
https://github.com/apple/swift-compiler-rt
https://github.com/apple/swift-xcode-playground-support
https://github.com/apple/swift-corelibs-libdispatch

Thanks,
Mishal Shah_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev


(Michael Ferenduros) #3

In case anyone else hits an error about "uuid/uuid.h” when they import Foundation, I had to install uuid-dev to get this snapshot to work (on a virgin Ubuntu 15.10 server install):

    sudo apt-get install uuid-dev

Super-excited about this snapshot :slight_smile:

···

On 24 Aug 2016, at 03:03, mishal_shah via swift-users <swift-users@swift.org> wrote:

New Swift Snapshots Available!

Download new packages from https://swift.org/download/


(Michael Ferenduros) #4

If you haven't spotted it, the new snapshots include Dispatch on Linux for the first time - please test it out as there may well be number of issues to shake out, especially with the new Swift 3 API.

I’m seeing weird behaviour with DispatchSources + sockets on Linux right now - whereas on Mac both read and write sources fire correctly, on the latest Linux snapshot only the read event is firing.

Eg: https://github.com/mike-ferenduros/SwiftySocketsDispatchIssue

···

On 24 Aug 2016, at 12:38, Chris Bailey via swift-users <swift-users@swift.org> wrote:

The availability is thanks to the hard work of a large number of people, including Dave Grove, Hubertus Franke, Pierre Habouzit, Daniel Steffan, Matt Wright, Tony Parker, Philippe Hausler and Mishal Shah.

Chris


(Michael Ferenduros) #5

A couple more DispatchSource issues - I’m getting a crash (on all platforms) if a source deallocs before the cancellation handler has been called, which seems to be a known issue.

To get around it on Darwin, I was taking an unmanaged retained ref to the source and releasing it in the cancellation handler. But it turns out that on Linux,
    let s: DispatchSourceRead = […]
    Unmanaged.passRetained(s)
crashes llvm. Giving the typechecker a hint
    Umanaged<DispatchSourceRead>(s)
tells me that type 'DispatchSourceRead' does not conform to protocol ‘AnyObject’ which seems weird. Is it still class-based on Linux, or something different?

I ended up doing this
    var rs: DispatchSourceRead? = rsource
    var ws: DispatchSourceWrite? = wsource
    rsource.setCancelHandler { _ = rs?.handle; rs = nil } //Access a property to shut the bloody compiler up,
    wsource.setCancelHandler { _ = ws?.handle; ws = nil } //and to ensure the var isn't optimised away.
so all the above is moot, but I thought I should report it.

···

On 24 Aug 2016, at 12:38, Chris Bailey via swift-users <swift-users@swift.org> wrote:

If you haven't spotted it, the new snapshots include Dispatch on Linux for the first time - please test it out as there may well be number of issues to shake out, especially with the new Swift 3 API.


(Jordan Rose) #6

From: Michael Ferenduros via swift-users <swift-users@swift.org>
Subject: Re: [swift-users] [swift-dev] New Swift Snapshots Available!
Date: August 26, 2016 at 08:00:55 PDT
To: swift-users@swift.org
Reply-To: Michael Ferenduros <mike.ferenduros@gmail.com>

If you haven't spotted it, the new snapshots include Dispatch on Linux for the first time - please test it out as there may well be number of issues to shake out, especially with the new Swift 3 API.

I’m seeing weird behaviour with DispatchSources + sockets on Linux right now - whereas on Mac both read and write sources fire correctly, on the latest Linux snapshot only the read event is firing.

Eg: https://github.com/mike-ferenduros/SwiftySocketsDispatchIssue

The availability is thanks to the hard work of a large number of people, including Dave Grove, Hubertus Franke, Pierre Habouzit, Daniel Steffan, Matt Wright, Tony Parker, Philippe Hausler and Mishal Shah.

Chris

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

···

Begin forwarded message:

On 24 Aug 2016, at 12:38, Chris Bailey via swift-users <swift-users@swift.org <mailto:swift-users@swift.org>> wrote:


(Pierre Habouzit) #7

Yes, this is a known libkqueue issue because on linux watching a fd in epoll can only be done once, and EVFILT_READ/EVFILT_WRITE cause two registrations for the same fd, only one will stay.

-Pierre

···

On Aug 26, 2016, at 5:43 PM, Jordan Rose via swift-corelibs-dev <swift-corelibs-dev@swift.org> wrote:

Begin forwarded message:

From: Michael Ferenduros via swift-users <swift-users@swift.org <mailto:swift-users@swift.org>>
Subject: Re: [swift-users] [swift-dev] New Swift Snapshots Available!
Date: August 26, 2016 at 08:00:55 PDT
To: swift-users@swift.org <mailto:swift-users@swift.org>
Reply-To: Michael Ferenduros <mike.ferenduros@gmail.com <mailto:mike.ferenduros@gmail.com>>

On 24 Aug 2016, at 12:38, Chris Bailey via swift-users <swift-users@swift.org <mailto:swift-users@swift.org>> wrote:

If you haven't spotted it, the new snapshots include Dispatch on Linux for the first time - please test it out as there may well be number of issues to shake out, especially with the new Swift 3 API.

I’m seeing weird behaviour with DispatchSources + sockets on Linux right now - whereas on Mac both read and write sources fire correctly, on the latest Linux snapshot only the read event is firing.

Eg: https://github.com/mike-ferenduros/SwiftySocketsDispatchIssue

The availability is thanks to the hard work of a large number of people, including Dave Grove, Hubertus Franke, Pierre Habouzit, Daniel Steffan, Matt Wright, Tony Parker, Philippe Hausler and Mishal Shah.

Chris

_______________________________________________
swift-users mailing list
swift-users@swift.org <mailto:swift-users@swift.org>
https://lists.swift.org/mailman/listinfo/swift-users

_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev


(Michael Ferenduros) #8

crashes llvm. Giving the typechecker a hint
    Umanaged<DispatchSourceRead>(s)

Oops, make that Unmanaged<DispatchSourceRead>.passRetained(s)