Re: [swift-corelibs-dev] Status of DispatchQueue.concurrentPerform on Linux?

2017-11-28 Thread JP Simard via swift-corelibs-dev
For what it's worth, I've been using DispatchQueue.concurrentPerform on my own projects that run on both Darwin and Linux and it's worked well for both. I haven't noticed the issue you're describing. Perhaps you could include a repro case that demonstrates this behavior? PS: However, my Swift CLI

Re: [swift-corelibs-dev] Better integration with UNIX tools

2017-11-28 Thread Tony Parker via swift-corelibs-dev
Of course, Foundation API has no way of distinguishing if the caller is considered a script or not. If the API is a bad idea for other kinds of apps then we simply wouldn’t add it. So, I think this proposed convenience API needs to consider all of the varied clients of Foundation. - Tony > On

Re: [swift-corelibs-dev] [Swift CI] Build Failure: 0. OSS - Swift Incremental RA - Ubuntu 16.10 (master) #1704

2017-11-28 Thread Jordan Rose via swift-corelibs-dev
Doesn't look like any of us. Anything happen over in Dispatch-land? :0: error: cannot open file '/home/buildnode/jenkins/workspace/oss-swift-incremental-RA-linux-ubuntu-16_10/swift-corelibs-libdispatch/private/module.modulemap': No such file or directory Jordan > On Nov 28, 2017, at 11:57, no

Re: [swift-corelibs-dev] Better integration with UNIX tools

2017-11-28 Thread Brent Royal-Gordon via swift-corelibs-dev
> On Nov 28, 2017, at 8:00 AM, Tony Parker wrote: > > Why does it imply a run loop rather than one of many multithreading > possibilities (dispatch queue, starting one more thread, etc)? And even if it > did use run loops, why is that a problem? The problem is simply that we're discussing usi

Re: [swift-corelibs-dev] Better integration with UNIX tools

2017-11-28 Thread Sneed, Brandon via swift-corelibs-dev
+1 from me. I ended up making a wrapper objc->swift around system() since it was removed from swift recently, however, it behaves (from a user standpoint) exactly how I’d like. If my command line util jumps out to another program and it needs stdin/out/err, it all just passes through which is

Re: [swift-corelibs-dev] Better integration with UNIX tools

2017-11-28 Thread Tony Parker via swift-corelibs-dev
Why does it imply a run loop rather than one of many multithreading possibilities (dispatch queue, starting one more thread, etc)? And even if it did use run loops, why is that a problem? In general we have been discouraging the use of synchronous and blocking API for many years now. It’s conve

[swift-corelibs-dev] Status of DispatchQueue.concurrentPerform on Linux?

2017-11-28 Thread Spencer Kohan via swift-corelibs-dev
I did some performance testing, and found that while using concurrentPerform for a set of long running operations resulted in half the execution time of synchronous code on macOS, on Linux the execution time was not meaningfully different from the synchronous version. Is this expected? Cheers, Sp