Re: [swift-users] dispatch concurrent map: is this right?

2016-10-30 Thread Dave Abrahams via swift-users
on Sun Oct 30 2016, Dave Abrahams wrote: >> I quite like the API as an extension on Range. I think it would be a >> nice addition to Dispatch (once we start allowing additive proposals): >> >> extension Range where Bound : Strideable, Bound.Stride : SignedInteger { >> >> func concurrentMap(_ t

Re: [swift-users] dispatch concurrent map: is this right?

2016-10-30 Thread Dave Abrahams via swift-users
on Sun Oct 30 2016, Karl wrote: >> On 30 Oct 2016, at 19:23, Dave Abrahams via swift-users >> wrote: >> >> >> on Sun Oct 30 2016, Karl wrote: >> > On 30 Oct 2016, at 09:15, Karl wrote: I had the need for a concurrent map recently. I had a part of a program which neede

[swift-users] [SwiftPM] Build system module package to .a/.dylib?

2016-10-30 Thread Richard Wei via swift-users
Hi, Is there a way to build a system module package into a static/dynamic library, so that a Swift script can link against this library to find the module? Adding library products to Package.swift doesn’t seem to work. Thanks, Richard ___ swift-user

Re: [swift-users] dispatch concurrent map: is this right?

2016-10-30 Thread Karl via swift-users
> On 30 Oct 2016, at 19:23, Dave Abrahams via swift-users > wrote: > > > on Sun Oct 30 2016, Karl wrote: > >>> On 30 Oct 2016, at 09:15, Karl wrote: >>> >>> I had the need for a concurrent map recently. I had a part of a >>> program which needed to read chunks of data and concurrently proc

Re: [swift-users] Swift Package Manager and Git submodules

2016-10-30 Thread Daniel Dunbar via swift-users
> On Oct 29, 2016, at 7:22 AM, Anton Bronnikov wrote: > > Thanks, Daniel. > > Yes, on Oct-27 snapshot `Swift version 3.0-dev (LLVM b52fce3ab4, Clang > 4edf31e82f, Swift bf2de4a41c)` if I build with `swift build > --enable-new-resolver` then I do get the expected behaviour. Building with > u

[swift-users] Custom little/big endian data structure.

2016-10-30 Thread Adrian Zubarev via swift-users
Hi there, is there actually a way to build a custom data structure that will automatically be converted to little/big endian on a little/big endian system, just like (U)Int16/32/64 do? I could build as a workaround a mechanism that will do that for me, but I’m curious if this is possible with

Re: [swift-users] dispatch concurrent map: is this right?

2016-10-30 Thread Dave Abrahams via swift-users
on Sun Oct 30 2016, Karl wrote: >> On 30 Oct 2016, at 09:15, Karl wrote: >> >> I had the need for a concurrent map recently. I had a part of a >> program which needed to read chunks of data and concurrently process >> them and assemble the results in an array. This isn’t necessarily as >> obvi

Re: [swift-users] dispatch concurrent map: is this right?

2016-10-30 Thread Karl via swift-users
> On 30 Oct 2016, at 09:15, Karl wrote: > > I had the need for a concurrent map recently. I had a part of a program which > needed to read chunks of data and concurrently process them and assemble the > results in an array. This isn’t necessarily as obvious as it sounds, because > of arrays b

[swift-users] dispatch concurrent map: is this right?

2016-10-30 Thread Karl via swift-users
I had the need for a concurrent map recently. I had a part of a program which needed to read chunks of data and concurrently process them and assemble the results in an array. This isn’t necessarily as obvious as it sounds, because of arrays being value types. I came up with the following snippe