Re: [swift-users] Problem with mutable views and COW

2016-11-18 Thread John McCall via swift-users
> On Nov 18, 2016, at 7:40 AM, Karl wrote: > > >> On 18 Nov 2016, at 13:05, Adrian Zubarev via swift-users >> mailto:swift-users@swift.org>> wrote: >> >> Hi there, >> >> I just can’t get my head around mutable views and COW. >> >> Here is a small example: >> >> final class Storage { >>

Re: [swift-users] Problem with mutable views and COW

2016-11-18 Thread John McCall via swift-users
> On Nov 18, 2016, at 3:10 PM, Karl wrote: > > >> On 18 Nov 2016, at 20:18, John McCall > > wrote: >> >>> >>> On Nov 18, 2016, at 7:40 AM, Karl >> > wrote: >>> >>> On 18 Nov 2016, at 13:05, Adrian Zubarev via swift-users mailt

Re: [swift-users] [swift-dev] Guarantees of Tuples as Fixed Sized (stack allocated) Arrays

2017-04-28 Thread John McCall via swift-users
> On Apr 28, 2017, at 7:03 AM, Johannes Weiss via swift-dev > wrote: > Hi swift-users, > > (sorry for the cross post to swift-dev, but wasn't sure where it belongs) > > I tried to find guarantees about the memory layout Swift tuples but couldn't > find anything. The reason I ask is because I'd

Re: [swift-users] [swift-dev] Guarantees of Tuples as Fixed Sized (stack allocated) Arrays

2017-05-02 Thread John McCall via swift-users
> On May 2, 2017, at 4:38 PM, Jordan Rose wrote: >> On Apr 28, 2017, at 16:28, John McCall via swift-users >> mailto:swift-users@swift.org>> wrote: >> >>> On Apr 28, 2017, at 7:03 AM, Johannes Weiss via swift-dev >>> mailto:swift-...@swift.org>

Re: [swift-users] [swift-evolution] How does "Sequence.joined" work?

2017-08-08 Thread John McCall via swift-users
> On Aug 8, 2017, at 3:24 PM, Daryle Walker via swift-evolution > wrote: >> On Aug 8, 2017, at 12:35 AM, Félix Cloutier > > wrote: >> >> All this means is that `joined()` does not create an array that contains the >> new result. It's only as magic as the COW sem