Re: [swift-users] Wrapping ImageMagick in a Swift Package

2017-10-03 Thread Toni Suter via swift-users
Hi Ankit, Thank you very much! It works now :-) Best regards, Toni > Am 03.10.2017 um 21:50 schrieb Ankit Aggarwal : > > Hi Toni, > > You're not supposed to build the system module package (because there is > nothing to build). Tag and add this package as a dependency and then try to > impor

Re: [swift-users] Wrapping ImageMagick in a Swift Package

2017-10-03 Thread Ankit Aggarwal via swift-users
Hi Toni, You're not supposed to build the system module package (because there is nothing to build). Tag and add this package as a dependency and then try to import the `TestPkg` module that you defined in the modulemap. The error here is bogus and is tracked by https://bugs.swift.org/browse/SR-53

Re: [swift-users] Type inference issue with map and filter chained

2017-10-03 Thread Vladimir.S via swift-users
On 03.10.2017 21:32, Will Stanton via swift-users wrote: Is this a REPL-only issue perhaps? The code below compiles `swift build` without error for me (pasted into Sources/main.swift, Ubuntu 17.04, Swift 4 release; haven’t tried in Xcode). A similar issue, but apparently not REPL-only: https:

Re: [swift-users] Netlib

2017-10-03 Thread Vladimir.S via swift-users
On 03.10.2017 19:02, Edward Connell via swift-users wrote: Hi All, Sorry something strange happened with the first post, so I am reposting this. I've recently wrapped up an ML framework research project that I've been working on for some time. It addresses a lot of difficult design problems, an

Re: [swift-users] Type inference issue with map and filter chained

2017-10-03 Thread Will Stanton via swift-users
Is this a REPL-only issue perhaps? The code below compiles `swift build` without error for me (pasted into Sources/main.swift, Ubuntu 17.04, Swift 4 release; haven’t tried in Xcode). A similar issue, but apparently not REPL-only: https://bugs.swift.org/browse/SR-1856 Regards, Will Stanton Co

Re: [swift-users] Is URLSession actually working on Linux

2017-10-03 Thread Geordie Jay via swift-users
2017-10-03 20:10 GMT+02:00 Georgios Moschovitis via swift-users < swift-users@swift.org>: > I implemented a simple RSS feed aggregator. I used code like... > > let data = try! Data(contentsOf: feedURL) > > or > > let session = URLSession(configuration: URLSessionConfiguration.default) > let task =

[swift-users] Is URLSession actually working on Linux

2017-10-03 Thread Georgios Moschovitis via swift-users
I implemented a simple RSS feed aggregator. I used code like... let data = try! Data(contentsOf: feedURL) or let session = URLSession(configuration: URLSessionConfiguration.default) let task = session.dataTask(with: url, completionHandler: completionHandler) task.resume() ...to fetch the data.

[swift-users] Netlib

2017-10-03 Thread Edward Connell via swift-users
Hi All, Sorry something strange happened with the first post, so I am reposting this. I've recently wrapped up an ML framework research project that I've been working on for some time. It addresses a lot of difficult design problems, and works around a lot of compiler bugs and Linux library defici

[swift-users] Netlib now on GitHub

2017-10-03 Thread Edward Connell via swift-users
Hi All, I've recently wrapped up an ML framework research project that I've been working on for some time. It addresses a lot of difficult design problems, and works around a lot of compiler bugs and Linux library deficiencies. It's written almost entirely in Swift 4.0 with some C and Cuda kernels

[swift-users] Wrapping ImageMagick in a Swift Package

2017-10-03 Thread Toni Suter via swift-users
Hi, I am trying to create a Swift Package that wraps the ImageMagick C API. So I installed ImageMagick using MacPorts and I was then able to build the sample program with the following commands: export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig cc main.c `pkg-config --cflags --libs MagickWand` Th